joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e4e16
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e4e31
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124aa056]
pop edx
test eax, eax
je 0x5e4f03
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e4ef2
test dword [ebp - 0x2a8], 1
jne 0x5e4ef2
and dword [ebp - 0x2a8], 0x100
jne 0x5e4ef2
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2e06]
pop edx
pop esi
test eax, eax
je 0x5e4e95
jmp 0x5e4ef2
cmp word [esi], 0x5a4d
jne 0x5e4ef2
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e4ef2
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2b4a]
pop edx
test eax, eax
je 0x5e4ef2
lea eax, [ebp - 0x28c]
push eax
call fcn.005e4d72
test eax, eax
jne 0x5e4eeb
jmp 0x5e4ef2
mov eax, esi
jmp 0x5e4f03
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e4e31
pop esi
leave
ret 4

Function at 0x4012a3
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403df4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403df0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x4011a6
mov dword [ebp - 0x24], str.cognomen
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403df0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.invocatory
push str.cognomen
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403df8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40136d
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401354
mov eax, dword [0x403df4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x401960
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0x4d
mov eax, dword [ebp - 8]
push eax
call dword [0x40b1e8]
mov dword [0x40af50], 0x44
push 0x12
push 0x3b
call fcn.00401030
add esp, 8
mov dword [0x40ac30], 0x1003f
push 0x25
push 0x64
call fcn.00401090
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.004017e0
add esp, 4
push 0x6d
push 0x5a
call fcn.00401060
add esp, 8
mov dword [ebp - 4], 0
jmp 0x4019cd
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [0x40ac0c]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x401a4e
push 0x4d
push 0x30
call dword [0x40af40]
mov edx, dword [0x40b1d8]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x28
add ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0xf8]
mov dword [0x40ac08], edx
push 0x46
push 0x2c
push 0
call dword [0x40ac1c]
push 0
mov eax, dword [0x40ac08]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [0x40ac08]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [0x40ac0c]
mov edx, dword [ecx + 0x34]
mov eax, dword [0x40ac08]
add edx, dword [eax + 0xc]
push edx
mov ecx, dword [0x40abf8]
push ecx
call dword [0x40afac]
jmp 0x4019c4
push 2
push 0x56
call dword [0x40af40]
call fcn.004018e0
push 0x54
push 0xf
push 0
call dword [0x40ac1c]
mov esp, ebp
pop ebp
ret

Function at 0x42e001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x9c06100
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x183f56a3
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x103d2d2c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x103e1c50]
jne 0x103d2d36
repz ret
jmp fcn.103d2fdd

Function at 0x103d3370
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.1000107b
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
je 0x103d34a7
jmp 0x103d341a
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.103d3d2d
mov ecx, 0x2e
lea edx, [0x103d32b9]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x88], esi
mov dword [0x103e1c30], 0x508
mov dword [esp + 0x84], 0x320000
mov esi, dword [0x103e1c18]
mov dword [esp + 0x70], esi
mov esi, dword [0x103e1c1c]
mov dword [esp + 0x64], esi
mov esi, dword [0x103e1c20]
mov dword [esp + 0x4c], esi
mov esi, dword [0x103e1c24]
mov dword [esp + 0x74], esi
mov esi, dword [0x103e1c28]
mov dword [esp + 0x44], esi
mov dword [0x103e1c2c], 0x3ae
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
jmp 0x103d3425
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
je 0x103d34db
jmp 0x103d34f3
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov dword [0x103e1c2c], ecx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x6c], edx
mov esi, dword [esp + 0x14]
mov edi, dword [edx + esi + 0x50]
mov dword [esp + 0x80], edi
mov dword [0x103e1c30], 0xfffff448
mov edi, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.103d395b
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
jmp 0x103d341a
lea eax, [esp + 0x40]
mov dword [0x103e1c30], 0x1500
mov dword [0x103e1c2c], 0x45c
mov dword [esp + 0xc], eax
call fcn.103d3587
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x103d3399
jmp 0x103d349a
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], ecx
je 0x103d3445
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 8], eax
mov eax, 0xfffffc34
mov ecx, dword [esp + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
jmp 0x103d3425
Function at 0x103d3587
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [0x103e1c2c], 0x1c6a
mov dword [ebp - 4], 0
mov dword [0x103e1c30], 0x2f2
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x103e1c2c], 0xb29
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x103d3619
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x103d35ed
jmp 0x103d36cc
mov eax, dword [ebp - 0x18]
add esp, 0x30
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x103d368e
jmp 0x103d36cc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x103d366e
jmp 0x103d36cc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x103d365a
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x25], cl
mov al, byte [ebp - 0x25]
test al, 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], edx
jne 0x103d3619
jmp 0x103d365a
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x103d3605
jmp 0x103d36cc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
sete dl
mov byte [ebp - 0x26], dl
mov al, byte [ebp - 0x26]
test al, 1
jne 0x103d35d1
jmp 0x103d36cc
mov dword [0x103e1c30], 0xa81
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
cmp word [eax + ecx*2], 0x6c
jne 0x103d36cc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x103d35e5
mov eax, dword [0x103e1c30]
add eax, 0xfffff6b5
mov dword [ebp - 0x30], eax
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov dword [0x103e1c30], ecx
mov dword [ebp - 0x18], eax
jmp 0x103d35e5
Function at 0x103d37b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [0x103e1c2c], 0x242
mov dword [ebp - 0x10], eax
call fcn.103d4508
xor ecx, ecx
mov edx, dword [0x103e1c2c]
mov esi, eax
mov edi, dword [eax + 0x3c]
mov ebx, esi
add ebx, edi
mov edi, dword [eax + edi]
cmp edi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
je 0x103d3807
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffffc697
mov dword [0x103e1c30], ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [ebp - 0x1c]
add esi, 0xffffd5ad
mov dword [0x103e1c2c], esi
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
je 0x103d3950
jmp 0x103d38fc
mov eax, dword [ebp - 0x38]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x20]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
je 0x103d391e
mov eax, dword [ebp - 0x40]
add eax, 1
mov cl, byte [ebp - 0x41]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x42]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x38], eax
jne 0x103d3859
jmp 0x103d391e
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x103e1c2c], 0x238b
mov edx, dword [ebp - 0x20]
add edx, ecx
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
jmp 0x103d3950
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edx
jmp 0x103d3859
mov eax, dword [ebp - 0x28]
add eax, 0x24
mov ecx, dword [ebp - 0x20]
add ecx, eax
mov dword [ebp - 0x5c], ecx
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x5c]
add ecx, dword [edx]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
jmp 0x103d38dd
mov al, byte [ebp - 0x42]
test al, 1
jne 0x103d38b0
jmp 0x103d3927
mov eax, dword [ebp - 0x48]
add eax, 2
mov dword [ebp - 0x60], eax
xor eax, eax
mov ecx, dword [ebp - 0x58]
add ecx, 1
mov edx, dword [ebp - 0x30]
cmp ecx, edx
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x34], eax
jb 0x103d38dd
mov eax, dword [ebp - 0x34]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x103d395b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 1
lea esi, [ebp - 0x24]
mov dword [0x103e1c2c], 0xffffeb5d
mov byte [ebp - 0x24], 0x56
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edx
jmp 0x103d3a3a
mov eax, dword [ebp - 0x38]
add eax, 0x2204
mov dword [0x103e1c2c], 0x258c
mov dword [ebp - 0x3c], eax
jmp 0x103d3a9b
mov eax, dword [ebp - 0x40]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x103e1c2c], 0x1eb
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.103d3c1f
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov dword [0x103e1c30], 0xb52
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edx], ecx
mov dword [0x103e1c2c], 0x25e3
cmp ecx, 0
mov dword [ebp - 0x3c], eax
je 0x103d3a9b
jmp 0x103d398f
mov eax, dword [ebp - 0x34]
mov cl, byte [eax + 0x103d7136]
mov dl, byte [eax + 0x103d7107]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x34], eax
jne 0x103d3a3a
mov dword [0x103e1c2c], 0xfffe5182
mov dword [0x103e1c30], 0x15f9
call fcn.103d4383
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.103d4651
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
jne 0x103d39a9
mov eax, dword [ebp - 0x3c]
add esp, 0x4c
pop esi
pop ebp
ret
Function at 0x103d3aa4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 0x145d
mov dword [0x103e1c34], 0
mov dword [0x103e1c38], 0
mov dword [0x103e1c44], 0
mov dword [0x103e1c2c], 0x145d
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x103d3b2f
jmp 0x103d3b41
mov eax, dword [0x103e1c2c]
mov ecx, dword [0x103e1c34]
mov edx, dword [0x103e1c38]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
jmp 0x103d3b41
mov dword [0x103e1c30], 0x2692
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
mov ebx, ecx
add ebx, 0x21fe
mov dword [0x103e1c2c], ebx
add edx, 1
mov dword [ebp - 0x34], eax
mov eax, edx
cdq
idiv edi
mov dword [0x103e1c34], edx
add ecx, 0x3191
mov dword [0x103e1c30], ecx
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
add ebx, esi
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv edi
mov dword [0x103e1c38], edx
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x103e1c3c], cl
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x103e1c30], 0x2b4
mov cl, byte [0x103e1c3c]
mov edx, dword [0x103e1c38]
mov byte [edi + edx], cl
mov edx, dword [0x103e1c34]
movzx edx, byte [edi + edx]
mov ebx, dword [0x103e1c38]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x103e1c30], 0xdf3
and ebx, 0xff
mov dword [0x103e1c44], ebx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x34]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x30], edx
je 0x103d3b2f
jmp 0x103d3b0d
Function at 0x103d412b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x103e1c2c]
add edi, 0xffffe7eb
mov dword [0x103e1c2c], edi
mov dword [0x103e1c38], 0
mov byte [0x103e1c3c], 0
mov dword [0x103e1c30], 0x4dd
mov dword [0x103e1c34], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x103d423a
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x103e1c40], 0
mov dword [0x103e1c2c], 0x959
mov edx, dword [0x103e1c38]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x103e1c40], edi
mov dword [0x103e1c2c], 0x1b47
mov eax, edi
cdq
idiv ecx
mov dword [0x103e1c38], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x103e1c3c], cl
mov dword [0x103e1c30], 0x5e8
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x103e1c3c]
mov edx, dword [0x103e1c38]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x103e1c34]
add edx, 1
mov dword [0x103e1c34], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x103d4187
jmp 0x103d428d
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x103e1c2c]
add eax, 0xfffffe61
mov dword [0x103e1c2c], eax
mov eax, dword [0x103e1c34]
add eax, 1
mov dword [0x103e1c34], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x103d423a
mov dword [0x103e1c2c], 0x208
mov dword [0x103e1c34], 0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x103d4187
mov dword [0x103e1c2c], 0x2088
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0xc20058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xc201a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc2007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc2006a
add dl, dl
jne 0xc20089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc200dc
xor eax, eax
add dl, dl
jne 0xc20096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc2017d
add dl, dl
jne 0xc200a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc200b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc200bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc200c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc200d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc20075
mov eax, 1
add dl, dl
jne 0xc200ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc200f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc200e1
sub eax, ebx
mov ebx, 1
jne 0xc20128
mov ecx, 1
add dl, dl
jne 0xc2010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc20119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc20105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc20075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc2013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc2014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc20136
cmp eax, 0x7d00
jae 0xc2016d
cmp eax, 0x500
jb 0xc20168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc20075
cmp eax, 0x7f
ja 0xc20170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc20075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc2019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc20075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402a40
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.00404514
test esi, esi
jne 0x402a76
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.00404604
jmp 0x402a94
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402954
mov edi, eax
test esi, esi
je 0x402a94
cmp dword [ebx], 0
je 0x402a94
dec esi
jmp 0x402a7d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40303c
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x403052
sub ecx, 2
jne 0x403074
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 0x40307b
cmp edx, dword [ebx + 8]
je 0x403085
mov eax, 0x64
jmp 0x403080
mov eax, 0x67
jmp 0x403080
call sub.kernel32.dll_GetLastError
call fcn.00402894
pop ebx
ret

Function at 0x40328c
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x4032bf
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 0x4032c6
cmp edx, dword [ebx + 8]
je 0x4032d0
mov eax, 0x65
jmp 0x4032cb
mov eax, 5
jmp 0x4032cb
call sub.kernel32.dll_GetLastError
call fcn.00402894
mov eax, ebx
pop ebx
ret

Function at 0x40363c
Capabilities:
Query or enumerate registry value

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