joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49dd20
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov edi, dword [ebp + 0x18]
and eax, 0xfff00000
mov dword [edi], ecx
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
cmp eax, esi
jne 0x49de39
cmp ebx, ebx
jne 0x49de39
lea eax, [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x49de21
mov eax, dword [ebp + 0xc]
test ebx, ebx
jl 0x49dd80
jg 0x49ddc2
cmp esi, eax
ja 0x49ddc2
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x49dd8b
mov ecx, eax
sub ecx, esi
sub eax, esi
cmp ecx, eax
cmovb eax, ecx
mov dword [edi + 4], eax
test eax, eax
je 0x49de0c
push 0
push 0
push 0
push 2
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
mov dword [edi + 0xc], ecx
test ecx, ecx
jne 0x49ddcc
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xffffffff
pop edi
pop esi
mov eax, 4
pop ebx
pop ebp
ret
push dword [edi + 4]
mov eax, ebx
push esi
push ebx
push 4
sar eax, 0x1f
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 8], eax
test eax, eax
jne 0x49de1a
push dword [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi]
call esi
mov dword [edi], 0xffffffff
mov eax, 4
mov dword [edi + 0xc], 0
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xffffffff
mov eax, 3
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 0x1d
pop ebx
pop ebp
ret

Function at 0x4a0690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x40
jae 0x4a069f
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x4a069b
push esi
mov esi, dword [eax + 0x3c]
test esi, esi
js 0x4a06bb
lea edx, [esi + 0x18]
cmp ecx, edx
jae 0x4a06c0
xor eax, eax
pop esi
pop ebp
ret
add esi, eax
push edi
movzx eax, word [esi + 0x14]
add edx, eax
cmp dword [esi], 0x4550
jne 0x4a06f3
movzx eax, word [esi + 4]
mov edi, 0x14c
cmp ax, di
je 0x4a06e9
mov edi, 0x8664
cmp ax, di
jne 0x4a06f3
cmp ecx, edx
jbe 0x4a06f3
pop edi
mov eax, esi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4a0a00
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x538a60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x20
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4a0a7a
lea eax, [ebp - 0x20]
push eax
push 0x4e5988
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4a0a7a
mov eax, dword [ebp - 0x20]
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a0a88
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esi], eax
test eax, eax
jne 0x4a0ab1
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bae74
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004bae74
mov esp, ebp
pop ebp
ret

Function at 0x4a0b10
Capabilities:
Acquire debug privileges
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0x40
call fcn.004a0820
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4a0b2a
mov eax, 1
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
mov dword [eax], ecx
mov dword [eax + 4], 0x4a0970
mov dword [eax + 8], 0x4a0990
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x38], ecx
mov dword [ecx + 0x3c], 0x4a0900
pop ebp
jmp fcn.004a0a00
Function at 0x4b15d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
cmp edx, 0x40
jae 0x4b15df
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b15db
mov ecx, dword [eax + 0x3c]
test ecx, ecx
js 0x4b15db
push edi
lea edi, [ecx + 0x18]
cmp edx, edi
jae 0x4b1600
xor eax, eax
pop edi
pop ebp
ret
push esi
lea esi, [ecx + eax]
movzx eax, word [esi + 0x14]
add edi, eax
cmp dword [esi], 0x4550
jne 0x4b171f
movzx ecx, word [esi + 4]
test cx, cx
je 0x4b1715
mov eax, 0x1d3
cmp cx, ax
je 0x4b1715
mov eax, 0x8664
cmp cx, ax
je 0x4b1715
mov eax, 0x1c0
cmp cx, ax
je 0x4b1715
mov eax, 0x1c4
cmp cx, ax
je 0x4b1715
mov eax, 0xaa64
cmp cx, ax
je 0x4b1715
mov eax, 0xebc
cmp cx, ax
je 0x4b1715
mov eax, 0x14c
cmp cx, ax
je 0x4b1715
mov eax, 0x200
cmp cx, ax
je 0x4b1715
mov eax, 0x9041
cmp cx, ax
je 0x4b1715
mov eax, 0x266
cmp cx, ax
je 0x4b1715
mov eax, 0x366
cmp cx, ax
je 0x4b1715
mov eax, 0x466
cmp cx, ax
je 0x4b1715
mov eax, 0x1f0
cmp cx, ax
je 0x4b1715
mov eax, 0x1f1
cmp cx, ax
je 0x4b1715
mov eax, 0x166
cmp cx, ax
je 0x4b1715
mov eax, 0x1a2
cmp cx, ax
je 0x4b1715
mov eax, 0x1a3
cmp cx, ax
je 0x4b1715
mov eax, 0x1a6
cmp cx, ax
je 0x4b1715
mov eax, 0x1a8
cmp cx, ax
je 0x4b1715
mov eax, 0x1c2
cmp cx, ax
je 0x4b1715
mov eax, 0x169
cmp cx, ax
jne 0x4b171f
cmp edx, edi
jbe 0x4b171f
mov eax, esi
pop esi
pop edi
pop ebp
ret
pop esi
xor eax, eax
pop edi
pop ebp
ret
Function at 0x4b2490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
mov edx, dword [eax + 4]
cmp edx, 0x40
jb 0x4b2618
mov ecx, dword [eax]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4b2618
mov eax, dword [ecx + 0x3c]
test eax, eax
js 0x4b2618
push ebx
lea ebx, [eax + 0x18]
cmp edx, ebx
jb 0x4b2617
mov eax, dword [ecx + 0x88]
mov edx, dword [ecx + 0x84]
push edi
lea edi, [ecx + 0x80]
cmp edx, eax
jne 0x4b2616
cmp eax, dword [edi + 0xc]
jne 0x4b2616
mov eax, dword [edi]
xor eax, edx
cmp eax, 0x536e6144
jne 0x4b2616
lea eax, [ecx + ebx]
push esi
mov esi, edi
cmp edi, eax
ja 0x4b2615
lea ecx, [ecx]
cmp dword [esi], 0x68636952
je 0x4b2526
add esi, 4
cmp esi, eax
jbe 0x4b2510
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
sub esi, edi
and esi, 0xfffffffc
push esi
call fcn.004a0820
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x4b2615
push esi
push edi
push ebx
call fcn.004c0d70
mov eax, dword [ebp + 8]
push str.rich_signature.offset
push dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
sub eax, 0xffffff80
push 0
push eax
call fcn.004a1b90
mov eax, dword [ebp + 8]
push str.rich_signature.length
push dword [eax + 0xc]
push 0
push esi
call fcn.004a1b90
mov eax, dword [ebp + 8]
push str.rich_signature.key
push dword [eax + 0xc]
push 0
push dword [edi + 4]
call fcn.004a1b90
push esi
call fcn.004a0820
add esp, 0x40
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b25aa
push ebx
call fcn.004a07b0
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
push eax
call fcn.004c0d70
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, eax
add esp, 0xc
add eax, esi
mov ebx, eax
sub ebx, ecx
add ebx, 3
shr ebx, 2
cmp ecx, eax
cmova ebx, edx
test ebx, ebx
je 0x4b25df
mov eax, dword [edi + 4]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
inc edx
cmp edx, ebx
jb 0x4b25d1
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
push str.rich_signature.raw_data
push dword [ebx + 0xc]
push esi
push edi
call fcn.004a1c00
push str.rich_signature.clear_data
push dword [ebx + 0xc]
mov ebx, dword [ebp - 4]
push esi
push ebx
call fcn.004a1c00
push edi
call fcn.004a07b0
push ebx
call fcn.004a07b0
add esp, 0x28
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b2980
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 8]
xor ebx, ebx
xor esi, esi
movzx eax, word [ecx + 0x14]
lea edi, [ecx + 0x18]
add edi, eax
or eax, 0xffffffff
mov dword [ebp - 4], eax
xor edx, edx
movzx eax, word [ecx + 6]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
cmp ax, 0x60
mov dword [ebp - 0xc], edx
movzx eax, ax
jb 0x4b29bf
mov eax, 0x60
cmp edx, eax
jge 0x4b2a57
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
cmp ecx, 0x28
jb 0x4b2a4b
mov eax, dword [eax]
cmp edi, eax
jb 0x4b2a4b
add eax, 0xffffffd8
add eax, ecx
cmp edi, eax
ja 0x4b2a4b
mov eax, dword [ebp - 4]
mov edx, dword [edi + 0xc]
cmp eax, edx
cmova eax, edx
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
jb 0x4b2a3c
ja 0x4b29fc
cmp dword [ebp + 0xc], edx
jb 0x4b2a3c
cmp ebx, edx
ja 0x4b2a3c
mov eax, dword [ebp + 8]
mov ebx, 0x20b
mov ecx, dword [eax + 8]
movzx eax, word [ecx + 0x18]
mov ecx, dword [ecx + 0x3c]
cmp ax, bx
mov eax, ecx
cmp eax, 0x200
jb 0x4b2a21
lea ecx, [ebx - 0xb]
mov eax, dword [edi + 0x10]
mov ebx, edx
mov esi, dword [edi + 0x14]
mov dword [ebp - 8], eax
test ecx, ecx
je 0x4b2a3c
xor edx, edx
mov eax, esi
div ecx
test edx, edx
je 0x4b2a3c
sub esi, edx
mov edx, dword [ebp - 0xc]
add edi, 0x28
mov eax, dword [ebp - 0x10]
inc edx
jmp 0x4b29ae
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
mov ecx, dword [ebp + 0xc]
ja 0x4b2a73
jb 0x4b2a67
cmp ecx, dword [ebp - 4]
jae 0x4b2a73
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov edx, dword [edi + 4]
jmp 0x4b2a79
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
sub ecx, ebx
sbb eax, 0
test eax, eax
jb 0x4b2a8b
ja 0x4b2a4b
cmp ecx, edx
jae 0x4b2a4b
xor edx, edx
sub esi, ebx
sbb edx, edx
add esi, dword [ebp + 0xc]
adc edx, dword [ebp + 0x10]
js 0x4b2aa0
jg 0x4b2a4b
cmp esi, dword [edi + 4]
jae 0x4b2a4b
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d44a4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x538a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004c7a1a
mov dword [ebp - 0x14], eax
cmp dword [0x53eabc], esi
jne 0x4d4597
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4d4524
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4d4677
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4d4677
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d4677
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x53eabc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x53eac0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x515e90
push edi
mov dword [0x53eac4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x53eacc], eax
test eax, eax
je 0x4d4594
push 0x515eac
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x53eac8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4d45bc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4d45af
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4d45d1
push 4
pop eax
jmp 0x4d4679
cmp dword [ebp - 0x14], esi
je 0x4d45d1
push dword [0x53eabc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4d45b6
mov eax, dword [0x53eac8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4d462f
cmp dword [0x53eacc], edi
je 0x4d462f
push eax
call ebx
push dword [0x53eacc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4d462f
test eax, eax
je 0x4d462f
call ecx
test eax, eax
je 0x4d4624
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4d4624
test byte [ebp - 8], 1
jne 0x4d462f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4d465f
mov eax, dword [0x53eac0]
cmp eax, edi
je 0x4d465c
push eax
call ebx
test eax, eax
je 0x4d465c
call eax
mov esi, eax
test esi, esi
je 0x4d465c
mov eax, dword [0x53eac4]
cmp eax, edi
je 0x4d465c
push eax
call ebx
test eax, eax
je 0x4d465c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x53eabc]
call ebx
test eax, eax
je 0x4d4677
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4d4679
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bae74
mov esp, ebp
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219

Function at 0x424040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
mov esi, dword [esp + 0x360]
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
push esi
mov dword [esp + 0x14], edi
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x42420e
mov ebx, dword [esp + 0x368]
test ebx, ebx
je 0x42420e
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x18]
push esi
push eax
call edi
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0040ce70
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
lea edx, [esp + 0x18]
push ebx
push edx
call ebp
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x424137
call fcn.004246e0
lea edx, [esp + 0x11c]
push esi
push edx
call edi
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x11c]
push ecx
push edx
call ebp
test byte [esp + 0x220], 0x10
jne 0x42411d
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x11c]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jl 0x42411d
inc dword [esp + 0x10]
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4240c3
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x18]
push esi
push ecx
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0040ce70
add esp, 8
lea eax, [esp + 0x18]
push 0x42b1bc
push eax
call ebp
lea ecx, [esp + 0x220]
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4241fd
call fcn.004246e0
test byte [esp + 0x220], 0x10
je 0x4241e3
cmp byte [esp + 0x24c], 0x2e
je 0x4241e3
lea eax, [esp + 0x11c]
push esi
push eax
call edi
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call fcn.0040ce70
add esp, 8
lea edx, [esp + 0x24c]
lea eax, [esp + 0x11c]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00424040
add dword [esp + 0x10], eax
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42417b
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
Function at 0x4039cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4fc020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403a44
xor eax, eax
push ebp
push 0x403a3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403a9c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4fc020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4fc020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ce0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x504054], 0
je 0x404d41
cmp word [0x504330], 0xd7b2
jne 0x404d09
cmp dword [0x504338], 0
jbe 0x404d09
mov eax, 0x50432c
call dword [0x504348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404d6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4fc02c], 0
jne 0x404d5d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ec0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4fc030], 0
je 0x404ee6
mov edx, esi
mov eax, ebx
call dword [0x4fc030]
jmp 0x404ef5
mov eax, 8
call fcn.004030c0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x504055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404e88
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4080c8
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x409c18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x506b30
push 0xa
push 0x409cac
mov eax, dword [0x506b20]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x409c3c
call fcn.00412d30
push ebx
mov eax, dword [0x506b20]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x409c53
call fcn.00412d30
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x409c65
call fcn.00412d30
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x506b34], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x506b38], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x506b3c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x506b40], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x506b44], ecx
add edx, dword [eax + 0x14]
mov dword [0x506b48], edx
pop esi
pop ebx
ret

Function at 0x40b374
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40b41d
test eax, edx
je 0x40b420
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40b39d
push edx
mov edx, eax
mov eax, esp
call fcn.00405cf4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40b3b3
push eax
lea eax, [esp + 8]
call fcn.00405cf4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40b3c2
movzx eax, word [eax]
sub eax, ecx
jmp 0x40b3e9
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40b403
add ecx, 4
js 0x40b3da
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40b400
push eax
mov eax, ecx
mov edx, 2
call fcn.00404f60
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40b3e7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40b3e9
xor eax, eax
ret
test eax, eax
je 0x40b430
test edx, edx
jne 0x40b384
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40c560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405b94
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c57e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40c59f
cmp ebx, 3
je 0x40c59f
cmp ebx, 0x7b
je 0x40c59f
mov eax, esi
call fcn.0040c520
test al, al
jne 0x40c5a3
xor eax, eax
jmp 0x40c5a5
mov al, 1
pop esi
pop ebx
ret
Function at 0x410440
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x410479
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405c44
jmp 0x410482
mov eax, ebx
mov edx, esi
call fcn.00405b08
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41048c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4104ae
movzx eax, word [esp]
jmp 0x4104b0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410c14
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.00410a4c
mov eax, dword [0x5035fc]
cmp byte [eax], 0
je 0x410ca6
mov eax, dword [0x5031e4]
call fcn.00403424
call fcn.00403228
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040c900
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x410cf4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x410cdf
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x503134]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x506b20]
call fcn.004073f4
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret