joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b950
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x29c], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404f3c
xor eax, eax
push ebp
push 0x45bae8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x45bb04
call fcn.00405098
mov ebx, eax
test ebx, ebx
jle 0x45b9a5
lea eax, [ebp - 4]
push eax
lea edx, [ebx + 2]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.00404fb4
mov edx, dword [ebp - 4]
mov eax, 0x45bb10
call fcn.00405098
mov ebx, eax
test ebx, ebx
jle 0x45b9cc
lea eax, [ebp - 4]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404fb4
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x45bac0
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.00409438
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x45baa9
mov edx, dword [eax + 0xc]
test edx, edx
je 0x45baa3
mov ebx, dword [edx]
test ebx, ebx
je 0x45ba9d
lea eax, [ebp - 0x29c]
push eax
movzx eax, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
movzx eax, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
movzx eax, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
movzx eax, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x45bb1c
call fcn.00409aa8
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.00404b10
mov byte [ebp - 5], 1
jmp 0x45baad
mov byte [ebp - 5], 0
jmp 0x45baad
mov byte [ebp - 5], 0
jmp 0x45baad
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bac7
call sub.wsock32.dll_WSACleanup
ret
Function at 0x45bb28
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f3c
mov eax, dword [ebp - 8]
call fcn.00404f3c
xor eax, eax
push ebp
push 0x45bc19
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov dl, 1
mov eax, dword [0x421498]
call fcn.00421598
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x45bbf7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x45bbd7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x10]
call fcn.00421674
mov cl, 1
mov edx, 0x45bc34
mov eax, dword [ebp - 0x10]
call fcn.004216d8
test bl, bl
je 0x45bbb6
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00421a64
jmp 0x45bbc1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.004219cc
mov eax, dword [ebp - 0x10]
call fcn.00421644
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45bbe1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bbfe
mov eax, dword [ebp - 0x10]
call fcn.00403bf4
ret
Function at 0x45d2fc
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x45d453
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor edi, edi
push 0
push 0
push 0
push 0
push 0x45d468
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45d43a
push 0
push 0x80000000
push 0
push 0
mov eax, ebx
call fcn.00404f4c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov ebx, eax
test ebx, ebx
jne 0x45d378
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x45d43a
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00404f4c
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x45d3b3
push ebx
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x45d43a
lea eax, [ebp - 0x10]
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
push ebx
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x10], 0
je 0x45d3ef
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x414]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x45d3ef
add edi, dword [ebp - 0x14]
jmp 0x45d3b3
push esi
call sub.kernel32.dll_CloseHandle
push ebx
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp edi, 0xc350
seta byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x45d43a
mov eax, dword [ebp - 4]
call fcn.00404f4c
mov edx, eax
lea eax, [ebp - 0x418]
call fcn.00404cb4
mov eax, dword [ebp - 0x418]
call fcn.00404f4c
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d45a
lea eax, [ebp - 0x418]
call fcn.00404abc
ret

Function at 0x45d758
Capabilities:
Terminate process

Disassembly:
push ebx
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
push ebx
call sub.kernel32.dll_CloseHandle
pop ebx
ret
Function at 0x402468
Capabilities:
Encode data using xor

Disassembly:
and eax, sym.imp.MSVBVM60.DLL___vbaVarAbs
jmp dword [sym.imp.MSVBVM60.DLL___vbaAryVar]
push 0x402838
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
adc esp, esp
wait
and esi, edi
cmp eax, 0xbf864176
cdq
dec ebp
jne 0x40243f
and eax, 0xf9
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [0x30303043], ch
sub eax, 0xccb3a4b9
xor dword [eax], eax
xor byte [eax], dh
add byte [eax], al
add byte [eax], al
dec esp
xor dword [eax], eax
add al, 0x4d
jbe 0x402536
jb 0x4024cd
aad 0x35
dec esi
popfd
aam 0xfe
rol dword [edx - 0x190012e3], cl
dec edx
jnp 0x402495
inc ebx
and al, 0xe8
dec esi
lcall 0x2b2b, 0x514748df
push 0x33ad4f3a
cdq
iret
invalid
Function at 0x45aaf4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
test dl, dl
je 0x45ab05
add esp, 0xfffffff0
call fcn.0040412c
mov ebx, edx
mov esi, eax
cmp byte [ebp + 8], 0
je 0x45ab1d
cmp word [ecx], 0x25ff
jne 0x45ab1d
add ecx, 2
mov eax, dword [ecx]
mov ecx, dword [eax]
mov dword [esi + 0x14], ecx
mov eax, dword [ebp + 0xc]
sub eax, ecx
sub eax, 5
mov byte [esi + 8], 0xe9
mov edx, eax
and dl, 0xff
mov byte [esi + 9], dl
mov edx, eax
shr edx, 8
and dl, 0xff
mov byte [esi + 0xa], dl
mov edx, eax
shr edx, 0x10
and dl, 0xff
mov byte [esi + 0xb], dl
shr eax, 0x18
and al, 0xff
mov byte [esi + 0xc], al
mov eax, dword [esi + 0x14]
movzx eax, byte [eax]
mov byte [esi + 0xd], al
mov eax, dword [esi + 0x14]
movzx eax, byte [eax + 1]
mov byte [esi + 0xe], al
mov eax, dword [esi + 0x14]
movzx eax, byte [eax + 2]
mov byte [esi + 0xf], al
mov eax, dword [esi + 0x14]
movzx eax, byte [eax + 3]
mov byte [esi + 0x10], al
mov eax, dword [esi + 0x14]
movzx eax, byte [eax + 4]
mov byte [esi + 0x11], al
lea eax, [esi + 4]
push eax
push 0x40
push 5
mov eax, dword [esi + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x45ab9d
call fcn.0040d744
mov eax, esi
call fcn.0045ac34
mov eax, esi
test bl, bl
je 0x45abb9
call fcn.00404184
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0xde3348
Capabilities:
Encode data using xor

Disassembly:
jmp 0xde3352
pushal
call 0xde3358
pop ebp
sub ebp, 0x10
sub ebp, 0x9e3348
jmp 0xde336e
mov eax, 0x9e3348
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c0
mov edx, 0xe357ee3a
xor byte [eax], dl
inc eax
dec ecx
jne 0xde3385
jmp 0xde3398
mov cl, 0xf7
mov cl, 0xb3
push es
cmp bh, byte [edx]
cmp bh, byte [ebx + 0x3a3ac2fb]
cmp bh, byte [ecx]
test dword [edx + 0x3a3a3a3d], 0x3a3a1280
cmp cl, ch
fdivr dword [ecx]
mov cl, 0xbb
cmp bh, byte ss:[edx]
cmp bh, byte [ecx]
push dword [edi - 0x4c39e1a2]
push ds
mov bh, 0x5e
push ds
invalid
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Create thread
Execute command
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str._riirY
mov ecx, 0x1e
lea edi, [ebp - 0x7c]
mov esi, str.F:VisualStudio2022codeplug_ininjectLibDebugMFC001.dll
rep movsd dword es:[edi], dword [esi]
push str.MainWindow
call dword [sym.imp.USER32.dll_FindWindowW]
lea ecx, [ebp - 0x80]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x80]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x40
push 0x1000
push 0x1000
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
mov esi, eax
lea eax, [ebp - 0x7c]
push 0x500
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x4010d0
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0
push 0
push esi
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.0040112e
mov esp, ebp
pop ebp
ret

Function at 0x401933
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x403b50
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040a5de
add esp, 0x18
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404610
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x404730
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4193b0]
xor eax, ebp
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x400
mov ecx, dword [ebp - 0x214]
push ecx
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x415608
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0
push str.Error
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4047d0
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x14], eax
push 0x41564c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x41a2e8], eax
push str.IsWow64Process
mov eax, dword [0x41a2e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40481a
push 0x41a2e4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0xc]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 4
call fcn.00405060
add esp, 4
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
mov ecx, 0x41a2f4
call fcn.004052a0
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 2
jge 0x4048e6
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push 0x415678
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x404898
push str.algebra.dat
call fcn.00404730
add esp, 4
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
push 0x40
push 0x1000
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x18], eax
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
push eax
call eax
ret
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00404670
add esp, 8
mov dword [ebp - 8], eax
mov ecx, 0x41a2f4
call fcn.004053f0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41018d
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.0040b326
and dword [ebp - 4], 0
cmp dword [0x41ae84], 0
mov ebx, eax
jne 0x41023e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4102ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4102ef
push eax
call fcn.0040b2b4
mov dword [esp], 0x416a68
push edi
mov dword [0x41ae84], eax
call esi
push eax
call fcn.0040b2b4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41ae88], eax
call esi
push eax
call fcn.0040b2b4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41ae8c], eax
call esi
push eax
call fcn.0040b2b4
pop ecx
mov dword [0x41ae94], eax
test eax, eax
je 0x41023e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b2b4
pop ecx
mov dword [0x41ae90], eax
mov eax, dword [0x41ae90]
cmp eax, ebx
je 0x410296
cmp dword [0x41ae94], ebx
je 0x410296
push eax
call fcn.0040b32f
push dword [0x41ae94]
mov esi, eax
call fcn.0040b32f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410296
test edi, edi
je 0x410296
call esi
test eax, eax
je 0x41028d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41028d
test byte [ebp - 0xc], 1
jne 0x410296
or dword [ebp + 0x10], 0x200000
jmp 0x4102cf
mov eax, dword [0x41ae88]
cmp eax, ebx
je 0x4102cf
push eax
call fcn.0040b32f
pop ecx
test eax, eax
je 0x4102cf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4102cf
mov eax, dword [0x41ae8c]
cmp eax, ebx
je 0x4102cf
push eax
call fcn.0040b32f
pop ecx
test eax, eax
je 0x4102cf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41ae84]
call fcn.0040b32f
pop ecx
test eax, eax
je 0x4102ef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4102f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x61cd7ce2
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x11715f29
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x402c00
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x544008], 0x8088405
inc edx
mov dword [ebx + 0x544008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403088
Capabilities:
Query or enumerate registry value

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

Function at 0x403e74
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x54904c], 0
je 0x403ed5
cmp word [0x549220], 0xd7b2
jne 0x403e9d
cmp dword [0x549228], 0
jbe 0x403e9d
mov eax, 0x54921c
call dword [0x549238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x544070
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 0x403efc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x544034], 0
jne 0x403ef1
push 0
push 0x544068
push 0x544070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404048
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.00402724
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x54904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404010
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405808
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 0x405a38
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40588b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40588b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405a54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405914
xor eax, eax
push ebp
push 0x40590d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405650
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 0x4058f2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405a74
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4058f2
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 0x405914
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 0x405a2e
cmp byte [ebp - 0xd], 0
jne 0x40595b
cmp byte [ebp - 0x12], 0
je 0x405a2e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405974
dec ebx
cmp byte [ebx], 0x2e
je 0x405983
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405973
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405a2e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4059c0
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 0x405a2e
cmp byte [ebp - 0xd], 0
je 0x405a2e
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 0x405a2e
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