joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487cf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x487d84
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4b4f9c]
cmp dword [eax], 2
jne 0x487d33
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
push edi
push esi
push ebx
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
jmp 0x487d66
lea eax, [ebp - 8]
mov edx, esi
call fcn.00404958
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004043c4
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
push edi
mov eax, dword [ebp - 4]
call fcn.004045fc
push eax
push ebx
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487d8b
lea eax, [ebp - 8]
call fcn.00404848
lea eax, [ebp - 4]
call fcn.0040413c
ret

Function at 0x48845c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x20019
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.004045fc
mov edx, eax
mov eax, ebx
call fcn.004879a0
mov edx, eax
xor ecx, ecx
mov eax, ebx
call fcn.00487bf4
test eax, eax
sete al
mov ebx, eax
test bl, bl
je 0x4884ce
push 0
push 0
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.004045fc
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x488c50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x488c65
add esp, 0xfffffff0
call fcn.00403670
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.0040331c
lea eax, [ebx + 0xc]
mov edx, esi
call fcn.00404190
mov eax, esi
call fcn.004045fc
push eax
xor eax, eax
mov al, byte [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateMutexA
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x488cba
mov ecx, dword [0x4b4dd4]
mov dl, 1
mov eax, dword [0x488ad4]
call fcn.0047ce64
call fcn.00403ad8
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
sete al
mov byte [ebx + 4], al
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x488ce1
call fcn.004036c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x489c08
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
call fcn.004045fc
push eax
mov eax, dword [ebp + 0x10]
call fcn.004045fc
push eax
mov eax, edi
call fcn.004045fc
push eax
mov eax, esi
call fcn.004045fc
push eax
push ebx
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x48ab9c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
call fcn.0048ab58
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48ac10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [0x4b7a24], eax
mov ebx, 0x48aae4
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x48ac10
xor eax, eax
push ebp
push 0x48ac09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ac10
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48ac18
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
call fcn.0048ab58
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48ac83
mov ebx, dword [0x4b7a24]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x48ac83
xor eax, eax
push ebp
push 0x48ac7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ac83
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48e5a8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x48e5d6
mov eax, ebx
call fcn.0048f05c
cmp dword [ebx + 0x40], 0
je 0x48e5cf
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x48e647
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x48e639
cmp dword [ebx + 8], 0
je 0x48e5f8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x48e60a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x48e639
cmp dword [ebx + 8], 0
je 0x48e5eb
cmp eax, 3
je 0x48e61d
dec eax
jne 0x48e5eb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x48e5eb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x48e5eb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x48e665
cmp dword [ebx + 0x14], 0xcc
je 0x48e665
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0048e670
pop ebx
ret

Function at 0x4a88c8
Capabilities:
Change the wallpaper

Disassembly:
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp byte [0x4b448c], 0
jne 0x4a88ff
cmp byte [eax + 4], 0
jne 0x4a88ff
mov dword [esp], 0x14
push 3
lea eax, [esp + 4]
push eax
push 0x14
push 0x2c
call sub.user32.dll_SystemParametersInfoA
jmp 0x4a8906
xor eax, eax
call fcn.004a56dc
add esp, 0x14
pop edi
pop esi
ret

Function at 0x4ab608
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x10]
call fcn.004045fc
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x4ab820
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
push 0x103
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.004045fc
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov eax, esi
mov edx, esp
mov ecx, 0x105
call fcn.004043ac
add esp, 0x108
pop esi
pop ebx
ret
Function at 0x4abdb8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
xor ecx, ecx
mov edx, 0x160
call fcn.00402d54
mov eax, dword [ebp + 8]
push eax
push 0x160
push ebx
push edi
mov eax, esi
call fcn.004045fc
push eax
call sub.shell32.dll_SHGetFileInfoA
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4e4760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x65000]
push edi
or ebp, 0xffffffff
jmp 0x4e4782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e4789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e4778
mov eax, 1
add ebx, ebx
jne 0x4e479b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e47ac
jne 0x4e47cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e47cb
dec eax
add ebx, ebx
jne 0x4e47b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e4790
add ebx, ebx
jne 0x4e47c7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e481d
xor ecx, ecx
sub eax, 3
jb 0x4e47e3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e4852
sar eax, 1
mov ebp, eax
jmp 0x4e47ee
add ebx, ebx
jne 0x4e47ee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e47bc
inc ecx
add ebx, ebx
jne 0x4e47fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e47bc
add ebx, ebx
jne 0x4e4809
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e47fe
jne 0x4e481a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e47fe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e483c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e482e
jmp 0x4e477e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e483c
add edi, ecx
jmp 0x4e477e
pop esi
mov edi, esi
mov ecx, 0x1da6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e485a
cmp byte [edi], 0x17
jne 0x4e485a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4e485f
lea edi, [esi + 0xe1000]
mov eax, dword [edi]
or eax, eax
je 0x4e48d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe4000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe4160]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e488c
mov ecx, edi
jns 0x4e48bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe4168]
or eax, eax
je 0x4e48d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4e48a9
call dword [esi + 0xe4164]
mov ebp, dword [esi + 0xe416c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e490b
sub esp, 0xffffff80
jmp 0x42c323
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x10001d90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x10001db6
push 0
push 0
push dword [ebp + 8]
push 0x100019b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10002603
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10007004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x1000270e
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10002707
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x100026cb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100026cb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100026cb
mov edx, dword [esi]
test edx, edx
jne 0x10002694
push 0x200
push edx
push dword [0x10007668]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100026f0
lea ebx, [esi + 8]
jmp 0x100026be
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x100026be
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10007668]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1000271f
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1000264c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10002707
xor edi, edi
cmp dword [esi], edi
je 0x10002707
push dword [esi]
push edi
push dword [0x10007668]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10003488
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x100026f0
Function at 0x10002724
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.10002603
test eax, eax
jne 0x10002749
push 9
pop esi
jmp 0x100027a9
cmp dword [edi], esi
je 0x100027a9
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x100027a8
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
test eax, eax
je 0x1000279d
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1000278f
push dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], 1
call fcn.100024b0
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x100027a2
mov ecx, dword [edi]
mov dword [ecx + ebx*4], esi
inc ebx
cmp ebx, dword [edi + 8]
jb 0x10002755
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x100027af
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x10002801
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100027f0
push ebx
mov eax, dword [esi]
cmp dword [eax + edi*4], 0
je 0x100027e9
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100027e9
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x100027c0
pop ebx
push dword [esi]
push 0
push dword [0x10007668]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret
Function at 0x10002803
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x100076c0]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x10002829
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002850
push 0xa
pop eax
jmp 0x100028d0
test edi, edi
je 0x10002871
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x10002890
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10002890
test byte [esi + 0x14], 1
je 0x10002885
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x10002890
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [esi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002e3b
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x100076b8]
push esi
xor esi, esi
jmp 0x10002e4d
cmp dword [edx + 4], esi
jne 0x10002ea1
mov edx, dword [edx]
test edx, edx
jne 0x10002e46
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10002e9d
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x10002e74
mov eax, dword [0x100076b8]
mov dword [edx], eax
mov dword [0x100076b8], edx
pop edi
test edx, edx
jne 0x10002ea1
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
Function at 0x3b443008
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.3b444324
test esi, esi
jne 0x3b44303e
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.3b444414
jmp 0x3b44305c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.3b442f0c
mov edi, eax
test esi, esi
je 0x3b44305c
cmp dword [ebx], 0
je 0x3b44305c
dec esi
jmp 0x3b443045
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x3b4436d4
Capabilities:
Query or enumerate registry value

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

Function at 0x3b4441a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x3b474044], 0
je 0x3b444205
cmp word [0x3b474218], 0xd7b2
jne 0x3b4441cd
cmp dword [0x3b474220], 0
jbe 0x3b4441cd
mov eax, 0x3b474214
call dword [0x3b474230]
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 0x3b44422c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x3b45a024], 0
jne 0x3b444221
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x3b4450c4
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 0x3b4452f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x3b445147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x3b4452f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x3b445147
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x3b445310
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x3b4451d0
xor eax, eax
push ebp
push 0x3b4451c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.3b444f00
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 0x3b4451ae
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x3b445330
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x3b4451ae
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 0x3b4451d0
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 0x3b4452ea
cmp byte [ebp - 0xd], 0
jne 0x3b445217
cmp byte [ebp - 0x12], 0
je 0x3b4452ea
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x3b445230
dec ebx
cmp byte [ebx], 0x2e
je 0x3b44523f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x3b44522f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x3b4452ea
inc ebx
cmp byte [ebp - 0x12], 0
je 0x3b44527c
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 0x3b4452ea
cmp byte [ebp - 0xd], 0
je 0x3b4452ea
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 0x3b4452ea
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