joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42158d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42158d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4030e4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x412008], 0x8088405
inc edx
mov dword [ebx + 0x412008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40a91f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404914
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.004067e4
mov edi, eax
cmp edi, 0x104
jbe 0x40a942
mov eax, edi
add eax, eax
call fcn.00402e04
mov esi, eax
jmp 0x40a944
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.004067e4
push edi
push esi
call fcn.0040687c
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40a97d
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40a967
mov eax, esp
cmp esi, eax
je 0x40a98a
mov eax, esi
call fcn.00402e20
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40a9c4
cmp bl, 0
je 0x40a9c0
cmp bl, 0x41
jl 0x40a9bb
cmp bl, 0x5a
jg 0x40a9bb
or bl, 0x20
xor al, bl
inc esi
jmp 0x40a99f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40a904

Function at 0x40c5a0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x417d98
mov eax, esi
mov edx, 8
test al, 1
je 0x40c5bc
shr eax, 1
xor eax, 0xedb88320
jmp 0x40c5be
shr eax, 1
dec edx
jne 0x40c5af
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40c5a8
pop esi
ret

Function at 0x40c5eb
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x417d94], 0
jne 0x40c5f7
call fcn.0040c5a0
push 1
push 0x417d94
call fcn.004066b0
mov eax, edi
test esi, esi
je 0x40c622
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x417d98]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40c5fd
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x402360
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b047
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x59b1b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0x66
call fcn.00416b5d
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edi], vtable.CSearchDlg.0
mov dword [edi + 0xcc], 0
mov byte [edi + 0xd0], 1
mov dword [edi + 0xe8], 7
mov dword [edi + 0xe4], 0
mov word [edi + 0xd4], ax
lea esi, [edi + 0xec]
mov dword [esi], eax
mov byte [esi + 4], 1
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], eax
mov dword [ebp - 0x14], esi
mov word [esi + 8], ax
mov dword [esi + 0x34], 7
mov dword [esi + 0x30], eax
mov word [esi + 0x20], ax
sub esp, 8
mov byte [ebp - 4], 3
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
call fcn.004048c0
mov dword [esi + 0x3c], eax
mov byte [esi + 0x38], 0
mov byte [ebp - 4], 4
mov dword [edi + 0x134], 0
mov dword [edi + 0x138], 0
mov dword [edi + 0x13c], 0
mov dword [edi + 0x140], 0
mov byte [edi + 0x144], 0
call fcn.004172db
call fcn.004172db
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [edi + 0xbc], eax
mov eax, edi
mov byte [edi + 0x144], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4027c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 4]
cmp eax, 0x113
jne 0x402939
cmp dword [esi + 8], 0x666
jne 0x402939
call fcn.00402990
mov byte [edi + 0x144], al
cmp al, 1
jne 0x4028c8
cmp dword [edi + 0x13c], 0
jne 0x402865
push str.Global6EF14E2F_4BD8_47CC_88FB_D8943C2EA312
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [edi + 0x13c], eax
test eax, eax
je 0x4028a1
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x140], eax
test eax, eax
je 0x40288b
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push str.Global94B335FC_AB3A_4DCE_938C_2B0125E00D61
push 0
push 0x1f0003
call esi
push str.Global1DAD992E_941F_4987_9ADE_8EE12A159619
push 0
push 0x1f0003
mov dword [edi + 0x134], eax
call esi
mov dword [edi + 0x138], eax
mov eax, dword [edi + 0x140]
mov ecx, dword [edi + 0xc4]
cmp dword [eax], 2
jne 0x4028b3
push 0x57d45c
call fcn.00417778
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
push dword [edi + 0x13c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x13c], 0
mov byte [edi + 0x144], 0
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
push str.ck_W
call fcn.00417778
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
mov eax, dword [edi + 0x140]
test eax, eax
je 0x4028d9
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [edi + 0x13c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x140], 0
test eax, eax
je 0x4028f6
push eax
call esi
mov eax, dword [edi + 0x134]
mov dword [edi + 0x13c], 0
test eax, eax
je 0x40290d
push eax
call esi
mov eax, dword [edi + 0x138]
mov dword [edi + 0x134], 0
test eax, eax
je 0x402924
push eax
call esi
mov dword [edi + 0x138], 0
mov eax, 1
pop edi
pop esi
pop ebp
ret 4
cmp eax, 0x100
jne 0x402961
cmp dword [esi + 8], 0xd
jne 0x402961
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0041a19b
cmp dword [edi + 0xc8], eax
jne 0x402961
mov ecx, edi
call fcn.00402f70
cmp dword [esi + 4], 0x100
jne 0x40297f
mov eax, dword [esi + 8]
cmp eax, 0x1b
je 0x4028a8
cmp eax, 0xd
je 0x4028a8
push esi
mov ecx, edi
call fcn.0041700c
pop edi
pop esi
pop ebp
ret 4
Function at 0x4037d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004120a2

Function at 0x404c90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x59b1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 8], 0xffffffff
mov byte [ebx + 0xe8], 1
je 0x404d21
push esi
push edi
mov ax, word [ebx]
lea edi, [ebp - 0xa8]
mov ecx, 0x28
mov esi, str.X:6AB9CAA6_61D5_4FD0_9A04_D08AFD2F894C.51F126E4_6A4C_4CB0_AECF_2D1B593E868E
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 2
push 0
push 0
movsw word es:[edi], word [esi]
mov word [ebp - 0xa8], ax
lea eax, [ebp - 0xa8]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xffffffffffffffff
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebx + 8]
call esi
pop edi
mov dword [ebx + 8], 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00522aae
mov esp, ebp
pop ebp
ret

Function at 0x4120fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.004172db
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x412135
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00412156
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41a131
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x41a176
call fcn.004172db
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41a176
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41a192
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00483f43
mov ebx, eax
test edi, edi
je 0x41a190
test esi, esi
je 0x41a190
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4ec1ee
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0051e90d
call fcn.0041732f
cmp dword [eax + 0x14], 0
jne 0x4ec209
mov ecx, esi
pop esi
jmp fcn.004eb5f4
pop esi
ret
Function at 0x4ec30f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004174b6
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4ec34b
call fcn.004ec52e
mov dword [esi + 0xc], 1
jmp 0x4ec350
call fcn.004ec52e
cmp dword [esi], 0
je 0x4ec399
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4ec373
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00417c44
jmp 0x4ec384
push 0xff
mov ecx, esi
call fcn.004020f0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00411c33
jmp 0x4ec3bd
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4ec3bd
push dword [esi]
push dword [ebp - 4]
call fcn.00420ff1
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4ec483
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004ec52e
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4ec4cb
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00417c44
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00411c33
jmp 0x4ec4d6
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00420ff1
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x51c6a3
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00403110
call fcn.0041732f
cmp dword [eax + 0x14], 0
jne 0x51c6be
mov ecx, esi
pop esi
jmp fcn.0051bf8c
pop esi
ret
Function at 0x5354a0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59b1b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0052a33a
mov dword [ebp - 0x14], eax
cmp dword [0x5a6514], esi
jne 0x535593
push 0x800
push esi
push 0x5780b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x535520
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x535673
push esi
push esi
push 0x5780b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x535673
push 0x5780c8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x535673
push eax
call ebx
push 0x5780d4
push edi
mov dword [0x5a6514], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5780e4
push edi
mov dword [0x5a6518], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5a651c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a6524], eax
test eax, eax
je 0x535590
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a6520], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5355b8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5355ab
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5355cd
push 4
pop eax
jmp 0x535675
cmp dword [ebp - 0x14], esi
je 0x5355cd
push dword [0x5a6514]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5355b2
mov eax, dword [0x5a6520]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x53562b
cmp dword [0x5a6524], edi
je 0x53562b
push eax
call ebx
push dword [0x5a6524]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x53562b
test eax, eax
je 0x53562b
call ecx
test eax, eax
je 0x535620
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x535620
test byte [ebp - 8], 1
jne 0x53562b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x53565b
mov eax, dword [0x5a6518]
cmp eax, edi
je 0x535658
push eax
call ebx
test eax, eax
je 0x535658
call eax
mov esi, eax
test esi, esi
je 0x535658
mov eax, dword [0x5a651c]
cmp eax, edi
je 0x535658
push eax
call ebx
test eax, eax
je 0x535658
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5a6514]
call ebx
test eax, eax
je 0x535673
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x535675
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00522aae
mov esp, ebp
pop ebp
ret
Function at 0x401a80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x406480
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4064a1
mov eax, 0xff
call fcn.00401a80
xor byte [esi], al
inc esi
dec ebx
jne 0x406491
pop esi
pop ebx
ret

Function at 0x40e088
Capabilities:
Create directory

Disassembly:
mov eax, 0x4458fc
call fcn.00420850
sub esp, 0x3c
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00410119
mov ecx, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040e77d
mov eax, dword [eax + 0x10]
cmp eax, ebx
jne 0x40e0bf
xor esi, esi
jmp 0x40e0c8
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.0040ee1e
push 0x5c
inc esi
pop edi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.0041029e
cmp dword [0x449d98], eax
je 0x40e13a
lea esi, [eax + 1]
push ebx
push esi
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x449d80
mov dword [ebp - 0x18], 0x449d78
call fcn.0040eb6a
mov dword [ebp - 0x2c], vtable.zpath.0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0041051e
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040ee1e
mov dword [ebp - 0x10], edi
jmp 0x40e0d7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0041019e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40e461
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x40e4a6
mov eax, dword [ebp + 8]
test eax, eax
je 0x40e47b
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e502
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040cc88
lea eax, [ebp - 0x4c]
push 0x44d260
push eax
call fcn.00421735
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e502
cmp dword [ebp + 8], 0
jne 0x40e4db
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00409ee8
lea eax, [ebp - 0x48]
push 0x44cb30
push eax
call fcn.00421735
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40e502
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0040cbc1
lea eax, [ebp - 0x48]
push 0x44cb30
push eax
call fcn.00421735
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x411270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x411284
push 0x26
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4112b8
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0041db68
test al, al
jne 0x4112eb
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040cc88
lea eax, [ebp - 0x4c]
push 0x44d260
push eax
call fcn.00421735
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4112eb
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00409ee8
lea eax, [ebp - 0x48]
push 0x44cb30
push eax
call fcn.00421735
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x4112f3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x411307
push 6
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41133b
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0041db68
test al, al
jne 0x41136e
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0040cc88
lea eax, [ebp - 0x4c]
push 0x44d260
push eax
call fcn.00421735
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41136e
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00409ee8
lea eax, [ebp - 0x48]
push 0x44cb30
push eax
call fcn.00421735
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x4133b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x44615c
call fcn.00420850
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
and dword [esi], 0
movzx eax, word [ebp + 8]
and dword [ebp - 4], 0
push 5
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
mov dword [esi + 4], eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp dword [esi], edi
je 0x413410
mov ecx, esi
call fcn.00411d79
mov dword [esi], edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esi]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi + 8]
call fcn.00420870
mov eax, dword [esi + 8]
add esp, 0xc
cmp word [eax + 2], 0xffff
jne 0x413448
or dword [eax + 0xc], 0x48
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x41346f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x446178
call fcn.00420850
sub esp, 0x18
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [esi + 8]
call fcn.004133b6
push dword [ebp - 0x1c]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004027f5
mov ecx, dword [esi + 0xc]
mov byte [ebp - 4], 1
add ecx, 4
call fcn.00401d5e
mov ecx, dword [esi + 0xc]
mov cx, word [ecx + 0x2c]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004029b2
mov eax, dword [esi + 0xc]
push esi
push 0x41350e
mov ecx, dword [eax]
mov eax, dword [eax + 0x30]
push ecx
mov eax, dword [eax + 0x154]
push dword [ebp - 0x18]
mov edi, dword [eax + 0x38]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402896
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041345a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4136c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4136db
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x4155db
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x94], 0x94
and dword [eax], 0
lea eax, [ebp - 0x94]
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 1
jne 0x41564a
cmp dword [ebp - 0x8c], 0
je 0x415642
cmp dword [ebp - 0x8c], 0xa
je 0x41563a
cmp dword [ebp - 0x8c], 0x5a
je 0x415636
xor al, al
mov dword [esi], 0x80
jmp 0x4156ae
mov al, 1
jmp 0x41562e
mov dword [esi], 0x40
jmp 0x415698
mov dword [esi], 0x10
jmp 0x415698
cmp dword [ebp - 0x84], 2
jne 0x4156ac
mov eax, dword [ebp - 0x90]
sub eax, 4
je 0x4156a4
mov ecx, dword [ebp - 0x8c]
dec eax
je 0x415674
dec eax
je 0x41569c
xor al, al
mov dword [esi], 0x1000000
jmp 0x4156ae
test ecx, ecx
jne 0x415680
mov dword [esi], 0x100000
jmp 0x415698
cmp ecx, 1
jne 0x41568d
mov dword [esi], 0x400000
jmp 0x415698
cmp ecx, 2
jne 0x41569c
mov dword [esi], 0x800000
mov al, 1
jmp 0x4156ae
test ecx, ecx
jne 0x41566a
mov al, 1
jmp 0x41566c
mov dword [esi], 0x10000
jmp 0x415698
xor al, al
pop esi
leave
ret