joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ca0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x508
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x504], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.0040a180
push 0x3ff
lea ecx, [esp + 0x115]
push 0
push ecx
mov byte [esp + 0x11c], 0
call fcn.0040a180
add esp, 0x18
push 0x102
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x403d04
push str.Fail_To_Get_SYSTEM_Dir_n
jmp 0x403d5f
lea eax, [esp]
push eax
push str._sdriversetchosts
lea ecx, [esp + 0x10c]
push 0x3fe
push ecx
call fcn.00403470
lea edx, [esp + 0x114]
push edx
call fcn.00401430
add esp, 0x14
test al, al
jne 0x403d3a
push str.Hosts_Doesnt_Exist_n
jmp 0x403d5f
lea eax, [esp + 0x104]
push str._r_n127.0.0.1_serv1.love_network.cc_r_n127.0.0.1_c.getmoney.company_r_n
push eax
call fcn.004014a0
add esp, 8
test al, al
je 0x403d5a
push str.Set_Hosts_Successfully_n
jmp 0x403d5f
push str.Fail_To_Set_Hosts_n
call fcn.0040a0a0
mov ecx, dword [esp + 0x508]
add esp, 4
xor ecx, esp
call fcn.0040a165
add esp, 0x508
ret

Function at 0x405950
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push edi
mov edi, dword [esp + 0x138]
push 0x124
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.0040a180
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4059e2
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x4059d7
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4059cc
cmp eax, 4
je 0x4059cc
cmp eax, 8
je 0x4059cc
push edi
push eax
call fcn.00405410
add esp, 8
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4059b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
pop edi
pop esi
xor ecx, esp
call fcn.0040a165
add esp, 0x12c
ret
Function at 0x405a00
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0xa3c
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0xa38], eax
push ebx
xor ebx, ebx
push 0xfe
lea eax, [esp + 0x3d]
push ebx
push eax
mov byte [esp + 0x44], bl
call fcn.0040a180
push 0x103
lea ecx, [esp + 0x149]
push ebx
push ecx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x150], bl
call fcn.0040a180
add esp, 0x18
lea edx, [esp + 4]
push edx
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServices
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c2e
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push ebx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x160]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
je 0x405b08
cmp eax, 0xea
jne 0x405af5
push str.More_Data_n
call fcn.0040a0a0
add esp, 4
jmp 0x405c23
push eax
push 0x41c154
call fcn.0040a0a0
add esp, 8
jmp 0x405c23
mov eax, dword [esp + 8]
cmp eax, ebx
jbe 0x405c23
push esi
xor esi, esi
cmp eax, ebx
jbe 0x405c22
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x54]
push ecx
push esi
push edx
mov dword [esp + 0x34], 0xff
call ebp
test eax, eax
jne 0x405c16
push 0x3ff
lea eax, [esp + 0x249]
push ebx
push eax
mov byte [esp + 0x250], bl
call fcn.0040a180
push 0x3ff
lea ecx, [esp + 0x655]
push ebx
push ecx
mov byte [esp + 0x65c], bl
call fcn.0040a180
lea edx, [esp + 0x58]
push edx
push str.SYSTEMCurrentControlSetServices_sSecurity
lea eax, [esp + 0x264]
push 0x3fe
push eax
call fcn.00403470
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x670]
push edx
push 3
push str.Security
lea eax, [esp + 0x27c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x60], 0x400
call fcn.00401530
add esp, 0x40
test al, al
je 0x405c16
lea ecx, [esp + 0x40]
push ecx
call fcn.00402830
add esp, 4
test al, al
je 0x405c16
lea edx, [esp + 0x40]
push edx
push str.Service_Name_t:__s_n
call fcn.0040a0a0
lea eax, [esp + 0x48]
push eax
call fcn.00402890
lea ecx, [esp + 0x4c]
push ecx
call fcn.00402970
push 0x41b2cc
call fcn.0040a0a0
add esp, 0x14
inc esi
cmp esi, dword [esp + 0x10]
jb 0x405b26
pop ebp
pop esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xa3c]
pop ebx
xor ecx, esp
xor al, al
call fcn.0040a165
add esp, 0xa3c
ret
Function at 0x405c50
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0xa3c
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0xa38], eax
push ebx
push esi
mov esi, dword [esp + 0xa48]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x141]
push ebx
push eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x148], bl
call fcn.0040a180
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x164]
push ecx
push esi
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x405e5a
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x405e5a
xor esi, esi
cmp eax, ebx
jbe 0x405e5a
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, edi
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x54]
push ecx
push esi
push edx
mov dword [esp + 0x30], 0xff
call ebp
test eax, eax
jne 0x405e4e
lea eax, [esp + 0x40]
push str.Local_Port
push eax
call fcn.0040a38f
add esp, 8
test eax, eax
je 0x405e4e
lea ecx, [esp + 0x40]
push str.Microsoft_Shared_Fax_Monitor
push ecx
call fcn.0040a38f
add esp, 8
test eax, eax
je 0x405e4e
lea edx, [esp + 0x40]
push str.Standard_TCP_IP_Port
push edx
call fcn.0040a38f
add esp, 8
test eax, eax
je 0x405e4e
lea eax, [esp + 0x40]
push str.USB_Monitor
push eax
call fcn.0040a38f
add esp, 8
test eax, eax
je 0x405e4e
lea ecx, [esp + 0x40]
push str.WSD_Port
push ecx
call fcn.0040a38f
add esp, 8
test eax, eax
je 0x405e4e
push 0x3ff
lea edx, [esp + 0x249]
push ebx
push edx
mov byte [esp + 0x250], bl
call fcn.0040a180
push 0x3ff
lea eax, [esp + 0x655]
push ebx
push eax
mov byte [esp + 0x65c], bl
call fcn.0040a180
lea ecx, [esp + 0x58]
push ecx
push str.SYSTEMCurrentControlSetControlPrintMonitors_s
lea edx, [esp + 0x264]
push 0x3fe
push edx
call fcn.00403470
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x670]
push ecx
push 1
push str.Driver
lea edx, [esp + 0x27c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x5c], 0x400
call fcn.00401530
add esp, 0x40
test al, al
je 0x405e4e
lea eax, [esp + 0x644]
push eax
lea ecx, [esp + 0x248]
push ecx
push str._s_n_s_n
call fcn.0040a0a0
add esp, 0xc
inc esi
cmp esi, dword [esp + 0xc]
jb 0x405d00
pop ebp
mov ecx, dword [esp + 0xa40]
pop esi
pop ebx
xor ecx, esp
call fcn.0040a165
add esp, 0xa3c
ret
Function at 0x406960
Capabilities:
Create process on windows
Self delete

Disassembly:
sub esp, 0x6c
push ebx
push edi
xor ebx, ebx
push 0x48
lea eax, [esp + 0x30]
push ebx
push eax
mov byte [esp + 0x17], bl
mov dword [esp + 0x18], ebx
call fcn.0040a180
xor eax, eax
add esp, 0xc
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x70], ebx
cmp dword [esp + 0x78], ebx
je 0x406b5e
push esi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
je 0x406b37
push str.NtResumeThread
push str.ntdll.dll
call fcn.00401030
add esp, 8
test al, al
je 0x4069f5
push str.NtResumeThread_Hooked_n
call fcn.0040a0a0
push str.ntdll.dll
call fcn.004034d0
add esp, 8
test al, al
je 0x4069f5
push str.Module_ntdll.dll_Restored_n
call fcn.0040a0a0
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push str.InitializeProcThreadAttributeList
push esi
call edi
push str.UpdateProcThreadAttribute
push esi
mov ebp, eax
call edi
push str.DeleteProcThreadAttributeList
push esi
mov dword [esp + 0x20], eax
call edi
mov edi, eax
cmp ebp, ebx
je 0x406b29
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x406b29
cmp edi, ebx
je 0x406b29
lea ecx, [esp + 0x14]
push ecx
push ebx
push 1
push ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x406a55
push str.InitializeProThread_Failure
jmp 0x406b2e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x78], eax
cmp eax, ebx
jne 0x406a76
push str.Set_Attribute_List_Failure_n
jmp 0x406b2e
lea edx, [esp + 0x14]
push edx
push ebx
push 1
push eax
call ebp
test eax, eax
jne 0x406a8f
push str.NT_InitializeProcThreadAttributeList
jmp 0x406b2e
mov ecx, dword [esp + 0x78]
push ebx
push ebx
push 8
lea eax, [esp + 0x28]
push eax
push 0x20007
push ebx
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0x1000
call esi
test eax, eax
jne 0x406abc
push str.NT_UpdateProcThreadAttribute
jmp 0x406b2e
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push 0x80000
push ebx
push ebx
push ebx
push ecx
push ebx
mov dword [esp + 0x5c], 0x48
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406b13
push str.Create_Application_Successfully_n
call fcn.0040a0a0
mov edx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edx
mov byte [esp + 0x17], 1
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
jmp 0x406b36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Fail_To_Create_Application__d_n
call fcn.0040a0a0
add esp, 8
jmp 0x406b36
push str.OS_Not_Supports_n
call fcn.0040a0a0
add esp, 4
pop ebp
mov eax, dword [esp + 0x74]
pop esi
cmp eax, ebx
je 0x406b5a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp edi, ebx
je 0x406b5a
mov ecx, dword [esp + 0x70]
push ecx
call edi
mov al, byte [esp + 0xb]
pop edi
pop ebx
add esp, 0x6c
ret
Function at 0x407f60
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x407f94
push esi
call fcn.004017f0
add esp, 4
test al, al
je 0x407f89
push esi
call fcn.0040b441
add esp, 4
pop esi
mov dword [esp + 4], eax
jmp fcn.004019d0
push 2
push esi
call fcn.00404aa0
add esp, 8
pop esi
ret
Function at 0x4094d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
xor ebx, ebx
push esi
push edi
cmp eax, ebx
je 0x40953b
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x40953b
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x40953b
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push eax
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40952a
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
push ebx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40952a
mov bl, 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x409550
Capabilities:
Get os information via kuser_shared_data

Disassembly:
push esi
push 8
mov esi, 0x7ffe026c
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40957f
mov ecx, dword [esi]
mov eax, dword [esp + 8]
mov dword [eax], ecx
mov edx, dword [0x7ffe0270]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
cmp dword [eax], 5
pop esi
sbb eax, eax
inc eax
ret
xor al, al
pop esi
ret
Function at 0x40a165
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421e3c]
jne 0x40a16f
repz ret
jmp fcn.0040d0dd

Function at 0x416672
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040de02
and dword [ebp - 4], 0
cmp dword [0x423b54], 0
mov ebx, eax
jne 0x416723
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4167d4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4167d4
push eax
call fcn.0040dd90
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423b54], eax
call esi
push eax
call fcn.0040dd90
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423b58], eax
call esi
push eax
call fcn.0040dd90
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423b5c], eax
call esi
push eax
call fcn.0040dd90
pop ecx
mov dword [0x423b64], eax
test eax, eax
je 0x416723
push 0x41ef34
push edi
call esi
push eax
call fcn.0040dd90
pop ecx
mov dword [0x423b60], eax
mov eax, dword [0x423b60]
cmp eax, ebx
je 0x41677b
cmp dword [0x423b64], ebx
je 0x41677b
push eax
call fcn.0040de0b
push dword [0x423b64]
mov esi, eax
call fcn.0040de0b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41677b
test edi, edi
je 0x41677b
call esi
test eax, eax
je 0x416772
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416772
test byte [ebp - 0xc], 1
jne 0x41677b
or dword [ebp + 0x10], 0x200000
jmp 0x4167b4
mov eax, dword [0x423b58]
cmp eax, ebx
je 0x4167b4
push eax
call fcn.0040de0b
pop ecx
test eax, eax
je 0x4167b4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4167b4
mov eax, dword [0x423b5c]
cmp eax, ebx
je 0x4167b4
push eax
call fcn.0040de0b
pop ecx
test eax, eax
je 0x4167b4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423b54]
call fcn.0040de0b
pop ecx
test eax, eax
je 0x4167d4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4167d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x7ff928
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7ff932
pushal
call 0x7ff938
pop ebp
sub ebp, 0x10
sub ebp, 0x3ff928
jmp 0x7ff94e
mov eax, 0x3ff928
add eax, ebp
add eax, 0x4c
mov ecx, 0x608
mov edx, 0xec333406
xor byte [eax], dl
inc eax
dec ecx
jne 0x7ff965
jmp 0x7ff978
invalid
Function at 0x4033e8
Capabilities:
Query or enumerate registry value

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

Function at 0x404228
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ad044], 0
je 0x404289
cmp word [0x4ad218], 0xd7b2
jne 0x404251
cmp dword [0x4ad220], 0
jbe 0x404251
mov eax, 0x4ad214
call dword [0x4ad230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a506c
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 0x4042b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a5030], 0
jne 0x4042a5
push 0
push 0x4a5064
push 0x4a506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404404
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.00402a80
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4ad045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4043cc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40640c
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 0x406472
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.004046c0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f88
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40645c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406479
lea eax, [ebp - 0x10]
call fcn.00404450
ret

Function at 0x40beb4
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 0x40beed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404540
jmp 0x40bef6
mov eax, ebx
mov edx, esi
call fcn.004044a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c5b8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c420
mov eax, dword [0x4ac470]
cmp byte [eax], 0
je 0x40c634
mov eax, dword [0x4ac1a4]
call fcn.00402df4
call fcn.00402c0c
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.00408f14
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 0x40c67c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c66a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ac130]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ad660]
call fcn.00405878
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 0x40ced8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cfae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004044e8
lea eax, [ebp - 8]
call fcn.00404960
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404910
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cf98
mov eax, ebx
call fcn.00402a80
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cf91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404910
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cf7b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cfc0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cf7b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf98
mov eax, dword [ebp - 0x10]
call fcn.00402ab0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfb5
lea eax, [ebp - 8]
call fcn.00404450
ret

Function at 0x40d588
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 0x40d5ec
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.004046c0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a28
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d5f3
lea eax, [ebp - 0xc]
call fcn.00404450
ret

Function at 0x420454
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.00420280
dec esi
jne 0x420476
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret