joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009110
Capabilities:
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
test ecx, ecx
jbe 0x1009165
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
xor ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 4]
shr edx, 8
and edx, 0xffffff
xor edx, dword [ecx*4 + 0x1001d20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x1009125
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x1009390
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x14]
shl eax, 1
mov dword [ebp - 4], eax
push 0x100164c
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.010055e0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
jae 0x10093db
push 0x57
call fcn.01006bc0
jmp 0x100947d
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100946e
cmp dword [ebp - 8], 1
jne 0x1009462
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x1009462
cmp dword [ebp - 4], 2
jb 0x1009462
mov edx, dword [ebp - 4]
shr edx, 1
sub edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx + eax*2]
test edx, edx
jne 0x1009437
jmp 0x1009460
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0x14]
jae 0x1009456
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov word [eax + edx*2], 0
jmp 0x1009460
push 0x7a
call fcn.01006bc0
mov dword [ebp - 0xc], eax
jmp 0x100946c
push 0xb
call fcn.01006bc0
mov dword [ebp - 0xc], eax
jmp 0x100947a
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.01006bc0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1009490
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push 0x1002134
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
push 0x1002120
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1010c40], eax
cmp dword [0x1010c40], 0
jne 0x10094cd
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
mov dword [0x1010c44], eax
mov esp, ebp
pop ebp
ret
Function at 0x10030d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
and dword [ebp - 8], 0
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.UNIANSI.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
jne 0x1003125
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x100311e
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10031ea
xor esi, esi
jmp 0x10031ea
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100314b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x100315b
xor esi, esi
jmp 0x10031e1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x100316d
jmp 0x1003138
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10031e1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov edi, ebx
cmp byte [esi + ebx], 0
je 0x10031a0
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.010062d0
lea eax, [esi + 1]
mov edi, esp
push eax
push ebx
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
and byte [edi + esi], 0
test edi, edi
jne 0x10031a8
xor ebx, ebx
jmp 0x10031d3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.010062d0
mov ebx, esp
push esi
push ebx
xor eax, eax
push 0xffffffffffffffff
push edi
push eax
push eax
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
push ebx
call fcn.010031f6
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1003b3a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.01003afc
mov edi, eax
cmp edi, esi
je 0x1003b7a
cmp dword [ebp - 4], esi
je 0x1003b73
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1003c17
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.UNIANSI.dll_RegEnumKeyExW]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1003beb
lea eax, [ebp - 0x214]
lea ecx, [ebp - 4]
push eax
call fcn.01003b3a
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x1003bd8
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push dword [ebp - 4]
jmp 0x1003b9d
cmp dword [ebp - 4], esi
je 0x1003be6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x1003c17
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1003bfe
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.UNIANSI.dll_RegDeleteKeyW]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x1003c15
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1003c1e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4018
call fcn.010062d0
push ebx
push esi
push edi
lea eax, [ebp - 0x4018]
mov edi, ecx
push eax
mov dword [ebp - 0x18], edi
call fcn.01003353
xor esi, esi
cmp eax, esi
jl 0x1003d9e
lea eax, [ebp - 0xe]
push eax
lea eax, [ebp - 0x4018]
push eax
call fcn.01003dab
test eax, eax
jne 0x1003c67
mov eax, 0x80020009
jmp 0x1003d9e
mov ecx, edi
call fcn.0100332a
lea eax, [ebp - 0x2018]
mov ecx, edi
push eax
call fcn.01003353
cmp eax, esi
jl 0x1003d9e
movzx eax, word [ebp - 0xe]
sub eax, 8
je 0x1003d63
sub eax, 9
je 0x1003cc4
dec eax
dec eax
jne 0x1003d8d
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x2018]
push esi
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x14]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x1003d7e
lea eax, [ebp - 0x2018]
push eax
call dword [sym.imp.UNIANSI.dll_lstrlenW]
test al, 1
mov dword [ebp - 8], eax
jne 0x1003cfc
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.010062d0
mov edi, esp
push ebx
push esi
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp edi, esi
jne 0x1003d06
mov eax, 0x80004005
jmp 0x1003d9e
cmp dword [ebp - 8], esi
mov dword [ebp - 4], esi
jle 0x1003d53
lea eax, [ebp - 0x2018]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + edi]
mov eax, dword [ebp - 0xc]
mov ax, word [eax]
push eax
call fcn.01003e34
mov ecx, dword [ebp - 4]
push 4
and ecx, 1
add dword [ebp - 0xc], 2
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x1003d17
xor esi, esi
mov eax, dword [ebp + 8]
push ebx
push edi
push 3
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
push eax
jmp 0x1003d87
lea eax, [ebp - 0x2018]
push eax
call dword [sym.imp.UNIANSI.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2018]
push eax
push 1
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.UNIANSI.dll_RegSetValueExW]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.01003353
cmp eax, esi
jl 0x1003d9e
xor eax, eax
lea esp, [ebp - 0x4024]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1003fec
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.UNIANSI.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x98], eax
jne 0x100400b
xor al, al
jmp 0x1004033
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x1004037
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x100402c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp esi, edi
setne al
pop edi
pop esi
pop ecx
ret
Function at 0x1004e37
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [0x10070a8], edi
je 0x1004eaf
push 0x1008a08
push edi
push edi
call dword [sym.imp.UNIANSI.dll_CreateMutexW]
cmp eax, edi
mov dword [esi + 0x220], eax
jne 0x1004e63
mov eax, 0x80004005
jmp 0x1004eb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1004eaf
push dword [esi + 0x220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x220], edi
add esi, 0x20
push esi
push edi
call dword [sym.imp.UNIANSI.dll_FindWindowW]
mov esi, eax
cmp esi, edi
je 0x1004eaa
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
pop eax
jmp 0x1004eb1
xor eax, eax
pop edi
pop esi
ret
Function at 0x4c6aa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x84000]
push edi
jmp 0x4c6aba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c6ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6ab0
mov eax, 1
add ebx, ebx
jne 0x4c6ad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c6ae4
jne 0x4c6b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6b03
dec eax
add ebx, ebx
jne 0x4c6af0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c6ac8
add ebx, ebx
jne 0x4c6aff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c6b55
xor ecx, ecx
sub eax, 3
jb 0x4c6b1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c6b8a
sar eax, 1
mov ebp, eax
jmp 0x4c6b26
add ebx, ebx
jne 0x4c6b26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6af4
inc ecx
add ebx, ebx
jne 0x4c6b34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6af4
add ebx, ebx
jne 0x4c6b41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c6b36
jne 0x4c6b52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c6b36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c6b74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c6b66
jmp 0x4c6ab6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c6b74
add edi, ecx
jmp 0x4c6ab6
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c6b92
cmp byte [edi], 0x11
jne 0x4c6b92
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4c6b97
lea edi, [esi + 0xc2000]
mov eax, dword [edi]
or eax, eax
je 0x4c6c0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdcbd8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdcd2c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c6bc4
mov ecx, edi
jns 0x4c6bf3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdcd30]
or eax, eax
je 0x4c6c09
mov dword [ebx], eax
add ebx, 4
jmp 0x4c6be1
call dword [esi + 0xdcd40]
mov ebp, dword [esi + 0xdcd34]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4c6c43
sub esp, 0xffffff80
jmp 0x416310
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x44a090
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
push edi
mov dword [ebp - 0x180], 0x44a870
mov dword [ebp - 4], 0
invalid
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x1001665
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x10020b0], ebx
push esi
push edi
mov dword [ebp - 4], ebx
je 0x100167e
call fcn.0100161c
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
push 0x1001248
push edi
call fcn.01001278
push esi
push dword [ebp + 0xc]
push edi
call fcn.01001278
push 0x100202c
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [0x1002028], eax
je 0x10016e5
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [0x10020b0], eax
je 0x10016e5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push dword [0x1002028]
mov dword [0x1002020], eax
push dword [0x100202c]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x10016ec
xor eax, eax
jmp 0x10017c3
lea eax, [ebp - 4]
push eax
push 0x1002024
push 0x1001214
push dword [0x1002020]
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100172e
shr eax, 2
mov dword [0x10020ac], eax
imul eax, eax, 0x2d
mov dword [0x10020a8], eax
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x10020b4], eax
jmp 0x1001734
mov dword [0x1002024], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
movzx eax, ax
push eax
push 0x10011e0
mov edi, 0x1002030
push edi
call ebx
add esp, 0xc
mov esi, str.InternalName
push esi
call fcn.010015d3
test eax, eax
jne 0x10017c3
cmp dword [ebp - 4], eax
je 0x100178b
mov eax, dword [0x1002024]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x10011ac
push edi
call ebx
add esp, 0x10
push esi
call fcn.010015d3
test eax, eax
jne 0x10017c3
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1001178
push edi
call ebx
push esi
call fcn.010015d3
test eax, eax
jne 0x10017c3
push 0x1001144
push edi
call ebx
push esi
call fcn.010015d3
test eax, eax
jne 0x10017c3
push 0x1001110
push edi
call ebx
push esi
call fcn.010015d3
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10017ca
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x1001250
call fcn.01001968
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001805
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001805
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100181d
cmp eax, 0x20b
je 0x100180a
mov dword [ebp - 0x1c], edi
jmp 0x1001831
cmp dword [ecx + 0x84], 0xe
jbe 0x1001805
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100182b
cmp dword [ecx + 0x74], 0xe
jbe 0x1001805
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10020c8], 0xffffffff
or dword [0x10020cc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10020c4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10020c0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10020d0], eax
call fcn.01001962
cmp dword [0x100201c], edi
jne 0x100188c
push fcn.01001962
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001950
push 0x10010b8
push 0x10010b4
call sub.msvcrt.dll__initterm
mov eax, dword [0x10020bc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x10020b8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10010b0
push 0x10010ac
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010012b0
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001903
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001938
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010019a1
ret
Function at 0x4010bc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010ce
mov eax, dword [0x40a08b]
shl eax, 2
mov dword [0x40a08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0040336c
pop edx
call fcn.00402708
call fcn.00403370
push 0
call fcn.004045c0
pop ecx
push 0x40a034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40a093], eax
push 0
jmp fcn.00408070

Function at 0x40139c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
mov eax, dword [0x40a170]
mov dword [ebp - 0x10], eax
mov eax, dword [0x40a174]
mov dword [ebp - 0xc], eax
mov edx, dword [0x40a178]
mov dword [ebp - 0x20], edx
mov edx, dword [0x40a17c]
mov dword [ebp - 0x1c], edx
mov dword [0x40ce4c], 1
push 0x208
lea ecx, [ebp - 0x234]
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x234]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x401512
push 0
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0x24], eax
push 2
push 0
push 0xfffffffffffffff8
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 8]
push edx
push 8
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401455
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401514
push 8
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x20]
push ecx
call fcn.00403828
add esp, 0xc
test eax, eax
je 0x401472
xor eax, eax
jmp 0x401514
push 2
push 0
push 0xfffffffffffffff4
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 8]
push edx
push 4
push dword [ebp + 8]
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4014a8
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401514
push 4
push 0x1000
mov edx, dword [ebp + 8]
push dword [edx]
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x40a16c], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
sub eax, dword [ecx]
sub eax, 0xc
mov dword [ebp - 0x28], eax
push 0
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
push dword [ecx]
push dword [0x40a16c]
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_ReadFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40150b
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401514
mov eax, 1
jmp 0x401514
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb94
push esi
push edi
push 0x2350
push 0x69
push dword [ebp + 8]
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401567
push dword [ebp + 0x14]
call fcn.0040139c
pop ecx
test eax, eax
jne 0x4015b4
xor eax, eax
jmp 0x4016be
push dword [ebp - 8]
push dword [ebp + 8]
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401582
xor eax, eax
jmp 0x4016be
je 0x401587
jne 0x401587
jmp 0x401587
push dword [ebp - 4]
call sub.KERNEL32.DLL_LockResource
mov dword [0x40a16c], eax
cmp dword [0x40a16c], 0
jne 0x4015a4
xor eax, eax
jmp 0x4016be
push dword [ebp - 8]
push dword [ebp + 8]
call sub.KERNEL32.DLL_SizeofResource
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, 1
jmp 0x4016be
pop edi
pop esi
mov esp, ebp
pop ebp
ret