joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ee790
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
invalid
invalid
sbb byte [eax], al
invalid

Function at 0x4ee7c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff0000
je 0x4ee89c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x4ee83e
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x20]
jae 0x4ee893
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004ee760
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jne 0x4ee891
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x30]
mov cx, word [eax + edx*2]
mov word [ebp - 4], cx
movzx edx, word [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
jmp 0x4ee8ba
jmp 0x4ee835
mov dword [ebp - 0x10], 0
jmp 0x4ee8b7
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x500397
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56d380]
jne 0x5003a1
repz ret
jmp fcn.00510941
Function at 0x525fda
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56d380]
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.0050a0fc
and dword [ebp - 0x14], 0
cmp dword [0x571c4c], 0
mov dword [ebp - 0x18], eax
jne 0x52608d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x526135
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x555c5c
push ebx
call edi
test eax, eax
je 0x526135
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x571c4c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x571c50], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x571c54], eax
call edi
push eax
call esi
mov dword [0x571c5c], eax
test eax, eax
je 0x52608d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x571c58], eax
mov eax, dword [0x571c58]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5260e6
cmp dword [0x571c5c], ecx
je 0x5260e6
push eax
call esi
push dword [0x571c5c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5260e6
test ebx, ebx
je 0x5260e6
call edi
test eax, eax
je 0x5260dd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5260dd
test byte [ebp - 8], 1
jne 0x5260e6
or dword [ebp + 0x10], 0x200000
jmp 0x526119
mov eax, dword [0x571c50]
cmp eax, dword [ebp - 0x18]
je 0x526119
push eax
call esi
test eax, eax
je 0x526119
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x526119
mov eax, dword [0x571c54]
cmp eax, dword [ebp - 0x18]
je 0x526119
push eax
call esi
test eax, eax
je 0x526119
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x571c4c]
call esi
test eax, eax
je 0x526135
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x526137
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
leave
ret
Function at 0x100e3e20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1035269d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x103fbc90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.10062be0
add esp, 4
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.100e7580
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x100e3060
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.100d9cf0
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
call fcn.1032642a
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x100e3ea8
lea ecx, [ebp - 0x14]
call fcn.100d9d00
jmp 0x100e3eb9
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.10301df1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100d9ca0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x100f2ad0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.100f27d8
movsd dword es:[edi], dword [esi]
sbb ebx, dword [ebp - 0x56]
lea eax, [ebp - 0x40]
push eax
invalid
invalid

Function at 0x100f32c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.100f27e8
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100f279d
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.100f27d8
push ds
xor ecx, dword [esi - 0x1e]
and byte [ebp - 0x664], 0
and byte [ebp - 0x663], 0
invalid
inc dword [eax]
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.100f27e8
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100f279d
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.100f27e8
Function at 0x100f33d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100f279d
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.100f27d8
pop edi
mov dh, 0x91
salc
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.100f27e8
pop ecx
push eax
push dword [ebp + 0x18]
Function at 0x409642
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pop ecx
nop
clc
nop
cld
jae 0x409fed
sub al, 0
push ds
add bl, al
xlatb
lds eax, [eax - 0x68]
jle 0x407119
ja 0x4070b8
test byte [ebx], dl
adc dword [eax], eax
add byte [eax - 0x361374ab], dl
push dword [edi + 0x1e]
mov esi, dword [ebp + 0x24]
nop
clc
nop
cld
jae 0x409caa
add byte [eax], al
xchg edi, eax
mov al, byte [0x1cb80000]
cmp esi, dword [0x15249938]
nop
clc
nop
cld
jae 0x408c36
add bl, bh
add byte [eax], al
and al, 0xc0
and byte [edx + 0x57f88bcb], dh
or byte [esi - 0x3e], 0x2e
pushal
rcr dh, 0xb5
push eax
nop
clc
nop
cld
jae 0x408a2f
add byte [0x93eb00], ah
add byte [ebp + 0x50], ch
mov al, byte [0xfc4e8040]
xor eax, 0x90284589
clc
nop
cld
jae 0x409085
add byte [ecx], bl
add byte [eax], al
rol byte [eax], 1
cdq
mov dword fs:[eax], esp
push 0x2c22e
nop
clc
nop
cld
jae 0x407602
add byte [edi], bl
add byte [eax], al
push es
and byte [eax - 0x77], 0x5e
nop
clc
nop
cld
jae 0x407594
add byte [eax], al
inc eax
je 0x409123
cld
sbb byte [eax], al
fbld tbyte [edi + edi*8 + 0x30]
nop
clc
nop
cld
jae 0x408cbb
mov al, byte [0xfc2cc4]
test al, 0xa9
add byte [edi - 0x5f3cdbc4], al
test al, 0xd0
jmp 0x409123
pushal
nop
clc
nop
cld
jae 0x409c7c
sbb dh, byte [ebp + 0x6500003e]
add byte [ecx + 0x1a], bh
jp 0x409680
add byte [eax], al
js 0x409648
imul esp, dword [eax - 0x57c20000], 0x72
push ebx
nop
clc
nop
cld
jae 0x407090
add byte [edx], bl
int 0x78
jmp 0x409c2e
add ecx, dword [ebx + 0x3c]
nop

Function at 0x409b8d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push dword fs:[eax]
xor eax, eax
nop
clc
nop
cld
jae 0x4090b3
hlt
Function at 0x4073a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4073b9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
or esi, esi
je 0x4073f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4073f0
lea ebx, [ebx]
cmp esi, edx
jae 0x4073f4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4073e0
cmp esi, edx
jb 0x4073fb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
sub eax, eax
cmp word [esi], ax
cmove esi, eax
push esi
pop eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40a070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43581c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
mov edx, 0x436c28
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0040a6a0
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], ebx
je 0x40a17d
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040a2d0
mov edi, dword [ebp - 0x28]
or eax, eax
jne 0x40a16d
or edi, edi
je 0x40a17d
mov eax, dword [section..data_1]
mov ecx, section..data_1
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
push 0x431cd8
push eax
mov byte [ebp - 4], 3
call fcn.004071c0
mov esi, dword [ebp - 0x14]
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a120
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 2
push 0
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb ebx, ebx
lea edx, [esi - 0x10]
or esi, 0xffffffff
inc ebx
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a170
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.shlwapi.dll_PathCombineA]
jmp 0x40a170
or esi, 0xffffffff
test edi, edi
je 0x40a180
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a180
or esi, 0xffffffff
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40a1c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.shlwapi.dll_PathCombineA]
push ebx
pop eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x629df1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6333a8
cmp edx, dword [eax]
je 0x629e13
add eax, 8
inc ecx
cmp eax, 0x633438
jl 0x629e04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6333a8]
jne 0x629f41
mov eax, dword [0x63ad30]
cmp eax, 1
je 0x629f1b
test eax, eax
jne 0x629e44
cmp dword [0x6332d4], 1
je 0x629f1b
cmp edx, 0xfc
je 0x629f41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x629e7b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062a7d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062ac60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x629ebe
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062ac60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62fac4
push edi
call fcn.0062cb30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062a7d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062a7e0
lea eax, [ebp - 0xa0]
push 0x62faa4
push eax
call fcn.0062a7e0
push dword [esi + 0x6333ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062a7e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062caa4
add esp, 0x2c
pop edi
jmp 0x629f41
lea eax, [ebp + 8]
lea esi, [esi + 0x6333ac]
push 0
push eax
push dword [esi]
call fcn.0062ac60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x5210a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xca000]
push edi
jmp 0x5210ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5210c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5210b0
mov eax, 1
add ebx, ebx
jne 0x5210d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5210e4
jne 0x521103
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x521103
dec eax
add ebx, ebx
jne 0x5210f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5210c8
add ebx, ebx
jne 0x5210ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x521155
xor ecx, ecx
sub eax, 3
jb 0x52111b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52118a
sar eax, 1
mov ebp, eax
jmp 0x521126
add ebx, ebx
jne 0x521126
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5210f4
inc ecx
add ebx, ebx
jne 0x521134
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5210f4
add ebx, ebx
jne 0x521141
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x521136
jne 0x521152
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x521136
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x521174
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x521166
jmp 0x5210b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x521174
add edi, ecx
jmp 0x5210b6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x521192
cmp byte [edi], 0x11
jne 0x521192
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 0x521197
lea edi, [esi + 0x11a000]
mov eax, dword [edi]
or eax, eax
je 0x52120f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x169714]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x169890]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5211c4
mov ecx, edi
jns 0x5211f3
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 + 0x169894]
or eax, eax
je 0x521209
mov dword [ebx], eax
add ebx, 4
jmp 0x5211e1
call dword [esi + 0x1698a4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x521240
cmp al, 0xef
ja 0x521233
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x521215
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x521222
mov ebp, dword [esi + 0x169898]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x521274
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x4029c8
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.00404b40
test esi, esi
jne 0x4029fe
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.00404c30
jmp 0x402a1c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028dc
mov edi, eax
test esi, esi
je 0x402a1c
cmp dword [ebx], 0
je 0x402a1c
dec esi
jmp 0x402a05
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403150
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x403166
sub ecx, 2
jne 0x403188
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x40318f
cmp edx, dword [ebx + 8]
je 0x403199
mov eax, 0x64
jmp 0x403194
mov eax, 0x67
jmp 0x403194
call sub.kernel32.dll_GetLastError
call fcn.00402860
pop ebx
ret

Function at 0x403590
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4035c3
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x4035ca
cmp edx, dword [ebx + 8]
je 0x4035d4
mov eax, 0x65
jmp 0x4035cf
mov eax, 5
jmp 0x4035cf
call sub.kernel32.dll_GetLastError
call fcn.00402860
mov eax, ebx
pop ebx
ret

Function at 0x403a98
Capabilities:
Query or enumerate registry value

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

Disassembly:
push ecx
cmp byte [0x44004c], 0
je 0x404989
cmp word [0x440220], 0xd7b2
jne 0x404951
cmp dword [0x440228], 0
jbe 0x404951
mov eax, 0x44021c
call dword [0x440238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x43e078
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 0x4049b0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x43e020], 0
jne 0x4049a5
push 0
push 0x43e098
push 0x43e078
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404afc
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.0040272c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x44004d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ac4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc