joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fcb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42be38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43d8bc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x43fa40]
mov edx, dword [eax + 0xc]
mov ecx, 0x43fa40
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ecx, dword [edi]
push eax
push esi
push ecx
lea ecx, [ebx + 0xc4]
mov dword [esp + 0x2c], 0
call fcn.00414df0
mov edx, dword [esi]
mov eax, dword [edi]
push edx
push eax
push str.__GetStatusMessage__statusInfo.dwStatus___d_____s_n
push 0x40000
push 0x43e970
call fcn.00419090
push 0x432518
push esi
call fcn.0040cfc0
add esp, 0x1c
test al, al
je 0x40fd4e
cmp byte [ebx + 0x60], 1
jne 0x40fd4e
add edi, 4
push edi
mov ecx, esi
call fcn.004012d0
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4122f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42c388
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x43d8bc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
or edi, 0xffffffff
call fcn.00417bb0
mov eax, dword [0x43ed1c]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0
call fcn.00417bd0
mov esi, eax
test esi, esi
je 0x41237a
mov eax, dword [0x43ed20]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push eax
push esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412373
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call fcn.00417bc0
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
Function at 0x4147f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42c6d8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x43d8bc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x1c]
push eax
call fcn.00414280
push 0x43ed24
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x3c], 0
call fcn.0040b920
add esp, 0xc
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414862
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00414500
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov bl, 3
mov dword [esp + 0x24], esp
mov edi, esp
push eax
mov byte [esp + 0x38], bl
call fcn.00401100
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov edi, esp
push eax
mov byte [esp + 0x3c], 4
call fcn.00401100
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov ecx, 0x43ed38
mov byte [esp + 0x38], bl
call fcn.004171f0
mov edx, dword [esp + 0x38]
push edx
mov byte [esp + 0x17], al
lea eax, [esp + 0x3c]
push 0x4339e8
push eax
call fcn.00412da0
add esp, 0xc
lea ecx, [esi + 0xc]
push eax
mov byte [esp + 0x34], 5
call fcn.004012d0
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov bl, byte [esp + 0x13]
add eax, 0xfffffff0
mov byte [esi + 8], bl
mov byte [esp + 0x30], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414934
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41495c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4
Function at 0x414df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42be38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43d8bc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x43fa40]
mov edx, dword [eax + 0xc]
mov ecx, 0x43fa40
call edx
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x2c]
push 0
push 0x432518
mov ecx, edi
mov dword [esp + 0x28], 0
call fcn.00401230
mov al, byte [esi + 9]
cmp al, 1
mov ebp, dword [esp + 0x30]
jne 0x414e64
mov ecx, dword [esp + 0x28]
push ebp
push edi
lea eax, [esi + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00414c80
push 0x432518
push edi
call fcn.0040cfc0
add esp, 8
test al, al
je 0x414e91
cmp byte [esi + 8], 1
jne 0x414e91
mov edx, dword [esp + 0x28]
push ebp
push edi
add esi, 0xc
push esi
push edx
mov ecx, 0x43ed38
call fcn.004171a0
lea eax, [ebx - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414eb5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x416400
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42ca19
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x43d8bc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x38]
push 0x432518
mov ecx, edi
mov dword [esp + 0x34], ebx
call fcn.00407ef0
mov eax, dword [0x43edcc]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], 1
call fcn.004180b0
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
sub eax, 0x10
push eax
mov dword [esp + 0x34], 1
call fcn.00401100
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.00415760
push eax
lea ecx, [esp + 0x14]
call fcn.004012d0
lea ecx, [esp + 0x18]
call fcn.00417f50
cmp al, 1
jne 0x4164b8
lea edx, [esp + 0x10]
push edx
lea ecx, [esi + 0x18]
call fcn.004162c0
push eax
mov ecx, edi
call fcn.004012d0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4164dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.00417fc0
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 8

Function at 0x417c30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push edi
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edi
je 0x417cef
mov ebp, dword [esp + 0x1c]
cmp ebp, edi
je 0x417cef
mov ecx, dword [esp + 0x20]
push esi
lea eax, [esp + 0x10]
push eax
push edi
push ecx
push edi
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x417cdd
mov edx, dword [esp + 0x10]
add edx, 1
push edx
call fcn.0041d8c2
mov edi, eax
add esp, 4
test edi, edi
je 0x417cd8
mov eax, dword [esp + 0x10]
add eax, 1
push eax
push esi
push edi
call fcn.0041d8d0
add esp, 0xc
cmp dword [esp + 0x10], esi
jbe 0x417cdd
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push edi
push edx
push esi
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x417cdd
push edi
call fcn.0041d4bb
mov eax, dword [esp + 0x18]
add esp, 4
xor edi, edi
mov dword [eax], esi
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov esi, 0xe
mov eax, dword [esp + 0x14]
mov dword [eax], esi
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov eax, edi
pop edi
pop ebp
mov dword [ecx], 0x57
pop ebx
add esp, 8
ret 0xc
Function at 0x417e80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ccc0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43d8bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
mov dword [ebp - 4], ebx
je 0x417ec8
push 0x4382e0
lea eax, [ebp - 0x11]
push eax
mov byte [ebp - 0x11], bl
call fcn.0041cc1b
mov eax, dword [esi + 8]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x417eec
push 0x4382e0
lea ecx, [ebp - 0x12]
push ecx
mov byte [ebp - 0x12], bl
call fcn.0041cc1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x417f32
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
push 0x4382e0
lea ecx, [ebp - 0x13]
push ecx
mov byte [ebp - 0x13], bl
call fcn.0041cc1b
mov byte [ebp - 0x14], 0
mov eax, 0x417f1d
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417f50
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
cmp dword [esi + 4], 0
jne 0x417f6d
mov eax, dword [esi + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x417fae
mov ecx, dword [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
push eax
call edi
test eax, eax
je 0x417fa8
cmp eax, 0x80
jne 0x417f99
mov ecx, dword [esi + 4]
push 0
push ecx
call edi
test eax, eax
je 0x417fa2
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
pop edi
pop esi
mov al, bl
pop ebx
ret
pop edi
pop esi
mov al, 1
pop ebx
ret
pop esi
mov al, bl
pop ebx
ret

Function at 0x4181b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42cd59
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43d8bc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x43fa40]
mov edx, dword [eax + 0xc]
mov ecx, 0x43fa40
mov dword [esp + 0x1c], ebx
call edx
mov esi, dword [esp + 0x24]
add eax, 0x10
mov dword [esi], eax
mov edx, dword [esp + 0x28]
mov edi, dword [edx]
mov ecx, 1
mov dword [esp + 0x10], ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x201
or eax, ecx
mov dword [esp + 0x1c], ebx
jge 0x418224
push 0x201
mov ecx, esi
call fcn.004011e0
mov eax, dword [esi]
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov edx, dword [0x43edec]
push edi
push 0x200
push eax
push 0x432518
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
cmp dword [eax - 8], 0x201
jl 0x418278
mov dword [eax - 0xc], 0x201
mov eax, dword [esi]
mov word [eax + 0x402], bx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
push 0x80070057
call fcn.00401000
int3
Function at 0x4184d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ce21
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x43d8bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
xor esi, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [0x43fa40]
mov edx, dword [eax + 0xc]
mov ecx, 0x43fa40
mov dword [ebp - 4], esi
call edx
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov ebx, dword [ebp + 0x10]
mov eax, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], eax
mov edi, 0x2710
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d8c2
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0x18], esi
jne 0x418568
mov byte [ebp - 0x11], al
push 0x4382e0
lea eax, [ebp - 0x11]
push eax
call fcn.0041cc1b
mov ecx, dword [ebp + 0xc]
mov dword [esi], 0
mov eax, dword [ecx]
mov ecx, dword [ebx]
push eax
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea edx, [edi - 2]
cmp eax, edx
je 0x4185e5
mov ecx, dword [ebp - 0x20]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
call fcn.004183f0
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004012d0
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4185c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
sete al
cmp al, 1
jne 0x418619
push 0x4382e0
lea edx, [ebp - 0x12]
push edx
mov byte [ebp - 0x12], 0
call fcn.0041cc1b
push esi
call fcn.0041d4bb
add esp, 4
mov dword [ebp - 0x18], 0
add edi, 0x3e8
jmp 0x418533
test esi, esi
je 0x418626
push esi
call fcn.0041d4bb
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419090
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x42ced1
mov eax, dword fs:[0]
push eax
sub esp, 0x920
mov eax, dword [0x43d8bc]
xor eax, esp
mov dword [esp + 0x91c], eax
push ebp
push esi
push edi
mov eax, dword [0x43d8bc]
xor eax, esp
push eax
lea eax, [esp + 0x930]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x948]
mov edx, dword [esp + 0x944]
mov esi, dword [esp + 0x940]
lea eax, [esp + 0x94c]
push eax
push ecx
push edx
lea ecx, [esi + 4]
call fcn.00419d40
cmp byte [esi + 0x10], 0
je 0x4192c6
mov eax, dword [0x43fa40]
mov edx, dword [eax + 0xc]
mov ecx, 0x43fa40
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x948]
lea eax, [esp + 0x94c]
push eax
push ecx
push 0x400
lea edx, [esp + 0x138]
push edx
mov dword [esp + 0x948], 0
call fcn.00418820
lea eax, [esp + 0x12c]
lea edx, [eax + 2]
jmp 0x419150
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419150
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401230
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], ecx
call dword [0x43e870]
mov edx, dword [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.00418a50
mov eax, dword [esp + 0x28]
test eax, eax
mov byte [esp + 0x938], 1
je 0x41928a
mov edx, SysReAllocString
mov ecx, eax
lea esp, [esp]
cmp byte [ecx], 0
je 0x4191c2
add ecx, 1
sub edx, 1
jne 0x4191b0
jmp 0x41928a
test edx, edx
je 0x41928a
push eax
lea ecx, [esp + 0x14]
call fcn.00418e90
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x93c], 2
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x80
lea ecx, [esp + 0xb0]
push ecx
push 0
lea edx, [esp + 0x24]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
sub esp, 0x84
mov edi, esp
push eax
push ebp
lea eax, [esp + 0x138]
push eax
mov ecx, 0x21
lea esi, [esp + 0xb8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xa0]
push str._s_:__0x_X_0x_X___s
push ecx
call fcn.00418e70
mov edx, dword [esp + 0xa8]
add esp, 0x98
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x938], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419286
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x41929b
push eax
call fcn.0041d192
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x938], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4192c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x930]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x91c]
xor ecx, esp
call fcn.0041d071
add esp, 0x92c
ret
Function at 0x4194f8
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x419565
mov ebx, dword [esp + 0x14]
push ebx
call ebp
test ebx, ebx
mov dword [esi + 4], eax
je 0x419561
push str.DebugOpen
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.DebugClose
push eax
call edi
mov ecx, dword [esi + 4]
push str.TraceWrite
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 4]
push str.DumpWrite
push edx
mov dword [esi + 0x14], eax
call edi
cmp dword [esi + 0xc], 0
mov dword [esi + 0x18], eax
je 0x419561
cmp dword [esi + 0x10], 0
je 0x419561
cmp dword [esi + 0x14], 0
je 0x419561
test eax, eax
jne 0x419565
xor ebx, ebx
jmp 0x41956a
mov ebx, 1
cmp dword [esi + 8], 0
jne 0x4195cd
mov eax, dword [esp + 0x18]
push eax
call ebp
test eax, eax
mov dword [esi + 8], eax
je 0x4195c9
push str.DebugOpen
push eax
call edi
mov ecx, dword [esi + 8]
push str.DebugClose
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi + 8]
push str.TraceWrite
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
push str.DumpWrite
push eax
call edi
cmp dword [esi + 0x1c], 0
mov dword [esi + 0x28], eax
je 0x4195c9
cmp dword [esi + 0x20], 0
je 0x4195c9
cmp dword [esi + 0x24], 0
je 0x4195c9
test eax, eax
jne 0x4195cd
xor eax, eax
jmp 0x4195d2
mov eax, 1
test ebx, ebx
je 0x4195d8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4198a0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
jne 0x41996c
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 4], eax
je 0x419966
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenA
push eax
call edi
mov ecx, dword [esi + 4]
push str.CloseA
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 4]
push str.TraceWriteA
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.DumpWriteA
push eax
call edi
mov ecx, dword [esi + 4]
push str.OpenW
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push str.CloseW
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.TraceWriteW
push eax
call edi
mov ecx, dword [esi + 4]
push str.DumpWriteW
push ecx
mov dword [esi + 0x20], eax
call edi
cmp dword [esi + 8], 0
mov dword [esi + 0x24], eax
pop edi
je 0x419966
cmp dword [esi + 0xc], 0
je 0x419966
cmp dword [esi + 0x10], 0
je 0x419966
cmp dword [esi + 0x14], 0
je 0x419966
cmp dword [esi + 0x18], 0
je 0x419966
cmp dword [esi + 0x1c], 0
je 0x419966
cmp dword [esi + 0x20], 0
je 0x419966
test eax, eax
jne 0x41996c
xor eax, eax
pop esi
ret 4
mov eax, 1
pop esi
ret 4

Function at 0x41d071
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43d8bc]
jne 0x41d07b
repz ret
jmp fcn.00420cdc
Function at 0x421eb2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43dbc8]
je 0x421ecd
inc edi
cmp edi, 0x17
jb 0x421ebe
cmp edi, 0x17
jae 0x42204d
push ebp
push 3
call fcn.004276a6
cmp eax, 1
pop ecx
je 0x422019
push 3
call fcn.004276a6
test eax, eax
pop ecx
jne 0x421f01
cmp dword [0x43d8e4], 1
je 0x422019
cmp ebx, 0xfc
je 0x42204c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43f368
push ebp
call fcn.00424dfc
add esp, 0xc
test eax, eax
je 0x421f37
push esi
push esi
push esi
push esi
push esi
call fcn.0041e891
add esp, 0x14
push 0x104
mov esi, 0x43f381
push esi
push 0
mov byte [0x43f485], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421f7b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00424dfc
add esp, 0xc
test eax, eax
je 0x421f7b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041e891
add esp, 0x14
push esi
call fcn.00424e70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x421fc0
push esi
call fcn.00424e70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43f67c
push 0x434b1c
sub ecx, eax
push ecx
push eax
call fcn.004275f3
add esp, 0x14
test eax, eax
je 0x421fc0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041e891
add esp, 0x14
jmp 0x421fc2
xor esi, esi
push 0x434b18
push ebx
push ebp
call fcn.00427582
add esp, 0xc
test eax, eax
je 0x421fe2
push esi
push esi
push esi
push esi
push esi
call fcn.0041e891
add esp, 0x14
push dword [edi*8 + 0x43dbcc]
push ebx
push ebp
call fcn.00427582
add esp, 0xc
test eax, eax
je 0x422004
push esi
push esi
push esi
push esi
push esi
call fcn.0041e891
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004273c5
add esp, 0xc
jmp 0x42204c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42204c
cmp ebp, 0xffffffff
je 0x42204c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43dbcc]
push dword [esi]
call fcn.00424e70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret