joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497116
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6dd0]
jne 0x497120
repz ret
jmp fcn.0049b6a6

Function at 0x4998b0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c6dd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00493ff2
and dword [ebp - 0x14], 0
cmp dword [0x4c9c74], 0
mov dword [ebp - 0x18], eax
jne 0x499963
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x499a0b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a4020
push ebx
call edi
test eax, eax
je 0x499a0b
mov esi, dword [fcn.004903c0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c9c74], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c9c78], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c9c7c], eax
call edi
push eax
call esi
mov dword [0x4c9c84], eax
test eax, eax
je 0x499963
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c9c80], eax
mov eax, dword [0x4c9c80]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.004903c4]
cmp eax, ecx
je 0x4999bc
cmp dword [0x4c9c84], ecx
je 0x4999bc
push eax
call esi
push dword [0x4c9c84]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4999bc
test ebx, ebx
je 0x4999bc
call edi
test eax, eax
je 0x4999b3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4999b3
test byte [ebp - 8], 1
jne 0x4999bc
or dword [ebp + 0x10], 0x200000
jmp 0x4999ef
mov eax, dword [0x4c9c78]
cmp eax, dword [ebp - 0x18]
je 0x4999ef
push eax
call esi
test eax, eax
je 0x4999ef
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4999ef
mov eax, dword [0x4c9c7c]
cmp eax, dword [ebp - 0x18]
je 0x4999ef
push eax
call esi
test eax, eax
je 0x4999ef
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c9c74]
call esi
test eax, eax
je 0x499a0b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x499a0d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00497116
leave
ret
Function at 0x40e791
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x41279f
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x14e543ae
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x496b397d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10004510
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10074f6a
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x1008a2c8]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov eax, dword [0x1008a2c8]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
xor edi, edi
mov eax, ecx
mov dword [esp + 0x14], edi
lea esi, [eax + 1]
jmp 0x10004560
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10004560
sub eax, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
add ecx, eax
mov dword [esp + 0x38], eax
lea edx, [esp + 0x2c]
lea eax, [esp + 0x18]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x28], 0
call fcn.10009620
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax*4 + 0x1007c594]
push ecx
mov dword [esp + 0x28], eax
call eax
add esp, 4
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x24], eax
call fcn.100085c0
mov dword [esp + 0x90], 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.1000b3e0
cmp dword [esp + 0x74], 0
jne 0x1000465a
cmp dword [esp + 0x4c], 3
jne 0x1000465a
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
lea eax, [eax + eax*2]
shl eax, 4
add eax, esi
cmp esi, eax
setne al
test al, al
je 0x1000465a
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
test dword [esi + 0x10], 0x400000
mov eax, esi
jne 0x10004610
mov eax, dword [esi]
mov edx, dword [esp + 0x10]
push eax
push edx
call edi
test eax, eax
jne 0x1000463c
mov eax, dword [esp + 0x40]
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [esp + 0x3c]
add esi, 0x30
cmp esi, eax
setne al
test al, al
jne 0x10004603
mov edi, dword [esp + 0x14]
jmp 0x1000465a
test dword [esi + 0x28], 0x400000
lea eax, [esi + 0x18]
jne 0x1000464a
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
mov dword [esp + 0x90], 0xffffffff
lea edx, [esp + 0x3c]
push edx
call fcn.10008680
mov eax, edi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.1005d632
mov esp, ebp
pop ebp
ret
Function at 0x100046a0
Capabilities:
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x100754d4
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1008a2c8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008a2c8]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x60]
push str.GDT_0_
push ebp
xor ebx, ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100047af
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.GlobalJsonReplaceQQAdView
push str._s__d
push 0x100b3478
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x100b3478
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
cmp edi, ebx
je 0x100047af
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x100047a8
lea eax, [esp + 0x30]
push eax
call fcn.10007ac0
mov dword [esp + 0x58], ebx
lea ecx, [esp + 0x14]
push ecx
mov edx, ebp
call fcn.10007e50
mov byte [esp + 0x58], 1
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x34]
call fcn.1000e6b0
add esp, 4
mov byte [esp + 0x58], bl
lea eax, [esp + 0x14]
push eax
call fcn.10002780
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x10004782
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.10004510
add esp, 4
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x30]
push ecx
call fcn.10002690
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1005d632
add esp, 0x48
ret

Function at 0x100085c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1007272e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1008a2c8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor edi, edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x400
mov byte [esp + 0x18], 1
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
cmp dword [esi + 0x18], edi
jne 0x10008661
push 0x14
call fcn.1005e86e
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x18], 2
cmp eax, edi
je 0x10008654
mov dword [eax], edi
mov dword [eax + 4], 0x10000
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
jmp 0x10008656
xor eax, eax
mov byte [esp + 0x18], 1
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x460957
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.004537f8
and dword [ebp - 4], 0
cmp dword [0x491318], 0
mov ebx, eax
jne 0x460a08
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x460ab9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47aac4
push edi
call esi
test eax, eax
je 0x460ab9
push eax
call fcn.00453786
mov dword [esp], 0x47aab4
push edi
mov dword [0x491318], eax
call esi
push eax
call fcn.00453786
mov dword [esp], 0x47aaa0
push edi
mov dword [0x49131c], eax
call esi
push eax
call fcn.00453786
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x491320], eax
call esi
push eax
call fcn.00453786
pop ecx
mov dword [0x491328], eax
test eax, eax
je 0x460a08
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00453786
pop ecx
mov dword [0x491324], eax
mov eax, dword [0x491324]
cmp eax, ebx
je 0x460a60
cmp dword [0x491328], ebx
je 0x460a60
push eax
call fcn.00453801
push dword [0x491328]
mov esi, eax
call fcn.00453801
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x460a60
test edi, edi
je 0x460a60
call esi
test eax, eax
je 0x460a57
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x460a57
test byte [ebp - 0xc], 1
jne 0x460a60
or dword [ebp + 0x10], 0x200000
jmp 0x460a99
mov eax, dword [0x49131c]
cmp eax, ebx
je 0x460a99
push eax
call fcn.00453801
pop ecx
test eax, eax
je 0x460a99
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x460a99
mov eax, dword [0x491320]
cmp eax, ebx
je 0x460a99
push eax
call fcn.00453801
pop ecx
test eax, eax
je 0x460a99
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x491318]
call fcn.00453801
pop ecx
test eax, eax
je 0x460ab9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x460abb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401674
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
push dword [esi + 0x1420]
call fcn.00401c63
pop ecx
lea edi, [esi + 0x1418]
push ebp
mov ebx, eax
push dword [esi + 0x141c]
push dword [edi]
call dword [0x406020]
push dword [esi + 0x1420]
push ebx
push dword [edi]
call dword [0x40601c]
cmp eax, dword [esi + 0x1420]
jne 0x401705
lea eax, [esi + 0x1210]
push ebp
push eax
call dword [0x406048]
cmp eax, 0xffffffff
mov dword [esi + 0x1424], eax
jne 0x4016e2
lea eax, [esi + 4]
push 0x4071ac
push eax
call dword [0x406004]
push 0x37
jmp 0x401716
xor eax, eax
xor byte [eax + ebx], 7
inc eax
cmp eax, 0x7d0
jl 0x4016e4
push dword [esi + 0x1420]
push ebx
push dword [esi + 0x1424]
call dword [0x406044]
jmp 0x401717
lea eax, [esi + 4]
push 0x407190
push eax
call dword [0x406004]
push 0x36
pop ebp
push ebx
call fcn.00401b7a
mov esi, dword [esi + 0x1424]
pop ecx
cmp esi, 0xffffffff
je 0x401730
push esi
call dword [0x40600c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x403f40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x408
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x404], eax
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0xc]
push 0xffffffffffffffff
push 0x400
push eax
call fcn.00401000
push dword [eax + 4]
push dword [eax]
call fcn.0040867a
add esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.00403f9d
mov esp, ebp
pop ebp
ret

Function at 0x410a47
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4109f0
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x410a0e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x410a6c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
invalid
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x410a53
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x410a5c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je fcn.00410a66
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x410a48
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4109d2
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x410ab9
dec eax
je 0x410ab0
sub eax, 3
je 0x410aa7
mov dword [ebp - 4], 0x40
jmp 0x410ad6
mov dword [ebp - 4], 4
jmp 0x410abc
mov dword [ebp - 4], 0x20
jmp 0x410abc
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x410b08
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x410a88
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00410319
pop edx
test dword [eax + 0x6f], esi
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x410b14
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x402b20
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x402430
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x448c9c], eax
ret

Function at 0x425542
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424d9a

Function at 0x42554d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424fd5

Function at 0x425fc7
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00425def
Function at 0x4028b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4028ed
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x40290d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404598
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403454
Capabilities:
Query or enumerate registry value

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

Function at 0x4041b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44f048], 0
je 0x404215
cmp word [0x44f21c], 0xd7b2
jne 0x4041dd
cmp dword [0x44f224], 0
jbe 0x4041dd
mov eax, 0x44f218
call dword [0x44f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44e054
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 0x40423c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44e01c], 0
jne 0x404231
push 0
push 0x44e074
push 0x44e054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40954c
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 0x409585
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404420
jmp 0x40958e
mov eax, ebx
mov edx, esi
call fcn.00404384
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40a748
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 0x40a7ac
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.00404598
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004084b8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a7b3
lea eax, [ebp - 0xc]
call fcn.00404330
ret

Function at 0x41c350
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x44fa20
cmp dword [edi], 0
jne 0x41c3cc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x44fa1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44e4bc
mov ecx, 2
call fcn.00402948
mov edx, 0x41c328
lea eax, [esi + 5]
call fcn.0041c348
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c348
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 0x41c3a1
mov dword [0x44fa1c], 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 0x41d558
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 0x41d55e
ret
Function at 0x41f960
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41f9b1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f998
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41f988
jmp 0x41f9b1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41f999
pop ebx
mov esp, ebp
pop ebp
ret