joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404610
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
push edi
mov eax, 0x202c
push esi
push ebx
call fcn.0040a4e0
sub esp, eax
lea ebx, [esp + 0x20]
mov esi, dword [esp + 0x2040]
mov dword [esp], 0x1000
mov dword [esp + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
lea edi, [esp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x1000
mov dword [esp], esi
mov ebx, 5
call fcn.00404fb0
call sub.msvcrt.dll__getpid
mov dword [esp + 4], str._MEI_d
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__tempnam]
mov dword [esp], eax
mov ebp, eax
call sub.msvcrt.dll__mkdir
test eax, eax
je 0x4046b0
mov dword [esp], ebp
call sub.msvcrt.dll_free
sub ebx, 1
jne 0x404675
add esp, 0x202c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebp
mov dword [esp], esi
call sub.msvcrt.dll_strcpy
mov dword [esp], ebp
call sub.msvcrt.dll_free
add esp, 0x202c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x404740
Capabilities:
Delete directory

Disassembly:
push ebp
push edi
mov eax, 0x125c
push esi
push ebx
call fcn.0040a4e0
sub esp, eax
mov eax, dword [esp + 0x1270]
lea ebp, [esp + 0x24f]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], ebp
call sub.msvcrt.dll_strlen
mov edx, eax
mov dword [esp + 0x12c], eax
movzx edx, byte [esp + edx + 0x24e]
cmp dl, 0x5c
je 0x404791
cmp dl, 0x2f
jne 0x404840
lea ebx, [esp + 0x134]
mov edx, 0x2a
mov word [ebp + eax], dx
mov dword [esp], ebp
mov dword [esp + 4], ebx
call dword [sym.imp.msvcrt.dll__findfirst]
cmp eax, 0xffffffff
mov dword [esp + 0x128], eax
je 0x404821
mov edi, esp
mov esi, ebx
mov ecx, 0x46
rep movsd dword es:[edi], dword [esi]
mov eax, ebp
mov edx, dword [esp + 0x12c]
call fcn.00404870
jmp 0x4047f9
mov edi, esp
mov esi, ebx
mov ecx, 0x46
rep movsd dword es:[edi], dword [esi]
mov eax, ebp
mov edx, dword [esp + 0x12c]
call fcn.00404870
mov eax, dword [esp + 0x128]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findnext]
test eax, eax
je 0x4047e0
mov eax, dword [esp + 0x128]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findclose]
mov eax, dword [esp + 0x1270]
mov dword [esp], eax
call sub.msvcrt.dll__rmdir
add esp, 0x125c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0x5c
mov word [ebp + eax], cx
add eax, 1
mov dword [esp], ebp
mov dword [esp + 0x12c], eax
call sub.msvcrt.dll_strlen
jmp 0x404791
Function at 0x404870
Capabilities:
Delete file

Disassembly:
push ebp
push edi
mov ecx, 2
push esi
push ebx
mov edi, 0x40d318
mov ebp, eax
sub esp, 0x1c
lea ebx, [esp + 0x44]
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta cl
mov esi, ecx
setb cl
mov eax, esi
cmp al, cl
je 0x4048a9
mov edi, 0x40d31a
mov ecx, 3
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4048b1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ebp + edx], 0
mov dword [esp + 4], ebx
mov dword [esp], ebp
call sub.msvcrt.dll_strcat
test byte [esp + 0x30], 0x10
mov dword [esp], ebp
jne 0x4048e0
call sub.msvcrt.dll_remove
test eax, eax
je 0x4048a9
mov eax, ebp
call fcn.00404470
jmp 0x4048a9
call fcn.00404740
jmp 0x4048a9

Function at 0x404910
Capabilities:
Create directory

Disassembly:
push edi
push esi
mov eax, 0x2040
push ebx
call fcn.0040a4e0
sub esp, eax
mov eax, dword [esp + 0x2050]
lea edi, [esp + 0x40]
lea ebx, [esp + 0x1040]
lea esi, [esp + 0x1c]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [esp + 0x2054]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], ebx
mov dword [esp + 4], 0x40d31d
call sub.msvcrt.dll_strtok
test eax, eax
mov ebx, eax
je 0x4049f0
nop
mov ecx, edi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x404972
mov eax, edx
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea eax, [ecx + 2]
cmove ecx, eax
add dl, dl
sbb ecx, 3
sub ecx, edi
lea eax, [edi + ecx + 1]
mov byte [edi + ecx], 0x5c
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x40d31d
mov dword [esp], 0
call sub.msvcrt.dll_strtok
test eax, eax
mov ebx, eax
je 0x4049f0
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0040a520
test eax, eax
jns 0x404970
mov dword [esp], edi
call sub.msvcrt.dll__mkdir
jmp 0x404970
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0040a520
test eax, eax
je 0x404a20
mov dword [esp], edi
mov dword [esp + 4], 0x40d351
call fcn.00402db0
add esp, 0x2040
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], edi
mov dword [esp], str.WARNING:_file_already_exists_but_should_not:__s_n
call fcn.00401e10
jmp 0x404a00
Function at 0x404a40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push edi
push esi
mov eax, 0x1010
push ebx
call fcn.0040a4e0
sub esp, eax
mov eax, dword [esp + 0x1020]
mov dword [esp + 4], 0x40d354
mov dword [esp], eax
call fcn.00402db0
mov ebx, eax
mov eax, dword [esp + 0x1028]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1024]
mov dword [esp], eax
call fcn.00404910
test eax, eax
mov edi, eax
je 0x404b45
test ebx, ebx
je 0x404b45
lea esi, [esp + 0x10]
nop
lea esi, [esi]
mov dword [esp], ebx
call sub.msvcrt.dll_feof
test eax, eax
jne 0x404b41
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1000
mov dword [esp], esi
call sub.msvcrt.dll_fread
cmp eax, 0xffffffff
je 0x404b22
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x1000
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
mov dword [esp], edi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x404aa0
mov dword [esp], edi
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, esi
add esp, 0x1010
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
call sub.msvcrt.dll_ferror
test eax, eax
je 0x404aa0
mov dword [esp], ebx
mov esi, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x404b06
xor esi, esi
jmp 0x404b06
mov eax, 0xffffffff
jmp 0x404b18
Function at 0x404bc0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push edi
push esi
mov eax, 0x20a0
push ebx
call fcn.0040a4e0
sub esp, eax
mov eax, dword [esp + 0x20b0]
lea esi, [esp + 0xa0]
mov dword [esp + 8], 0x1000
mov dword [esp + 0x3c], 0
lea edi, [esp + 0x5c]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00405150
mov dword [esp + 4], 1
mov dword [esp], 0x16
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0xf
call sub.msvcrt.dll_signal
mov dword [esp + 4], 1
mov dword [esp], 0x15
call sub.msvcrt.dll_signal
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 1
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
sub esp, 4
mov word [esp + 0x8c], ax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x88], 0x101
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov ebx, dword [sym.imp.msvcrt.dll__get_osfhandle]
mov dword [esp], eax
call ebx
mov dword [esp + 0x94], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp], eax
call ebx
mov dword [esp + 0x98], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp], eax
call ebx
mov dword [esp + 0x9c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x4c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], edx
lea edx, [esp + 0x40]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x404d70
mov dword [esp], str.Error_creating_child_process__n
call fcn.00401e10
add esp, 0x20a0
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
lea eax, [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
sub esp, 8
mov eax, dword [esp + 0x3c]
add esp, 0x20a0
pop ebx
pop esi
pop edi
ret
Function at 0x409920
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00409980

Function at 0x409980
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x41d2f0]
test eax, eax
jle 0x409a83
mov edx, dword [0x41d2f4]
xor ebx, ebx
mov ecx, dword [edx + 4]
cmp ecx, esi
ja 0x4099b1
mov edi, dword [edx + 8]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x409a26
add ebx, 1
add edx, 0xc
cmp ebx, eax
jne 0x4099a0
mov dword [esp], esi
call fcn.0040a2c0
test eax, eax
mov edi, eax
je 0x409aaa
lea esi, [ebx + ebx*2]
mov ebx, dword [0x41d2f4]
shl esi, 2
add ebx, esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
call fcn.0040a3b0
add eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x41d2f4]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x409a8a
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x409a30
add dword [0x41d2f0], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x409a1f
cmp eax, 0x80
je 0x409a1f
cmp eax, 8
je 0x409a1f
mov eax, dword [ebp - 0x28]
add esi, dword [0x41d2f4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x409a1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00409920
xor ebx, ebx
jmp 0x4099bb
mov eax, dword [0x41d2f4]
mov eax, dword [eax + esi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00409920
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00409920
lea esi, [esi]

Function at 0x40a1e0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x40a218
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x40a20e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x40a21a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40a200
xor eax, eax
pop ebx
pop esi
ret
Function at 0x402aa4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404770
test esi, esi
jne 0x402ada
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404860
jmp 0x402af8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029b8
mov edi, eax
test esi, esi
je 0x402af8
cmp dword [ebx], 0
je 0x402af8
dec esi
jmp 0x402ae1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40380c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x483020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403884
xor eax, eax
push ebp
push 0x40387d
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 0x4038c0
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 0x403884
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x483020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x483020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404570
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48504c], 0
je 0x4045d1
cmp word [0x485220], 0xd7b2
jne 0x404599
cmp dword [0x485228], 0
jbe 0x404599
mov eax, 0x48521c
call dword [0x485238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x483070
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 0x4045f8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x483030], 0
jne 0x4045ed
push 0
push 0x483068
push 0x483070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404724
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040277c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046ec
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405de0
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 0x406010
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e63
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406010
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405e63
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40602c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405eec
xor eax, eax
push ebp
push 0x405ee5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c28
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 0x405eca
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40604c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405eca
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 0x405eec
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 0x406006
cmp byte [ebp - 0xd], 0
jne 0x405f33
cmp byte [ebp - 0x12], 0
je 0x406006
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f4c
dec ebx
cmp byte [ebx], 0x2e
je 0x405f5b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f4b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406006
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f98
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 0x406006
cmp byte [ebp - 0xd], 0
je 0x406006
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 0x406006
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 0x4066f4
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 0x40675a
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.004049e0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403268
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406744
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406761
lea eax, [ebp - 0x10]
call fcn.00404770
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c30
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409229
test al, 0x10
jne 0x40922d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c098
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 0x40c0d1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404860
jmp 0x40c0da
mov eax, ebx
mov edx, esi
call fcn.004047c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c0e4
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 0x40c105
mov al, byte [esp]
jmp 0x40c107
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c78c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c604
mov eax, dword [0x484be4]
cmp byte [eax], 0
je 0x40c808
mov eax, dword [0x48486c]
call fcn.00402ef8
call fcn.004028e4
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.004096bc
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 0x40c850
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c83e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4847dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x485668]
call fcn.00405bec
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
Function at 0x40d0f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d1ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404808
lea eax, [ebp - 8]
call fcn.00404c80
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c30
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d1b8
mov eax, ebx
call fcn.0040277c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d1b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c30
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d19b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d1e0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d19b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1b8
mov eax, dword [ebp - 0x10]
call fcn.0040279c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1d5
lea eax, [ebp - 8]
call fcn.00404770
ret

Function at 0x40d784
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d7e8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004049e0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408e2c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d7ef
lea eax, [ebp - 0xc]
call fcn.00404770
ret

Function at 0x41f498
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041f2f0
dec esi
jne 0x41f4ba
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x4205fc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48588c
cmp dword [edi], 0
jne 0x420678
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x485888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x483480
mov ecx, 2
call fcn.00402978
mov edx, 0x4205d4
lea eax, [esi + 5]
call fcn.004205f4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004205f4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42064d
mov dword [0x485888], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x421c9c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x421ca2
ret

Function at 0x424170
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4241c1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4241a8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x424198
jmp 0x4241c1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4241a9
pop ebx
mov esp, ebp
pop ebp
ret