joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c1b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46a078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00462e73
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043bb50
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00462da1
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045f665
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045f665
push 1
push 0
push 0
mov ecx, esi
call fcn.0045f60d
push 1
push 0
push 1
mov ecx, esi
call fcn.0045f60d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462ee5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43c330
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46a098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00462e73
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043bb50
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00462da1
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43c3f4
cmp dword [esp + 0x40], 1
jne 0x43c3f2
cmp ecx, eax
jge 0x43c3f4
mov eax, ecx
cmp eax, 0xc8
jge 0x43c400
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043c1b0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462ee5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43cb70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46a103
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045da82
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046311b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00464637
test eax, eax
je 0x43cc8c
mov ecx, dword [esp + 0x3c]
call fcn.00463148
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43cc50
push edi
mov ecx, esi
call fcn.004607af
mov ecx, esi
call fcn.0043cdf0
cmp dword [esp + 0x38], 1
jne 0x43cc85
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004608ea
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43f6a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43f6d3
push esi
call fcn.004427a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43f6cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43f759
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43f742
mov eax, dword [esi + 8]
test eax, eax
je 0x43f6f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43f73e
cmp eax, 2
je 0x43f742
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43f6ea
cmp eax, 3
je 0x43f71d
cmp eax, 1
jne 0x43f6ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43f6ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43f6ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043f780
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43f768
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043f780
add esp, 4
pop esi
ret

Function at 0x45e878
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45e8b0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045c92f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045c907
jmp 0x45e8bc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45ff69
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45ffab
call fcn.00465a27
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45ffab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45ffa2
xor eax, eax
jmp 0x45ffb3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045ffb9
pop edi
pop esi
pop ebx
ret 4

Function at 0x465f57
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x465f85
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x465fa3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00465ebd
jmp 0x465fa3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x465fa3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00465ebd
test edi, edi
mov eax, edi
jne 0x465f8d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408642
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0x24], 0
lea ebx, [esi + 4]
mov ebp, 0x12
lea esp, [esp]
mov al, byte [edi + 4]
mov ecx, edi
mov byte [ebx], al
call fcn.00407730
mov ecx, dword [esi + 0x24]
inc ebx
inc ecx
dec ebp
mov dword [esi + 0x24], ecx
jne 0x408660
mov ecx, esi
call fcn.00404910
test al, al
je 0x408745
movzx eax, byte [esi + 6]
dec eax
je 0x4086d6
dec eax
jne 0x408745
movzx eax, byte [esi + 0x14]
movzx ecx, word [esi + 0x12]
movzx edx, word [esi + 0x10]
mov ebx, dword [esi + 0x18]
shr eax, 3
imul eax, ecx
imul eax, edx
test eax, eax
jle 0x40873c
mov ebp, eax
mov al, byte [edi + 4]
mov ecx, edi
mov byte [ebx], al
call fcn.00407730
mov ecx, dword [esi + 0x24]
inc ebx
inc ecx
dec ebp
mov dword [esi + 0x24], ecx
jne 0x4086b6
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
movzx eax, byte [esi + 0xb]
mov ebx, dword [esi + 0x1c]
shr eax, 3
imul eax, dword [esi + 0x20]
test eax, eax
jle 0x408707
mov ebp, eax
lea ebx, [ebx]
mov cl, byte [edi + 4]
mov byte [ebx], cl
mov ecx, edi
call fcn.00407730
mov ecx, dword [esi + 0x24]
inc ebx
inc ecx
dec ebp
mov dword [esi + 0x24], ecx
jne 0x4086f0
movzx eax, byte [esi + 0x14]
movzx edx, word [esi + 0x12]
movzx ecx, word [esi + 0x10]
mov ebx, dword [esi + 0x18]
shr eax, 3
imul eax, edx
imul eax, ecx
test eax, eax
jle 0x40873c
mov ebp, eax
mov dl, byte [edi + 4]
mov ecx, edi
mov byte [ebx], dl
call fcn.00407730
mov ecx, dword [esi + 0x24]
inc ebx
inc ecx
dec ebp
mov dword [esi + 0x24], ecx
jne 0x408725
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4

Function at 0x40af50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40afc0
mov ecx, dword [esp + 0x14]
push esi
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x1c]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x40afc0
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret
Function at 0x40afd0
Capabilities:
Get hostname
Get session user name

Disassembly:
push ecx
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0xe4
mov edi, 0x497df0
rep stosd dword es:[edi], eax
mov al, 1
mov word [0x497df4], 0x320
mov word [0x497df6], 0x258
mov byte [0x497df8], al
mov byte [0x497df9], 8
mov byte [0x497dfa], al
mov word [0x497df0], 2
mov edx, 0x497dfc
mov esi, 0x10
lea ebx, [ebx]
xor eax, eax
mov edi, edx
mov ecx, 0xb
rep stosd dword es:[edi], eax
mov byte [edx], 0xff
lea edi, [edx + 0x14]
or eax, 0xffffffff
mov ecx, 6
add edx, 0x2c
dec esi
rep stosd dword es:[edi], eax
jne 0x40b020
mov eax, dword [0x4863bc]
mov ecx, dword [0x4863c0]
mov edx, dword [0x4863c4]
mov bl, 0x80
mov dword [0x497e00], eax
mov eax, dword [0x4863c8]
push 0x497e00
mov byte [0x4980bc], bl
mov byte [0x4980bd], bl
mov byte [0x4980be], bl
mov byte [0x4980bf], bl
mov dword [0x497e04], ecx
mov dword [0x497e08], edx
mov dword [0x497e0c], eax
mov byte [0x497dfc], 0
call fcn.0040add0
add esp, 4
lea ecx, [esp + 0xc]
push ecx
push 0x498100
mov dword [esp + 0x14], 0x10
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x40b0bf
mov ecx, dword [esp + 0xc]
test ecx, ecx
ja 0x40b103
lea edx, [esp + 0xc]
push edx
push 0x498100
mov dword [esp + 0x14], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x40b0e3
mov ecx, dword [esp + 0xc]
test ecx, ecx
ja 0x40b103
push 0x40
push str.unknown
push 0x498100
mov dword [esp + 0x18], 0x10
call fcn.00432700
mov ecx, dword [esp + 0x18]
add esp, 0xc
xor eax, eax
test ecx, ecx
jbe 0x40b123
mov dl, 0x3f
jmp 0x40b110
test byte [eax + 0x498100], bl
je 0x40b11e
mov byte [eax + 0x498100], dl
inc eax
cmp eax, ecx
jb 0x40b110
push 0x40
push str.MS_UI_Gothic
push 0x498140
call fcn.00432700
add esp, 0xc
mov dword [0x4980fc], 0x166b
call fcn.0040ac20
pop edi
pop esi
mov word [0x497df2], ax
pop ebx
pop ecx
ret
Function at 0x40b440
Capabilities:
Set current directory

Disassembly:
sub esp, 0x844
mov eax, dword [0x495f08]
xor eax, dword [esp + 0x844]
push 0x410
mov dword [esp + 0x844], eax
lea eax, [esp + 0x24]
push eax
push str.installdir
push str.SOFTWAREKONAMIWE8IUWE8IU
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.0040af50
add esp, 0x10
test eax, eax
je 0x40b4a9
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b495
sub eax, edx
push eax
lea ecx, [esp + 0x24]
push ecx
jmp 0x40b52f
push 0x410
lea edx, [esp + 0x434]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0x410
lea edx, [esp + 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40b518
cmp eax, 0x410
jae 0x40b518
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
cmp eax, ecx
jbe 0x40b518
dec eax
lea edx, [esp + 0x20]
mov dword [esp + 0x1c], eax
push edx
lea ecx, [esp + 4]
mov byte [eax], 0
call fcn.004024d0
push 0x469ae8
lea ecx, [esp + 4]
call fcn.0040b410
jmp 0x40b538
mov eax, 0x469ae4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b520
sub eax, edx
push eax
push 0x469ae4
lea ecx, [esp + 8]
call fcn.00402400
cmp dword [esp + 0x18], 0x10
mov eax, dword [esp + 4]
jae 0x40b547
lea eax, [esp + 4]
push 0x410
push eax
push 0x498180
call fcn.00432700
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jbe 0x40b59d
mov edx, dword [esp + 0x18]
cmp edx, 0x10
push edi
mov edi, dword [esp + 8]
mov ecx, edi
jae 0x40b576
lea ecx, [esp + 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x40b58f
cmp edx, 0x10
mov ecx, edi
jae 0x40b588
lea ecx, [esp + 8]
cmp byte [ecx + eax - 1], 0x2f
jne 0x40b59c
push 1
dec eax
push eax
lea ecx, [esp + 0xc]
call fcn.00401fd0
pop edi
cmp dword [esp + 0x18], 0x10
mov eax, dword [esp + 4]
jae 0x40b5ac
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [esp + 0x18], 0x10
jb 0x40b5c7
mov eax, dword [esp + 4]
push eax
call fcn.0045d481
add esp, 4
mov ecx, dword [esp + 0x840]
xor ecx, dword [esp + 0x844]
mov eax, 0x498180
add esp, 0x844
jmp fcn.0043118e

Function at 0x40eae0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, eax
test esi, esi
mov eax, 0x57357357
je 0x40eafa
lea esp, [esp]
imul eax, eax, 0x6c078965
inc eax
dec esi
jne 0x40eaf0
test edx, edx
pop esi
je 0x40eb12
push ebx
mov bl, byte [ecx]
xor bl, al
imul eax, eax, 0x6c078965
mov byte [ecx], bl
inc ecx
inc eax
dec edx
jne 0x40eb00
pop ebx
ret

Function at 0x40f330
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
mov eax, dword [esp + 4]
mov ecx, 0x573573
je 0x40f354
push ebx
mov bl, byte [eax]
xor bl, cl
imul ecx, ecx, 0x6c078965
mov byte [eax], bl
inc eax
inc ecx
dec edx
jne 0x40f342
pop ebx
ret
Function at 0x41ab10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x41ab1b
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
cmp esi, 8
not eax
jb 0x41ac10
push ebx
push edi
mov edi, esi
shr edi, 3
xor edx, edx
mov dl, byte [ecx]
mov ebx, eax
shr ebx, 8
sub esi, 8
xor edx, eax
and edx, 0xff
mov eax, dword [edx*4 + 0x479b28]
xor eax, ebx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x479b28]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x479b28]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x479b28]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x479b28]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x479b28]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x479b28]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x479b28]
shr eax, 8
xor eax, edx
inc ecx
dec edi
jne 0x41ab36
pop edi
pop ebx
test esi, esi
je 0x41ac30
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x479b28]
shr eax, 8
xor eax, edx
inc ecx
dec esi
jne 0x41ac14
not eax
pop esi
ret
Function at 0x427c45
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x427c5a
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x427c6c
xor eax, eax
jmp 0x427c9e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x427c90
cmp esi, eax
jae 0x427c68
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x427c82
cmp esi, eax
jae 0x427c68
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x4291bf
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 edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x429212
call fcn.00462cbf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x429212
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x429208
xor eax, eax
jmp 0x429327
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x429241
mov eax, dword [edi]
push ebx
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x429241
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x429324
mov edi, dword [eax + 0x40]
and dword [ebp + 0x10], 0
xor eax, eax
cmp edi, eax
mov dword [ebp + 0xc], edi
mov dword [ebp - 8], edi
je 0x429270
mov ecx, dword [edi]
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
cmp dword [ebx + 8], eax
mov dword [ebp - 4], eax
jbe 0x429324
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4292ae
mov ecx, dword [ecx + 4]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4292ae
test edi, edi
mov dword [ebp - 8], edi
je 0x4292a8
mov eax, dword [edi]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
jmp 0x429314
and dword [ebp + 0x10], 0
jmp 0x429314
mov ecx, dword [ebx + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x429314
push 0xc
call fcn.0045d456
mov esi, eax
test esi, esi
pop ecx
je 0x4292f3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebp - 0x10]
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 + 0xc]
mov dword [esi], eax
jmp 0x4292f5
xor esi, esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x42930f
push dword [ebp - 8]
call fcn.00458461
jmp 0x429314
call fcn.00458438
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jb 0x42927c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x432b22
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x47f5b8
call fcn.00435058
mov edi, 0x94
mov eax, edi
call fcn.004312d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x49d180], ecx
mov eax, dword [esi + 4]
mov dword [0x49d18c], eax
mov edx, dword [esi + 8]
mov dword [0x49d190], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x49d184], esi
cmp ecx, 2
je 0x432b82
or esi, 0x8000
mov dword [0x49d184], esi
shl eax, 8
add eax, edx
mov dword [0x49d188], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x432bbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x432bbd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x432bd5
cmp eax, 0x20b
je 0x432bc2
mov dword [ebp - 0x1c], esi
jmp 0x432be9
cmp dword [ecx + 0x84], 0xe
jbe 0x432bbd
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x432be3
cmp dword [ecx + 0x74], 0xe
jbe 0x432bbd
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00435221
pop ecx
test eax, eax
jne 0x432bfd
push 0x1c
call fcn.00432afe
pop ecx
call fcn.0043671f
test eax, eax
jne 0x432c0e
push 0x10
call fcn.00432afe
pop ecx
call fcn.004394e3
mov dword [ebp - 4], esi
call fcn.004392e5
test eax, eax
jge 0x432c27
push 0x1b
call fcn.00432ad9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x555984], eax
call fcn.004391c3
mov dword [0x49d148], eax
call fcn.00439121
test eax, eax
jge 0x432c4d
push 8
call fcn.00432ad9
pop ecx
call fcn.00438eee
test eax, eax
jge 0x432c5e
push 9
call fcn.00432ad9
pop ecx
call fcn.00433c61
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x432c71
push eax
call fcn.00432ad9
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00438e85
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x432c92
movzx eax, word [ebp - 0x34]
jmp 0x432c95
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00456ca0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x432cb3
push edi
call fcn.00433d99
call fcn.00433dbb
jmp 0x432ce5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00435093
ret
Function at 0x433cc6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004351d6
xor esi, esi
inc esi
cmp dword [0x49d1c0], esi
pop ecx
jne 0x433cee
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x49d1bc], esi
mov byte [0x49d1b8], al
jne 0x433d54
mov ecx, dword [0x554968]
test ecx, ecx
je 0x433d35
mov eax, dword [0x554964]
sub eax, 4
cmp eax, ecx
jmp 0x433d2e
mov eax, dword [eax]
test eax, eax
je 0x433d20
call eax
mov eax, dword [0x554964]
sub eax, 4
cmp eax, dword [0x554968]
mov dword [0x554964], eax
jae 0x433d18
mov eax, 0x48f09c
mov esi, 0x48f0a4
cmp eax, esi
mov edi, eax
jae 0x433d54
mov eax, dword [edi]
test eax, eax
je 0x433d4d
call eax
add edi, 4
cmp edi, esi
jb 0x433d45
mov eax, 0x48f0a8
mov esi, 0x48f0b0
cmp eax, esi
mov edi, eax
jae 0x433d73
mov eax, dword [edi]
test eax, eax
je 0x433d6c
call eax
add edi, 4
cmp edi, esi
jb 0x433d64
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x433d84
push 8
call fcn.00435142
jmp 0x433d96
push dword [ebp + 8]
mov dword [0x49d1c0], 1
call fcn.00433c1f
pop ecx
pop ebp
ret