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

Disassembly:
mov eax, 0x2018
call fcn.0040c2d0
mov eax, dword [0x41b1b4]
xor eax, esp
mov dword [esp + 0x2014], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2028]
lea eax, [esp + 0x20]
push edi
mov ebp, 0x800
mov dword [esp + 0x1c], esi
xor ebx, ebx
push ebp
push ebx
push eax
mov edi, ebx
call sub.VCRUNTIME140.dll_memset
push ebp
lea eax, [esp + 0x834]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push 0x41721c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bd85
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push eax
lea eax, [esp + 0x38]
push eax
push ebx
push dword [esp + 0x34]
call ebp
test eax, eax
jne 0x40bd85
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x24]
push eax
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push str._s_s
lea eax, [esp + 0x830]
push 0x800
push eax
call fcn.0040765d
add esp, 0x14
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
lea eax, [esp + 0x830]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bd5d
push 0x800
push eax
lea eax, [esp + 0x102c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1028]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.RuntimeLib
push dword [esp + 0x28]
call ebx
test eax, eax
jne 0x40bd5d
cmp dword [esp + 0x10], eax
jbe 0x40bd5d
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x800
push eax
lea eax, [esp + 0x1828]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x417288
push dword [esp + 0x28]
call ebx
xor eax, eax
mov dword [esp + 0x10], 0x800
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
inc edi
push eax
lea eax, [esp + 0x38]
push eax
push edi
push dword [esp + 0x34]
call ebp
test eax, eax
je 0x40bca8
lea eax, [esp + 0x1824]
mov ecx, esi
push eax
call fcn.00409cbb
mov ecx, dword [esp + 0x2024]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c2bc
add esp, 0x2018
ret

Function at 0x40ccbf
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ccfe
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ccfe
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ccfe
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ccfe
cmp dword [ecx + 0x74], 0xe
jbe 0x40ccfe
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42e004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x55600cf6
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x328b17a3
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401138
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40eb8a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x30], 0x48
mov byte [ebp - 0x2f], 0x65
mov byte [ebp - 0x2e], 0x61
mov byte [ebp - 0x2d], 0x70
mov byte [ebp - 0x2c], 0x46
mov byte [ebp - 0x2b], 0x72
mov byte [ebp - 0x2a], 0x65
mov byte [ebp - 0x29], 0x65
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x40], 0x4b
mov byte [ebp - 0x3f], 0x45
mov byte [ebp - 0x3e], 0x52
mov byte [ebp - 0x3d], 0x4e
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x4c
mov byte [ebp - 0x3a], 0x33
mov byte [ebp - 0x39], 0x32
mov byte [ebp - 0x38], 0x2e
mov byte [ebp - 0x37], 0x64
mov byte [ebp - 0x36], 0x6c
mov byte [ebp - 0x35], 0x6c
mov byte [ebp - 0x34], 0
push 0x45adc8
push 0x45add4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x20], 0x47
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x74
mov byte [ebp - 0x1d], 0x50
mov byte [ebp - 0x1c], 0x72
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x63
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x73
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x48
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x14], 0x61
mov byte [ebp - 0x13], 0x70
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x40124a
mov dword [ebp - 0x48], 0x63
push 0x410070
lea eax, [ebp - 0x48]
push eax
call fcn.00402e70
jmp 0x401263
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40189d
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40eba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x48], 0x4b
mov byte [ebp - 0x47], 0x45
mov byte [ebp - 0x46], 0x52
mov byte [ebp - 0x45], 0x4e
mov byte [ebp - 0x44], 0x45
mov byte [ebp - 0x43], 0x4c
mov byte [ebp - 0x42], 0x33
mov byte [ebp - 0x41], 0x32
mov byte [ebp - 0x40], 0x2e
mov byte [ebp - 0x3f], 0x64
mov byte [ebp - 0x3e], 0x6c
mov byte [ebp - 0x3d], 0x6c
mov byte [ebp - 0x3c], 0
mov byte [ebp - 0x30], 0x56
mov byte [ebp - 0x2f], 0x69
mov byte [ebp - 0x2e], 0x72
mov byte [ebp - 0x2d], 0x74
mov byte [ebp - 0x2c], 0x75
mov byte [ebp - 0x2b], 0x61
mov byte [ebp - 0x2a], 0x6c
mov byte [ebp - 0x29], 0x41
mov byte [ebp - 0x28], 0x6c
mov byte [ebp - 0x27], 0x6c
mov byte [ebp - 0x26], 0x6f
mov byte [ebp - 0x25], 0x63
mov byte [ebp - 0x24], 0
push str.VirtualAlloc
push 0x45ae98
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
lea ecx, [eax + ecx + 0x18]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x40198d
mov dword [ebp - 0x4c], 0x50
push 0x410070
lea eax, [ebp - 0x4c]
push eax
call fcn.00402e70
jmp 0x401aa6
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401abe
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ebb2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.VirtualFree
push 0x45aeb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
nop
nop
nop
nop
nop
mov byte [ebp - 0x30], 0x56
mov byte [ebp - 0x2f], 0x69
mov byte [ebp - 0x2e], 0x72
mov byte [ebp - 0x2d], 0x74
mov byte [ebp - 0x2c], 0x75
mov byte [ebp - 0x2b], 0x61
mov byte [ebp - 0x2a], 0x6c
mov byte [ebp - 0x29], 0x50
mov byte [ebp - 0x28], 0x72
mov byte [ebp - 0x27], 0x6f
mov byte [ebp - 0x26], 0x74
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], 0x63
mov byte [ebp - 0x23], 0x74
mov byte [ebp - 0x22], 0
push str.VirtualProtect
push 0x45aed4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
mov dx, word [ecx + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ecx + edx + 0x18]
mov dword [ebp - 0x18], edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x401b9a
mov dword [ebp - 0x4c], 0x40
push 0x410070
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00402e70
jmp 0x401cfc
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402310
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ebda
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str.HeapFree
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
mov byte [ebp - 0x3c], 0x4b
mov byte [ebp - 0x3b], 0x45
mov byte [ebp - 0x3a], 0x52
mov byte [ebp - 0x39], 0x4e
mov byte [ebp - 0x38], 0x45
mov byte [ebp - 0x37], 0x4c
mov byte [ebp - 0x36], 0x33
mov byte [ebp - 0x35], 0x32
mov byte [ebp - 0x34], 0x2e
mov byte [ebp - 0x33], 0x64
mov byte [ebp - 0x32], 0x6c
mov byte [ebp - 0x31], 0x6c
mov byte [ebp - 0x30], 0
mov byte [ebp - 0x1c], 0x56
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x1a], 0x72
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x75
mov byte [ebp - 0x17], 0x61
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x46
mov byte [ebp - 0x14], 0x72
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
push str.GetProcessHeap
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
nop
nop
nop
nop
nop
nop
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28], edx
nop
nop
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x40241c
mov dword [ebp - 0x48], 0x44
push 0x410070
lea ecx, [ebp - 0x48]
push ecx
call fcn.00402e70
jmp 0x4024f8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..00cfg
mov ebx, 0x408ecc
nop
mov ecx, 0x4d3b20dc
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x451a5cf9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x471314
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10013018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [0x1000e1d4]
push edi
push 4
lea ecx, [ebp - 0x410]
push ecx
push 2
xor ebx, ebx
push ebx
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x410], 0x7530
call esi
push 4
lea edx, [ebp - 0x410]
push edx
push 6
push ebx
call esi
push 4
lea eax, [ebp - 0x410]
push eax
push 5
push ebx
call esi
push ebx
push ebx
push ebx
push ebx
push 0x1000e260
call dword [0x1000e1d8]
mov edi, eax
mov dword [ebp - 0x41c], edi
cmp edi, ebx
je 0x4714b0
mov ecx, dword [ebp - 0x40c]
push ebx
push SysReAllocString
push ebx
push ebx
push ecx
push edi
call dword [0x1000e1dc]
mov esi, eax
cmp esi, ebx
jne 0x4713c2
push edi
call dword [0x1000e1e0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00473301
mov esp, ebp
pop ebp
ret
push ebx
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x418]
push eax
push 0x20000013
mov edi, 4
push esi
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], edi
call dword [0x1000e1e4]
test eax, eax
je 0x47141a
cmp dword [ebp - 0x414], edi
jne 0x4714b0
mov eax, dword [ebp - 0x418]
cmp eax, 0xc8
jb 0x4714b0
cmp eax, 0x190
jae 0x4714b0
push 0x400
lea ecx, [ebp - 0x407]
push ebx
push ecx
mov dword [ebp - 0x40c], ebx
mov byte [ebp - 0x408], bl
call fcn.00473314
mov edi, dword [0x1000e1e8]
add esp, 0xc
lea edx, [ebp - 0x40c]
push edx
push 0x400
lea eax, [ebp - 0x408]
push eax
push esi
call edi
test eax, eax
je 0x47149e
cmp dword [ebp - 0x40c], ebx
je 0x47149e
push 0x400
lea ecx, [ebp - 0x407]
push ebx
push ecx
mov dword [ebp - 0x40c], ebx
mov byte [ebp - 0x408], bl
call fcn.00473314
add esp, 0xc
lea edx, [ebp - 0x40c]
push edx
push 0x400
lea eax, [ebp - 0x408]
push eax
push esi
call edi
test eax, eax
jne 0x47145b
push esi
mov esi, dword [0x1000e1e0]
call esi
mov ecx, dword [ebp - 0x41c]
push ecx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473301
mov esp, ebp
pop ebp
ret
Function at 0x40ec54
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40f7f8
call fcn.0040ef18
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ecb4
cmp eax, 0xffffffff
je 0x40ecb4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40ecad
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40ecad
cmp edx, 0x10000000
jae 0x40ecad
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40ecaa
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40ed20
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40ed5e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40ed56
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40ed60
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40ed46
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40ee30
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40ee61
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40ee61
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40ee61
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x419000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x419175
cmp dword [esp + 0x54], 0x40
jne 0x419175
cmp word [esp + 0x10], 0x5a4d
jne 0x419175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x419175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x41f960
push esi
call ebx
test eax, eax
je 0x419175
cmp dword [esp + 0x54], 0xf8
jne 0x419175
cmp dword [0x41f960], 0x4550
jne 0x419175
mov eax, dword [0x41f976]
test ah, 0x20
jne 0x419175
mov edx, dword [0x41fa80]
xor eax, eax
mov ax, word [0x41f966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x41fa58], eax
je 0x419175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x41fa6c], eax
xor eax, eax
mov ax, word [0x41f966]
mov edx, dword [0x41fa58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x419175
cmp dword [esp + 0x54], edi
jne 0x419175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x41fa80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x41f9b4]
cmp edx, eax
ja 0x419175
mov edi, dword [0x41fa58]
mov ecx, dword [0x41f988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x419175
xor eax, eax
push 2
mov ax, word [0x41f966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x419175
cmp dword [edi - 0x20], ebx
ja 0x419175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x41b769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41f190
cmp edx, dword [eax]
je 0x41b78b
add eax, 8
inc ecx
cmp eax, 0x41f220
jl 0x41b77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41f190]
jne 0x41b8b9
mov eax, dword [0x41fbb0]
cmp eax, 1
je 0x41b893
test eax, eax
jne 0x41b7bc
cmp dword [0x41f0e4], 1
je 0x41b893
cmp edx, 0xfc
je 0x41b8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041c670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041c490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41b836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041c490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41e45c
push edi
call fcn.0041cf00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041c670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041c680
lea eax, [ebp - 0xa0]
push 0x41e43c
push eax
call fcn.0041c680
push dword [esi + 0x41f194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041c680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041ce75
add esp, 0x2c
pop edi
jmp 0x41b8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x41f194]
push 0
push eax
push dword [esi]
call fcn.0041c490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x82b582a
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..rdata
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x9cd7e9f
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x407360
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40739e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407396
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4073a0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407386
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407480
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4074af
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4074af
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x432006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x9f02cb9
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x76516f91
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x6f8370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x6f838e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x721074
push ecx
mov edi, eax
call fcn.0070c198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6f83cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0070c02e
push esi
call fcn.0070bfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret