joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477c50
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x4f3480]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.004b9027
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x477ccf
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042e360
push eax
push edi
push 0x4d9708
push ebp
call fcn.0043f640
push esi
call dword [0x4f3004]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x477e2f
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x477d29
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042e360
push eax
push edi
push 0x4d973c
push ebp
call fcn.0043f640
push 0
mov esi, 0x4d
call dword [0x4f3004]
add esp, 0x20
jmp 0x477e21
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x477d69
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042e360
push eax
push edi
push 0x4d9768
push ebp
call fcn.0043f640
add esp, 0x1c
mov esi, 0x4d
jmp 0x477e0d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x477d97
jg 0x477d7d
cmp edi, 0x100000
jbe 0x477d97
push 0x100000
push 0x4d97a0
push ebp
call fcn.0043f640
add esp, 0xc
mov esi, 0x4d
jmp 0x477e0d
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x477daf
lea esi, [eax + 0x1b]
jmp 0x477e0d
test edi, edi
je 0x477df4
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x477e4c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x477e48
add esi, eax
cmp esi, edi
jb 0x477dc0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00477a50
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x4f3004]
add esp, 4
push dword [esp + 0x20]
call fcn.004a25b3
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049d2bd
add esp, 0x120
ret
mov edi, esi
jmp 0x477df4
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042e360
push eax
push dword [esp + 0x24]
push 0x4d97d0
push ebp
call fcn.0043f640
add esp, 0x1c
mov esi, 0x4d
jmp 0x477e0d
Function at 0x4bb923
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e3808
push 0x4e3800
push 0x4e0c08
push 0x1f
call fcn.004bb74e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4bb957
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cd40c]
call esi
jmp 0x4bb95d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4bb9a1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e3818
push 0x4e3810
push 0x4e0c2c
push 0x21
call fcn.004bb74e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4bb9d8
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cd40c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4bb9e0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e3820
push 0x4e3818
push 0x4e0c40
push 0x22
call fcn.004bb74e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4bba1a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4cd40c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4bdc73
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4f3480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4bdcb6
call fcn.004a35c0
mov dword [eax], 0xf
call fcn.004a35d3
mov dword [eax], 0xd
call fcn.004a2916
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d2bd
leave
ret
test eax, eax
jne 0x4bdcbd
inc eax
jmp 0x4bdcaa
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4bdca8
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4bdcaa
Function at 0x4c8880
Capabilities:
Parse pe header

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

Function at 0x401bf0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x401c60
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004010b0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x4072f0
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 0x40732e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407326
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407330
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407316
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407410
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 0x407441
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407441
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407441
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0xc141f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e1000]
add word [edi + 0x825918], 5
push edi
jmp 0xc14212
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xc14219
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc14208
mov eax, 1
add ebx, ebx
jne 0xc1422b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xc1423c
jne 0xc1425b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc1425b
dec eax
add ebx, ebx
jne 0xc14248
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xc14220
add ebx, ebx
jne 0xc14257
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xc142ad
xor ecx, ecx
sub eax, 3
jb 0xc14273
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xc142e2
sar eax, 1
mov ebp, eax
jmp 0xc1427e
add ebx, ebx
jne 0xc1427e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc1424c
inc ecx
add ebx, ebx
jne 0xc1428c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xc1424c
add ebx, ebx
jne 0xc14299
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xc1428e
jne 0xc142aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xc1428e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xc142cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xc142be
jmp 0xc1420e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xc142cc
add edi, ecx
jmp 0xc1420e
pop esi
mov edi, esi
mov ecx, 3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xc142ea
cmp byte [edi], 0x51
jne 0xc142ea
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 0xc142ef
lea edi, [esi + 0x7dc000]
mov eax, dword [edi]
or eax, eax
je 0xc14367
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x825d54]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x825f14]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xc1431c
mov ecx, edi
jns 0xc1434b
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 + 0x825f1c]
or eax, eax
je 0xc14361
mov dword [ebx], eax
add ebx, 4
jmp 0xc14339
call dword [esi + 0x825f18]
mov ebp, dword [esi + 0x825f20]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0xc1439b
sub esp, 0xffffff80
jmp 0x59c714
Function at 0x403f18
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404148
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f9b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404148
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403f9b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404164
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404024
xor eax, eax
push ebp
push 0x40401d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403d54
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404002
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404184
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404002
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404024
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40413e
cmp byte [ebp - 0xd], 0
jne 0x40406b
cmp byte [ebp - 0x12], 0
je 0x40413e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404084
dec ebx
cmp byte [ebx], 0x2e
je 0x404093
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404083
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40413e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4040d0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40413e
cmp byte [ebp - 0xd], 0
je 0x40413e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40413e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4046b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403b98
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4046d1
test al, 0x10
je 0x4046d5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x404864
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00403a08
add esp, 0x104
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403b88
xor eax, eax
push ebp
push 0x4048dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403b98
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4048e3
lea eax, [ebp - 4]
call fcn.0040389c
ret

Function at 0x404b74
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x40a8a4]
mov ecx, 0x40
call fcn.00402d0c
mov dword [0x40a7f0], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x40a7f0
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x404ba2
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x40a7f0]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.00404a3c
mov esi, eax
mov dword [ebx*4 + 0x40a7f0], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.00404a3c
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x404c12
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x404bc2
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x404c9c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov eax, dword [0x40a89c]
sub dword [ebx + 8], eax
mov eax, dword [0x40a898]
sub dword [ebx], eax
mov esi, 0x14
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebx + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [ebx + 8], edx
mov edx, dword [ebx]
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.00404a3c
mov ebp, eax
mov eax, dword [ebx + 4]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.00404a3c
mov edi, eax
mov eax, dword [ebx + 8]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x40a7f4]
mov edx, edi
call fcn.00404a50
xor eax, ebp
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x40a7f0]
mov edx, ebp
call fcn.00404a50
xor edi, eax
mov dword [ebx], edi
dec esi
test esi, esi
jne 0x404cb6
mov eax, dword [0x40a7f4]
sub dword [ebx + 0xc], eax
mov eax, dword [0x40a7f0]
sub dword [ebx + 4], eax
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x404dfc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xffffff9c
push eax
mov eax, dword [ebp + 8]
add eax, 0xffffffb0
push eax
push 0
push 0
push 0x20
mov eax, dword [ebp + 8]
cmp byte [eax - 0x51], 1
cmc
sbb eax, eax
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x6c]
call fcn.00403b98
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x404e58
push 0x30
push 0x404e94
push 0x404e9c
push 0
call sub.user32.dll_MessageBoxA_1
pop ebp
ret
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp + 8]
add eax, 0xffffff98
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x64]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x60]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
pop ebp
ret
Function at 0x404f10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x40a8e8
mov esi, 0x40a8ec
mov edi, 0x40a8f0
mov ebp, 0x40a900
mov eax, 0x405030
call fcn.00404c20
call fcn.00404b74
mov eax, dword [0x40a8dc]
push eax
call sub.kernel32.dll_LockResource
mov dword [0x40a8e0], eax
mov eax, dword [0x40a8d8]
push eax
mov eax, dword [0x40a7e0]
push eax
call sub.kernel32.dll_SizeofResource
call fcn.00402c14
mov dword [0x40a8e4], eax
mov eax, dword [0x40a8e0]
mov dword [ebx], eax
mov eax, dword [0x40a8e4]
mov dword [esi], eax
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov eax, dword [0x40a8d8]
push eax
mov eax, dword [0x40a7e0]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [0x40a908], eax
mov dword [0x40a90c], edx
jmp 0x404fd8
mov edx, edi
mov eax, dword [ebx]
mov ecx, 0x10
call fcn.00402d0c
mov eax, edi
call fcn.00404c9c
mov edx, dword [esi]
mov eax, edi
mov ecx, 0x10
call fcn.00402d0c
add dword [ebp], 0x10
adc dword [ebp + 4], 0
mov eax, dword [ebx]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esi]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x40a908]
mov edx, dword [0x40a90c]
sub eax, dword [ebp]
sbb edx, dword [ebp + 4]
cmp edx, 0
jne 0x404ff6
cmp eax, 0x10
jae 0x404f9f
jmp 0x404ff8
jge 0x404f9f
call fcn.00404c90
mov eax, dword [0x40a8e4]
xor edx, edx
add eax, dword [0x40a908]
adc edx, dword [0x40a90c]
sub eax, 1
sbb edx, 0
mov dword [ebx], eax
mov eax, dword [ebx]
movzx eax, byte [eax]
mov byte [0x40a914], al
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402f8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45c020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403024
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403004
xor eax, eax
push ebp
push 0x402ffd
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 0x403040
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403004
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45c020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45c020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45e044], 0
je 0x403db9
cmp word [0x45e218], 0xd7b2
jne 0x403d81
cmp dword [0x45e220], 0
jbe 0x403d81
mov eax, 0x45e214
call dword [0x45e230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45c06c
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 0x403de0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45c030], 0
jne 0x403dd5
push 0
push 0x45c064
push 0x45c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a2c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405a92
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404144
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b50
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a7c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a99
lea eax, [ebp - 0x10]
call fcn.00403ed4
ret

Function at 0x40aa00
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aa39
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fc4
jmp 0x40aa42
mov eax, ebx
mov edx, esi
call fcn.00403f28
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aa4c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aa6d
mov al, byte [esp]
jmp 0x40aa6f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b0f4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40af6c
mov eax, dword [0x45dc64]
cmp byte [eax], 0
je 0x40b170
mov eax, dword [0x45da60]
call fcn.00402980
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408260
push eax
lea eax, [esp + 0x50]
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 0x40b1b8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b1a6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45da08]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45e660]
call fcn.00404f40
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret