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

Disassembly:
sub esp, 0x214
mov eax, dword [0x4431d8]
mov ecx, dword [esp + 0x21c]
mov edx, dword [esp + 0x218]
push esi
mov dword [esp + 0x214], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x403bf4
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
call fcn.00413fed
add esp, 0x214
ret 0xc

Function at 0x403c50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4431d8]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ebx, ecx
mov ecx, dword [ebp + 8]
push ecx
push 0x431f5c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp esi, 0x20
ja 0x403d7c
lea edx, [ebp - 0x414]
push edx
push str..htm
push SysReAllocStringLen
mov ecx, ebx
call fcn.00403b80
test eax, eax
jne 0x403d7c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str._shellopencommand
lea eax, [ebp - 0x414]
push eax
call edi
lea ecx, [ebp - 0x414]
push ecx
mov edx, ecx
push edx
push SysReAllocStringLen
mov ecx, ebx
call fcn.00403b80
test eax, eax
jne 0x403d7c
lea eax, [ebp - 0x414]
push str.__1_
push eax
call fcn.0041491d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esp, 8
test esi, esi
jne 0x403d28
lea ecx, [ebp - 0x414]
push 0x431f14
push ecx
call fcn.0041491d
mov esi, eax
add esp, 8
test esi, esi
jne 0x403d28
lea edx, [ebp - 0x414]
push edx
call ebx
lea esi, [ebp + eax*2 - 0x416]
jmp 0x403d2d
mov word [esi], 0
push 0x431f10
push esi
call edi
mov eax, dword [ebp + 8]
push eax
push esi
call edi
call dword [0x4420a0]
lea ecx, [ebp - 0x414]
push ecx
mov edi, eax
call ebx
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00414980
mov eax, esp
push edi
push esi
lea edx, [ebp - 0x414]
push edx
push eax
call fcn.00403c10
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x403d7e
mov eax, esi
lea esp, [ebp - 0x420]
mov ecx, dword [ebp - 4]
call fcn.00413fed
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404980
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42f768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x404a95
push esi
call fcn.00427db5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x4049eb
push 0x104
lea ecx, [esp + 0xc]
call fcn.00401cb0
mov esi, dword [esp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test esi, esi
jne 0x4049ff
xor eax, eax
jmp 0x404a10
push esi
call fcn.00414547
add esp, 4
test eax, eax
jl 0x404aa5
cmp eax, dword [esi - 8]
jg 0x404aa5
push edi
mov dword [esi - 0xc], eax
push str.winhlp32.exe
mov word [esi + eax*2], 0
call fcn.00414547
add esp, 4
push eax
push str.winhlp32.exe
lea ecx, [esp + 0x14]
call fcn.004044a0
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x404a6a
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x404a6a
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x80], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x404a94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.00401690
int3

Function at 0x404cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push edi
mov edi, dword [esp + 0xc]
push 0xe
push eax
push edi
call esi
test eax, eax
jne 0x404ccf
pop edi
pop esi
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
push edi
call ebx
test eax, eax
jne 0x404ce4
pop ebx
pop edi
pop esi
ret 8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call ebp
test eax, eax
jne 0x404cfb
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret 8
push 1
push eax
call dword [sym.imp.USER32.dll_LookupIconIdFromDirectory]
movzx ecx, ax
push 3
push ecx
push edi
call esi
mov esi, eax
test esi, esi
je 0x404cf2
push esi
push edi
call ebx
test eax, eax
je 0x404cf2
push eax
call ebp
mov ebx, eax
test ebx, ebx
je 0x404cf2
push 0x30000
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateIconFromResource]
pop ebp
pop ebx
pop edi
pop esi
ret 8
Function at 0x4076c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4076cb
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x4077c3
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x436730]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x436730]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x436730]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x436730]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x436730]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x436730]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x436730]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x436730]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x4076e6
test edi, edi
je 0x4077e2
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x436730]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x4077c7
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x4077f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [esp + 8]
push esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x436730]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov esi, dword [eax*4 + 0x436730]
shr ecx, 8
xor ecx, esi
mov dword [edx + 8], ecx
pop esi
ret

Function at 0x407850
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx + 8]
push ebx
movsx ebx, byte [esp + 0xc]
push esi
push edi
mov edi, dword [edx]
mov eax, edi
xor eax, ebx
and eax, 0xff
mov eax, dword [eax*4 + 0x436730]
shr edi, 8
xor eax, edi
mov edi, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, edi
imul eax, eax, 0x8088405
mov esi, ecx
and esi, 0xfffd
or esi, 2
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov edi, dword [eax*4 + 0x436730]
mov eax, esi
xor eax, 1
imul eax, esi
shr ecx, 8
xor ecx, edi
pop edi
shr eax, 8
pop esi
xor eax, ebx
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x407a10
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x48
push esi
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x407a32
mov eax, 0x200
pop esi
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x407a47
mov ebp, 1
test al, 2
je 0x407a4e
or ebp, 2
test al, 4
je 0x407a55
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x407a5f
or ebp, 0x10
test al, 0x20
je 0x407a66
or ebp, 0x20
test ecx, ecx
je 0x407a72
or ebp, 0x40000000
jmp 0x407a78
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x407a88
or ebp, 0x800000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x407b35
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
cmp word [esp + 0x10], 0x54ad
jne 0x407b35
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x407b35
push 0
push 0
push eax
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x407b2f
cmp eax, 0x454e
je 0x407b2f
cmp eax, 0x454c
je 0x407b2f
cmp eax, 0x4550
jne 0x407b35
or ebp, 0x400000
mov eax, dword [esp + 0x60]
test eax, eax
je 0x407b3f
mov dword [eax], ebp
mov eax, dword [esp + 0x64]
test eax, eax
je 0x407b4d
mov edx, dword [esp + 0x14]
mov dword [eax], edx
mov esi, dword [esp + 0x68]
test esi, esi
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
je 0x407bce
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
call fcn.00414bd0
mov dword [esi + 4], edx
mov dword [esi], eax
push 0
mov edx, ebx
sub edx, 0xd53e8000
mov eax, edi
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.00414bd0
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x2c]
push 0
sub ecx, 0xd53e8000
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [esi + 8], eax
call fcn.00414bd0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x407bfb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
call fcn.004079a0
movzx edx, word [esp + 0x20]
movzx eax, word [esp + 0x24]
shl edx, 0x10
add esp, 0x10
or edx, eax
mov dword [esi], edx
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x48
ret
Function at 0x407de0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, ecx
mov al, byte [ebx + 0x2d]
test al, al
push esi
mov esi, dword [esp + 0x10]
push edi
je 0x407e67
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x407e11
cmp dword [ebx + 0x40], ebp
jae 0x407e11
push eax
call fcn.004228f6
add esp, 4
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x407e2b
lea eax, [ebp + ebp]
push eax
call fcn.004228f1
add esp, 4
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], ebp
mov edi, dword [ebx + 0x3c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
test ebp, ebp
jbe 0x407e64
lea edi, [ebx + 0x30]
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
mov cl, byte [esi + eax]
push ecx
push edi
call fcn.00407850
mov edx, dword [ebx + 0x3c]
add esp, 8
mov byte [esi + edx], al
inc esi
cmp esi, ebp
jb 0x407e47
mov esi, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x407eaf
mov eax, dword [ebx + 0x24]
mov edi, dword [ebx + 0x28]
lea ecx, [eax + ebp]
cmp ecx, edi
jb 0x407e8b
pop edi
pop esi
pop ebp
mov dword [ebx + 0x14], 0x30000
xor eax, eax
pop ebx
ret 8
lea edi, [eax + edx]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x24]
add eax, ebp
pop edi
mov dword [ebx + 0x24], eax
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x407ed1
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov dword [ebx + 0x14], 0x1000000
xor eax, eax
pop ebx
ret 8
Function at 0x408260
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x84]
test edx, edx
push esi
push edi
je 0x4082de
mov eax, dword [ebx + 0x8c]
push ebp
mov ebp, dword [ebx + 0x88]
cmp eax, ebp
jb 0x408289
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov ecx, dword [esp + 0x18]
sub ebp, eax
cmp ebp, ecx
jbe 0x408295
mov ebp, ecx
lea esi, [eax + edx]
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x8c]
mov ecx, dword [ebx + 0x74]
push ebp
push eax
mov eax, dword [ebx + 0x78]
add edx, ebp
add ecx, ebp
push eax
mov dword [ebx + 0x8c], edx
mov dword [ebx + 0x74], ecx
call fcn.004076c0
add esp, 0xc
mov dword [ebx + 0x78], eax
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x408326
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40832d
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
push esi
add ecx, esi
push edi
push eax
mov dword [ebx + 0x74], ecx
call fcn.004076c0
add esp, 0xc
mov dword [ebx + 0x78], eax
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
mov dword [ebx + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x409460
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0x6af90]
push edi
xor ebx, ebx
xor edi, edi
test eax, eax
mov dword [esi + 0x6af80], 2
je 0x40967e
cmp dword [esi + 0x6af90], 3
jb 0x4094d7
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x409517
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x409517
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4094ff
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.00406ad0
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x409517
mov edi, eax
cmp edi, 3
jb 0x4095f4
mov ecx, dword [esi + 0x6af84]
lea eax, [edi - 3]
push eax
sub ecx, dword [esi + 0x6af88]
push ecx
push esi
call fcn.00406510
mov ecx, dword [esi + 0x6af90]
mov edx, dword [esi + 0x6af98]
sub ecx, edi
add esp, 0xc
cmp edi, edx
mov dword [esi + 0x6af90], ecx
ja 0x4095ba
cmp ecx, 3
jb 0x4095ba
dec edi
jmp 0x409560
mov ecx, dword [esi + 0x6af84]
mov ebx, dword [esi + 0x6af7c]
inc ecx
mov dword [esi + 0x6af84], ecx
mov edx, ecx
movzx ecx, byte [esi + edx + 0x1af72]
shl ebx, 5
xor ecx, ebx
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
dec edi
mov dword [esi + edx*4 + 0x2af70], ebx
mov edx, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + edx*4 + 0x4af70], ecx
jne 0x409560
jmp 0x40961b
mov edx, dword [esi + 0x6af84]
add edx, edi
mov dword [esi + 0x6af84], edx
movzx ecx, byte [edx + esi + 0x1af70]
add edx, esi
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + 0x1af71]
shl ecx, 5
xor edx, ecx
xor edi, edi
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x409621
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
push ecx
push 0
push esi
call fcn.00406510
mov edx, dword [esi + 0x6af90]
add esp, 0xc
dec edx
mov dword [esi + 0x6af90], edx
inc dword [esi + 0x6af84]
test eax, eax
je 0x40965b
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x409638
lea ecx, [eax + esi + 0x1af70]
jmp 0x40963a
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00409280
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x409670
push esi
call fcn.00406c70
add esp, 4
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x409483
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x409691
lea ecx, [eax + esi + 0x1af70]
jmp 0x409693
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.00409280
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x40a875
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40a8c8
call fcn.0042ccba
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x40a8c8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40a8be
xor eax, eax
jmp 0x40a9e1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40a8f8
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40a8f8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40a9de
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40a925
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040a46e
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40a9de
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40a96e
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40a96e
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40a968
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040a46e
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40a9ce
and dword [ebp + 0xc], 0
jmp 0x40a9ce
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40a9ce
push 0xc
call fcn.004228c6
mov esi, eax
test esi, esi
pop ecx
je 0x40a9b0
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40a9b2
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40a9c9
push dword [ebp - 8]
call fcn.00422169
jmp 0x40a9ce
call fcn.00422140
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40a933
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x413a0d
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x43a5e8
call fcn.00415968
mov edi, 0x94
push edi
pop eax
call fcn.00414980
mov dword [ebp - 0x18], esp
push esp
pop esi
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x446374], ecx
mov eax, dword [esi + 4]
mov dword [0x446380], eax
mov edx, dword [esi + 8]
mov dword [0x446384], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x446378], esi
sub ecx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
shl eax, 8
add eax, edx
mov dword [0x44637c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
nop
nop
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
nop
nop
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + 0x74], 0xe
nop
nop
or eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004171bb
pop ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.004170b2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.00416e4c
mov dword [ebp - 4], esi
call fcn.00416c4e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.00416baf
mov dword [0x447d50], eax
call fcn.00416a45
mov dword [0x446368], eax
call fcn.004169af
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.0041677c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 1
call fcn.00414fd9
pop ecx
mov dword [ebp - 0x28], eax
sub eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00416736
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
nop
nop
movzx eax, word [ebp - 0x40]
nop
nop
nop
nop
nop
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00420d18
push eax
pop edi
mov dword [ebp - 0x2c], edi
sub dword [ebp - 0x1c], esi
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.00415128
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004159a3
ret
add eax, 1
add ebx, 1
sub eax, 1
sub ebx, 1
ja 0x430fc3
jmp 0x413a0d