joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471ca0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x471cd3
push esi
call fcn.00474d90
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x471ccc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x471d59
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x471d42
mov eax, dword [esi + 8]
test eax, eax
je 0x471cf7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x471d3e
cmp eax, 2
je 0x471d42
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x471cea
cmp eax, 3
je 0x471d1d
cmp eax, 1
jne 0x471cea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x471cea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x471cea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00471d80
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x471d68
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00471d80
add esp, 4
pop esi
ret

Function at 0x47eb30
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x47eb96
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x47eb96
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47eb77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x47f780
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x47f7c9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x47fc40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad4c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047f7f0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047f870
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047f870
lea ecx, [esi + 0xc]
call fcn.0049cd81
lea ecx, [esi + 0x10]
call fcn.0049cd81
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00480e00
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00480e00
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00480e00
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0049cdf6
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0049cdf6
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4818b0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x481953
test eax, eax
jbe 0x481953
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x481953
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4818fe
xor esi, esi
jmp 0x481904
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48192f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004362e0
add esi, eax
push esi
mov ebx, esi
call fcn.004362e0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x481910
pop ebp
test edi, edi
pop edi
jne 0x481953
test ebx, ebx
je 0x481953
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0048d170
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x481a95
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x481bad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x481bad
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049e86c
mov esi, eax
test esi, esi
je 0x481bad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x481bad
mov ecx, esi
call fcn.00481a00
cmp edi, eax
jge 0x481bad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x481b33
mov dword [esp + 0x34], 1
jmp 0x481b8e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x481bad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00480ff0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x49f210
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49f248
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049d29d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049d275
jmp 0x49f254
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a0907
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a0949
call fcn.004a66b1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a0949
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a0940
xor eax, eax
jmp 0x4a0951
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a0957
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a6be1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a6c0f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a6c2d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a6b47
jmp 0x4a6c2d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a6c2d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a6b47
test edi, edi
mov eax, edi
jne 0x4a6c17
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4026e2
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov eax, ebx
mov byte [esp], dl
lea esi, [esp + 4]
call fcn.0040fca0
cmp eax, 0x3f6
jae 0x402915
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.0040fc20
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x40272f
lea edx, [ebx + 1]
jmp 0x402731
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x402782
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x40275a
jmp 0x402753
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402753
mov byte [ebx + eax], 0x20
jmp 0x40275a
inc eax
cmp byte [ebx + eax], 0
jne 0x402743
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x40276f
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x402781
cmp edx, 0x20
jne 0x402778
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x402789
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x402738
cmp byte [0x415cfe], 0
je 0x402799
mov dword [esi + 0x14], 0x415cfe
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.004062b0
mov edi, eax
test edi, edi
je 0x4027c5
mov edx, str..inf
mov eax, edi
call fcn.0040fda8
test eax, eax
jne 0x4027c5
mov dword [esi + 0xc], str.Install
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.00406e60
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x4027ed
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00406f2c
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x402830
cmp byte [esp + 1], 0
jne 0x402830
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040fd20
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040fdf4
lea eax, [esp + 0x440]
xor edx, edx
call fcn.00406e60
test al, al
je 0x402915
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x40285a
and dword [esi + 4], 0xfffffbff
mov dword [esi + 0x10], ebx
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402915
cmp byte [0x4158f4], 0
jne 0x402871
cmp byte [esp], 0
je 0x4028c7
mov ebx, dword [0x416180]
test ebx, ebx
je 0x402885
push ebx
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x402889
xor eax, eax
jmp 0x40288e
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x4028a1
push 0
push dword [0x416180]
call sub.USER32.DLL_ShowWindow
push 0x7d0
push dword [esi + 0x38]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [esi + 0x38]
call fcn.0040291f
test ebx, ebx
je 0x4028c7
push 1
push dword [0x416180]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x4028e3
mov edx, str..exe
mov eax, edi
call fcn.0040fda8
test eax, eax
je 0x402915
cmp byte [0x4158f4], 0
je 0x4028fe
cmp byte [esp], 0
jne 0x4028fe
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402915
mov edx, 0xc8
cmp byte [esp], 0
jne 0x40290f
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x403180
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.004044fc
test esi, esi
jne 0x4031b6
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.004045ec
jmp 0x4031d4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403084
mov edi, eax
test esi, esi
je 0x4031d4
cmp dword [ebx], 0
je 0x4031d4
dec esi
jmp 0x4031bd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037bc
Capabilities:
Query or enumerate registry value

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

Function at 0x40437c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41a044], 0
je 0x4043dd
cmp word [0x41a218], 0xd7b2
jne 0x4043a5
cmp dword [0x41a220], 0
jbe 0x4043a5
mov eax, 0x41a214
call dword [0x41a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404404
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41902c], 0
jne 0x4043f9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405a30
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 0x405c60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ab3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ab3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405b3c
xor eax, eax
push ebp
push 0x405b35
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040586c
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 0x405b1a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405c9c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405b1a
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 0x405b3c
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 0x405c56
cmp byte [ebp - 0xd], 0
jne 0x405b83
cmp byte [ebp - 0x12], 0
je 0x405c56
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405b9c
dec ebx
cmp byte [ebx], 0x2e
je 0x405bab
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405b9b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405c56
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405be8
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 0x405c56
cmp byte [ebp - 0xd], 0
je 0x405c56
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 0x405c56
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 0x40a518
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 0x40a551
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045ec
jmp 0x40a55a
mov eax, ebx
mov edx, esi
call fcn.00404550
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a564
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 0x40a586
movzx eax, byte [esp]
jmp 0x40a588
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ad64
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40abdc
mov eax, dword [0x419c10]
cmp byte [eax], 0
je 0x40ade0
mov eax, dword [0x419b24]
call fcn.00403288
call fcn.00402ef0
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.00407cc0
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 0x40ae28
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ae16
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x419b00]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41c7f0]
call fcn.00405814
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 0x41787c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004175f4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404958
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4178db
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x419b9c]
mov dl, 1
mov eax, dword [0x417518]
call fcn.0040af24
call fcn.00403f44
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41829c
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4182a4
push ebx
push esi
push edi
mov eax, 0x417980
call fcn.00406250
xor eax, eax
push ebp
push 0x4184da
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4184a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4138dc]
call fcn.004038fc
mov ebx, eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00403180
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00414970
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov edx, eax
dec edx
xor ecx, ecx
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
mov edx, 0x41e9e4
mov ecx, 2
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
cmp dword [0x41e9e4], 0
jle 0x418496
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov edx, eax
sub edx, dword [0x41e9e4]
sub edx, 2
xor ecx, ecx
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, 0x41e9e8
mov edx, dword [0x41e9e4]
call fcn.00404b8c
mov eax, 0x41e9e8
call fcn.004049b8
mov edx, eax
mov ecx, dword [0x41e9e4]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [0x41e9e8]
mov eax, dword [0x415494]
call fcn.004170a4
mov edx, dword [0x4153f4]
call fcn.00403adc
mov esi, eax
mov edx, 0x4184f0
mov eax, esi
call fcn.00415e2c
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx]
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x18]
call fcn.00412c98
mov edx, dword [ebp - 0x18]
mov eax, 0x41e9ec
call fcn.00404550
mov dl, 1
mov eax, dword [0x417578]
call fcn.00417624
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.004176c4
mov cl, 1
mov edx, 0x41850c
mov eax, ebx
call fcn.00417728
mov ecx, dword [0x41e9ec]
mov edx, 0x41852c
mov eax, ebx
call fcn.0041784c
mov ecx, 0x418540
mov edx, 0x418550
mov eax, ebx
call fcn.0041784c
mov eax, ebx
call fcn.00417694
mov eax, ebx
call fcn.0040392c
mov eax, esi
call fcn.0040392c
push 0x418568
push 0x418570
mov ecx, dword [0x41c7f0]
mov dl, 1
mov eax, dword [0x413958]
call fcn.00414ae8
mov ebx, eax
push 0x41e9f0
push 0xff
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x2c]
mov edx, 0x41e9f0
mov ecx, pe_nt_image_headers32
call fcn.0040476c
lea eax, [ebp - 0x2c]
mov edx, 0x41857c
call fcn.004047a4
mov edx, dword [ebp - 0x2c]
mov eax, ebx
call fcn.0041489c
push 1
lea eax, [ebp - 0x30]
mov edx, 0x41e9f0
mov ecx, pe_nt_image_headers32
call fcn.0040476c
lea eax, [ebp - 0x30]
mov edx, 0x41857c
call fcn.004047a4
mov eax, dword [ebp - 0x30]
call fcn.00404958
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4184aa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4184e1
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404520
lea eax, [ebp - 0x28]
call fcn.0040e4e0
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404520
ret