joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6ab6b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ecx, ecx
mov eax, dword [edi]
mov cx, word [eax + 0x14]
lea esi, [ecx + eax + 0x18]
mov ecx, dword [edi + 0x3c]
push ecx
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x1c], eax
call fcn.006ab800
push esi
push edi
mov dword [esp + 0x28], eax
call fcn.006ab810
mov ecx, dword [edi]
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x24]
mov eax, 1
add esp, 0x10
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
add esi, 0x28
cmp word [ecx + 6], ax
mov dword [esp + 0x10], eax
jbe 0x6ab7cb
mov ecx, dword [edi + 0x3c]
mov eax, dword [esi + 8]
push ecx
push eax
mov dword [esp + 0x34], eax
call fcn.006ab800
push esi
push edi
mov ebx, eax
call fcn.006ab810
mov edx, dword [esp + 0x24]
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x6ab775
mov eax, dword [esp + 0x1c]
add eax, edx
cmp eax, ebx
ja 0x6ab775
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.006ab840
add esp, 8
test eax, eax
je 0x6ab7eb
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x24]
mov dword [esp + 0x20], eax
jmp 0x6ab7aa
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x20]
test eax, 0x2000000
je 0x6ab793
test ecx, 0x2000000
je 0x6ab793
or ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x6ab79e
or eax, ecx
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
sub ebp, edx
add ebp, eax
mov dword [esp + 0x1c], ebp
mov ecx, dword [edi]
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
mov dx, word [ecx + 6]
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x6ab711
mov eax, 1
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.006ab840
add esp, 8
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x6b0e90
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x6b0ed9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x6b1350
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6e9160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.006b0f00
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.006b0f80
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.006b0f80
lea ecx, [esi + 0xc]
call fcn.006d9a73
lea ecx, [esi + 0x10]
call fcn.006d9a73
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.006b2510
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.006b2510
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.006b2510
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.006d9ae8
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.006d9ae8
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x6b2700
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount_1]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x6b2766
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep_1]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x6b2766
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x6b2747
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x6c860e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x6c872f
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x6c8713
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x6c8665
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x6c8643
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x6c9177
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x6c91ce
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x6c91ce
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x6c91ce
xor eax, eax
inc eax
jmp 0x6c91d0
xor eax, eax
leave
ret 0x10

Function at 0x6c91f9
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x6c9267
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x9dd6ec
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6c925e
cmp dword [ebp - 0xc], 4
jne 0x6c925e
cmp dword [ebp - 0x10], edi
je 0x6c925e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0xa60108], edi
xor eax, eax
jmp 0x6c92a6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0xa60108], edi
jge 0x6c92a1
lea eax, [ebp - 0x34]
push eax
mov dword [0xa60108], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x6c92a1
cmp word [ebp - 0x14], 5
jb 0x6c92a1
call fcn.006c91d4
test eax, eax
je 0x6c92a1
emms
mov dword [0xa60108], 1
mov eax, dword [0xa60108]
pop edi
leave
ret

Function at 0x6dbe8c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6dbec4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.006d9f43
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006d9f1b
jmp 0x6dbed0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6dd57e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x6dd5c0
call fcn.006e333b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6dd5c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6dd5b7
xor eax, eax
jmp 0x6dd5c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006dd5ce
pop edi
pop esi
pop ebx
ret 4
Function at 0x6e386b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x6e3899
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x6e38b7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006e37d1
jmp 0x6e38b7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6e38b7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006e37d1
test edi, edi
mov eax, edi
jne 0x6e38a1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8

Function at 0x402024
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x14]
mov dword [esi], 0x4052c8
cmp dword [edi], ebx
je 0x4020c9
push str._mozilla.org_observer_service_1
mov edx, 0x40585c
mov dword [ebp - 4], ebx
lea ecx, [ebp - 4]
call fcn.004013a1
mov eax, dword [ebp - 4]
test eax, eax
je 0x4020a9
mov ecx, dword [eax]
push ebx
push str.profile_change_net_teardown
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_change_teardown
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_qm
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push ebx
push str.profile_before_change_telemetry
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
xor edx, edx
mov ecx, edi
call fcn.00401339
mov eax, dword [ebp - 4]
test eax, eax
je 0x4020c9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x402100
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.xul.dll_NS_ShutdownXPCOM]
pop ecx
mov ecx, eax
shr ecx, 0x1f
test cl, 1
je 0x402100
push eax
push str.XPCOM_shutdown_failed_with_code_0x_x
call fcn.00402f15
pop ecx
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [esi + 8]
push str.Finished_running__s_tests._n
call fcn.004039ad
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x40211c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x402129
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x402135
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x402145
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esp, ebp
pop ebp
ret
Function at 0x8de3ac
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de3b2
pop ebp
sub ebp, 6
sub ebp, 0x4de3ac
jmp 0x8de410
jmp 0x8de419
mov eax, 0x4de3ac
add eax, ebp
add eax, 0x93
mov ecx, 0x61b
mov edx, 0x55af091e
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de430
jmp 0x8de443
je 0x8de4a3
jbe 0x8de465
push cs
push ds
push ds
jbe 0x8de46a
sal byte [edx], cl
push ds
sub eax, 0x8be14ede
and bh, byte [edi]
pop edx
push ds
dec esi
xchg ebp, eax
rcl dword [ebp + 0x1e1e2297], cl
push ds
lahf
invalid
push ds
push ds
sbb eax, 0x1e18a6d3
sbb byte [esi], bl
push ds
push ds
movsb byte es:[edi], byte [esi]
push ds
push ds
push ds
jmp 0x96640274
push ds
push ds
xchg ebp, eax
mov edx, dword [edx]
push ds
push ds
push ds
xchg ebp, eax
xchg ebx, eax
push cs
push ds
push ds
push ds
fcompi st(7)
sbb al, 0x2f
sbb al, 0x9d
fcomp qword [edx]
push edi
adc dword [ebx - 0x1e1e1e16], ebx
inc ebx
fcom qword [edx]
push ds
xchg ebp, eax
xchg edx, eax
cmp bl, byte [edx]
push ds
push ds
push ds
jbe 0x8de50f
pop ss
push ds
jbe 0x8de523
mov ch, 0x5a
push ds
pop ds
xor bh, byte [edx]
dec edi
neg byte [ebx]
push ds
push ds
push ds
neg dword [edi + 0x1c]
push ds
push ds
dec ebx
xchg ebx, eax
jb 0x8de521
push ds
loope 0x8de555
adc ah, cl
imul edx, dword [esi], 0xfffffff6
insb byte es:[edi], dx
push ds
push ds
push ds
xchg ebp, eax
mov dword [0x1e1e1e16], eax
lahf
out dx, eax
xchg esp, eax
out dx, al
cmp ebp, dword [edx - 0x61]
out dx, eax
xchg esp, eax
out dx, al
cmp ebp, dword [edx + 0x2d]
xlatb
sub eax, 0x1bf69dcc
push esi
adc dword [edx + 0x1e1e1e50], ebx
push eax
push ds
push ds
push ds
adc dword [esi + 0x1e1e1e56], edx
js 0x8de4b0
add ah, byte [edi]
sahf
in eax, 0xf6
adc dword [edx + 0x1e1e1e04], ebx
not byte [ecx]
lcall 0xe59e, 0x1e1e1e04
not dword [ecx]
lcall 0x9f78, 0x1e1e1e0f
push ds
push ds
push ds
sahf
in eax, 0xf7
adc dword [edx + 0x1e1e1e0f], ebx
js 0x8de4d0
in eax, 0xe1
cmp edx, dword [ecx]
lcall 0xf75f, 0x1e1e1e0b
shl cl, cl
loope 0x8de521
aaa
push edx
daa
pop ds
popfd
fistp word [ebx]
popfd
neg byte [edx]
mul dword [ebx + 0x37e1e1e1]
dec edx
daa
sbb al, 0x9d
fistp word [eax]
popfd
hlt
sbb byte [ebp - 0x962e50c], bl
sbb esi, edi
mov ch, 0xe1
loope 0x8de542
inc ebx
fcom qword [edx]
push ds
dec ebx
xchg ebp, eax
dec eax
dec ecx
dec ebx
xchg ebp, eax
imul edx, dword [edx], 0xffffff95
arpl word [esi], dx
loop 0x8de51f
sahf
xchg esp, eax
sbb byte [edi + 0x1e1e1fd8], bl
push ds
xchg esi, eax
sbb dword [edi + 0x1e1e1fd9], ebx
push ds
movsd dword es:[edi], dword [esi]
sbb al, 0x1e
push ds
push ds
sbb al, 0xcc
adc dword [ebx + 0x1e1e1e1b], ebx
xchg esp, eax
or byte [eax + 0xc], bl
int3
Function at 0x407fcf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42fd70]
jne 0x407fd9
repz ret
jmp fcn.0040c2b2

Function at 0x40a768
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.00404b87
and dword [ebp - 4], 0
cmp dword [0x4347f8], 0
mov ebx, eax
jne 0x40a819
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a8ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a8ca
push eax
call fcn.00404b15
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4347f8], eax
call esi
push eax
call fcn.00404b15
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4347fc], eax
call esi
push eax
call fcn.00404b15
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434800], eax
call esi
push eax
call fcn.00404b15
pop ecx
mov dword [0x434808], eax
test eax, eax
je 0x40a819
push 0x42bf28
push edi
call esi
push eax
call fcn.00404b15
pop ecx
mov dword [0x434804], eax
mov eax, dword [0x434804]
cmp eax, ebx
je 0x40a871
cmp dword [0x434808], ebx
je 0x40a871
push eax
call fcn.00404b90
push dword [0x434808]
mov esi, eax
call fcn.00404b90
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a871
test edi, edi
je 0x40a871
call esi
test eax, eax
je 0x40a868
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a868
test byte [ebp - 0xc], 1
jne 0x40a871
or dword [ebp + 0x10], 0x200000
jmp 0x40a8aa
mov eax, dword [0x4347fc]
cmp eax, ebx
je 0x40a8aa
push eax
call fcn.00404b90
pop ecx
test eax, eax
je 0x40a8aa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a8aa
mov eax, dword [0x434800]
cmp eax, ebx
je 0x40a8aa
push eax
call fcn.00404b90
pop ecx
test eax, eax
je 0x40a8aa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4347f8]
call fcn.00404b90
pop ecx
test eax, eax
je 0x40a8ca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a8cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x402ae0
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.004042cc
test esi, esi
jne 0x402b16
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.004043bc
jmp 0x402b34
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029f4
mov edi, eax
test esi, esi
je 0x402b34
cmp dword [ebx], 0
je 0x402b34
dec esi
jmp 0x402b1d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402df4
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4032e8
Capabilities:
Query or enumerate registry value

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

Function at 0x404150
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b004c], 0
je 0x4041b1
cmp word [0x4b0220], 0xd7b2
jne 0x404179
cmp dword [0x4b0228], 0
jbe 0x404179
mov eax, 0x4b021c
call dword [0x4b0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ae070
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 0x4041d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ae034], 0
jne 0x4041cd
push 0
push 0x4ae068
push 0x4ae070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4064b4
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 0x40651a
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.0040453c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e7c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406504
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406521
lea eax, [ebp - 0x10]
call fcn.004042cc
ret

Function at 0x40c1bc
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 0x40c1f5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043bc
jmp 0x40c1fe
mov eax, ebx
mov edx, esi
call fcn.00404320
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c8b0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c728
mov eax, dword [0x4afd24]
cmp byte [eax], 0
je 0x40c92c
mov eax, dword [0x4af9ac]
call fcn.00402c24
call fcn.00402920
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.00409324
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 0x40c974
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c962
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4af930]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b0668]
call fcn.004059ac
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