joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cb9c
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cbb5
add dl, dl
jne 0x41cbd8
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc29
xor eax, eax
add dl, dl
jne 0x41cbe5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccc6
add dl, dl
jne 0x41cbf4
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc0a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc15
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc1f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbc4
mov eax, 1
add dl, dl
jne 0x41cc37
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc42
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc2e
sub eax, ebx
mov ebx, 1
jne 0x41cc75
mov ecx, 1
add dl, dl
jne 0x41cc5b
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc66
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc52
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc8c
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc97
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc83
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbc4
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cce7
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 0x41cbc4
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e0b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5aa56f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e161
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e14a
test esi, esi
jbe 0x41e161
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ac
test eax, eax
jne 0x41e13c
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e161
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e119
jmp 0x41e161
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e161
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5aa576
ret
Function at 0x41e9a4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x5aaf53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41e9df
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e9f8
lea eax, [ebp - 0x10]
mov edx, dword [0x5c3248]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ea0b
lea eax, [ebp - 0x10]
mov edx, dword [0x5c3248]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ea17
adc edx, 0
mov edx, dword [edx*4 + 0x5c20d8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41eb25
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41eb18
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d9c
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41eb18
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41eb18
cmp dx, 0x150
ja 0x41eb18
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41eb18
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eb3d
inc ebx
cmp ebx, 0x19
jne 0x41e9d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5aaf5a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x42560b
Capabilities:
Terminate process

Disassembly:
call fcn.00425618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x3381c21
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3e411830
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x35b776c0
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..text
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x4d947d59
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.0041d4e0
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
movzx eax, cx
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
cmp esi, 0x800
jae 0x401e94
test esi, esi
je 0x401e8c
lea eax, [ebp - 0x804]
test edi, edi
je 0x401e6c
push esi
push edi
push eax
call fcn.00406790
add esp, 0xc
jmp 0x401e8c
push 0x800
push 0
push eax
call fcn.00405fb0
add esp, 0xc
call fcn.0040bbb5
mov dword [eax], 0x16
call fcn.0040baf8
mov byte [ebp + esi - 0x804], 0
lea eax, [ebp - 0x1804]
mov edx, 0x800
push 0x800
push eax
lea ecx, [ebp - 0x804]
call fcn.00401040
lea eax, [ebp - 0x1804]
add esp, 8
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401ec0
mov esi, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
sub eax, edx
push 0
push 0
push 0
push 0
sar eax, 1
push eax
lea eax, [ebp - 0x1804]
push eax
push 0
push 0xfde9
call esi
push 0
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x1804]
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bab
mov esp, ebp
pop ebp
ret
Function at 0x404b00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push 0x40000002
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x404b98
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Process32First]
test eax, eax
je 0x404b98
nop dword [eax]
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404b78
test dl, dl
je 0x404b74
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404b78
add ecx, 2
add eax, 2
test dl, dl
jne 0x404b58
xor eax, eax
jmp 0x404b7d
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x130]
push eax
cmove esi, dword [ebp - 0x128]
push edi
call dword [sym.imp.KERNEL32.DLL_Process32Next]
test eax, eax
jne 0x404b50
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bab
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404bc0
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x41bd83
call fcn.0041bcf0
sub esp, 0x58
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov edi, 0xc3d380
push edi
call esi
cmp eax, 0x280a7
jne 0x404c25
push 0x402bfc
lea ecx, [ebp - 0x48]
call fcn.00404df5
push 0x402c38
push 0x402c40
mov esi, 0x420070
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.00405636
push ebx
call fcn.00405b9a
push 0x402bc3
push esi
call fcn.004058f0
add esp, 0x18
call fcn.00405a3d
push edi
call esi
mov esi, 0x420070
cmp eax, 0x35d85
jne 0x404c58
push 0x86ef
push 0x27d0c10a
call fcn.00405772
push 0x38
push 0x402c58
push 0x402c68
push esi
call fcn.0040553b
add esp, 0x18
mov eax, dword [0x41f568]
mov dword [0xc3d37c], eax
call fcn.00404baa
xor ebx, ebx
xor edi, edi
cmp edi, 0x656289
jne 0x404c7d
call fcn.00404b9e
mov dword [0xc39b44], eax
inc edi
cmp edi, 0x66d056
jl 0x404c6b
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp edi, 0x165914
jge 0x404ca0
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetCharWidthFloatW]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp edi, 0xdf7aa8
jle 0x404cc5
cmp dword [ebp - 0x18], 0x56982
je 0x404cc5
cmp dword [ebp - 0x14], 0x2bc49b6
jne 0x404cd7
inc edi
mov eax, edi
cdq
cmp edx, 1
jl 0x404c88
jg 0x404cd7
cmp eax, 0x54ca73ed
jb 0x404c88
push dword [0xc3d37c]
mov eax, dword [0x41dfa8]
push ebx
mov dword [0xc49a54], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
mov dword [0xc39b40], eax
cmp dword [0xc3d37c], ebx
jbe 0x404d0b
call fcn.00404b79
inc ecx
cmp ecx, dword [0xc3d37c]
jb 0x404cfd
xor edi, edi
cmp edi, 0x1095b
jne 0x404d63
push 0x402c70
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x402c78
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push dword [0xc39b44]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x423efc], eax
mov dword [ebp - 0x10], 0x20
add dword [ebp - 0x10], 0x20
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [0xc3d37c]
push dword [0xc39b40]
call dword [0x423efc]
inc edi
cmp edi, 0x2846a
jl 0x404d0d
call fcn.00404b3e
xor esi, esi
mov eax, dword [0xc3d37c]
add eax, esi
cmp eax, 0x5e
jne 0x404d8e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCompact]
push ebx
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
inc esi
cmp esi, 0x57ffb
jl 0x404d73
xor esi, esi
cmp dword [0xc3d37c], 0x23
jne 0x404dbd
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
cmp esi, 0x156cae
jne 0x404dca
call fcn.00404bb5
inc esi
cmp esi, 0x7b
jl 0x404d99
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40630d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d498]
jne 0x406317
repz ret
jmp fcn.0040ab7c
Function at 0x40dff9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407ab5
and dword [ebp - 4], 0
cmp dword [0x41ff94], 0
mov ebx, eax
jne 0x40e0aa
push 0x402224
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e15b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402218
push edi
call esi
test eax, eax
je 0x40e15b
push eax
call fcn.00407a43
mov dword [esp], 0x402208
push edi
mov dword [0x41ff94], eax
call esi
push eax
call fcn.00407a43
mov dword [esp], 0x4021f4
push edi
mov dword [0x41ff98], eax
call esi
push eax
call fcn.00407a43
mov dword [esp], 0x4021d8
push edi
mov dword [0x41ff9c], eax
call esi
push eax
call fcn.00407a43
pop ecx
mov dword [0x41ffa4], eax
test eax, eax
je 0x40e0aa
push 0x4021c0
push edi
call esi
push eax
call fcn.00407a43
pop ecx
mov dword [0x41ffa0], eax
mov eax, dword [0x41ffa0]
cmp eax, ebx
je 0x40e102
cmp dword [0x41ffa4], ebx
je 0x40e102
push eax
call fcn.00407abe
push dword [0x41ffa4]
mov esi, eax
call fcn.00407abe
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e102
test edi, edi
je 0x40e102
call esi
test eax, eax
je 0x40e0f9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e0f9
test byte [ebp - 0xc], 1
jne 0x40e102
or dword [ebp + 0x10], 0x200000
jmp 0x40e13b
mov eax, dword [0x41ff98]
cmp eax, ebx
je 0x40e13b
push eax
call fcn.00407abe
pop ecx
test eax, eax
je 0x40e13b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e13b
mov eax, dword [0x41ff9c]
cmp eax, ebx
je 0x40e13b
push eax
call fcn.00407abe
pop ecx
test eax, eax
je 0x40e13b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41ff94]
call fcn.00407abe
pop ecx
test eax, eax
je 0x40e15b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e15d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401050
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4010db
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x40606c], eax
cmp eax, 0xffffffff
je 0x4010db
push eax
push dword [0x406070]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
mov dword [0x406070], eax
test eax, eax
je 0x4010db
push 0
lea ecx, [ebp - 4]
push ecx
push dword [0x40606c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x406070]
mov eax, 0x5a4d
mov dword [0x406058], ecx
cmp word [ecx], ax
je 0x4010e2
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [0x40605c], eax
cmp dword [eax], 0x4550
jne 0x4010d1
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401380
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x3f4]
movaps xmm1, xmmword [0x404320]
mov ecx, 8
push ebx
push esi
mov dword [ebp - 0x408], eax
xor esi, esi
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x40c], eax
nop
lea eax, [ecx - 8]
movd xmm0, eax
lea edx, [edx + 0x40]
pshufd xmm0, xmm0, 0
lea eax, [ecx - 4]
paddd xmm0, xmm1
movups xmmword [edx - 0x50], xmm0
movd xmm0, eax
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x40], xmm0
movd xmm0, ecx
add ecx, 0x10
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x30], xmm0
movd xmm0, eax
lea eax, [ecx - 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x20], xmm0
cmp eax, 0x100
jl 0x4013c0
xor ecx, ecx
nop
xor edx, edx
mov ebx, dword [ebp + ecx*4 - 0x404]
mov eax, ecx
div dword [ebp - 0x40c]
movzx eax, byte [edx + edi]
add eax, ebx
add esi, eax
and esi, 0x800000ff
jns 0x401449
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [ebp + esi*4 - 0x404]
mov dword [ebp + ecx*4 - 0x404], eax
inc ecx
movzx eax, bl
mov dword [ebp + esi*4 - 0x404], eax
cmp ecx, 0x100
jl 0x401420
mov ebx, dword [ebp + 0x10]
xor edi, edi
test ebx, ebx
je 0x4014f8
inc ecx
and ecx, 0x800000ff
jns 0x401488
dec ecx
or ecx, 0xffffff00
inc ecx
mov edx, dword [ebp + ecx*4 - 0x404]
add esi, edx
and esi, 0x800000ff
jns 0x4014a1
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [ebp + esi*4 - 0x404]
mov dword [ebp + ecx*4 - 0x404], eax
movzx eax, dl
mov dword [ebp + esi*4 - 0x404], eax
mov edx, dword [ebp + ecx*4 - 0x404]
add edx, eax
and edx, 0x800000ff
jns 0x4014d2
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [ebp - 0x408]
mov dl, byte [ebp + edx*4 - 0x404]
xor byte [eax + edi], dl
inc edi
cmp edi, ebx
jb 0x401477
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d30
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00401d30
mov esp, ebp
pop ebp
ret

Function at 0x4028f2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402931
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402931
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402931
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402931
cmp dword [ecx + 0x74], 0xe
jbe 0x402931
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401b80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push esi
mov esi, dword [ebx + 0x2c]
push edi
mov ebp, dword [ebx + 0x3c]
sub ebp, dword [ebx + 0x74]
mov eax, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x2c]
lea edx, [esi + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x401bfa
mov eax, dword [ebx + 0x38]
push esi
lea ecx, [eax + esi]
push ecx
push eax
call fcn.0041b050
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x44]
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
add esp, 0xc
sub dword [ebx + 0x5c], esi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, esi
jb 0x401c50
sub eax, esi
sub edx, 1
mov word [ecx], ax
jne 0x401bc2
mov ecx, dword [ebx + 0x40]
mov edx, esi
lea ecx, [ecx + esi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, esi
jae 0x401c57
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x401be3
add ebp, esi
mov edi, dword [ebx]
cmp dword [edi + 4], 0
je 0x401c4c
mov edx, dword [ebx + 0x74]
add edx, dword [ebx + 0x6c]
push ebp
add edx, dword [ebx + 0x38]
push edx
call fcn.00401b30
add dword [ebx + 0x74], eax
mov edx, dword [ebx + 0x74]
add esp, 8
cmp edx, 3
jb 0x401c40
mov eax, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x38]
lea edi, [eax + ecx]
movzx eax, byte [edi]
mov ecx, dword [ebx + 0x58]
mov dword [ebx + 0x48], eax
shl eax, cl
movzx ecx, byte [edi + 1]
xor eax, ecx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp edx, 0x106
jb 0x43ed8c
pop edi
pop esi
pop ebp
ret
xor eax, eax
jmp 0x401bd3
sub eax, esi
jmp 0x401bf0
mov edx, dword [ebx]
cmp dword [edx + 4], 0
jne 0x401b86
pop edi
pop esi
pop ebp
ret