joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10096b0
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1010004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.010095f1
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1009723
cmp dword [ebp - 0x94], 5
jb 0x1009744
jmp 0x1009740
cmp dword [ebp - 0x88], 1
jne 0x1009744
cmp dword [ebp - 0x94], 4
ja 0x1009740
jne 0x1009744
cmp dword [ebp - 0x90], 0
jbe 0x1009744
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100202c
call fcn.01009488
test eax, eax
jge 0x1009765
mov byte [0x10102bc], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01009ae9
leave
ret
Function at 0x1009acf
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x100d578
call fcn.01009bec
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1010750
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100988a
cmp eax, esi
jne 0x100987d
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100988d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1009864
xor esi, esi
inc esi
mov eax, dword [0x101074c]
cmp eax, esi
jne 0x10098a0
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10098cf
mov eax, dword [0x101074c]
test eax, eax
jne 0x10098c9
mov dword [0x101074c], esi
push 0x10013f8
push 0x10013ec
call fcn.010097c6
pop ecx
pop ecx
test eax, eax
je 0x10098cf
jmp 0x10099f3
mov dword [0x1010404], esi
mov eax, dword [0x101074c]
cmp eax, esi
jne 0x10098f3
push 0x10013e8
push 0x10013d0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x101074c], 2
cmp dword [ebp - 0x20], ebx
jne 0x1009900
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x101075c], ebx
je 0x1009921
push 0x101075c
call fcn.01009e19
pop ecx
test eax, eax
je 0x1009921
push ebx
push 2
push ebx
call dword [0x101075c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10099f3
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100998b
cmp cx, bx
je 0x1009946
cmp dword [ebp - 0x1c], ebx
jne 0x100998b
movzx ecx, word [eax]
cmp cx, bx
je 0x100995b
cmp cx, 0x20
ja 0x100995b
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1009946
test byte [ebp - 0x40], 1
je 0x1009967
movzx ecx, word [ebp - 0x3c]
jmp 0x100996a
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1010400], eax
cmp dword [0x10103f4], ebx
jne 0x10099d0
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100999c
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1009930
cmp dword [0x1010404], ebx
jne 0x10099de
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1010400]
jmp 0x10099ff
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01009c31
ret
call fcn.01009f66
jmp 0x1009827
Function at 0x100a29a
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2230
call fcn.0100a120
mov eax, dword [0x1010004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x220], eax
xor edi, edi
mov dword [eax], edi
lea eax, [ebp - 0x210]
push eax
push 0x2000
lea eax, [ebp - 0x2230]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x100a40a
shr dword [ebp - 0x210], 2
mov eax, 0x800
cmp dword [ebp - 0x210], eax
jbe 0x100a304
mov dword [ebp - 0x210], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea ecx, [ebp - 0x214]
push ecx
push eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x214], edi
call ebx
test eax, eax
je 0x100a409
mov dword [ebp - 0x218], edi
cmp dword [ebp - 0x210], edi
jbe 0x100a403
push esi
lea eax, [ebp - 0x224]
push eax
lea esi, [ebp + edi*4 - 0x2230]
push dword [esi]
call ebx
test eax, eax
je 0x100a3de
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x214]
jne 0x100a3de
mov esi, dword [esi]
cmp dword [ebp - 0x228], esi
je 0x100a3de
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100a3de
lea eax, [ebp - 0x230]
push eax
push 4
lea eax, [ebp - 0x21c]
push eax
push esi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x100a3d7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
push esi
call sub.KERNEL32.dll_K32GetModuleBaseNameW
test eax, eax
je 0x100a3d7
push dword [ebp - 0x22c]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x100a3ed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x210]
jb 0x100a342
jmp 0x100a402
mov eax, dword [ebp - 0x220]
mov dword [eax], esi
mov eax, dword [ebp + edi*4 - 0x2230]
mov dword [ebp - 0x218], eax
pop esi
mov eax, dword [ebp - 0x218]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01009ae9
leave
ret 8
Function at 0x100ac35
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c4
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0xa2
call esi
mov edi, 0x8000
xor ebx, ebx
mov ecx, edi
inc ebx
test cx, ax
je 0x100ac66
mov dword [ebp - 4], ebx
push 0xa3
call esi
push 2
test di, ax
pop edi
je 0x100ac78
or dword [ebp - 4], edi
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x100ac8d
or dword [ebp - 4], 4
push 0xa5
call esi
mov ecx, 0x8000
test cx, ax
je 0x100aca2
or dword [ebp - 4], 8
push 0xa0
call esi
mov ecx, 0x8000
test cx, ax
je 0x100acb7
or dword [ebp - 4], 0x10
push 0xa1
call esi
mov ecx, 0x8000
test cx, ax
je 0x100accc
or dword [ebp - 4], 0x20
and dword [ebp - 0x1c4], 0
push 0x1bc
lea eax, [ebp - 0x1c0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
test byte [ebp - 4], bl
je 0x100ad0a
mov eax, 0xa2
mov word [ebp - 0x1c0], ax
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0x1bc], edi
mov eax, ebx
test byte [ebp - 4], 2
push 3
pop esi
je 0x100ad2e
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa3
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], esi
inc eax
test byte [ebp - 4], 4
je 0x100ad4f
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa4
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
inc eax
test byte [ebp - 4], 8
je 0x100ad70
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa5
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], esi
inc eax
test byte [ebp - 4], 0x10
je 0x100ad91
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa0
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
inc eax
test byte [ebp - 4], 0x20
je 0x100adb2
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov edx, 0xa1
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
and dword [ecx + 8], 0
mov dword [ecx], ebx
push 0x5b
pop edx
mov word [ecx + 4], dx
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
and dword [ecx + 8], 0
mov dword [ecx], ebx
push 0x55
pop edx
mov word [ecx + 4], dx
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
lea ecx, [ebp + ecx - 0x1c4]
mov word [ecx + 4], dx
mov dword [ecx], ebx
mov dword [ecx + 8], edi
inc eax
mov ecx, eax
imul ecx, ecx, 0x1c
push 0x5b
lea ecx, [ebp + ecx - 0x1c4]
pop edx
mov dword [ecx], ebx
mov word [ecx + 4], dx
mov dword [ecx + 8], edi
push 0x1c
lea ecx, [ebp - 0x1c4]
push ecx
inc eax
push eax
call dword [sym.imp.USER32.dll_SendInput]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100b51e
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x1002248
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], ebx
call fcn.01006c25
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x100b681
cmp word [esi], bx
je 0x100b681
lea eax, [ebp - 4]
push eax
push 0x7fffffff
push esi
mov dword [ebp - 4], ebx
call fcn.0100b2e5
test eax, eax
jl 0x100b65c
lea eax, [ebp - 4]
push eax
push 0x104
push dword [ebp - 4]
call fcn.0100ab2a
test eax, eax
jl 0x100b65c
push dword [ebp - 4]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.0100b3d7
test al, al
jne 0x100b5aa
push dword [ebp + 8]
call fcn.010097af
mov esi, 0x8007000e
jmp 0x100b661
push dword [ebp - 4]
mov edi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
cmp esi, ebx
jne 0x100b5df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100b5d2
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push edi
call fcn.010097af
jmp 0x100b661
cmp esi, dword [ebp - 4]
jbe 0x100b5f1
push edi
call fcn.010097af
mov esi, 0x8007007a
jmp 0x100b661
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
cmp edi, 0x20
jg 0x100b66d
mov eax, dword [section..data]
cmp eax, section..data
je 0x100b630
test byte [eax + 0x1c], 8
je 0x100b630
push edi
push dword [ebp + 8]
push 0x100221c
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100aeaf
cmp edi, 2
jl 0x100b654
cmp edi, 3
jle 0x100b63f
cmp edi, 0xb
jne 0x100b654
cmp esi, ebx
jle 0x100b64f
and esi, 0xffff
or esi, 0x80070000
push dword [ebp + 8]
jmp 0x100b5d5
push dword [ebp + 8]
call fcn.010097af
mov esi, 0x80004005
lea ecx, [ebp - 0x10]
call fcn.01006c69
mov eax, esi
jmp 0x100b68e
push dword [ebp + 8]
call fcn.010097af
lea ecx, [ebp - 0x10]
call fcn.01006c69
xor eax, eax
jmp 0x100b68e
lea ecx, [ebp - 0x10]
call fcn.01006c69
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100cb30
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x1010004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20019
xor esi, esi
push 0x1002528
mov dword [ebp - 0x90], ecx
push 0x80000002
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], esi
call fcn.0100a16e
test eax, eax
jne 0x100cc1d
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push dword [ebp - 0x9c]
mov dword [ebp - 0x8c], 0x40
mov dword [ebp - 0x88], esi
call edi
mov ebx, 0x103
jmp 0x100cc17
lea eax, [ebp - 0x84]
push eax
call fcn.0100a8ec
mov dword [ebp - 0xa0], eax
cmp eax, esi
je 0x100cbe7
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0xa0]
push eax
add ecx, 0x54
call fcn.0100cb01
inc dword [ebp - 0x88]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x88]
mov dword [ebp - 0x8c], 0x40
push dword [ebp - 0x9c]
call edi
cmp eax, ebx
jne 0x100cbbc
pop edi
pop ebx
lea ecx, [ebp - 0x9c]
call fcn.0100a150
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x90]
xor ecx, ebp
add eax, 0x54
pop esi
call fcn.01009ae9
leave
ret

Function at 0x100d081
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100d08c
sub eax, edx
sar eax, 1
cmp eax, 0x7fffffff
jae 0x100d0bb
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.SHLWAPI.dll_SHSetValueW
jmp 0x100d0c0
mov eax, 0x216
test eax, eax
jle 0x100d0ce
and eax, 0xffff
or eax, 0x80070000
pop ebp
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4f8f6f3d
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1ecf7d52
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x48f9e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..data
lea edi, [esi - 0x7c000]
push edi
jmp 0x48f9fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fa01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48f9f0
mov eax, 1
add ebx, ebx
jne 0x48fa13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fa24
jne 0x48fa43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa43
dec eax
add ebx, ebx
jne 0x48fa30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48fa08
add ebx, ebx
jne 0x48fa3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fa95
xor ecx, ecx
sub eax, 3
jb 0x48fa5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48faca
sar eax, 1
mov ebp, eax
jmp 0x48fa66
add ebx, ebx
jne 0x48fa66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
inc ecx
add ebx, ebx
jne 0x48fa74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fa34
add ebx, ebx
jne 0x48fa81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fa76
jne 0x48fa92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fa76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48faa6
jmp 0x48f9f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fab4
add edi, ecx
jmp 0x48f9f6
pop esi
mov edi, esi
mov ecx, 0x1a9e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fad2
cmp byte [edi], 6
jne 0x48fad2
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 0x48fad7
lea edi, [esi + 0x8d000]
mov eax, dword [edi]
or eax, eax
je 0x48fb4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8f000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8f104]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fb04
mov ecx, edi
jns 0x48fb33
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 + 0x8f108]
or eax, eax
je 0x48fb49
mov dword [ebx], eax
add ebx, 4
jmp 0x48fb21
call dword [esi + 0x8f118]
mov ebp, dword [esi + 0x8f10c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x48fb83
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x402d40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402d99
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.KERNEL32.DLL_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402bdc
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402bdc
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402d83
inc ebx
jmp 0x402d6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402da0
lea eax, [ebp - 8]
call fcn.00404274
ret

Function at 0x402da8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404274
test esi, esi
jne 0x402ddf
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404364
jmp 0x402e00
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402bdc
mov dword [esp], eax
test esi, esi
je 0x402e00
cmp dword [ebx], 0
je 0x402e00
dec esi
jmp 0x402de7
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x4033b4
Capabilities:
Query or enumerate registry value

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

Function at 0x4040f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41c044], 0
je 0x404151
cmp word [0x41c218], 0xd7b2
jne 0x404119
cmp dword [0x41c220], 0
jbe 0x404119
mov eax, 0x41c214
call dword [0x41c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41a070
push 0xfffffffffffffff5
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 0x404178
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x41a034], 0
jne 0x40416d
push 0
push 0x41a068
push 0x41a070
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x405d34
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 0x405d9a
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004044e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402fa8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d84
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405da1
lea eax, [ebp - 0x10]
call fcn.00404274
ret

Function at 0x40789c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404734
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x4078be
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40a0e0
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
test eax, eax
jle 0x40a119
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404364
jmp 0x40a122
mov eax, ebx
mov edx, esi
call fcn.004042c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a12c
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
test eax, eax
jle 0x40a14d
mov al, byte [esp]
jmp 0x40a14f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b5a8
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 0x40b60c
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044e4
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00407594
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b613
lea eax, [ebp - 0xc]
call fcn.00404274
ret
Function at 0x417520
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push edi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, 0
mov edi, dword [0x41d908]
shl edi, 2
xor edx, dword [esi + 0x41c880]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x41c908]
mov bl, dl
add ecx, dword [ebx*4 + 0x41cd08]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x41d108]
mov bl, dl
add ecx, dword [ebx*4 + 0x41d508]
xor eax, ecx
xchg edx, eax
add esi, 4
cmp esi, edi
jne 0x41753d
xchg edx, eax
xor eax, dword [esi + 0x41c880]
xor edx, dword [esi + 0x41c884]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x417598
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, dword [0x41d908]
inc esi
shl esi, 2
xor edx, dword [esi + 0x41c880]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x41c908]
mov bl, dl
add ecx, dword [ebx*4 + 0x41cd08]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x41d108]
mov bl, dl
add ecx, dword [ebx*4 + 0x41d508]
xor eax, ecx
xchg edx, eax
sub esi, 4
cmp esi, 4
jne 0x4175b0
xchg edx, eax
xor eax, dword [0x41c884]
xor edx, dword [0x41c880]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop esi
pop ecx
pop ebx
ret
Function at 0x417890
Capabilities:
Encrypt data using blowfish

Disassembly:
push esi
push edi
mov dword [0x41d908], 0x10
mov esi, 0x41a3cc
mov edi, 0x41c880
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x418a38
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x418a7e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0041899c
mov eax, dword [ebp - 4]
call fcn.00404734
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418a85
lea eax, [ebp - 4]
call fcn.00404274
ret

Function at 0x418af0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00407b34
add esp, 0x104
pop ebx
ret