joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405875
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x4059cd
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
push ebx
push ebx
push 3
push 0x30
push ebx
push eax
call esi
test eax, eax
jne 0x4059c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4059c3
push edi
push dword [ebp - 8]
call fcn.00402384
mov edi, eax
pop ecx
mov dword [ebp - 0x24], edi
cmp edi, ebx
je 0x4059c2
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 3
push 0x30
push ebx
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x4059b9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
jbe 0x4059b9
push 1
push dword [edi]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x4059a7
lea ecx, [ebp - 0xc]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x405999
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x405999
push dword [ebp - 0xc]
call fcn.00402384
mov esi, eax
pop ecx
cmp esi, ebx
je 0x405999
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x405992
push dword [ebp - 0x20]
push dword [ebp + 8]
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x405992
push dword [edi]
mov byte [ebp - 1], 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call fcn.0040241e
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp byte [ebp - 1], bl
jne 0x4059b9
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add edi, 0x2c
cmp eax, dword [ebp - 0x14]
jb 0x40591c
push dword [ebp - 0x24]
call fcn.0040241e
pop ecx
pop edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret

Function at 0x4059d3
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0xffffffff
je 0x405a1a
test byte [ebp + 0x10], 2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x10
je 0x405a06
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x405a0e
or eax, 0xffffffff
leave
ret
call dword [sym.imp.WS2_32.dll_getsockname]
jmp 0x4059fd
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov ax, word [ebp - 0x1e]
jmp 0x405a20
and dword [ebp - 0xc], 0
xor eax, eax
mov word [ebp - 0xe], ax
mov al, byte [ebp + 0xc]
mov byte [ebp - 0xf], al
lea eax, [ebp - 0x10]
push 8
push eax
mov byte [ebp - 0x10], 0
call fcn.0040280d
sub eax, 8
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
leave
ret
Function at 0x405a45
Capabilities:
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xbc]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], 0x80
xor ebx, ebx
xor esi, esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x405a7b
movzx esi, word [ebp - 0xbc]
xor eax, eax
cmp si, 0x17
mov esi, dword [sym.imp.WS2_32.dll_recv]
sete al
push ebx
push 7
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call esi
cmp eax, 7
jne 0x405c10
xor edi, edi
inc edi
jmp 0x405aac
cmp byte [ebp - 5], bl
je 0x405abb
push ebx
push edi
lea eax, [ebp - 5]
push eax
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x405aa7
mov ecx, dword [ebp - 0x19]
mov eax, ecx
and eax, 0xff0000
mov edx, ecx
shr edx, 0x10
or eax, edx
mov edx, ecx
and edx, 0xff00
mov edi, ecx
shl edi, 0x10
or edx, edi
shr eax, 8
shl edx, 8
or eax, edx
dec eax
mov byte [ebp - 0xa], 0x5a
cmp eax, 0xfe
ja 0x405b2e
mov byte [ebp - 5], 0x5a
xor edi, edi
push ebx
push 1
lea eax, [ebp - 6]
push eax
push dword [ebp + 8]
call esi
cmp eax, 1
jne 0x405b1d
mov al, byte [ebp - 6]
mov byte [ebp + edi - 0x13c], al
cmp al, bl
je 0x405b42
inc edi
cmp edi, 0xff
jle 0x405af5
mov byte [ebp - 0xa], 0x5b
cmp byte [ebp - 0xa], 0x5a
jne 0x405c10
mov ecx, dword [ebp - 0x19]
movzx eax, byte [ebp - 0x1c]
dec eax
mov byte [ebp - 5], 1
je 0x405b94
mov byte [ebp - 0xa], 0x5b
jmp 0x405bfd
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
lea eax, [ebp - 0x13c]
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x405b88
mov esi, dword [ebp - 0x14]
cmp esi, ebx
je 0x405b7b
cmp dword [esi + 4], 2
je 0x405b72
mov esi, dword [esi + 0x1c]
cmp esi, ebx
jne 0x405b63
jmp 0x405b7b
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x19], eax
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp esi, ebx
jne 0x405b8c
mov byte [ebp - 5], 0x5b
mov al, byte [ebp - 5]
mov byte [ebp - 0xa], al
jmp 0x405b21
push 2
pop eax
mov word [ebp - 0x38], ax
mov ax, word [ebp - 0x1b]
mov word [ebp - 0x36], ax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x34], ecx
call fcn.00402866
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x405b39
push dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
push 0x5a
push esi
call fcn.004059d3
add esp, 0xc
cmp eax, 1
jne 0x405be3
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 0
call fcn.00402d2c
pop ecx
jmp 0x405bf2
cmp eax, 0xffffffff
jne 0x405bee
mov byte [ebp - 0xa], 0x5b
jmp 0x405bf2
mov byte [ebp - 5], 0
call fcn.004028cc
cmp byte [ebp - 5], 0
je 0x405c10
push dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
push dword [ebp - 0xa]
push 0xffffffffffffffff
call fcn.004059d3
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405cd8
Capabilities:
Check for peb beingdebugged flag
Get common file path

Disassembly:
push ebx
push esi
push edi
mov edi, dword fs:[0x30]
push 0x104
mov esi, 0x42ae70
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.explorer.exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
call dword [sym.imp.ntdll.dll_RtlAcquirePebLock]
mov eax, dword [edi + 0x10]
mov ecx, esi
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, 2
test bx, bx
jne 0x405d0d
sub ecx, edx
sar ecx, 1
add ecx, ecx
mov word [eax + 0x38], cx
add ecx, 2
mov word [eax + 0x3a], cx
push 0x18
mov dword [eax + 0x3c], esi
mov eax, dword [edi + 0x10]
pop ecx
push 0x1a
mov word [eax + 0x40], cx
pop ecx
mov word [eax + 0x42], cx
mov dword [eax + 0x44], 0x408494
call dword [sym.imp.ntdll.dll_RtlReleasePebLock]
push 0
push 0x405c70
push 0
call dword [sym.imp.ntdll.dll_LdrEnumerateLoadedModules]
pop edi
pop esi
pop ebx
ret

Function at 0x405f0b
Capabilities:
Create thread

Disassembly:
push ebx
xor ebx, ebx
cmp byte [0x40a44c], bl
je 0x405f63
call fcn.004066eb
test al, al
je 0x405f63
push esi
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
push ebx
push ebx
push 0x405ddd
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push 6
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
pop esi
pop ebx
ret
Function at 0x405f91
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov edi, 0xfffe
call fcn.0040231c
mov esi, eax
pop ecx
mov dword [ebp - 4], esi
cmp esi, ebx
je 0x406148
cmp dword [ebp + 0x10], ebx
je 0x40613f
cmp dword [ebp + 8], ebx
je 0x40613f
cmp dword [ebp + 0xc], ebx
je 0x40613f
cmp dword [ebp + 0x18], ebx
je 0x40613f
push dword [ebp + 8]
mov eax, 0x408740
push esi
call fcn.00405f65
pop ecx
pop ecx
test al, al
je 0x40613f
push 0x250
lea eax, [ebp - 0x258]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push esi
mov dword [ebp - 0x25c], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40613f
mov ebx, dword [ebp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp word [ebp - 0x22c], 0x2e
jne 0x406066
cmp word [ebp - 0x22a], 0
je 0x406115
cmp word [ebp - 0x22a], 0x2e
jne 0x406066
cmp word [ebp - 0x228], 0
je 0x406115
mov eax, dword [ebp - 0x258]
and eax, 0x10
je 0x406076
test bl, 2
jne 0x40607f
test eax, eax
jne 0x4060c7
test bl, 4
je 0x4060c7
xor esi, esi
cmp dword [ebp + 0x10], esi
jbe 0x4060c7
mov eax, dword [ebp + 0xc]
push dword [eax + esi*4]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x4060a5
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x406086
jmp 0x4060c7
push dword [ebp + 0x1c]
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 8]
call dword [ebp + 0x18]
add esp, 0xc
test eax, eax
je 0x40612f
cmp dword [ebp + 0x24], 0
je 0x4060c7
push dword [ebp + 0x24]
call edi
test byte [ebp - 0x258], 0x10
je 0x406115
test bl, 1
je 0x406115
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
push dword [ebp - 4]
call fcn.00405f65
pop ecx
pop ecx
test al, al
je 0x406115
cmp dword [ebp + 0x20], 0
je 0x4060f7
push dword [ebp + 0x20]
call edi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00405f91
add esp, 0x20
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406036
jmp 0x406136
and dword [ebp - 0x25c], 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 4]
call fcn.0040241e
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40614d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov edi, 0xfffe
call fcn.0040231c
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4061ce
push ebx
push esi
push 0x7fff
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4061c7
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x4061c7
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x18
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntdll.dll_ZwDeleteFile]
test eax, eax
lea eax, [ebp - 0xc]
push eax
setns bl
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
push esi
call fcn.0040241e
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4061d5
Capabilities:
Set file attributes

Disassembly:
push edi
push 0x80
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x406206
mov ecx, edi
inc edi
cmp ecx, 0x14
jg 0x40621a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
neg eax
sbb eax, eax
inc eax
jne 0x40621a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0040614d
pop ecx
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
test eax, eax
je 0x4061e6
pop edi
ret

Function at 0x40621c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1448
call fcn.00406a20
push ebx
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, ebx
je 0x40632d
push edi
push esi
call fcn.00402384
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40632c
push edi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x40874c
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call esi
cmp dword [ebp - 8], 4
jb 0x406325
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], str.Comments
mov dword [ebp - 0x38], 0x408794
mov dword [ebp - 0x34], 0x4087b0
mov dword [ebp - 0x30], 0x4087c8
mov dword [ebp - 0x2c], 0x4087e0
mov dword [ebp - 0x28], 0x408800
mov dword [ebp - 0x24], 0x408820
mov dword [ebp - 0x20], str.LegalTrademarks
mov dword [ebp - 0x1c], str.PrivateBuild
mov dword [ebp - 0x18], 0x40887c
mov dword [ebp - 0x14], 0x408894
mov dword [ebp - 0x10], str.SpecialBuild
push dword [ebp + eax*4 - 0x3c]
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x1448]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1448]
push eax
push edi
call esi
test eax, eax
je 0x406325
push dword [ebp - 0xc]
call fcn.004029a5
pop ecx
mov ebx, eax
push edi
call fcn.0040241e
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40637d
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor eax, eax
push esi
push edi
cmp dword [ebp + 8], eax
jne 0x406394
xor eax, eax
jmp 0x406416
cmp dword [ebp + 0xc], eax
je 0x40638d
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov edi, 0x2000000
push edi
push 3
push eax
push 1
push closesocket
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406413
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
xor eax, eax
push eax
push edi
push 3
push eax
push eax
push 0x100
push dword [ebp + 0xc]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x406413
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
neg eax
sbb eax, eax
neg eax
push esi
mov dword [ebp - 4], eax
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406480
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push esi
push edi
lea eax, [ebp - 0x428]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x406541
lea eax, [ebp - 0x218]
push eax
push 0
push 0x408744
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x406541
lea esi, [ebp - 0x218]
call fcn.004061d5
mov eax, esi
push eax
call fcn.004029a5
mov esi, eax
pop ecx
mov dword [ebp - 4], esi
test esi, esi
je 0x406541
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40653a
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x406532
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edi, eax
test edi, edi
je 0x40652b
push edi
push 0x40641b
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 4]
call fcn.004061d5
push esi
call fcn.0040241e
pop ecx
pop edi
pop esi
leave
ret

Function at 0x40661c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x24], 0
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
cmp word [ebp - 0x24], 9
pop edi
sete al
leave
ret
Function at 0x406832
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x40a450
push edi
xor bl, bl
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
jne 0x40684c
mov esi, edi
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40685e
cmp eax, 0x2f
je 0x40685e
test ax, ax
jne 0x40688a
mov ebp, eax
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40687e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x406880
test al, 0x10
je 0x406891
test bp, bp
je 0x40688f
mov word [esi], bp
add esi, 2
jmp 0x40684c
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret
Function at 0x402dfc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404484
test esi, esi
jne 0x402e33
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.00404574
jmp 0x402e54
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402e54
cmp dword [ebx], 0
je 0x402e54
dec esi
jmp 0x402e3b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4034e8
Capabilities:
Query or enumerate registry value

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

Function at 0x40427c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x475048], 0
je 0x4042dd
cmp word [0x47521c], 0xd7b2
jne 0x4042a5
cmp dword [0x475224], 0
jbe 0x4042a5
mov eax, 0x475218
call dword [0x475234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47306c
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 0x404304
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x473030], 0
jne 0x4042f9
push 0
push 0x473064
push 0x47306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404438
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.00402a38
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x475049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404400
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406328
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 0x40638e
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.004046f4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030ac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406378
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406395
lea eax, [ebp - 0x10]
call fcn.00404484
ret

Function at 0x40ba40
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 0x40ba79
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404574
jmp 0x40ba82
mov eax, ebx
mov edx, esi
call fcn.004044d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c144
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bfac
mov eax, dword [0x474b70]
cmp byte [eax], 0
je 0x40c1c0
mov eax, dword [0x474880]
call fcn.00402f18
call fcn.00402bc4
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.004090bc
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 0x40c208
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c1f6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x474808]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x475664]
call fcn.00405794
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