joyce8/EMBER2024-capa huggingface dataset:
Function at 0xddfd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xddfd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xddfd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xddfd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xddfd94
push eax
push esi
call fcn.00de220b
add esp, 8
pop esi
ret 0x10

Function at 0xddfda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xddfe22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xddfe15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xdf8320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00de1dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xddfdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xddfe30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xddfec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xddfeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xdf8320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00de1dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xddfeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xddfe6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xde0000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xde0131
push esi
call fcn.00de3145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00dd2080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xde0131
push 0
push ebp
call fcn.00dd23a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00dd2260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xde008b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00dd22f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xde0121
push 0xdf8918
push edi
call fcn.00de13f0
push eax
push ebx
push esi
call fcn.00ddff60
push 0xdf88f8
push edi
call fcn.00de13f0
push eax
push ebx
push esi
call fcn.00ddff60
push 0xdf88d8
push edi
call fcn.00de13f0
push eax
push ebx
push esi
call fcn.00ddff60
push 0xdf88c0
push edi
call fcn.00de13f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ddff60
push 0xdf88a0
push edi
call fcn.00de13f0
push eax
push ebx
push esi
call fcn.00ddff60
push 0xdf8888
push edi
call fcn.00de13f0
push eax
push ebx
push esi
call fcn.00ddff60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xde11b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00de1140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00de1140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00de1140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00de1140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xde1bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xde1c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xdf387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xde1c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xde1c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x5bc060
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xba000]
push edi
or ebp, 0xffffffff
jmp 0x5bc082
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5bc089
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bc078
mov eax, 1
add ebx, ebx
jne 0x5bc09b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5bc0ac
jne 0x5bc0bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5bc0bc
dec eax
add ebx, ebx
jne 0x5bc0b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5bc090
xor ecx, ecx
sub eax, 3
jb 0x5bc0d4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5bc146
sar eax, 1
mov ebp, eax
jmp 0x5bc0df
add ebx, ebx
jne 0x5bc0df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5bc0ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5bc110
inc ecx
add ebx, ebx
jne 0x5bc0fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5bc0f1
jne 0x5bc10d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5bc0f1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5bc130
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5bc121
jmp 0x5bc07e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5bc130
add edi, ecx
jmp 0x5bc07e
pop esi
mov edi, esi
mov ecx, 0xbc2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5bc14e
cmp byte [edi], 9
jne 0x5bc14e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x5bc153
lea edi, [esi + 0x1ba000]
mov eax, dword [edi]
or eax, eax
je 0x5bc1cb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ce3cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ce444]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5bc180
mov ecx, edi
jns 0x5bc1af
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ce448]
or eax, eax
je 0x5bc1c5
mov dword [ebx], eax
add ebx, 4
jmp 0x5bc19d
call dword [esi + 0x1ce44c]
popal
jmp 0x414b4d
Function at 0x403f00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46de18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4afd10]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x4afd10]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov esi, ecx
mov ecx, dword [esp + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.004039e0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x48], 0
call fcn.00403b50
cmp dword [esp + 0x24], 0x10
jb 0x403f9a
mov edx, dword [esp + 0x10]
push edx
call fcn.004519dd
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004522aa
add esp, 0x30
ret 0x1c

Function at 0x408a60
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push esi
push edi
lea eax, [esp + 0x18]
push eax
mov esi, ecx
call ebx
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push 0
push ecx
push edx
push eax
call fcn.004527a0
push 0
push 0xf4240
push edx
push eax
call fcn.004526f0
mov ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
add edi, ecx
mov esi, edx
adc esi, eax
cmp esi, eax
jg 0x408ad0
jl 0x408ab6
cmp edi, ecx
jae 0x408ad0
lea ecx, [esp + 0x10]
push ecx
call ebx
mov edx, dword [esp + 0x14]
cmp edx, esi
jg 0x408ab6
jl 0x408ad0
mov eax, dword [esp + 0x10]
cmp eax, edi
ja 0x408ab6
nop
lea ecx, [esp + 0x10]
push ecx
call ebx
mov edx, dword [esp + 0x14]
cmp edx, esi
jl 0x408ad0
jg 0x408ae9
mov eax, dword [esp + 0x10]
cmp eax, edi
jb 0x408ad0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408dc0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xb4], 0
mov dword [esi], vtable.CCrossPlatformWin32Impl.1.0
mov dword [esi + 8], vtable.CCrossPlatformWin32Impl.0
jl 0x408e44
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edi, eax
test edi, edi
je 0x408e43
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call ebx
mov eax, dword [esi + 0xb8]
push eax
push 0xffffffffffffffec
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push edi
call ebx
mov eax, dword [esi + 0xb4]
lea edx, [esi + 0x44]
push edx
push 1
push eax
push 0
lea ecx, [esi + 0x74]
push edi
mov dword [esi + 0x48], 0xe2
mov dword [esi + 0x68], ecx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_InsertMenuItemA]
test eax, eax
pop ebx
jne 0x408e3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.USER32.dll_DrawMenuBar]
pop edi
push 0
push 0x408820
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x408e5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x408e70
push eax
call dword [sym.imp.WINMM.dll_waveOutClose]
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x408e85
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov dword [esi], vtable.CReferenceCountImpl.0
pop esi
ret

Function at 0x40f040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46eeb3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4afd10]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov ecx, dword [esi + 0x30]
test ecx, ecx
mov dword [esp + 0x14], 1
je 0x40f07e
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 0
call fcn.00446ff0
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.004090e0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x412a60
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x46f46b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4afd10]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 0x10]
mov dword [esi], vtable.CDisplayAdapterType.0
xor eax, eax
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], eax
mov byte [ecx + 4], al
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov ax, word [edi]
mov word [esi + 4], ax
movzx edx, word [edi + 2]
mov word [esi + 6], dx
mov eax, dword [edi + 4]
mov dword [esi + 8], eax
movzx edx, byte [edi + 8]
mov byte [esi + 0xc], dl
movzx eax, byte [edi + 9]
mov byte [esi + 0xd], al
movzx edx, byte [edi + 0xa]
mov byte [esi + 0x2c], dl
movzx eax, byte [edi + 0xb]
mov byte [esi + 0x2d], al
movzx edx, byte [edi + 0xc]
mov byte [esi + 0x2e], dl
movzx eax, byte [edi + 0xd]
mov byte [esi + 0x2f], al
movzx edx, word [edi + 0xe]
mov word [esi + 0x30], dx
movzx eax, byte [edi + 0x10]
mov byte [esi + 0x32], al
mov ebp, dword [edi + 0x14]
mov eax, ebp
lea ebx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x412b01
sub eax, ebx
push eax
push ebp
call fcn.004017a0
mov cl, byte [edi + 0x11]
mov byte [esi + 0x33], cl
mov dl, byte [edi + 0x12]
mov byte [esi + 0x34], dl
mov al, byte [edi + 0x13]
mov byte [esi + 0x35], al
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x416b00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46fd76
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4afd10]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], vtable.IEEPROM.0
mov dword [esi], vtable.CEEPROMBaseImpl.1.0
mov dword [esi + 8], vtable.CEEPROMBaseImpl.0
mov dword [esi + 0xc], vtable.CEEPROMType.0
mov dword [esi + 0x30], ebx
mov eax, 0xf
mov dword [esi + 0x34], eax
mov byte [esi + 0x20], bl
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ebx
mov byte [esi + 0x58], bl
mov byte [esi + 0x10], bl
mov word [esi + 0x12], bx
mov word [esi + 0x14], bx
mov word [esi + 0x16], bx
mov byte [esi + 0x18], 1
mov word [esi + 0x70], bx
mov word [esi + 0x72], bx
mov byte [esi + 0x74], bl
mov byte [esi + 0x75], bl
mov byte [esi + 0x76], bl
mov byte [esi + 0x77], bl
mov dword [esi + 0x7c], ebx
mov ecx, ebx
cmp ecx, ebx
mov byte [esp + 0x1c], 3
je 0x416bad
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [esi + 0x7c], ebx
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x416bbd
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
cmp edi, ebx
mov dword [esi + 0x7c], edi
mov byte [esi + 0x78], bl
mov word [esi + 0x7a], bx
mov byte [esi + 0x80], bl
mov dword [esp + 0x1c], 0xffffffff
je 0x416be2
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
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 4
Function at 0x43b490
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4741c9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4afd10]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CPCIBusWin32Impl.1.0
mov dword [esi + 8], vtable.CPCIBusWin32Impl.0
mov ecx, dword [esi + 0xc]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x18], 3
je 0x43b4e1
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [esi + 0xc], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
cmp dword [esi + 0x2c], 0x10
jb 0x43b503
mov eax, dword [esi + 0x18]
jmp 0x43b506
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi + 0x2c], 0x10
jb 0x43b51f
mov eax, dword [esi + 0x18]
push eax
call fcn.004519dd
add esp, 4
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x28], ebx
mov byte [esi + 0x18], bl
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
mov byte [esp + 0x18], 1
je 0x43b53f
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov ecx, dword [esi + 0xc]
cmp ecx, ebx
mov byte [esp + 0x18], bl
je 0x43b551
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [esi], vtable.CReferenceCountImpl.0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x4522aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4afd10]
jne 0x4522b4
repz ret
jmp fcn.0045896c
Function at 0x466372
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00457c94
xor ebx, ebx
cmp dword [0x4b24b0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x466447
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4663b2
xor eax, eax
jmp 0x46650b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4663ab
push eax
call fcn.00457c31
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4b24b0], eax
call esi
push eax
call fcn.00457c31
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4b24b4], eax
call esi
push eax
call fcn.00457c31
mov dword [0x4b24b8], eax
lea eax, [ebp - 8]
push eax
call fcn.00457150
test eax, eax
pop ecx
pop ecx
je 0x466415
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00451ce6
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x466447
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00457c31
cmp eax, ebx
pop ecx
mov dword [0x4b24c0], eax
je 0x466447
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00457c31
pop ecx
mov dword [0x4b24bc], eax
mov eax, dword [0x4b24bc]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4664c0
cmp dword [0x4b24c0], esi
je 0x4664c0
push eax
call fcn.00457c9d
pop ecx
call eax
cmp eax, ebx
je 0x46648d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4b24c0]
call fcn.00457c9d
pop ecx
call eax
test eax, eax
je 0x46648d
test byte [ebp - 0x18], 1
jne 0x4664c0
lea eax, [ebp - 0xc]
push eax
call fcn.00457187
test eax, eax
pop ecx
je 0x4664a8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00451ce6
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4664b7
or dword [ebp + 0x10], 0x200000
jmp 0x4664f1
or dword [ebp + 0x10], 0x40000
jmp 0x4664f1
mov eax, dword [0x4b24b4]
cmp eax, esi
je 0x4664f1
push eax
call fcn.00457c9d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4664f1
mov eax, dword [0x4b24b8]
cmp eax, esi
je 0x4664f1
push dword [ebp - 4]
push eax
call fcn.00457c9d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4b24b0]
call fcn.00457c9d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sym._EnterCriticalSection_4
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x4020eb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4020e4
test esi, esi
je 0x4020e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020c0
mov dword [esp], 0x408048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4022d0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402320
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4023f8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40235e
cmp eax, 4
jne 0x402380
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40236e
cmp edx, 4
je 0x40236e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004022d0
Function at 0x401bc0
Capabilities:
Get file system object information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402f1b
push eax
mov dword fs:[0], esp
sub esp, 0x2b8
mov ecx, 0xad
xor eax, eax
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2fc]
lea ecx, [esp + 8]
push eax
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0x2d0]
test al, 0x10
je 0x401c22
mov edx, dword [esp + 8]
and eax, 2
or eax, 0x4011
lea ecx, [esp + 0xc]
push eax
push 0x2b4
push ecx
push 0x10
push edx
jmp 0x401c3f
mov ecx, dword [esp + 8]
and eax, 2
or eax, 0x4001
push eax
lea eax, [esp + 0x10]
push 0x2b4
push eax
push 0x80
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 8]
mov dword [esp + 0x2c8], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x2c0]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c4
ret 0x250

Function at 0x401c90
Capabilities:
Get common file path

Disassembly:
mov cl, byte [0x406580]
mov al, 1
test al, cl
jne 0x401cbd
mov dl, cl
mov ecx, 0x40657c
or dl, al
mov byte [0x406580], dl
call fcn.00402a1c
push 0x401d00
call fcn.00402bb0
add esp, 4
push esi
mov ecx, 0x40657c
call sub.MFC42u.DLL_CString::Empty
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
inc eax
push eax
call sub.MFC42u.DLL_operatornew
add esp, 4
mov esi, eax
mov ecx, 0x40657c
push esi
call sub.MFC42u.DLL_CString::operator_1
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, 0x40657c
pop esi
ret