joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402201
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0x14], 0
je 0x40221f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
test eax, eax
jne 0x40221f
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x800
cmp dword [ebp + 0x14], 0
je 0x40222c
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
jmp 0x402231
mov eax, 0x800
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dbg.iobuf_reserve
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402269
mov eax, 0xfffffff8
jmp 0x40231f
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp + 0x10]
mov ecx, eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
add edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x4022f4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
add eax, edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dbg.iobuf_commit
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp + 0x10]
mov edx, eax
mov eax, dword [ebp - 0x14]
cmp edx, eax
jne 0x4022ed
shl dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x4000
jbe 0x4022e5
mov dword [ebp - 0xc], 0x4000
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, 0
jmp 0x40231f
cmp dword [ebp - 0x14], 0
jne 0x402301
mov eax, 0xfffffc18
jmp 0x40231f
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
cmp eax, 0x2733
jne 0x402316
mov eax, 1
jmp 0x40231f
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
neg eax
leave
ret
Function at 0x402321
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._iobuf_datalen_1
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x14], 0
je 0x402445
cmp dword [ebp - 0xc], 0
jne 0x402414
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x4023aa
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
cmp eax, 0x2733
je 0x4023a0
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
neg eax
jmp 0x402515
mov eax, 1
jmp 0x402515
cmp dword [ebp - 0x10], 0
jne 0x4023ba
mov eax, 0xfffffc18
jmp 0x402515
mov eax, dword [ebp - 0x10]
add dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp + 0x14], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
cmp dword [ebp + 0x14], 0
jne 0x402414
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], 0x21
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
call eax
sub esp, 0xc
test eax, eax
je 0x40240a
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
neg eax
jmp 0x402515
mov eax, 0
jmp 0x402515
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dbg.iobuf_append
test eax, eax
jne 0x40243b
mov eax, 0xfffffff8
jmp 0x402515
mov eax, 1
jmp 0x402515
cmp dword [ebp - 0xc], 0
jne 0x402455
mov eax, 0
jmp 0x402515
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._iobuf_dataptr_1
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jns 0x4024ae
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
cmp eax, 0x2733
je 0x4024a7
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
neg eax
jmp 0x402515
mov eax, 1
jmp 0x402515
cmp dword [ebp - 0x10], 0
jne 0x4024bb
mov eax, 0xfffffc18
jmp 0x402515
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dbg.iobuf_consume
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
jne 0x402510
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], 0x21
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
call eax
sub esp, 0xc
test eax, eax
je 0x402510
mov eax, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call eax
neg eax
jmp 0x402515
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40442c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xb4
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
call sym._rand
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str..pipe_r2tcmd__lu__i
mov dword [esp + 4], 0x7f
lea eax, [ebp - 0x98]
mov dword [esp], eax
call dbg.snprintf
lea eax, [ebp - 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x1388
mov dword [esp + 0x14], 0x2000
mov dword [esp + 0x10], 0x2000
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000001
lea eax, [ebp - 0x98]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
call eax
sub esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4044f7
mov dword [esp], str.CreateNamedPipe
call dbg.syserror
jmp 0x4045cf
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
lea eax, [ebp - 0x98]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40456f
mov dword [esp], str.CreateFile
call dbg.syserror
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 0xffffffff
jmp 0x4045cf
mov eax, dword [ebp + 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
lea edx, [eax*4]
mov eax, dword [ebp + 8]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
call eax
sub esp, 0xc
test eax, eax
jne 0x4045ca
mov dword [esp], str.SetHandleInformation
call dbg.syserror
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.pipe_close
mov eax, 0xffffffff
jmp 0x4045cf
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x404a02
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TerminateProcess]
call eax
sub esp, 8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp + 8]
lea edx, [eax + 0x48]
mov eax, dword [ebp + 8]
add eax, 0x20
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.aio_kill_forward
nop
leave
ret

Function at 0x405210
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf_1
call sym._abort
lea esi, [esi]
Function at 0x405270
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x412a54]
test esi, esi
jle 0x405390
mov eax, dword [0x412a58]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4052a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x405327
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x405290
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4053b7
mov eax, dword [0x412a58]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x412a58]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x405397
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x405320
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x405330
add dword [0x412a54], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x412a58]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x405320
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4052ae
mov eax, dword [0x412a58]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x4058d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x412a70
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x412a68]
sub esp, 4
test ebx, ebx
je 0x405925
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40591e
test esi, esi
je 0x40591e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x405900
mov dword [esp], 0x412a70
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405c60
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x405c85
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x405c90
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x405c85
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x405cd8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x405cce
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x405cda
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x405cc0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x402fc4
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4036d0
Capabilities:
Query or enumerate registry value

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

Function at 0x40457c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4fa04c], 0
je 0x4045dd
cmp word [0x4fa220], 0xd7b2
jne 0x4045a5
cmp dword [0x4fa228], 0
jbe 0x4045a5
mov eax, 0x4fa21c
call dword [0x4fa238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404604
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x482030], 0
jne 0x4045f9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4084b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408540
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408540
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4084f3
test edx, 3
jne 0x4084e2
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4084ed
jmp 0x4084f3
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4084f3
cmp dword [ecx - 8], 1
je 0x4084fd
mov edx, ebx
or edx, 3
call fcn.00404e48
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40850f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046fc

Function at 0x40854c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4085dc
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4085dc
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40858f
test edx, 3
jne 0x40857e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408589
jmp 0x40858f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40858f
cmp dword [ecx - 8], 1
je 0x408599
mov edx, ebx
or edx, 3
call fcn.00404e48
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4085ab
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046fc

Function at 0x408f5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404bc0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408f75
test al, 0x10
je 0x408f79
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40baac
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 0x40bae5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047ec
jmp 0x40baee
mov eax, ebx
mov edx, esi
call fcn.00404750
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40baf8
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 0x40bb1a
movzx eax, byte [esp]
jmp 0x40bb1c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c1ac
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c024
mov eax, dword [0x4f93f8]
cmp byte [eax], 0
je 0x40c228
mov eax, dword [0x4f91d0]
call fcn.00403098
call fcn.00402e08
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.00409138
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 0x40c270
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c25e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4f9174]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4fc7f8]
call fcn.00405b30
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 0x40cb04
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cbda
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404794
lea eax, [ebp - 4]
call fcn.00404c10
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404bc0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cbc4
mov eax, ebx
call fcn.00402cac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cbbd
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 - 4]
call fcn.00404bc0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cba7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cbec
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cba7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbc4
mov eax, dword [ebp - 0x10]
call fcn.00402cc8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbe1
lea eax, [ebp - 4]
call fcn.004046fc
ret
Function at 0x41eb5c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4fd304
cmp dword [edi], 0
jne 0x41ebd8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4fd300]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x482ae8
mov ecx, 2
call fcn.00402e9c
mov edx, 0x41eb34
lea eax, [esi + 5]
call fcn.0041eb54
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041eb54
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41ebad
mov dword [0x4fd300], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42118c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404bc0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4211e4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4f9538]
mov dl, 1
mov eax, dword [0x420cb0]
call fcn.0040c36c
call fcn.00404144
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00420db8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x422374
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42237a
ret
Function at 0x4336e4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404bb0
xor eax, eax
push ebp
push 0x433819
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4337ec
xor edx, edx
push ebp
push 0x4337e5
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x433731
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4337ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x4337a9
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x433770
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00404bc0
lea ecx, [ebx + 1]
mov edx, esi
call fcn.00402e9c
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4337b0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4f9108]
mov dl, 1
mov eax, dword [0x407804]
call fcn.0040c330
call fcn.00404144
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433820
lea eax, [ebp - 4]
call fcn.004046fc
ret