joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4591bf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x4591e2
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi], eax
lea edi, [esi + 0x74]
push edi
push ebx
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.00458490
add esp, 0x18
test eax, eax
je 0x459287
push dword [edi]
call fcn.00435520
pop ecx
cmp eax, ebx
setne cl
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov byte [ebp - 0xc], cl
push eax
lea ecx, [esi + 0x6c]
call fcn.0044d3c1
cmp byte [ebp - 0xc], bl
je 0x45922b
push dword [ebp - 8]
call fcn.004347fc
pop ecx
mov eax, dword [esi + 0x70]
push edi
push eax
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.00458490
add esp, 0x18
test eax, eax
je 0x459287
lea eax, [ebp - 4]
push ebx
push eax
push 4
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edi
push dword [edi]
push dword [esi + 0x70]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
jne 0x459294
mov eax, dword [esi + 0xc]
push ebx
push dword [ebp + 8]
push 1
push 1
push 0x10001
push eax
call fcn.004586e0
add esp, 0x18
test eax, eax
jne 0x459294
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x7c], eax
xor al, al
jmp 0x4592ae
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x4592ac
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi]
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x45af80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push eax
push 0x20019
push 0
push str.SOFTWAREInstallShield15.0Professional
push SysFreeString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45b00a
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.DoVerboseLogging
push esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45afff
mov ecx, dword [esp + 8]
push ebx
cmp ecx, 1
sete bl
test esi, esi
je 0x45aff7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop esi
add esp, 0x10
ret
test esi, esi
je 0x45b00a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0x10
ret
Function at 0x401cc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0xc
cmp eax, 0xc
jge 0x401cd2
xor eax, eax
add esp, 0xc
ret
mov eax, dword [0x516268]
inc eax
cmp eax, 1
mov dword [0x516268], eax
jne 0x401cf7
push 0
call fcn.0049c82a
xor eax, 0xbb40e64e
push eax
call fcn.004ab57a
add esp, 8
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x30]
push edi
push ebp
push eax
call fcn.00401e90
add esp, 0xc
xor esi, esi
call fcn.004ab559
mov ebx, eax
push edi
sar ebx, 7
push ebp
and ebx, 0xff
call fcn.00401e10
push ebx
push edi
push ebp
mov dword [esp + 0x3c], eax
call fcn.00401e30
mov dl, byte [esp + 0x3c]
add esp, 0x14
xor bl, dl
mov byte [esp + esi + 0x10], bl
inc esi
cmp esi, 0xa
jl 0x401d14
mov ecx, dword [esp + 0x20]
push edi
push ebp
push ecx
call fcn.00401e90
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
add esp, 0xc
xor esi, esi
sub eax, edx
mov dword [esp + 0x20], eax
push edi
push ebp
call fcn.00401e10
mov bl, byte [esp + esi + 0x18]
mov dword [esp + 0x30], eax
mov eax, ebx
and eax, 0xff
push eax
push edi
push ebp
call fcn.00401e30
mov dl, byte [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add esp, 0x14
xor bl, dl
add ecx, esi
inc esi
cmp esi, 0xa
mov byte [esp + ecx + 0x10], bl
jl 0x401d69
push edi
push ebp
call fcn.00401e10
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
shr ebx, 0x10
mov edx, ebx
and edx, 0xff
push edx
push edi
push ebp
call fcn.00401e30
mov al, byte [esp + 0x3c]
push edi
xor bl, al
mov eax, dword [esp + 0x3c]
push ebp
mov byte [esi + eax], bl
inc esi
call fcn.00401e10
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x44], eax
shr ebx, 0x18
push ebx
push edi
push ebp
call fcn.00401e30
mov al, byte [esp + 0x50]
mov ecx, dword [esp + 0x4c]
add esp, 0x28
xor bl, al
mov byte [esi + ecx], bl
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

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

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x40d630
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cefec
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x51352c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x220], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x40d81f
cmp word [edi], 0
je 0x40d81f
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x40d68b
or eax, 0xffffffff
jmp 0x40d821
call fcn.0040d0d0
mov ecx, eax
test ecx, ecx
je 0x40d83f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
push edi
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.0040c7b0
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0040d180
mov edx, dword [ebp - 0x228]
add esp, 8
test eax, eax
mov byte [ebp - 4], 0
sete byte [ebp - 0x219]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d702
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x219], 0
mov esi, dword [ebp - 0x22c]
je 0x40d719
or edi, 0xffffffff
jmp 0x40d7ff
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0047cba0
mov eax, dword [ebp - 0x220]
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
cmp ax, word [ebp - 0x218]
jne 0x40d766
xor edi, edi
jmp 0x40d7ff
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.0040ce60
add eax, 0x10
add esp, 4
mov dword [ebp - 0x224], eax
push dword [esi - 0xc]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
push esi
call fcn.0040cd60
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040c7b0
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00456640
add esp, 0xc
lea ecx, [ebp - 0x220]
call fcn.0040cbb0
push 0xa
push 0
push dword [ebp - 0x230]
call fcn.00489837
add esp, 0xc
lea ecx, [ebp - 0x230]
mov edi, eax
call fcn.0040cbb0
lea ecx, [ebp - 0x224]
call fcn.0040cbb0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40d81b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x40d821
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046522d
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040ce10
int3
Function at 0x40e170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e1c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40e1c9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40e1ba
cmp esi, edx
jae 0x40e1c9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40e1a8
cmp esi, edx
jae 0x40e1c9
cmp word [esi], 0
je 0x40e1c9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4146a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x414709
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x414725
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
pop esi
test eax, eax
je 0x414709
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x414725
cmp dword [edi + 4], 0
je 0x414725
cmp dword [edi + 0xc], 0
je 0x414725
mov eax, 1
pop edi
pop ebp
ret 4
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x414730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf926
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x51352c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0047cba0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x420]
push eax
call edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4147b1
lea eax, [ebp - 0x420]
push eax
call edi
sub esi, 1
jne 0x4147a3
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0047cba0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x4de730
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.0040c7b0
push dword [ebp - 0x424]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41480d
xor esi, esi
jmp 0x414823
push dword [ebp - 0x424]
call fcn.00434580
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov edx, dword [ebp - 0x424]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41484a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x41486a
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.004146a0
test eax, eax
je 0x41486a
mov eax, 1
jmp 0x414904
push str.NetBase.dll
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
call fcn.0040c7b0
push dword [ebp - 0x428]
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4148b0
xor esi, esi
jmp 0x4148c6
push dword [ebp - 0x428]
call fcn.00434580
add esp, 4
mov esi, eax
neg esi
sbb esi, esi
neg esi
mov edx, dword [ebp - 0x428]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4148e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x414902
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.004146a0
test eax, eax
jne 0x414860
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046522d
mov esp, ebp
pop ebp
ret 4
Function at 0x4152d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf996
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x51352c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x41537c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x41537c
call fcn.00414300
mov edi, eax
jmp 0x41549b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41539f
call fcn.00414300
jmp 0x41548e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4153bd
call fcn.00414300
jmp 0x41548e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4153de
mov edi, 0x8007000e
jmp 0x415490
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4154d4
jb 0x4153fc
cmp eax, 0xffffffff
ja 0x4154d4
cmp eax, 0x400
jbe 0x415411
push eax
lea ecx, [ebp - 0x418]
call fcn.00414220
jmp 0x415437
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x415437
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41544e
mov edi, 0x8007000e
jmp 0x415490
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41546e
call fcn.00414300
jmp 0x41548e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00415130
mov edi, eax
test esi, esi
je 0x41549b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4154b4
lea ecx, [ebp - 0x418]
call fcn.00414520
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046522d
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.0040ce10
int3
Function at 0x41a090
Capabilities:
Check os version
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfc0e
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x51352c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x338], esi
call fcn.0040d0d0
mov ecx, eax
test ecx, ecx
je 0x41a1ce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0047cba0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4dead4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a150
sub eax, edx
lea ecx, [esi + 4]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040e030
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x330]
mov byte [esi], 0
push eax
mov dword [ebp - 0x330], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41a1b1
cmp dword [ebp - 0x320], 2
jne 0x41a1b1
cmp dword [ebp - 0x32c], 6
jb 0x41a1b1
mov byte [esi], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046522d
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040ce10
int3
Function at 0x41a960
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004655c0
mov eax, dword [0x51352c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.0047cba0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x41aa52
test edi, edi
je 0x41aa52
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x41aa52
cmp eax, 0x3fff
ja 0x41aa52
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x41aa52
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x4dc6ec
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41aa52
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push 0
push edi
call fcn.0047cba0
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046522d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0046522d
mov esp, ebp
pop ebp
ret
Function at 0x41cc10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x51352c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push 0x118
mov ebx, eax
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0047cba0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x41cc79
push esi
push 0x41ca60
push 0
push ebx
call dword [sym.imp.GDI32.dll_EnumFontFamiliesW]
jmp 0x41cc82
mov eax, 0x100
or word [esi + 0xc], ax
movzx ecx, word [esi + 0xc]
movzx eax, cx
test ecx, 0x100
je 0x41cca2
push 0x4def2c
lea ecx, [esi + 8]
call fcn.0041cd80
movzx eax, word [esi + 0xc]
movzx ecx, ax
test al, 0x10
je 0x41ccba
push str.Tahoma
lea ecx, [esi + 8]
call fcn.0041cd80
movzx ecx, word [esi + 0xc]
test cl, 1
je 0x41cccc
push 0x4def10
lea ecx, [esi + 8]
call fcn.0041cd80
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esi + 8]
push 0x20
push 0
push 0
push 0
push 0x86
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff4
call dword [sym.imp.GDI32.dll_CreateFontW]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 4], eax
xor ecx, ebp
pop esi
pop ebx
call fcn.0046522d
mov esp, ebp
pop ebp
ret
Function at 0x41d420
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x41d478
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41d478
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x41d478
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x41d481
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x41d4a3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
push eax
call fcn.0047c0a0
add esp, 0xc
mov dword [ebp + 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
je 0x41d4cb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 8]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41d510
mov ebx, dword [ebp + 8]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x41d50e
lea eax, [ebp - 4]
mov dword [edi], vtable.Gdiplus::Bitmap.0
push eax
push ebx
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [edi + 8], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], eax
jmp 0x41d510
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x41d524
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41d55a
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 4], 0
push dword [ebp + 0xc]
movzx eax, word [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41d66e
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp + 8], ebx
test ebx, ebx
jne 0x41d58e
xor esi, esi
jmp 0x41d66d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41d66d
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x41d5c5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x41d66d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x41d5e5
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x41d66d
push dword [ebp + 8]
push esi
push eax
call fcn.0047c0a0
add esp, 0xc
mov dword [ebp + 0xc], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0xc]
xor esi, esi
test eax, eax
je 0x41d60f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 0xc]
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41d659
mov eax, dword [ebp + 0xc]
push 0x10
mov dword [ebp - 4], eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x41d657
lea eax, [ebp + 8]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push dword [ebp - 4]
mov dword [ebp + 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
jmp 0x41d659
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41d66d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop ebx
mov dword [edi + 4], esi
test esi, esi
jne 0x41d67f
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x41d699
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [edi + 4]
mov dword [edi + 8], eax
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 0
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x41d6bc
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [edi + 0xc], eax
call fcn.0041d3b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8