joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030070
Capabilities:
Encode data using xor

Disassembly:
mov ch, 0x68
adc dword [edx + 0x2f], esi
cmp byte [ecx], bh
inc edi
rcl byte [edi], 0x30
sub ebx, dword [esi + 0x43972b2f]
pop ecx
aad 0xc4
mov bh, 0x33
daa
pop ecx
salc
out 0x72, al
sbb byte [ebx - 0x77fed09e], dl
xor bh, ch
dec esi
scasd eax, dword es:[edi]
pop ebp
jl 0x10030052
retf

Function at 0x100301c0
Capabilities:
Encode data using xor

Disassembly:
sar byte [esi + 0x50], cl
sbb byte [edi - 0xc2799a4], dh
push 0xffffffffffffffcd
imul ebx, dword [ebp - 0x59eec7c0], 0x4db8adbe
je 0x100301c3
push eax
insd dword es:[edi], dx
dec eax
scasb al, byte es:[edi]
stc
movsb byte es:[edi], byte [esi]
cli
fnstsw word [eax]
salc
adc eax, 0x362a026e
mov edx, 0x30872778
xchg dword [eax], esi
cmpsd dword [esi], dword es:[edi]
xlatb
pop ebp
xor ah, byte [esi + eax*8]
and al, 0xc6
xor byte [ecx + 0x27], ah
popal
daa
mov ecx, 0x96ac0c47
dec ebx
test al, 0xf4
loopne 0x100301ba
push ecx
out 0x3d, eax
clc
in eax, dx
xor esp, dword [edx]
into
or dword [esi + esi + 0x64ad0170], eax
sahf
aaa
ret 0x3935

Function at 0x100309e0
Capabilities:
Encode data using xor

Disassembly:
pop ss
neg dword [edx]
dec bh
mov bh, 0x60
add ah, byte [edx + 0x1e]
aaa
sub byte [ebx - 0x20], cl
mov eax, 0xb351936
loope 0x100309c8
jl 0x10030a6e
mov al, 0xd
mov esp, 0x896ea699
jmp 0xfa0622da
and bl, ch
jo 0x10030a67
inc esp
xlatb
xchg edi, eax
cmp ecx, dword [esi + 0xb25393f]
and eax, 0x6d29330b
xchg al, ch
or eax, 0x6973b26b
mov al, byte [0x196cdbfb]
cmp eax, 0x8d148c61
daa
lodsb al, byte [esi]
jecxz 0x10030a3c
test cl, ch
pop edi
push edi
xlatb
push esp
cld
pop edx
cli
test edi, edi
xor dword ss:[ecx], ebp
jno 0x10030ab9
pop ss
out dx, ax
cmp byte [eax + 0x58e6d5e7], al
aad 0xe6
pop eax
sti
das
mov ah, 0x47
xor dword [esi - 0x6de5183], esi
jo sym.Main.dll__swprintf_p_l
add al, byte [edi + 0x75]
movsd dword es:[edi], dword [esi]

Function at 0x10030c50
Capabilities:
Encode data using xor

Disassembly:
imul esi, dword [esi + 0x50], 0x7f8ae99b
int1
pushfd
cmpsb byte [esi], byte es:[edi]
xchg ebp, eax
xor byte [ebp - 0x28], cl
cmp dword [esi], ecx
cwde
mov dword [0x4e0b7c55], eax
in al, dx
aas
sub ch, byte [eax]
rol dword [esi - 0x624a2ed9], cl
aad 0x2e
mov esp, 0x9df55c20
sub bl, dl
xchg byte [edi], ah
sal dword [ebp - 0x43d12a63], 1
and byte [ebp + esi*8 - 0x63], bl
out dx, eax
xchg edx, eax
lcall 0x15b, 0x4347f5c0
inc ebx
pop ebx
add dword [0xd816634c], ebp
push ss
fadd dword [esi]
push es
lds edi, [ebx]
arpl word [ebx + 0x300c11a3], di
dec ecx
xor ebx, eax
push esp
mov cl, 0xda
mov dword [esp], ecx
neg dword [ecx - 0x6d]
rcl dword [ebx]
jecxz 0x10030c56
push es
jne 0x10030c79
pop eax
xor byte [ebp - 0x744a4c53], al
mov ch, 0x8b
push edi
mov bh, 0x3c
invalid
out dx, eax
Function at 0x10001bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10001c18
cmp byte [esi + ebx - 1], 0xa
je 0x10001bec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10007104], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10002240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10002418
mov edi, dword [0x10007104]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10002327
test byte [0x100031e8], 8
jne 0x100023c0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x100031f8], 8
jne 0x10002380
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100022c9
cmp esi, 3
jbe 0x10002338
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x100022da
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x100051e8]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x100022c9
mov dword [esp], 0x100031f8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100022a0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x100022a0
mov dword [esp], 0x100031e8
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1000228b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10002293
mov eax, 0xffffffff
jmp 0x10002327
Function at 0x1000c120
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x10041430], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x1004142c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x10041430], eax
cmp ecx, 0x26f
jl 0x1000c130
mov dword [0x10034d20], 0x270
ret

Function at 0x1000c170
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x10040010]
cmp eax, dword [0x100344c0]
je 0x1000c188
mov dword [0x10034d20], 0x271
cmp dword [0x10034d20], 0x270
jl 0x1000c2a7
cmp dword [0x10034d20], 0x271
jne 0x1000c1bf
mov eax, dword [0x10040010]
call fcn.1000c120
mov eax, dword [0x10040010]
not eax
mov dword [0x10040010], eax
mov dword [0x100344c0], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x10041434]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x10041430]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x10041a64]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x10034d30]
xor edx, eax
mov dword [ebx*4 + 0x10041430], edx
cmp ebx, 0xe2
jl 0x1000c1c8
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x10041434]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x10041430]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x100410a4]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x10034d30]
xor edx, eax
mov dword [ebx*4 + 0x10041430], edx
cmp ebx, 0x26e
jl 0x1000c21c
mov eax, dword [0x10041dec]
and eax, 0x80000000
mov edx, dword [0x10041430]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x10041a60]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x10034d30]
xor eax, edx
mov dword [0x10041dec], eax
mov dword [0x10034d20], 0
mov eax, dword [0x10034d20]
mov eax, dword [eax*4 + 0x10041430]
add dword [0x10034d20], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x1000dd10
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x100341e0]
cmp ax, 0xcb
je 0x1000de0c
cmp ax, 0xcc
je 0x1000de0c
mov edx, dword [0x10042040]
test edx, edx
je 0x1000dd42
mov eax, dword [0x10041ee0]
call edx
mov ebx, eax
jmp 0x1000dd47
mov ebx, 0x10041ee4
cmp word [0x10041ed0], 0
jle 0x1000dd6a
mov eax, 0x10041eb0
call fcn.1000df80
mov eax, ebx
call fcn.1000d8f0
mov eax, ebx
call fcn.1000d960
mov edi, dword [ebx]
jmp 0x1000dd8a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x1000dd85
mov edx, edi
mov eax, ebx
call fcn.1000cdc0
jmp 0x1000dd88
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x1000dd70
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x10041ed0], 0
jle 0x1000de0c
mov edx, 0x10041df0
mov eax, ebx
call fcn.1000cef0
mov edi, eax
test edi, edi
je 0x1000dddf
mov eax, dword [0x10041e84]
mov dword [edi + 0xc], eax
cmp dword [0x10041e84], 0
je 0x1000ddd4
mov eax, dword [0x10041e84]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x10041e84], eax
sub word [0x10041ed0], 1
cmp word [0x10041ed0], 0
sete bl
mov eax, 0x10041eb0
call fcn.1000df90
test bl, bl
je 0x1000de0c
mov eax, 0x10041eb0
call fcn.1000df70
pop edi
pop esi
pop ebx
ret
Function at 0x1000f810
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov dword [0x10041250], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.1000f9f0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x10041250]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.100020f0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x10034260], eax
mov esi, dword [0x10034260]
jmp 0x1000f9b0
add esi, 1
movzx eax, byte [esi]
sub eax, 1
cmp eax, 0x20
jb 0x1000f8a0
cmp byte [esi], 0
je 0x1000f9b9
mov byte [ebp - 0x10c], 0
mov edi, esi
mov dword [ebp - 0x110], 0
jmp 0x1000f915
mov al, byte [esi]
cmp al, 1
jb 0x1000f90b
sub al, 0x20
jbe 0x1000f8dc
sub al, 2
je 0x1000f8ef
jmp 0x1000f90b
mov al, byte [ebp - 0x10c]
test al, al
je 0x1000f91a
add dword [ebp - 0x110], 1
jmp 0x1000f912
cmp byte [esi + 1], 0x22
je 0x1000f906
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x1000f912
add esi, 1
jmp 0x1000f912
add dword [ebp - 0x110], 1
add esi, 1
cmp byte [esi], 0
jne 0x1000f8cc
test dword [ebp - 0x114], 0xffffffff
je 0x1000f9a9
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.1000f9f0
mov byte [ebp - 0x10c], 0
mov esi, edi
mov eax, dword [0x10041250]
mov edx, dword [ebp - 0x114]
mov ebx, dword [eax + edx*4]
jmp 0x1000f9a1
mov al, byte [esi]
cmp al, 1
jb 0x1000f997
sub al, 0x20
jbe 0x1000f968
sub al, 2
je 0x1000f97b
jmp 0x1000f997
mov al, byte [ebp - 0x10c]
test al, al
je 0x1000f9a6
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
jmp 0x1000f99e
cmp byte [esi + 1], 0x22
je 0x1000f992
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x1000f99e
add esi, 1
jmp 0x1000f99e
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
add esi, 1
cmp byte [esi], 0
jne 0x1000f958
mov byte [ebx], 0
add dword [ebp - 0x114], 1
cmp byte [esi], 0
jne 0x1000f8a3
mov ebx, dword [ebp - 0x114]
mov dword [0x10041240], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x10041250
call fcn.1000db70
mov eax, dword [0x10041250]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x409070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40907f
pop dword [ebp - 0x28]
mov eax, 0x40907f
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x367e6
push 0
mov eax, 0x3424ce25
add eax, 0xcc1c12b3
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x88bb97d0
add ecx, 0x7744a559
xor esi, esi
add esi, eax
mov edi, 0x5933e001
sub edi, 0x58f2a43d
add edi, dword [ebp - 0x28]
mov edx, 0xacc60ee2
sub edx, 0x298a13cf
add dword [ebp - 0x20], 0xd1592838
mov ebx, dword [edi]
add dword [ebp - 0xc], 0x37d34cbc
add ebx, edx
mov dword [esi], ebx
xor dword [ebp - 8], 0xcb8107d6
add esi, 4
add edi, 4
loop 0x4090db
add eax, 0xe777
xor ebx, ebx
add ebx, eax
add eax, 0x2e336085
add eax, 0xd1cc9f80
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x1001152
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push 0x104
lea eax, [ebp - 0x170]
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.010010e4
cmp eax, 1
jl 0x100121b
push ebx
xor ebx, ebx
cmp byte [ebp - 0x170], bl
push esi
lea esi, [ebp - 0x170]
je 0x10011bb
cmp byte [esi], 0x3a
je 0x100119e
inc esi
cmp byte [esi], bl
jne 0x1001192
jmp 0x10011a1
mov byte [esi], bl
inc esi
cmp byte [esi], bl
je 0x10011bb
push 0x10010ac
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10011c1
lea esi, [ebp - 0x170]
push 0x29
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1001219
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jl 0x1001219
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1001219
push ebx
lea eax, [ebp - 0x14]
push eax
call sub.ole32.dll_CoRegisterSurrogateEx
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
xor eax, eax
leave
ret 0x10

Function at 0x45d027
Capabilities:
Encode data using xor

Disassembly:
push 0x4cf144df
inc edi
adc eax, edx
call fcn.00463b0c
sub eax, ebx
mov dword [ebp + 0x697d], esi
push 0xd1796b1b
jmp 0x463a02
test edi, edx
xchg edi, eax
sbb edi, eax
xchg al, dl
pop dword [esi + 0x1c]
lea eax, [ebp + 0x194]
push eax
adc edx, esi
test edx, 0x47b925d7
mov ecx, 0xf06c5f42
mov dword [esi + 0x18], esi
sub byte [esi + 2], 0xfc
mov dl, ah
push 4
push 3
lea esi, [esi + 0x14]
or edx, ecx
push esi
add dword [ebp + 0x157], ebp
not ecx
call dword [0x697d]
sub dword [ebp + 0x157], ebp
ret
call fcn.00463b0c
lea eax, [esp + 0x28]
mov ecx, ebx
mov dword [esp + 0x4c], esi
xchg esi, eax
push 0x20
mov edi, dword [esp + 0x4c]
push 8
xor al, ch
sbb ch, bh
push esp
test ch, al
call edi
call dword [esp + 0x50]
mov edx, 0xee5bac30
dec eax
xchg ch, cl
dec byte [esp]
jne 0x463a18
cmp al, 0xfd
mov dh, bh
pop eax
push 1
call fcn.0045d00e
mov dword [esi + 0x14], 0xc
jmp 0x45d176
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401be8
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
push ebp
push 0x401cb0
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4705c4
call sub.KERNEL32.DLL_WaitForSingleObject
cmp byte [0x470045], 0
je 0x401c17
push 0x4705c4
call sub.KERNEL32.DLL_WinExec
mov eax, 0x4705e4
call fcn.00401464
mov eax, 0x4705f4
call fcn.00401464
mov eax, 0x470620
call fcn.00401464
push 0xff8
push 0
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x47061c], eax
cmp dword [0x47061c], 0
je 0x401c8f
mov eax, 3
mov edx, dword [0x47061c]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x401c54
mov dword [ebp - 4], 0x470604
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov dword [0x470610], eax
mov byte [0x4705bc], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401cb7
cmp byte [0x470045], 0
je 0x401caf
push 0x4705c4
call sub.KERNEL32.DLL_WriteFile
ret

Function at 0x401cc0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp byte [0x4705bc], 0
je 0x401dbb
xor eax, eax
push ebp
push 0x401db4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x470045], 0
je 0x401cf4
push 0x4705c4
call sub.KERNEL32.DLL_WinExec
mov byte [0x4705bc], 0
mov eax, dword [0x47061c]
push eax
call sub.KERNEL32.DLL_Sleep
xor eax, eax
mov dword [0x47061c], eax
mov eax, dword [0x4705e4]
mov dword [ebp - 8], eax
jmp 0x401d32
push 0x8000
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
push eax
call sub.KERNEL32.DLL_VirtualQuery
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, 0x4705e4
cmp eax, dword [ebp - 8]
jne 0x401d17
mov eax, 0x4705e4
call fcn.00401464
mov eax, 0x4705f4
call fcn.00401464
mov eax, 0x470620
call fcn.00401464
mov eax, dword [0x4705dc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401d89
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [0x4705dc], eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x4705dc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401d68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401dbb
cmp byte [0x470045], 0
je 0x401da9
push 0x4705c4
call sub.KERNEL32.DLL_WriteFile
push 0x4705c4
call sub.KERNEL32.DLL_lstrcpyA
ret
pop ecx
pop ecx
pop ebp
ret
Function at 0x402444
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov ebx, eax
cmp byte [0x4705bc], 0
jne 0x40245f
call fcn.00401be8
test al, al
je 0x402467
cmp ebx, 0x7ffffff8
jle 0x402471
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4025e7
xor edx, edx
push ebp
push 0x4025e0
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x470045], 0
je 0x402492
push 0x4705c4
call sub.KERNEL32.DLL_WinExec
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x4024a2
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x40255a
mov eax, ebx
test eax, eax
jns 0x4024b7
add eax, 3
sar eax, 2
mov edx, dword [0x47061c]
mov edx, dword [edx + eax*4 - 0xc]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x40255a
mov edx, dword [ebp - 8]
add edx, ebx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x14]
and dword [edx], 0xfffffffe
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jne 0x4024fe
mov edx, dword [0x47061c]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
jmp 0x402524
mov edx, dword [0x47061c]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax*4 - 0xc], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
or eax, 2
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4705ac]
sub ebx, 4
add dword [0x4705b0], ebx
call fcn.004048e8
jmp 0x4025e7
cmp ebx, dword [0x470614]
jg 0x4025b5
sub dword [0x470614], ebx
cmp dword [0x470614], 0xc
jge 0x40257e
add ebx, dword [0x470614]
xor eax, eax
mov dword [0x470614], eax
mov eax, dword [0x470618]
mov dword [ebp - 0x14], eax
add dword [0x470618], ebx
mov eax, ebx
or eax, 2
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4705ac]
sub ebx, 4
add dword [0x4705b0], ebx
call fcn.004048e8
jmp 0x4025e7
mov eax, ebx
call fcn.004022fc
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4025e7
cmp byte [0x470045], 0
je 0x4025df
push 0x4705c4
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4025f0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
xor eax, eax
mov dword [0x4705c0], eax
cmp byte [0x4705bc], 0
jne 0x402628
call fcn.00401be8
test al, al
jne 0x402628
mov dword [0x4705c0], 8
mov dword [ebp - 4], 8
jmp 0x4027be
xor edx, edx
push ebp
push 0x4027b7
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x470045], 0
je 0x402649
push 0x4705c4
call sub.KERNEL32.DLL_WinExec
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
sub eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
test bl, 2
jne 0x40266e
mov dword [0x4705c0], 9
jmp 0x40278e
dec dword [0x4705ac]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4705b0], eax
test bl, 1
je 0x4026dc
mov eax, dword [ebp - 8]
sub eax, 0xc
mov eax, dword [eax + 8]
cmp eax, 0xc
jl 0x40269e
test eax, 0x80000003
je 0x4026ad
mov dword [0x4705c0], 0xa
jmp 0x40278e
mov edx, dword [ebp - 8]
sub edx, eax
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x10]
cmp eax, dword [edx + 8]
je 0x4026cc
mov dword [0x4705c0], 0xa
jmp 0x40278e
add ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
call fcn.00401dc0
and ebx, 0x7ffffffc
mov eax, dword [ebp - 8]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x470618]
jne 0x402721
sub dword [0x470618], ebx
add dword [0x470614], ebx
cmp dword [0x470614], 0x3c00
jle 0x402712
call fcn.0040218c
xor eax, eax
mov dword [ebp - 4], eax
call fcn.004048e8
jmp 0x4027be
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test al, 2
je 0x402748
and eax, 0x7ffffffc
cmp eax, 4
jge 0x402740
mov dword [0x4705c0], 0xb
jmp 0x40278e
mov eax, dword [ebp - 0xc]
or dword [eax], 1
jmp 0x402784
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x402768
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x402768
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0xc
jge 0x402774
mov dword [0x4705c0], 0xb
jmp 0x40278e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
add ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.00401dc0
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00402094
mov eax, dword [0x4705c0]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4027be
cmp byte [0x470045], 0
je 0x4027b6
push 0x4705c4
call sub.KERNEL32.DLL_WriteFile
ret
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

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

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