joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e63c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e7e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e7c8
mov dl, 1
mov eax, dword [0x411eb8]
call fcn.0040344c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004041f0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e7b7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043c57c
test al, al
je 0x44e7aa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44e7f8
lea eax, [ebp - 0x254]
call fcn.00408eb8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e7aa
xor eax, eax
push ebp
push 0x44e7a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44e830
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e78c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404460
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44e78c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e7aa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e6ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004159c0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e7ee
lea eax, [ebp - 0x260]
call fcn.004041f0
ret

Function at 0x44f130
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x460bac]
cmp byte [eax + 0xa5], 0
jne 0x44f1a1
cmp dword [0x460bc4], 0
jne 0x44f162
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44f0ec
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x460bc4], eax
cmp dword [0x460bc0], 0
jne 0x44f17d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x460bc0], eax
cmp dword [0x460bc8], 0
jne 0x44f1a1
push esp
push 0
push 0
push 0x44f090
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x460bc8], eax
pop edx
ret
Function at 0x44f834
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x460bac]
cmp dword [eax + 0x30], 0
je 0x44f8de
cmp dword [ebx + 0x94], 0
jne 0x44f8d8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f7c4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f8d8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f89e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f8d8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413e04
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f8ad
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45043c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x450471
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004042e0
jmp 0x45047e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404244
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451590
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4515d1
mov eax, esi
call fcn.00437ba8
test al, al
je 0x4515d1
mov eax, dword [ebx + 0x84]
call fcn.004378a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4515d1
push 0
mov eax, dword [ebx + 0x84]
call fcn.004378a4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4e424b
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41cd08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push 0
push 0
push 0x147
mov edi, ecx
push 0x438
call fcn.004f1c33
test eax, eax
jne 0x4e42a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], 0
mov dword [eax], 0
mov eax, dword [esp + 0x28]
mov dword [eax], ecx
jmp 0x4e4320
cmp eax, 1
jne 0x4e42e2
mov ecx, dword [esp + 0x1c]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
mov esi, dword [esp + 0x24]
shr eax, 0x1f
add edx, eax
mov eax, 0x2aaaaaab
mov ecx, edx
mov edx, dword [esp + 0x20]
imul edx
mov eax, edx
mov dword [esi], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x28]
lea ecx, [ecx + ecx*4]
mov dword [esi + 4], edx
mov dword [eax], ecx
lea edx, [edx + edx*4]
jmp 0x4e4320
cmp eax, 2
jne 0x4e4323
mov ecx, dword [esp + 0x1c]
mov eax, 0x55555556
imul ecx
mov eax, edx
mov esi, dword [esp + 0x24]
shr eax, 0x1f
add edx, eax
mov eax, 0x55555556
mov ecx, edx
mov edx, dword [esp + 0x20]
imul edx
mov eax, edx
mov dword [esi], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x28]
add ecx, ecx
mov dword [esi + 4], edx
mov dword [eax], ecx
add edx, edx
mov dword [eax + 4], edx
lea ecx, [esp + 8]
call fcn.004f198d
lea eax, [esp + 8]
mov ecx, edi
push eax
push 0x439
mov dword [esp + 0x1c], 0
call fcn.004f1b85
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 8]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.004f1b49
lea ecx, reloc.KERNEL32.dll_GetTimeZoneInformation
call fcn.004e627b
push 0x43a
mov ecx, edi
call fcn.004f1b6d
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], reloc.KERNEL32.dll_GetTimeZoneInformation
mov dword [ecx], eax
lea ecx, [esp + 8]
call fcn.004f197b
mov ecx, dword [esp + 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0x18

Function at 0x4e630b
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41cee0
push eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
mov dword [esp + 8], 0
push eax
call dword [fcn.0041f468]
mov ecx, dword [esp + 0x18]
add esp, 4
add eax, 0x30
mov dword [ecx], eax
push 0x425134
lea ecx, [esp + 0x14]
call fcn.004f1b2b
inc eax
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004f1bc1
mov ecx, dword [esp + 0x18]
push eax
mov byte [esp + 0xc], 1
call fcn.004f1b4f
lea ecx, [esp + 0x14]
mov byte [esp + 8], 0
call fcn.004f197b
lea ecx, [esp + 0x10]
mov dword [esp + 8], reloc.KERNEL32.dll_GetTimeZoneInformation
call fcn.004f197b
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 0xc
Function at 0x4f00db
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e00f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call fcn.004f198d
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
push 0x426dd8
push ecx
push 8
push 1
push 7
push esi
mov dword [esp + 0x48], 1
call fcn.004f1dc5
mov esi, dword [esp + 0x50]
add esp, 0x34
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.004f1b49
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.004f197b
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x20
Function at 0x64b271
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0064b421
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x64b36f
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x64b312
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x64b355
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x64b329
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x64b344
test al, 0x40
je 0x64b33b
mov ecx, dword [edi + 0x20]
jmp 0x64b342
test al, 0x80
je 0x64b355
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x64b355
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x64b2e1
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x6effb2
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp + 2], ah
mov byte [esp], ah
pushal
mov dword [esp + 0x19], ebp
lea edx, reloc.KERNEL32.dll_GetTimeZoneInformation
push edx
call fcn.006eff75
lcall 0xec94, 0x27d48d1d
inc esi
jno 0x6f0022
jmp 0x6eff8f
retf 0x5cad

Function at 0x6efff1
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp + 7]
lea esp, [esp + 2]
xchg dword [esp + 0x58], edx

Function at 0x6f0012
Capabilities:
Execute anti-debugging instructions

Disassembly:
add edi, 0xf30758ed
jmp 0x6f018c
and al, 0x58
pushal
pop dword [esp + 0x16]
call fcn.006effcc
jb 0x6f0077
jl 0x6f005b
push edx
call fcn.006efff1
jmp 0x6f0046
lea esp, [esp + 0x44]
pushfd
rol ax, cl
jne 0x6f007c
je 0x6f0085
fcom qword [edx + ecx*8 - 0x53]
pop esp
lahf
dec edx
rcl dword [ecx + 0x30], 0xc3
jo 0x6efffc
inc edi
xlatb
mov dl, 0x41
invalid
push word [esp + 1]
pop word [esp + 1]
mov word [esp], sp
push dword [esp]
pop dword [esp]
mov dword [esp + 0x44], edi
jl 0x6f0081
inc esp
jmp 0x6f0014
call fcn.006f0035
mov dl, byte [esp]
call fcn.006f00e4
or al, 0x8a
add byte [eax], al
add byte [edx + ecx*4], cl
mov dl, byte [esp]
adc al, 0x24
clc
sub esp, 0xe
jmp 0x6f0136
mov edi, dword [esp + 0x34]
bswap ebp
mov cx, dx
not ch
jnp 0x6f013c
mov bp, 0xf481
jmp 0x6f02b5
lea esp, [esp + 2]
jmp 0x6f011e
jmp 0x6f02b1
jmp 0x6f0232
mov ebx, edi
mov ecx, edx
lea edx, [esi - 0x15]
mov ecx, dword [esp]
lea ecx, [esp + ebx]
jmp 0x6efe19
bsr bx, cx
rdtsc
pushal
jmp 0x6f0160
pushal
call fcn.006f01e2
call 0x2927d522
add ch, bl
adc al, 0xdc
jne 0x6f029a
je fcn.006f0280
push ds
invalid
jmp 0x6f0183
sub esp, 0xb4
mov esi, esp
bt ebx, edx
jp 0x6f01af
bsr bx, cx
rdtsc
pushal
jmp 0x6f0160
mov edx, 0x7ce73e60
mov si, 0xcb7f
sub ax, 0x7db8
jmp 0x6f0207
jmp fcn.006f0280
mov bp, 0xf481
lea ebp, [esp + 0xc]
btc eax, ebx
jg 0x6f0141
mov edx, 0x7ce73e60
mov si, 0xcb7f
sub ax, 0x7db8
jmp 0x6f0207

Function at 0x6f0035
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp + 5], dh
lea esp, [esp + 3]
mov dword [esp + 0x44], esi
call fcn.006f0012

Function at 0x7108d8
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
pop dword [esp]
add esp, 5
lea esp, [esp + 1]
jmp 0x71087d
and edi, ecx
push edx
mov edi, dword [edi*4 + reloc.KERNEL32.dll_GetTimeZoneInformation]
sub esp, 0xe
jmp 0x7107ff
lea ebx, [ebx*4]
lea ebx, reloc.KERNEL32.dll_GetTimeZoneInformation
mov edi, dword [ebx]
pop ebx
stc
jmp 0x71081c
push word [esp + 3]
push ebx
mov ebx, edi
jmp 0x710837
xor edi, dword [ebx*4 + reloc.KERNEL32.dll_GetTimeZoneInformation]
jmp 0x7108c1
and ebx, ecx
push edx
pushal
lea esp, [esp + 0x3c]
jmp 0x710864
lea esp, [esp + 1]
shr edi, 0x18
pushal
add esp, 1
add esp, 0x19
jmp 0x71085a
movzx ebx, byte [esi + 6]
call fcn.007108aa
mov eax, dword es:[0x10a35031]
push 0xe21770e2
pop ebp
mov dword [reloc.KERNEL32.dll_GetTimeZoneInformation], eax
add esp, 3
add esp, 3
jmp 0x71089a

Function at 0x710a23
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov dword [esi + 4], edi
btr edi, edx
lea edi, [edi*4]
jmp 0x7109dc
Function at 0x710b0c
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
add esp, 3
lea esp, [esp + 1]
and edx, ecx
jmp 0x710b57
lea esp, [esp + 0x20]
xor edi, dword [edx*4 + reloc.KERNEL32.dll_GetTimeZoneInformation]
bsf dx, si
jmp 0x710b3c
mov edx, dword [esi + 0xc]
cmc
mov dword [esi + 8], edi
jmp 0x710b79
mov edx, dword [edx*4 + reloc.KERNEL32.dll_GetTimeZoneInformation]
and edx, ecx
pushal
jmp 0x710b17
lea edx, reloc.KERNEL32.dll_GetTimeZoneInformation
mov ebx, dword [edx]
pop edx
neg di
inc di
bswap edi
jmp 0x710b9f
push edx
mov edx, ebx
lea edx, [edx*4]
jmp 0x710b63
popal
push esp
clc
shr edi, 0x18
stc
jmp 0x710bac
pushal
pushal
push edx
mov dword [esp + 4], edx
lea esp, [esp + 4]
jmp 0x710b85
mov edi, dword [edi*4 + reloc.KERNEL32.dll_GetTimeZoneInformation]
sub esp, 8
and edi, ecx
jmp 0x710c08
sub esp, 0x16
pop word [esp + 5]
lea esp, [esp + 0x60]
xor edi, dword [ebx*4 + reloc.KERNEL32.dll_GetTimeZoneInformation]
rol bl, 1
jmp 0x710c15
mov edi, dword [edi*4 + reloc.KERNEL32.dll_GetTimeZoneInformation]
clc
and ebx, ecx
pushal
jmp 0x710be2
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + reloc.KERNEL32.dll_GetTimeZoneInformation]
push esp
clc
jmp 0x710c6f
add esp, 0x13
mov word [esp + 7], bx
lea esp, [esp + 1]
jmp 0x710cc5
and edx, ecx
mov edx, dword [edx*4 + reloc.KERNEL32.dll_GetTimeZoneInformation]
sub esp, 0
pushal
jmp 0x710c4e
and edx, ecx
push esp
add esp, 3
stc
lea esp, [esp + 1]
jmp 0x710ce6
push dword [esp + 2]
lea esp, [esp + 2]
jmp 0x710c7e
lea esp, [esp + 0x30]
xor edi, dword [ebx*4 + reloc.KERNEL32.dll_GetTimeZoneInformation]
cmc
sub esp, 6
jmp 0x710c97
and ebx, ecx
pushal
mov word [esp + 0x14], dx
stc
jmp 0x710cae
lea esp, [esp + 4]
dec dword [ebp - 4]
pushal
lea esp, [esp + 0x17]
call fcn.007115d5
pop edx
mov ch, 0xa4
xlatb
lea esp, ds:[esp + 8]
lea esp, [esp + 8]
xor edi, dword [edx*4 + reloc.KERNEL32.dll_GetTimeZoneInformation]
push edx
mov word [esp], bx
jmp 0x710cd0

Function at 0x80caec
Capabilities:
Parse pe header

Disassembly:
push esp
push dword [esp + 3]
mov word [esp + 3], di
pop word [esp + 3]
pop word [esp + 2]
lea esp, [esp + 1]
jmp 0x80ca5b
lea esp, [esp + 1]
mov dword [esp + 0x28], esi
push edx
push esp
pop dword [esp]
lea esp, [esp + 3]
jmp 0x80ca73
push esp
mov dword [esp + 5], esi
jmp 0x80cac3
Function at 0x4b5d9f
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004b5e1e
jae 0x4b5dab
xor ecx, ecx
call fcn.004b5e1e
jae 0x4b5dd5
xor eax, eax
call fcn.004b5e1e
jae 0x4b5de6
mov al, 0x10
call fcn.004b5e1e
adc al, al
jae 0x4b5dc7
jne 0x4b5e13
stosb byte es:[edi], al
jmp 0x4b5dac
call fcn.004b5e2a
dec ecx
loop 0x4b5df2
mov eax, ebp
call fcn.004b5e28
jmp 0x4b5e14
lodsb al, byte [esi]
shr eax, 1
je 0x4b5e3a
adc ecx, 2
mov ebp, eax
jmp 0x4b5e14
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004b5e28
cmp eax, 0x7d00
jae 0x4b5e12
cmp eax, 0x500
jae 0x4b5e13
cmp eax, 0x7f
ja 0x4b5e14
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4b5dac
pop ebp
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
mov ebx, 0x407ef8
nop
mov ecx, 0x58b0f74
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x40575375
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4030b8
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 0x4030f5
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 0x403115
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004054d4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4032f4
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 0x40334d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00403190
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00403190
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x403337
inc ebx
jmp 0x403320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403354
lea eax, [ebp - 8]
call fcn.00405264
ret

Function at 0x40335c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405264
test esi, esi
jne 0x403393
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00405354
jmp 0x4033b4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00403190
mov dword [esp], eax
test esi, esi
je 0x4033b4
cmp dword [ebx], 0
je 0x4033b4
dec esi
jmp 0x40339b
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x404258
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x583024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4042f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4042d0
xor eax, eax
push ebp
push 0x4042c9
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 0x40430c
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 0x4042d0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x583024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x583024], ax
mov esp, ebp
pop ebp
ret
Function at 0x40503c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59304c], 0
je 0x40509d
cmp word [0x593220], 0xd7b2
jne 0x405065
cmp dword [0x593228], 0
jbe 0x405065
mov eax, 0x59321c
call dword [0x593238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5830a0
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 0x4050c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x583034], 0
jne 0x4050b9
push 0
push 0x583098
push 0x5830a0
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405218
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402e50
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x59304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051e0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40740c
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 0x407472
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.004054d4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403a44
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40745c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407479
lea eax, [ebp - 0x10]
call fcn.00405264
ret

Function at 0x40ba28
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405724
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40ba3c
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.00405724
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40ba5e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret