joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421629
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x421654
call fcn.0041b972
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [0x44654c]
mov dword [esi + 8], eax
test eax, eax
jne 0x421677
push eax
push dword [esi + 4]
call fcn.004215af
push esi
push eax
mov ecx, 0x4583b4
call fcn.00421263
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x43f210
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x43f21b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x43f31e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x449f78]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x449f78]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x449f78]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x449f78]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x449f78]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x449f78]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x449f78]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x449f78]
xor eax, edx
inc ecx
dec edi
jne 0x43f236
pop edi
test esi, esi
je 0x43f340
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x449f78]
xor eax, edx
inc ecx
dec esi
jne 0x43f322
pop esi
pop ebx
not eax
ret
Function at 0x4012c0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004180e0
push 0x457708
push esi
call fcn.00436feb
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4012e3
xor al, al
pop esi
ret
cmp dword [0x46f528], 0xffffffff
push edi
mov edi, dword [0x46f52c]
jge 0x401317
mov eax, dword [0x46f530]
push eax
call fcn.0041aea7
push 0xffffffffffffffff
call fcn.0041aea2
add esp, 8
mov dword [0x46f530], eax
mov dword [0x46f528], 0xffffffff
mov ecx, dword [0x46f530]
push esi
push 1
push edi
push ecx
call fcn.00436e9a
push esi
call fcn.00436d04
add esp, 0x14
pop edi
mov al, 1
pop esi
ret

Function at 0x401740
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
push edi
push 0x457788
push 1
call fcn.004013e0
push eax
call fcn.004071f0
mov ebx, dword [esp + 0x24]
add esp, 0x10
test ebx, ebx
jne 0x401769
pop edi
xor al, al
pop ebx
ret
mov eax, dword [str.1.tmp]
mov cx, word [0x457818]
push esi
push 0x457708
push 0x46f428
mov dword [0x46f428], eax
mov word [0x46f42c], cx
call fcn.00436feb
mov esi, eax
add esp, 8
test esi, esi
je 0x40185e
push ebp
push edi
push str._t_t_t_t_t
push 1
call fcn.004013e0
push eax
call fcn.004071f0
mov ebp, dword [0x46f52c]
add esp, 0x10
cmp dword [0x46f528], 0xffffffff
jge 0x4017e9
mov edx, dword [0x46f530]
push edx
call fcn.0041aea7
push 0xffffffffffffffff
call fcn.0041aea2
add esp, 8
mov dword [0x46f530], eax
mov dword [0x46f528], 0xffffffff
mov eax, dword [0x46f530]
push esi
push 1
push ebp
push eax
call fcn.00436e9a
add esp, 0x10
push eax
push str._t_t_t_t_tfwrite
push 1
call fcn.004013e0
push eax
call fcn.004071f0
push esi
call fcn.00436d04
add esp, 0x14
cmp dword [ebx + 0x18], 0x10
pop ebp
jb 0x401823
mov ebx, dword [ebx + 4]
jmp 0x401826
add ebx, 4
push 0x46f428
push ebx
push edi
call fcn.00401120
mov ecx, eax
call fcn.00414850
test eax, eax
push edi
je 0x401864
push 0x4577c0
push 1
call fcn.004013e0
push eax
call fcn.004071f0
add esp, 0x10
push 0x46f428
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop edi
xor al, al
pop ebx
ret
push 0x4577a4
push 1
call fcn.004013e0
push eax
call fcn.004071f0
add esp, 0x10
push 0x46f428
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop edi
mov al, 1
pop ebx
ret
Function at 0x4075a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4075b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4075f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4075f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4075f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4075e0
cmp esi, eax
jb 0x4075fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x408050
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x90]
mov edx, dword [esi + 0x8c]
cmp eax, edx
jne 0x408090
add eax, 0xffffffff
cmp eax, edx
ja 0x408081
test eax, eax
mov esi, dword [esi + 0xd4]
jbe 0x40807c
sub eax, 1
mov esi, dword [esi + 8]
jne 0x408074
mov ecx, dword [esi + 4]
jmp 0x408083
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
push 0
call fcn.00437c3f
lea ecx, [eax - 1]
cmp ecx, edx
ja 0x4080ae
test ecx, ecx
mov eax, dword [esi + 0xd4]
jbe 0x4080a9
sub ecx, 1
mov eax, dword [eax + 8]
jne 0x4080a1
mov eax, dword [eax + 4]
jmp 0x4080b0
xor eax, eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
call eax
test al, al
je 0x4080ec
add dword [esi + 0x90], 1
mov eax, dword [esi + 0x90]
push eax
mov ecx, esi
call fcn.00407c00
mov ecx, dword [esi + 0x90]
sub ecx, 1
push ecx
mov ecx, esi
call fcn.00407800
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
pop esi
jmp eax
pop esi
ret
Function at 0x40a7a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
movzx eax, word [esp + 0xc]
push esi
push edi
push 0x4599a0
push eax
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40a7db
mov ecx, dword [0x46b564]
push 0x10
push 0x457d70
push ecx
mov ecx, edi
call fcn.004229ef
pop edi
xor al, al
pop esi
pop ecx
ret 8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a805
mov edx, dword [0x46b564]
push 0x10
push 0x457d70
push edx
mov ecx, edi
call fcn.004229ef
pop edi
xor al, al
pop esi
pop ecx
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x40a834
mov eax, dword [0x46b564]
push 0x10
push 0x457d70
push eax
mov ecx, edi
call fcn.004229ef
pop ebx
pop edi
xor al, al
pop esi
pop ecx
ret 8
push ebp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
xor edi, edi
test esi, esi
jbe 0x40a89e
mov ebp, dword [esp + 0x18]
mov eax, 0x400
sub eax, ebx
mov dword [esp + 0x1c], eax
jmp 0x40a85b
mov eax, dword [esp + 0x1c]
add eax, ebx
cmp eax, esi
push ebp
push 1
ja 0x40a88c
push 0x400
push ebx
call fcn.00436e9a
add edi, 0x400
add esp, 0x10
add ebx, 0x400
cmp edi, esi
jb 0x40a857
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x18]
sub esi, edi
add edi, ecx
push esi
push edi
call fcn.00436e9a
add esp, 0x10
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
pop ecx
ret 8

Function at 0x40ac10
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1c], 0
je 0x40ac43
lea eax, [esi + 0x18]
push eax
push 0
push esi
push 0x40abd0
push 0
push 0
call fcn.00439ca0
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
mov byte [esi + 0x1c], 0
mov byte [esi + 0x1d], 0
setne al
pop esi
ret
cmp byte [esi + 0x1d], 0
je 0x40ac60
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40ac5c
xor al, al
pop esi
ret
mov byte [esi + 0x1d], 0
mov al, 1
pop esi
ret
Function at 0x40ada0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x454a38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46dd54]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebp, eax
call fcn.0041ae77
add esp, 4
mov ebx, eax
push ebx
push ebp
mov dword [ebx], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40af24
call fcn.0042681c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ae0e
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea edi, [ebx + 0x24]
push edi
lea ecx, [esp + 0x18]
push 0x4599ac
push ecx
mov dword [esp + 0x2c], 0
call fcn.004095f0
mov ecx, dword [str.ui_launch_dx_bak.exe]
xor eax, eax
add esp, 0xc
test ecx, ecx
setne al
test eax, eax
jne 0x40ae57
push 0x80004005
call fcn.00401090
mov esi, dword [esp + 0x14]
push ecx
push esi
call fcn.00439b93
add esp, 8
test eax, eax
sete al
test al, al
je 0x40aea8
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ae92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push ebx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40af00
push edi
lea ecx, [esp + 0x18]
push 0x4599ac
push ecx
call fcn.004095f0
mov eax, dword [str.ui_launch_dx_bak.exe]
xor ecx, ecx
add esp, 0xc
test eax, eax
setne cl
test ecx, ecx
je 0x40ae04
mov esi, dword [esp + 0x14]
push eax
push esi
call fcn.00439b93
add esp, 8
test eax, eax
sete al
test al, al
jne 0x40ae6e
push ebx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40aeb3
lea eax, [esi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40af24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x40b170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x454ac8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46dd54]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov ecx, 0xf
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov byte [esi + 4], al
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov byte [esi + 0x20], al
lea ecx, [esi + 0x48]
mov dword [esp + 0x14], eax
call fcn.0040b0e0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x40b360
Capabilities:
Delete file
Suspend thread
Terminate thread

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebx, ecx
push esi
mov esi, dword [ebx + 0xb0]
xor ebp, ebp
cmp esi, ebp
push edi
mov dword [esp + 0x14], ebx
je 0x40b398
cmp byte [esi + 0x1c], 0
jne 0x40b398
cmp byte [esi + 0x1d], 0
jne 0x40b398
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x40b398
mov byte [esi + 0x1d], 1
mov eax, dword [0x46fe44]
cmp eax, ebp
je 0x40b3ad
push eax
call fcn.00413470
mov dword [0x46fe44], ebp
mov eax, dword [ebx + 0xa0]
cmp eax, ebp
lea edi, [ebx + 0x9c]
je 0x40b481
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
je 0x40b481
cmp eax, ebp
jne 0x40b3d7
xor ebx, ebx
jmp 0x40b3df
mov ebx, dword [edi + 8]
sub ebx, eax
sar ebx, 2
test ebx, ebx
mov dword [esp + 0x10], ebx
jbe 0x40b47b
jmp 0x40b3f0
mov esi, dword [edi + 4]
test esi, esi
je 0x40b4e8
mov ecx, dword [edi + 8]
mov eax, ecx
sub eax, esi
sar eax, 2
cmp eax, ebp
jbe 0x40b4e8
cmp esi, ecx
jbe 0x40b416
call fcn.00437128
mov dword [esp + 0x1c], esi
lea esi, [esi + ebp*4]
cmp esi, dword [edi + 8]
ja 0x40b427
cmp esi, dword [edi + 4]
jae 0x40b430
call fcn.00437128
mov ebx, dword [esp + 0x10]
cmp esi, dword [edi + 8]
jb 0x40b43a
call fcn.00437128
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00408240
mov esi, eax
add esp, 4
add esi, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b470
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 1
cmp ebp, ebx
jb 0x40b3f0
mov ebx, dword [esp + 0x14]
xor ebp, ebp
mov esi, dword [ebx + 0xb0]
cmp esi, ebp
je 0x40b4e0
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x14], 0x103
jne 0x40b4c0
mov eax, dword [esi + 0xc]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebp
mov byte [esi + 0x1e], 0
mov byte [esi + 0x1c], 1
mov ecx, dword [ebx + 0xb0]
cmp ecx, ebp
je 0x40b4da
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [ebx + 0xb0], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
jmp fcn.00401f70
Function at 0x40b4f0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x454b30
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x46dd54]
xor eax, esp
mov dword [esp + 0x60], eax
push ebp
push esi
push edi
mov eax, dword [0x46dd54]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040b360
mov ecx, dword [esi + 0x98]
lea eax, [esp + 0x10]
push eax
call fcn.004089b0
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x80], 0
call fcn.0040fe20
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 1
call fcn.00410400
test al, al
jne 0x40b578
push 0
push 0x10
push 0x4599c4
call fcn.0041e45d
push 1
call fcn.00437c3f
push str.config
lea ecx, [esp + 0x18]
call fcn.0040f800
test eax, eax
jne 0x40b59e
push eax
push 0x10
push 0x4599b0
call fcn.0041e45d
push 1
call fcn.00437c3f
push str.auto_patch_client
mov ecx, eax
call fcn.0040fac0
mov edi, eax
push str.current
push edi
call fcn.0040e7e0
add esp, 8
test eax, eax
je 0x40b650
mov ebp, dword [str.1.3.2]
mov ecx, ebp
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b5f0
test dl, dl
je 0x40b5ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b5f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b5d0
xor eax, eax
jmp 0x40b5f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40b614
push ebp
push str.current
mov ecx, edi
call fcn.0040fbc0
mov edx, dword [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call fcn.0040e8e0
mov eax, dword [esi + 0xd4]
push 0
push 0x64
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x98]
push 1
add ecx, 0xd8
call fcn.00420cab
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0x98]
call fcn.00408050
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 0
call fcn.00401b80
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x7c], 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b686
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00436c82
add esp, 0x70
ret
Function at 0x40daf0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x454ec8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46dd54]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x8c], edi
je 0x40db44
mov ecx, dword [esi + 0x74]
call fcn.0041c0e9
mov ecx, dword [esi + 0x74]
cmp ecx, edi
je 0x40db3b
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esi + 0x74], edi
mov dword [esi + 0x8c], edi
mov ebx, dword [esp + 0x3c]
cmp ebx, edi
mov dword [esi + 0x90], edi
je 0x40dbab
push 8
call fcn.0041ae77
add esp, 4
cmp eax, edi
je 0x40db6b
mov dword [eax + 4], edi
mov dword [eax], vtable.CBitmap.0
mov edi, eax
mov dword [esi + 0x74], edi
call fcn.00420a41
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call fcn.0041c096
test eax, eax
je 0x40dc78
mov eax, 1
mov ecx, esi
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
call fcn.0040d1a0
jmp 0x40dc73
mov ebx, dword [esp + 0x40]
push 0x2050
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
mov ebp, eax
cmp ebp, edi
jne 0x40dbd7
push edi
push edi
push 0x45a1c0
call fcn.0041e45d
push edi
call fcn.00437c3f
push ebp
call fcn.0041c088
mov edx, dword [eax + 4]
lea ecx, [esp + 0x14]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp word [esp + 0x26], 0x18
je 0x40dc65
call fcn.0042681c
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40dc10
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
movzx ecx, word [esp + 0x26]
push ecx
push ebx
lea edx, [esp + 0x44]
push str._s__i
push edx
mov dword [esp + 0x44], edi
call fcn.004095f0
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call fcn.0041c088
push eax
mov ecx, esi
call fcn.0040d7b0
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
Function at 0x40fe20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4550c3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46dd54]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esi + 0x28], ebx
lea edi, [esi + 0x14]
mov eax, 0xf
mov dword [edi + 0x18], eax
mov byte [edi + 4], bl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], ebx
mov dword [esp + 0x20], ebx
mov byte [esi + 0x44], bl
mov edx, dword [esp + 0x28]
mov eax, edx
mov byte [esp + 0x20], 1
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40fe91
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.00401d00
mov byte [esi + 0x38], bl
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 0x4145e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45545e
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46dd54]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004137e0
mov dword [esi + 4], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
xor eax, eax
mov dword [esi + 8], eax
mov ecx, 0xf
mov dword [esi + 0x28], ecx
mov dword [esi + 0x24], eax
mov byte [esi + 0x14], al
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
mov byte [esi + 0x58], al
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4149c0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
push eax
push ecx
push edx
call fcn.00436e9a
push esi
mov edi, eax
call fcn.004387d0
add esp, 0x14
mov eax, edi
pop edi
pop esi
ret
Function at 0x4149f0
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x64
cmp dword [esp + 0x68], 0
push esi
mov esi, ecx
je 0x414b6b
push ebp
mov ebp, dword [esp + 0x74]
push ebx
push edi
jmp 0x414a10
mov eax, dword [esp + 0x78]
mov ecx, dword [esi + 0x5c]
push 0
push 0
push eax
push ecx
call fcn.0043afba
push 0x4c
lea edx, [esp + 0x3c]
push 0
push edx
call fcn.00437da0
mov eax, dword [esi + 0x5c]
push eax
push 1
lea ecx, [esp + 0x4c]
push 0x4c
push ecx
call fcn.0043af06
add esp, 0x2c
test eax, eax
je 0x414b68
xor eax, eax
cmp dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x7c], eax
jbe 0x414ac8
mov edx, dword [esi + 0x5c]
push edx
call fcn.0043ac5f
mov edi, eax
mov eax, dword [esi + 0x5c]
push eax
push 1
lea ecx, [esp + 0x1c]
push 0x18
push ecx
mov ebx, edx
call fcn.0043af06
mov edx, dword [esp + 0x24]
add esp, 0x14
cmp edx, dword [ebp]
jne 0x414ab7
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 4]
jne 0x414ab7
mov ecx, dword [esp + 0x18]
cmp ecx, dword [ebp + 8]
jne 0x414ab7
mov edx, dword [esp + 0x1c]
cmp edx, dword [ebp + 0xc]
je 0x414ae2
mov eax, dword [esp + 0x7c]
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x7c], eax
jb 0x414a71
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x78], eax
jne 0x414a10
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x64
ret 8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x78]
mov edx, dword [esi + 0x5c]
push 0
lea eax, [eax + eax*2 - 3]
lea ecx, [ebp + eax*8 + 0x4c]
push 0
push ecx
push edx
call fcn.0043afba
mov eax, dword [esi + 0x5c]
push eax
push 1
lea ecx, [esp + 0x28]
push 0x18
push ecx
call fcn.0043af06
mov edx, dword [esi + 0x5c]
push 0
push ebx
push edi
push edx
call fcn.0043afba
mov edi, dword [esi + 0x5c]
push edi
push 1
lea eax, [esp + 0x48]
push 0x18
push eax
call fcn.00436e9a
add esp, 0x40
push edi
call fcn.004387d0
mov ecx, dword [esi + 0x5c]
sub dword [esp + 0x30], 1
push 0
push 0
push ebp
push ecx
call fcn.0043afba
mov esi, dword [esi + 0x5c]
push esi
push 1
lea edx, [esp + 0x44]
push 0x4c
push edx
call fcn.00436e9a
push esi
call fcn.004387d0
add esp, 0x28
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x64
ret 8

Function at 0x414b80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x2000
push esi
xor edi, edi
call fcn.0041aea2
mov ebp, dword [esp + 0x1c]
add esp, 4
test ebp, ebp
mov ebx, eax
jbe 0x414be4
mov edi, edi
lea eax, [edi + 0x2000]
cmp eax, ebp
jbe 0x414bae
mov esi, ebp
sub esi, edi
mov ecx, dword [esp + 0x14]
push ecx
push 1
push esi
push ebx
call fcn.0043af06
add esp, 0x10
test eax, eax
jbe 0x414bde
mov edx, dword [esp + 0x1c]
push edx
push 1
push esi
push ebx
call fcn.00436e9a
mov eax, dword [esp + 0x2c]
push eax
call fcn.004387d0
add esp, 0x14
add edi, esi
cmp edi, ebp
jb 0x414ba0
push ebx
call fcn.0041aea7
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret