joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 0
mov dword [0x42ed40], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.0040bc50
mov eax, dword [0x42ed40]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x110]
inc ecx
lea eax, [ebp - 0x108]
call fcn.00402060
call sub.kernel32.dll_GetCommandLineA
mov dword [0x426360], eax
mov ebx, dword [0x426360]
jmp 0x40bbfd
inc ebx
movzx eax, byte [ebx]
dec eax
cmp eax, 0x20
jb 0x40bafc
mov al, byte [ebx]
test al, al
je 0x40bc07
mov byte [ebp - 0x10c], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x40bb6c
mov al, byte [ebx]
cmp al, 1
jb 0x40bb65
sub al, 0x20
jbe 0x40bb38
sub al, 2
je 0x40bb4a
jmp 0x40bb65
mov al, byte [ebp - 0x10c]
test al, al
je 0x40bb72
inc dword [ebp - 0x110]
jmp 0x40bb6b
mov al, byte [ebx + 1]
cmp al, 0x22
je 0x40bb62
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x40bb6b
inc ebx
jmp 0x40bb6b
inc dword [ebp - 0x110]
inc ebx
mov al, byte [ebx]
test al, al
jne 0x40bb28
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x40bbf7
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.0040bc50
mov byte [ebp - 0x10c], 0
mov ebx, edi
mov eax, dword [0x42ed40]
mov edx, dword [ebp - 0x114]
mov esi, dword [eax + edx*4]
jmp 0x40bbee
mov al, byte [ebx]
cmp al, 1
jb 0x40bbe8
sub al, 0x20
jbe 0x40bbbc
sub al, 2
je 0x40bbcd
jmp 0x40bbe8
mov al, byte [ebp - 0x10c]
test al, al
je 0x40bbf4
mov al, byte [ebx]
mov byte [esi], al
inc esi
jmp 0x40bbed
mov al, byte [ebx + 1]
cmp al, 0x22
je 0x40bbe5
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x40bbed
inc ebx
jmp 0x40bbed
mov al, byte [ebx]
mov byte [esi], al
inc esi
inc ebx
mov al, byte [ebx]
test al, al
jne 0x40bbac
mov byte [esi], 0
inc dword [ebp - 0x114]
mov al, byte [ebx]
test al, al
jne 0x40bafd
mov ebx, dword [ebp - 0x114]
mov dword [0x42ed30], ebx
mov edx, ebx
inc edx
shl edx, 2
mov eax, 0x42ed40
call fcn.00409f30
mov eax, dword [0x42ed40]
mov dword [eax + ebx*4], 0
mov ebx, dword [ebp - 0x120]
mov esi, dword [ebp - 0x11c]
mov edi, dword [ebp - 0x118]
leave
ret
Function at 0x41a220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov eax, 1
call fcn.004078b0
call fcn.00408e60
push eax
test eax, eax
jne 0x41a350
call fcn.0040bce0
cmp eax, 1
jne 0x41a33b
lea edx, [ebp - 0xc]
mov eax, 1
call fcn.0040caf0
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x38]
call fcn.00402590
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x38]
mov edx, str..pipe_
call fcn.00404c70
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x41a2a7
mov eax, 0x42ee00
push eax
call sub.kernel32.dll_CreateFileA
mov dword [0x430460], eax
cmp eax, 0xffffffff
je 0x41a350
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x41a2c7
mov eax, 0x42ee00
push eax
push 0
push 2
call sub.kernel32.dll_OpenEventA
test eax, eax
je 0x41a2db
push eax
call sub.kernel32.dll_SetEvent
mov dword [ebp - 8], 0
jmp 0x41a313
mov al, byte [ebp - 4]
test al, al
je 0x41a2f9
dec al
je 0x41a300
dec al
je 0x41a307
dec al
je 0x41a30e
jmp 0x41a313
call fcn.0041a1a0
jmp 0x41a313
call fcn.00420f7a
jmp 0x41a313
call fcn.00420f7e
jmp 0x41a313
call fcn.00420ed0
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push dword [0x430460]
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41a2e4
push dword [0x430460]
call sub.kernel32.dll_CloseHandle
jmp 0x41a350
push 0x10
mov eax, str.Param_error
push eax
mov eax, str.Please_give_a_unique_audio_pipe_id
push eax
push 0
call sub.user32.dll_MessageBoxA
call fcn.00407b80
lea eax, [ebp - 0x38]
call fcn.00402590
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0xc]
call fcn.00402590
mov dword [ebp - 0xc], 0
pop eax
test eax, eax
je 0x41a37d
call fcn.00407cf0
leave
ret

Function at 0x41de60
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov ebx, eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push esi
push edi
mov eax, ebx
mov edx, 0
call fcn.0041de00
cmp edx, esi
jne 0x41de9a
cmp eax, edi
jne 0x41de9a
push ebx
call sub.kernel32.dll_SetEndOfFile
or eax, eax
setne al
jmp 0x41de9c
mov al, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
leave
ret 8
Function at 0x41e0c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov eax, 1
call fcn.004078b0
call fcn.00408e60
push eax
test eax, eax
jne 0x41e193
mov ebx, 1
dec ebx
nop
inc ebx
lea eax, [ebx*4 + 0x4305fc]
call fcn.00402590
mov dword [ebx*4 + 0x4305fc], 0
mov dword [ebx*4 + 0x43061c], 0xffffffff
cmp ebx, 7
jl 0x41e0f8
call sub.kernel32.dll_GetThreadLocale
mov ebx, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push ebx
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x41e193
lea eax, [ebp - 0x38]
call fcn.00402590
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
mov cl, 1
mov edx, 0xa
call fcn.00405040
mov eax, dword [ebp - 0x38]
mov edx, 1
call fcn.0041a620
mov esi, eax
sub eax, 3
cmp eax, 3
jae 0x41e193
push 4
push esi
push ebx
mov eax, 0x41df40
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push esi
push ebx
mov eax, 0x41e000
push eax
call sub.kernel32.dll_EnumCalendarInfoA
call fcn.00407b80
lea eax, [ebp - 0x38]
call fcn.00402590
mov dword [ebp - 0x38], 0
pop eax
test eax, eax
je 0x41e1b1
call fcn.00407cf0
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
leave
ret
Function at 0x4210ec
Capabilities:
Create thread

Disassembly:
ret
call fcn.004211db
pop eax
pop edx
pop dword [0x4327f4]
pop ecx
test edx, edx
push eax
je 0x4210eb
push ebx
push esi
push edi
push ebp
mov ebx, 0x4307e4
mov ebp, 0x432808
xor eax, eax
mov dword [ebp - 0x10], eax
test cl, 1
mov esi, 0x420ef8
jne 0x421127
test cl, 2
lea esi, [esi + 0xc]
jne 0x421127
lea esi, [esi - 0x14]
test cl, 8
setne byte [ebp - 0x18]
and cl, 0x10
mov byte [ebp - 0x17], cl
mov edi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, edx
cmp dword [ebp - 4], eax
jne 0x421146
mov word [ebp - 4], 0x8000
push eax
push eax
push eax
push eax
push eax
push eax
push 0x420ee0
push 0xffffffffffffffff
push ebx
call sub.winmm.dll_waveOutOpen
call sub.kernel32.dll_HeapCreate
test eax, eax
mov dword [ebx - 8], eax
je 0x421173
mov dword [ebp - 0xc], esi
call fcn.00421968
xchg edi, eax
call dword [ebp + 8]
test edi, edi
je 0x4211df
mov esi, 0x442818
mov dword [esi + 4], 0x10000
or dword [esi + 0x14], 0xffffffff
push 0xc
mov dword [esi], 0x432818
pop dword [esi + 0x10]
push 0x20
push esi
push dword [ebx]
call sub.winmm.dll_waveOutPrepareHeader
xor edi, edi
call fcn.0042129c
cmp dword [ebx + 4], edi
jne 0x42119c
mov dword [ebx + 8], edi
push 0x20
push esi
push dword [ebx]
call sub.winmm.dll_waveOutWrite
test eax, eax
jne 0x4211df
push ebp
push edi
push edi
push 0x421248
push edi
push edi
call sub.kernel32.dll_CreateThread
test eax, eax
mov dword [ebx - 4], eax
je 0x4211df
push 0xf
push eax
call sub.kernel32.dll_SetThreadPriority
xchg ebx, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov ebp, 0x4307e0
mov eax, dword [ebp]
test eax, eax
je 0x4211fb
mov dword [ebp + 0xc], eax
push eax
push ebp
push eax
call sub.kernel32.dll_WaitForSingleObject
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
mov dword [ebp], ebx
mov edi, dword [ebp + 4]
mov dword [ebp + 8], ebx
test edi, edi
je 0x421226
mov dword [ebp + 4], ebx
push edi
push 0x20
push 0x442818
push edi
push edi
call sub.winmm.dll_waveOutReset
call sub.winmm.dll_waveOutUnprepareHeader
call sub.winmm.dll_waveOutClose
mov eax, dword [ebp - 4]
test eax, eax
je 0x421243
mov dword [ebp - 4], ebx
push eax
call sub.kernel32.dll_HeapDestroy
xchg ebx, eax
mov ecx, 0x23
mov edi, 0x442838
rep stosd dword es:[edi], eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x424cd0
Capabilities:
Create thread
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ebx
mov bl, byte [0x42dbe0]
test edx, edx
je 0x424ce9
dec byte [0x42dbe0]
test eax, eax
je 0x424cf3
inc byte [0x42dbe0]
movzx eax, bl
test eax, eax
jne 0x424d2c
movzx eax, byte [0x42dbe0]
cmp eax, 1
jne 0x424d2c
mov byte [0x443520], 0
push 0x443510
push 0
push 0
mov eax, 0x424b30
push eax
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x443500], eax
jmp 0x424d79
movzx eax, bl
cmp eax, 1
jne 0x424d79
movzx eax, byte [0x42dbe0]
test eax, eax
jne 0x424d79
mov byte [0x443520], 1
mov word [ebp - 0x14], 1
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push dword [0x4267a0]
call sub.kernel32.dll_WriteConsoleInputA
push 0xffffffffffffffff
push dword [0x443500]
call sub.kernel32.dll_WaitForSingleObject
push dword [0x443500]
call sub.kernel32.dll_CloseHandle
mov ebx, dword [ebp - 0x1c]
leave
ret
Function at 0x402768
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.00403740
test esi, esi
jne 0x40279e
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.00403830
jmp 0x4027bc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040267c
mov edi, eax
test esi, esi
je 0x4027bc
cmp dword [ebx], 0
je 0x4027bc
dec esi
jmp 0x4027a5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c80
Capabilities:
Query or enumerate registry value

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

Function at 0x4035c4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x409044], 0
je 0x403625
cmp word [0x409218], 0xd7b2
jne 0x4035ed
cmp dword [0x409220], 0
jbe 0x4035ed
mov eax, 0x409214
call dword [0x409230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40805c
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 0x40364c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x408020], 0
jne 0x403641
push 0
push 0x408054
push 0x40805c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x403f54
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 0x404184
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403fd7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404184
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403fd7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4041a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404060
xor eax, eax
push ebp
push 0x404059
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403d9c
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 0x40403e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4041c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40403e
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 0x404060
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 0x40417a
cmp byte [ebp - 0xd], 0
jne 0x4040a7
cmp byte [ebp - 0x12], 0
je 0x40417a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4040c0
dec ebx
cmp byte [ebx], 0x2e
je 0x4040cf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4040bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40417a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40410c
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 0x40417a
cmp byte [ebp - 0xd], 0
je 0x40417a
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 0x40417a
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 0x404060
Capabilities:
Get geographical location

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 0x404184
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403fd7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404184
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403fd7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4041a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404060
xor eax, eax
push ebp
push 0x404059
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403d9c
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 0x40403e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4041c0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40403e
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 0x404060
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 0x40417a
cmp byte [ebp - 0xd], 0
jne 0x4040a7
cmp byte [ebp - 0x12], 0
je 0x40417a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4040c0
dec ebx
cmp byte [ebx], 0x2e
je 0x4040cf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4040bf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40417a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40410c
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 0x40417a
cmp byte [ebp - 0xd], 0
je 0x40417a
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 0x40417a
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 0x404310
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 0x404376
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.00403988
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402874
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404360
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40437d
lea eax, [ebp - 0x10]
call fcn.00403740
ret

Function at 0x406150
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 0x406189
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403830
jmp 0x406192
mov eax, ebx
mov edx, esi
call fcn.00403794
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x406844
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4066bc
mov eax, dword [0x4083a4]
cmp byte [eax], 0
je 0x4068c0
mov eax, dword [0x408300]
call fcn.00402810
call fcn.004025ec
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.00405644
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 0x406908
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4068f6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4082e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x409660]
call fcn.00403d60
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 0x4072b4
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 0x407318
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.00403988
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004054e4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40731f
lea eax, [ebp - 0xc]
call fcn.00403740
ret

Function at 0x407e58
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, 0x407e18
call fcn.00404570
xor eax, eax
push ebp
push 0x407ee6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x407efc
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402768
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00405564
push dword [ebp - 0x14]
push 0x407f48
mov eax, 0x409798
mov edx, 3
call fcn.00403a00
push 5
mov eax, dword [0x409798]
call fcn.00403a8c
push eax
call sub.kernel32.dll_WinExec
push 0x5dc
call sub.kernel32.dll_Sleep
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407eed
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403764
ret
Function at 0x6ca03360
Capabilities:
Create pipe

Disassembly:
sub esp, 0x2c
mov dword [edx], 0
lea ecx, [esp + 0x14]
mov dword [eax], 0
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreatePipe]
sub esp, 0x10
test eax, eax
je 0x6ca033b8
xor eax, eax
add esp, 0x2c
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovg eax, edx
add esp, 0x2c
ret

Function at 0x6ca05b10
Capabilities:
Query environment variable

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
test byte [0x6ca0d02c], 8
jne 0x6ca05bb8
test ebx, ebx
je 0x6ca05c90
test esi, esi
je 0x6ca05c90
mov edx, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x1c], edx
mov dword [esp], ebx
call edx
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.oleaut32.dll_SysAllocStringLen]
mov dword [esi], eax
sub esp, 8
test eax, eax
je 0x6ca05c9a
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call edx
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x6ca05c28
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
test ebx, ebx
je 0x6ca05c80
mov eax, ebx
shr eax, 0x10
je 0x6ca05c68
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x6ca05bf1
mov eax, ebx
call fcn.6ca033e0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s__p__n
mov dword [esp + 8], str.WshShell3_ExpandEnvironmentStrings
mov dword [esp + 4], 0x6ca0d02c
mov dword [esp], 3
call fcn.6ca03890
jmp 0x6ca05b37
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.oleaut32.dll_SysFreeString]
mov dword [esi], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
sub esp, 4
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovg eax, edx
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.6ca02fe0
jmp 0x6ca05bf1
mov eax, 0x6ca0fc40
jmp 0x6ca05bf1
mov eax, 0x80004003
jmp 0x6ca05ba7
mov eax, 0x8007000e
jmp 0x6ca05ba7