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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4d5958]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4993aa
cmp word [ebx], dx
jne 0x4993aa
or byte [eax + edi + 0x28], 4
jmp 0x4993af
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x499512
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4994f2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4993f0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x499426
cmp eax, edx
jae 0x499434
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4993cb
jmp 0x499512
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4994ed
cmp dword [ebp - 0x18], 0
je 0x4994ed
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d5958]
test byte [eax + edi + 0x28], 0x48
je 0x4994c3
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x499487
mov word [esi], cx
jmp 0x4994be
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d5958]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4d5958]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d5958]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x499512
pop eax
cmp word [ebp - 4], ax
jne 0x4994d3
cmp esi, ebx
jne 0x4994d3
mov word [esi], ax
jmp 0x49950f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401901
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x499512
push 0xd
pop eax
jmp 0x4994ce
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d5958]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49950c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x499512
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49fd07
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d2040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49fd52
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a01bf
test al, al
jne 0x49fd4c
sub edx, 2
cmp edx, edi
jne 0x49fd32
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49fd74
lea eax, [edi + 2]
cmp edx, eax
je 0x49fd74
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049f900
add esp, 0x10
jmp 0x49fe6e
push esi
lea ecx, [ebp - 0x255]
call fcn.004a01bf
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49fdb7
push dword [ebp - 0x25c]
jmp 0x49fd64
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49fdf4
cmp word [ebp - 0x226], 0
je 0x49fe15
cmp word [ebp - 0x226], ax
jne 0x49fdf4
cmp word [ebp - 0x224], 0
je 0x49fe15
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049f900
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49fe61
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49fdce
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49fe49
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49fe6e
push 0x49f2e8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040543e
add esp, 0x10
jmp 0x49fe3e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402fef
leave
ret

Function at 0x4a57d0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040422d
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a583f
cmp esi, dword [ebp - 4]
je 0x4a583a
cmp dword [ebp + 0xc], 0
je 0x4a583a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a5817
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a51f8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a5841
xor eax, eax
inc eax
jmp 0x4a5841
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x401040
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x406380], 0
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x4010a3
lea eax, [ebp - 0x19c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401099
push str.WSAStartup_failed__n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [0x406380], 1
movzx eax, word [esi]
mov dword [ebp - 0x1a0], 0x30
cmp eax, 2
jne 0x4010bc
mov eax, 0x10
jmp 0x4010c6
cmp eax, 0x17
jne 0x4010f1
mov eax, 0x1c
lea ecx, [ebp - 0x1a0]
push ecx
push edi
push 0
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
xor ecx, ecx
test eax, eax
cmove ecx, edi
mov eax, ecx
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402456
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
mov dword [eax], 0x66
xor eax, eax
pop esi
call fcn.00402456
mov esp, ebp
pop ebp
ret
Function at 0x401440
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x406004]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [ebp + 8]
test edi, edi
jns 0x4014a9
cmp dword [0x40637c], 2
jl 0x401601
push edi
push str.ERROR:_invalid_fd_in_check_fd__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00402456
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov eax, 0x10624dd3
mul ecx
mov dword [esp + 0x24], edi
mov eax, edx
mov dword [esp + 0x20], 1
shr eax, 6
mov dword [esp + 0x10], eax
mov edx, dword [sym.imp.WS2_32.dll_select]
mov dword [esp + 0x14], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
sub eax, 0
je 0x40151e
sub eax, 1
je 0x40150e
sub eax, 1
jne 0x401601
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
jmp 0x40152c
lea eax, [esp + 0x14]
push eax
push 0
lea eax, [esp + 0x28]
push eax
push 0
jmp 0x40152c
lea eax, [esp + 0x14]
push eax
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea eax, [edi + 1]
push eax
call edx
mov esi, eax
test esi, esi
jns 0x401619
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov eax, dword [eax]
cmp eax, 4
jne 0x401589
cmp dword [0x40637c], 2
mov edx, dword [sym.imp.WS2_32.dll_select]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
jl 0x4014d1
push str.socket_check_fd
push str._s:_EINTR_n
push 2
call ebx
add esp, 4
push eax
call fcn.00401010
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [ebp + 8]
jmp 0x4014cb
cmp eax, 0xb
jne 0x4015cc
cmp dword [0x40637c], 2
jl 0x40161b
push str.socket_check_fd
push str._s:_EAGAIN_n
push 2
call ebx
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00402456
mov esp, ebp
pop ebp
ret
cmp dword [0x40637c], 2
jl 0x401601
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push str.socket_check_fd
push str._s:_select_failed:__s_n
push 2
call ebx
add esp, 4
push eax
call fcn.00401010
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00402456
mov esp, ebp
pop ebp
ret
je 0x401632
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00402456
mov esp, ebp
pop ebp
ret
cmp dword [0x40637c], 2
jl 0x401655
push str.socket_check_fd
push str._s:_timeout_n
push 2
call ebx
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
mov ecx, dword [esp + 0x12c]
mov eax, 0xffffff76
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402456
mov esp, ebp
pop ebp
ret
Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x39cb314a
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..tls
mov ebx, 0x42f314
nop
mov ecx, 0x49b2090b
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402fbc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402ff9
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x403019
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404b28
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4031f8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x403251
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00403094
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00403094
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x40323b
inc ebx
jmp 0x403224
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403258
lea eax, [ebp - 8]
call fcn.004048b8
ret

Function at 0x403260
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004048b8
test esi, esi
jne 0x403297
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004049a8
jmp 0x4032b8
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00403094
mov dword [esp], eax
test esi, esi
je 0x4032b8
cmp dword [ebx], 0
je 0x4032b8
dec esi
jmp 0x40329f
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403958
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45c024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4039d0
xor eax, eax
push ebp
push 0x4039c9
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 0x403a0c
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 0x4039d0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45c024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45c024], ax
mov esp, ebp
pop ebp
ret
Function at 0x4046b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x463044], 0
je 0x404711
cmp word [0x463218], 0xd7b2
jne 0x4046d9
cmp dword [0x463220], 0
jbe 0x4046d9
mov eax, 0x463214
call dword [0x463230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45c070
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 0x404738
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45c034], 0
jne 0x40472d
push 0
push 0x45c068
push 0x45c070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40486c
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.00402d80
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x463045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404834
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40695c
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 0x4069c2
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.00404b28
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004034ec
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4069ac
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069c9
lea eax, [ebp - 0x10]
call fcn.004048b8
ret

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

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

Function at 0x40ea94
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 0x40eacd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004049a8
jmp 0x40ead6
mov eax, ebx
mov edx, esi
call fcn.0040490c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40f198
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40f000
mov eax, dword [0x461f8c]
cmp byte [eax], 0
je 0x40f214
mov eax, dword [0x461d5c]
call fcn.004033bc
call fcn.00402f48
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.0040bd88
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 0x40f25c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40f24a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x461d10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x463660]
call fcn.00405df8
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 0x410184
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 0x4101e8
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.00404b28
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040b0d4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4101ef
lea eax, [ebp - 0xc]
call fcn.004048b8
ret

Function at 0x41c7d4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41c821
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041c5c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41c839
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41c840
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.0041c5c4
dec esi
jne 0x41c862
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41d170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x465aac
cmp dword [edi], 0
jne 0x41d1ec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x465aa8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45cb94
mov ecx, 2
call fcn.00403054
mov edx, 0x41d148
lea eax, [esi + 5]
call fcn.0041d168
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d168
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 0x41d1c1
mov dword [0x465aa8], 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 0x41e388
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x41e3ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.00402d80
mov ebx, eax
push 0xff
push ebx
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x104]
mov edx, ebx
call fcn.004035c0
lea edx, [ebp - 0x104]
lea eax, [ebp - 4]
call fcn.00404b1c
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, 0x41e414
call fcn.00404be0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e406
lea eax, [ebp - 4]
call fcn.004048b8
ret

Function at 0x429988
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x429a26
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00429164
test al, al
jne 0x4299b9
mov eax, esi
call fcn.00429164
test al, al
je 0x4299ee
lea edx, [ebp - 4]
mov eax, esi
call fcn.004292fc
mov eax, dword [ebp - 4]
call fcn.0040514c
push eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004292fc
mov eax, dword [ebp - 8]
call fcn.0040514c
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
jmp 0x429a0b
mov eax, esi
call fcn.00404d94
push eax
mov eax, ebx
call fcn.00404d94
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429a2d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404fcc
ret

Function at 0x429a38
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x429ab4
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov eax, ebx
call fcn.00429164
test al, al
je 0x429a85
push edi
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004292fc
mov eax, dword [ebp - 4]
call fcn.0040514c
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x429a9e
call sub.kernel32.dll_GetLastError
mov esi, eax
jmp 0x429a9e
push edi
mov eax, ebx
call fcn.00404d94
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x429a9e
call sub.kernel32.dll_GetLastError
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429abb
lea eax, [ebp - 4]
call fcn.00404fb4
ret

Function at 0x429ac4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x429b26
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00429164
test al, al
je 0x429b01
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004292fc
mov eax, dword [ebp - 4]
call fcn.0040514c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x429b10
mov eax, ebx
call fcn.00404d94
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429b2d
lea eax, [ebp - 4]
call fcn.00404fb4
ret