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

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4e44f2
mov eax, ebx
call fcn.004e4f78
cmp dword [ebx + 0x40], 0
je 0x4e44eb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4e4563
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4e4555
cmp dword [ebx + 8], 0
je 0x4e4514
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4e4526
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4e4555
cmp dword [ebx + 8], 0
je 0x4e4507
cmp eax, 3
je 0x4e4539
dec eax
jne 0x4e4507
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4e4507
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4e4507
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4e4581
cmp dword [ebx + 0x14], 0xcc
je 0x4e4581
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004e458c
pop ebx
ret

Function at 0x50034c
Capabilities:
Find taskbar

Disassembly:
push 0
push 0x500370
call sub.user32.dll_FindWindowA
test eax, eax
je 0x50036c
push 0
push 0x500380
push 0
push eax
call sub.user32.dll_FindWindowExA
ret
xor eax, eax
ret

Function at 0x52578c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov eax, esi
mov edx, ebx
call fcn.004048f4
test ebx, ebx
je 0x525861
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x525868
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x525858
xor eax, eax
push ebp
push 0x525851
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov eax, ebx
call fcn.00404d7c
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x52583a
cmp dword [ebp - 4], 0
jbe 0x52583a
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404f08
lea eax, [ebp - 4]
push eax
mov eax, esi
call fcn.00404dd4
push eax
push 0
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x525831
mov eax, esi
mov edx, dword [esi]
call fcn.004048f4
jmp 0x52583a
mov eax, esi
mov edx, ebx
call fcn.004048f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525861
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, esi
mov edx, ebx
call fcn.004048f4
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x402ee5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.ADVAPI32.dll
push str.RegCloseKey
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.RegOpenKeyExA
push ebx
mov dword [ebp - 0x28], eax
call esi
push eax
call edi
push reloc.user32.dll_EndPaint
mov dword [ebp - 0x30], eax
xor edx, edx
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], dl
mov byte [ebp - 0x24], 0x53
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp - 0x24]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0x23], 0x59
mov byte [ebp - 0x22], 0x53
mov byte [ebp - 0x21], 0x54
mov byte [ebp - 0x20], 0x45
mov byte [ebp - 0x1f], 0x4d
mov byte [ebp - 0x1e], 0x5c
mov byte [ebp - 0x1d], 0x43
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x72
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x43
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6e
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6f
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x53
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x74
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x53
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x76
mov byte [ebp - 7], 0x69
mov byte [ebp - 6], 0x63
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0x73
mov byte [ebp - 3], 0x5c
mov byte [ebp - 2], dl
lea ebx, [ebp - 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [ebp - 0x134]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
push 0xf003f
lea eax, [ebp - 0x134]
and ecx, 3
push edx
push eax
rep movsb byte es:[edi], byte [esi]
push 0x80000002
call dword [ebp - 0x30]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x403040
push dword [ebp - 0x2c]
call dword [ebp - 0x28]
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x403853
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00402ee5
test eax, eax
pop ecx
je 0x4038a7
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x4035da
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push reloc.user32.dll_EndPaint
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402bc0
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.00403044
add esp, 0x18
call fcn.00402130
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401000
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebx
push edi
push esi
sub esp, 0x1c
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], str.Moz__1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
sub esp, 0x14
test eax, eax
je 0x4010c6
mov esi, eax
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x50
mov dword [esp + 4], str.www.wingtiptoys.com
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
sub esp, 0x10
test eax, eax
je 0x4010b8
mov edi, eax
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp], eax
mov dword [esp + 8], 0x411e5c
mov dword [esp + 4], 0x411dfa
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
sub esp, 0x1c
test eax, eax
je 0x4010ac
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
sub esp, 0x1c
mov dword [esp], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 0x18
jmp 0x4010c9
add esp, 0x1c
pop esi
pop edi
pop ebx
ret
Function at 0x4010d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
mov eax, 0x1040
call fcn.004021a0
mov eax, dword [0x416044]
xor eax, ebp
mov dword [esp + 0x1038], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
lea edi, [esp + 0x38]
push 0x1000
push 0
push edi
call fcn.00403680
add esp, 0xc
push 0x1000
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x411df6
push edi
call ebx
push dword [ebp + 8]
push edi
call ebx
lea eax, [esp + 0x28]
push 0xc
push eax
mov dword [esp + 0x24], esi
push esi
push dword [esp + 0x1c]
call sub.KERNEL32.dll_K32GetModuleInformation
mov esi, dword [esp + 0x28]
sub esp, 0x1c
movaps xmm0, xmmword [section..rdata]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x18
movaps xmm0, xmmword [0x40f010]
movups xmmword [esp + 4], xmm0
mov dword [esp + 0x30], eax
mov dword [esp], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
sub esp, 0x14
movaps xmm0, xmmword [0x40f020]
movups xmmword [esp + 4], xmm0
mov dword [esp + 0x28], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x3c]
mov dword [esp + 4], esi
mov eax, ecx
mov dword [esp + 0xc], ecx
movzx eax, word [ecx + esi + 6]
mov word [esp + 0xa], ax
test ax, ax
je 0x4012ad
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
lea edi, [ecx + eax]
add edi, 0x18
xor esi, esi
jmp 0x401221
inc esi
movzx eax, word [esp + 0xa]
add edi, 0x28
cmp esi, eax
jae 0x4012ad
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
movzx ebx, word [eax + ecx + 0x14]
add ebx, edi
push str..text
push ebx
call fcn.004049c0
add esp, 8
test eax, eax
jne 0x401210
mov dword [esp + 0x24], 0
mov eax, dword [ebx + 0xc]
add eax, dword [esp + 4]
lea ecx, [esp + 0x24]
push ecx
push 0x40
push dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 4]
add ecx, eax
add eax, dword [esp + 0x20]
push dword [ebx + 8]
push eax
push ecx
call fcn.00403100
add esp, 0xc
mov eax, dword [ebx + 0xc]
add eax, dword [esp + 4]
lea ecx, [esp + 0x24]
push ecx
push dword [esp + 0x28]
push dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
movzx eax, word [ecx + eax + 6]
mov word [esp + 0xa], ax
jmp 0x401210
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call esi
push dword [esp + 0x18]
call esi
push dword [esp + 0x14]
call esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x1038]
xor ecx, ebp
call fcn.0040218a
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401620
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x416044]
xor eax, ebp
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
push 0x411c68
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [esp + 0x20]
push 0xc
push ecx
push eax
mov dword [esp + 0x20], esi
push esi
call sub.KERNEL32.dll_K32GetModuleInformation
mov esi, dword [esp + 0x20]
sub esp, 0x1c
movaps xmm0, xmmword [section..rdata]
movups xmmword [esp + 4], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp], str.c:windows_system32_ntdll.dll
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x18
movaps xmm0, xmmword [0x40f010]
movups xmmword [esp + 4], xmm0
mov dword [esp + 0x28], eax
mov dword [esp], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
sub esp, 0x14
movaps xmm0, xmmword [0x40f020]
movups xmmword [esp + 4], xmm0
mov dword [esp + 0x20], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x3c]
mov dword [esp], esi
mov eax, ecx
mov dword [esp + 8], ecx
movzx eax, word [ecx + esi + 6]
mov word [esp + 6], ax
test ax, ax
je 0x4017b8
mov eax, dword [esp]
mov ecx, dword [esp + 8]
lea esi, [ecx + eax]
add esi, 0x18
xor ebx, ebx
jmp 0x401731
inc ebx
movzx eax, word [esp + 6]
add esi, 0x28
cmp ebx, eax
jae 0x4017b8
mov eax, dword [esp]
mov ecx, dword [esp + 8]
movzx edi, word [eax + ecx + 0x14]
add edi, esi
push str..text
push edi
call fcn.004049c0
add esp, 8
test eax, eax
jne 0x401720
mov dword [esp + 0x1c], 0
mov eax, dword [edi + 0xc]
add eax, dword [esp]
lea ecx, [esp + 0x1c]
push ecx
push 0x40
push dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 0xc]
mov ecx, dword [esp]
add ecx, eax
add eax, dword [esp + 0x18]
push dword [edi + 8]
push eax
push ecx
call fcn.00403100
add esp, 0xc
mov eax, dword [edi + 0xc]
add eax, dword [esp]
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x20]
push dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 8]
mov ecx, dword [esp]
movzx eax, word [ecx + eax + 6]
mov word [esp + 6], ax
jmp 0x401720
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x14]
call esi
push dword [esp + 0x10]
call esi
push dword [esp + 0xc]
call esi
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.0040218a
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4028db
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40291a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40291a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40291a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40291a
cmp dword [ecx + 0x74], 0xe
jbe 0x40291a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x404e10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404e3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404e3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x405160
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40f7b8
push 0x40f7b0
push str.FlsAlloc
push 0x1e
call fcn.00405443
mov esi, eax
add esp, 0x10
test esi, esi
je 0x405194
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x40519a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4051de
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40f7c8
push 0x40f7c0
push str.FlsGetValue
push 0x20
call fcn.00405443
mov esi, eax
add esp, 0x10
test esi, esi
je 0x405215
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x408f65
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x409002
push ebx
push esi
call fcn.00409005
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408eae
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x408faf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409001
push edi
push eax
call fcn.0040797f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x408fcf
call fcn.0040666a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409000
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408eae
add esp, 0x20
test eax, eax
jne 0x408fee
push edi
call fcn.0040666a
jmp 0x408ff6
push ebx
call fcn.0040666a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x402920
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 0x40295d
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 0x40297d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040431c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402ae4
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.004040ac
test esi, esi
jne 0x402b1a
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.0040419c
jmp 0x402b38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f8
mov edi, eax
test esi, esi
je 0x402b38
cmp dword [ebx], 0
je 0x402b38
dec esi
jmp 0x402b21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031cc
Capabilities:
Query or enumerate registry value

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

Function at 0x403f30
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49804c], 0
je 0x403f91
cmp word [0x498220], 0xd7b2
jne 0x403f59
cmp dword [0x498228], 0
jbe 0x403f59
mov eax, 0x49821c
call dword [0x498238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49606c
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 0x403fb8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x496030], 0
jne 0x403fad
push 0
push 0x496064
push 0x49606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ed4
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 0x405f3a
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.0040431c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d90
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f24
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f41
lea eax, [ebp - 0x10]
call fcn.004040ac
ret

Function at 0x40b3b0
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 0x40b3e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040419c
jmp 0x40b3f2
mov eax, ebx
mov edx, esi
call fcn.00404100
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40baa4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b91c
mov eax, dword [0x497e38]
cmp byte [eax], 0
je 0x40bb20
mov eax, dword [0x497c04]
call fcn.00402bfc
call fcn.004028ac
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.00408bdc
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 0x40bb68
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb56
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x497ba4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x498668]
call fcn.004053cc
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