joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4139b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x4139c5
cmp dword [ebp + 0xc], 0
jne 0x4139c7
jmp 0x413a27
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x14
call fcn.004019f0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x18
call fcn.004019f0
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x413b10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x413a30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 0
je 0x413b03
cmp dword [ebp + 8], 0
je 0x413a77
push 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24]
mov dword [edx + 4], 0
jmp 0x413b03
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 0
je 0x413a8a
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x10], 0
mov edx, 1
test edx, edx
je 0x413aec
push 0x4ff
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 0x24]
add eax, 4
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x413ab8
jmp 0x413aec
cmp dword [ebp - 4], 1
jne 0x413aea
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x413aea
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x413abe
jmp 0x413a8a
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov dword [eax + 4], 0
mov esp, ebp
pop ebp
ret 4
Function at 0x415ec0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x438374]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x210]
push eax
mov ecx, 0x4385e8
call fcn.00416cf0
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x41608f
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.0042d098
add esp, 4
mov dword [ebp - 0x230], eax
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
push 0
lea edx, [ebp - 0x210]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x416074
mov dword [ebp - 0x218], 0x34
push 0x34
call fcn.0042d288
add esp, 4
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0x4301fc
mov eax, dword [ebp - 0x228]
push eax
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x416074
lea ecx, [ebp - 0x22c]
call fcn.00401920
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0x14]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0x14]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0x10]
and edx, 0xffff
movzx eax, dx
push eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0x10]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
push eax
push 0x430200
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004103c0
add esp, 0x18
cmp dword [ebp + 0x10], 0
je 0x41604d
lea ecx, [ebp - 0x22c]
call fcn.0040f230
push eax
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0x10]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x220]
mov edx, dword [ecx + 0x14]
mov dword [eax], edx
lea ecx, [ebp - 0x22c]
call fcn.00401a20
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], eax
mov ecx, dword [ebp - 0x238]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d238
mov esp, ebp
pop ebp
ret
Function at 0x4179d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x438374]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x417a50
cmp dword [ebp - 0x11c], 5
jae 0x417a44
cmp dword [ebp - 0x11c], 4
jne 0x417a50
cmp dword [ebp - 0x118], 0x5a
jb 0x417a50
mov dword [ebp - 0x128], 0
jmp 0x417a5a
mov dword [ebp - 0x128], 1
mov al, byte [ebp - 0x128]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d238
mov esp, ebp
pop ebp
ret
Function at 0x41bd40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x438374]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.0041b6e0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.0040f550
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041c030
lea ecx, [ebp - 0x438]
call fcn.0040f550
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041b740
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41bdbe
call fcn.0041b750
mov dword [ebp - 0x444], eax
jmp 0x41bf13
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x41bdef
call fcn.0041b750
mov dword [ebp - 0x444], eax
jmp 0x41bf13
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x41be1f
call fcn.0041b750
mov dword [ebp - 0x444], eax
jmp 0x41bf13
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x41be6f
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.0041e9c0
lea ecx, [ebp - 0x2c]
call fcn.0041e7c0
mov eax, dword [ebp - 0x44c]
jmp 0x41bf48
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.0041e9e0
lea ecx, [ebp - 0x438]
call fcn.0040f230
test eax, eax
jne 0x41be9c
mov dword [ebp - 0x444], 0x8007000e
jmp 0x41bf13
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.0040f230
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.0041b6e0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x41bede
call fcn.0041b750
mov dword [ebp - 0x444], eax
jmp 0x41bf13
lea ecx, [ebp - 0x438]
call fcn.0040f230
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040f230
push eax
lea ecx, [ebp - 0x18]
call fcn.0041c060
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x41bf23
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.0041e9c0
lea ecx, [ebp - 0x2c]
call fcn.0041e7c0
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0042d238
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41d880
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x438374]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.0041d650
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041d820
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41d8eb
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.0041d680
mov eax, dword [ebp - 0x224]
jmp 0x41d97c
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41d951
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041d880
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41d948
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.0041d680
mov eax, dword [ebp - 0x228]
jmp 0x41d97c
mov dword [ebp - 4], pe_nt_image_headers32
jmp 0x41d8f2
lea ecx, [ebp - 0x14]
call fcn.0041d760
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.0041d700
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.0041d680
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042d238
mov esp, ebp
pop ebp
ret 4
Function at 0x41dee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x41dee9
xor ecx, ecx
jne 0x41dee9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x41df0a
mov eax, 0xd
jmp 0x41df65
xor eax, eax
jne 0x41def1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x41df1b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x41ee20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x41ee4b
push 1
mov ecx, dword [ebp - 0x10]
call fcn.0041efd0
mov byte [ebp - 1], 1
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
movzx eax, byte [ebp - 1]
test eax, eax
je 0x41ee7b
mov ecx, dword [ebp - 0x10]
call fcn.0041f030
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x41ee90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0042d250
mov eax, dword [0x438374]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1018], ecx
mov ax, word [0x430a34]
mov word [ebp - 0x1008], ax
push 0xffe
push 0
lea ecx, [ebp - 0x1006]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x1014], 0x1000
mov byte [ebp - 0x1009], 1
mov edx, dword [ebp - 0x1018]
cmp dword [edx + 4], 0
jne 0x41ef01
push 1
mov ecx, dword [ebp - 0x1018]
call fcn.0041efd0
mov byte [ebp - 0x1009], 1
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1008]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1018]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
jne 0x41ef45
lea edx, [ebp - 0x1008]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004019f0
movzx eax, byte [ebp - 0x1009]
test eax, eax
je 0x41ef5b
mov ecx, dword [ebp - 0x1018]
call fcn.0041f030
mov eax, dword [ebp - 0x1010]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d238
mov esp, ebp
pop ebp
ret 8
Function at 0x41f1c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 9], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x41f1e4
push 0
mov ecx, dword [ebp - 0x10]
call fcn.0041efd0
mov byte [ebp - 9], 1
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f21d
cmp dword [ebp - 8], 1
je 0x41f21d
movzx edx, byte [ebp - 9]
test edx, edx
je 0x41f219
mov ecx, dword [ebp - 0x10]
call fcn.0041f030
xor eax, eax
jmp 0x41f268
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
shl eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
movzx edx, byte [ebp - 9]
test edx, edx
je 0x41f259
mov ecx, dword [ebp - 0x10]
call fcn.0041f030
cmp dword [ebp - 4], 0
je 0x41f263
xor eax, eax
jmp 0x41f268
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x41f2e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 9], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x41f30c
push 0
mov ecx, dword [ebp - 0x10]
call fcn.0041efd0
test eax, eax
je 0x41f308
xor eax, eax
jmp 0x41f374
mov byte [ebp - 9], 1
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f335
cmp dword [ebp - 8], 4
je 0x41f335
xor eax, eax
jmp 0x41f374
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
movzx eax, byte [ebp - 9]
test eax, eax
je 0x41f363
mov ecx, dword [ebp - 0x10]
call fcn.0041f030
cmp dword [ebp - 4], 0
je 0x41f36f
xor eax, eax
jmp 0x41f374
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x429b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
xor eax, eax
jne 0x429b19
xor ecx, ecx
jne 0x429b19
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x429b52
call fcn.0041b750
jmp 0x429b68
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x429b66
push 0x26
call fcn.0041b6a0
add esp, 4
jmp 0x429b68
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x42cd2d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4386ac], 0
push esi
jne 0x42cca0
call fcn.0042cbc6
test eax, eax
je 0x42cce3
mov eax, dword [0x4386ac]
cmp eax, 1
jne 0x42ccc1
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42cce3
pop esi
ret
push eax
call dword [0x4386b4]
test eax, eax
jne 0x42cd2b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42cce7
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4386ac]
call dword [0x4386b4]
mov edi, eax
test edi, edi
je 0x42cd0c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42cd28
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4386ac]
call dword [0x4386b0]
add edi, 0x10
cmp edi, esi
jb 0x42cd14
mov eax, edi
pop edi
pop esi
ret
jmp 0x42cc8d
Function at 0x40782e
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x40f150]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.0040656d
push 0x402330
lea ecx, [esp + 0x1c]
call fcn.004064d4
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x4078b2
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x4078e8
mov ecx, dword [ebp + 4]
mov edx, 0xc8
push 0x4022c8
call fcn.0040752f
mov edi, eax
jmp 0x4078e8
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.00407713
mov ebx, eax
test ebx, ebx
jns 0x4078da
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xce
call fcn.00407510
mov edi, ebx
jmp 0x4078e8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x4078f2
push esi
call fcn.004075b1
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040ca10
mov esp, ebp
pop ebp
ret 8
Function at 0x408cd3
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x10]
test edi, edi
jne 0x408ced
xor al, al
jmp 0x408e98
mov ax, word [esi + 2]
xor ecx, ecx
mov word [ebp - 0x1c], ax
add edi, 0xa
mov al, byte [esi + 4]
push ebx
mov byte [ebp - 0x1a], al
mov bh, cl
xor eax, eax
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], ax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], bh
jmp 0x408d43
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
call fcn.004084ce
test eax, eax
js 0x408df8
lea eax, [ebp - 0x1c]
mov ecx, esi
je 0x408dd2
push dword [ebp - 8]
push eax
call fcn.00408c42
mov edi, eax
push dword [esi + 0x14]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408628
mov bl, al
test bl, bl
jne 0x408d17
mov edi, dword [ebp - 8]
mov dword [esi + 0x14], edi
xor edx, edx
test bh, bh
jne 0x408d88
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
and dword [ebp - 0x10], edx
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], eax
call fcn.00408536
mov edx, eax
mov ax, word [esi + 6]
lea ecx, [ebp - 0x30]
and dword [ebp - 0x24], 0
mov word [ebp - 0x30], ax
mov al, byte [esi + 8]
mov byte [ebp - 0x2e], al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
call fcn.00408536
mov ecx, dword [esi + 0x14]
lea ebx, [edx + eax]
mov edx, dword [esi + 0x18]
sub edx, ecx
cmp ecx, dword [esi + 0x18]
sbb ecx, ecx
and ecx, edx
cmp ecx, ebx
jae 0x408e08
xor al, al
jmp 0x408e97
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push eax
call fcn.00408b0f
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x408e95
mov bh, 1
mov byte [ebp - 1], bh
jmp 0x408dfb
mov dword [ebp - 8], edi
test bl, bl
jne 0x408d61
jmp 0x408d5e
mov ecx, dword [esi + 0x18]
lea edx, [ebx + edi]
mov eax, dword [esi + 0x14]
sub ecx, ebx
sub ecx, edi
sub eax, edi
je 0x408e52
test edx, edx
jne 0x408e30
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x16
call sub.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo
jmp 0x408e52
test edi, edi
je 0x408e1d
cmp ecx, eax
jae 0x408e46
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0x22
jmp 0x408e29
push eax
push edi
push edx
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_memmove]
add esp, 0xc
mov eax, dword [esi + 0x14]
add eax, ebx
cmp byte [ebp - 1], 0
mov dword [esi + 0x14], eax
jne 0x408e6f
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040855a
jmp 0x408e82
cmp byte [ebp - 0x1a], 0
je 0x408e82
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
inc eax
push eax
call fcn.004084f5
push dword [esi + 0x14]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040855a
mov byte [esi + 0x20], 1
mov al, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40cb9f
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
cmp edx, esi
je 0x40cbdc
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [edx + 0xc]
jb 0x40cbd5
mov eax, dword [edx + 8]
add eax, dword [edx + 0xc]
cmp ecx, eax
jb 0x40cbe1
add edx, 0x28
cmp edx, esi
jne 0x40cbc6
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x40cbde

Function at 0x41719b
Capabilities:
Encode data using xor

Disassembly:
call 0x417114
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x417144
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x417160
xor edx, 0
jmp 0x41716b
xor edx, edx
jmp 0x417182
jmp 0x41718e
xor eax, eax
push 0x8427d7c0
call 0x41719b
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x4171d7
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x4171b0
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x4171ee
add eax, 0
jno 0x4171f3
add esi, 0
ret 0x10