joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x401220
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4e2600
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x10], esi
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov eax, dword [0x4e63f0]
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
mov byte [esi + 0xc], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esp + 0x38], 1
lea ecx, [esi + 0x24]
mov dword [esi + 0x20], 0x4f56d4
push ecx
mov dword [esi], 0x4f56dc
mov dword [esi + 0x20], 0x4f577c
call fcn.00464c9b
mov byte [esp + 0x38], 2
push 0xffffffffffffffff
lea eax, [esi + 0x214]
mov dword [esi], 0x4ec484
mov dword [esi + 0x20], 0x4ec528
mov byte [esi + 0x210], bl
push ebx
lea edx, [esp + 0x4c]
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], ebx
push edx
mov word [eax + 4], bx
call fcn.00401690
mov ecx, ebp
lea edi, [esp + 0x14]
mov byte [esp + 0x38], 3
call fcn.0042efe9
mov edi, 8
mov byte [esp + 0x38], 4
cmp dword [eax + 0x18], edi
jb 0x4012ed
mov eax, dword [eax + 4]
jmp 0x4012f0
add eax, 4
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 1
push 0x86c00000
push eax
push ebp
mov eax, esi
call fcn.0046c718
cmp dword [esp + 0x2c], edi
jb 0x401327
mov eax, dword [esp + 0x18]
push eax
call fcn.004b6eae
add esp, 4
cmp dword [esp + 0x5c], edi
jb 0x40133a
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004b6eae
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret 0x20
Function at 0x429870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4dc670
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x14], ebx
je 0x429a41
push 0x13
mov ebp, 7
push 0x4eeb90
lea esi, [esp + 0x48]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
call fcn.00407ef0
push ebx
push edi
mov ecx, esi
mov dword [esp + 0x88], ebx
call fcn.0042fc9e
add esp, 8
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x58], 8
mov esi, eax
jb 0x4298fa
mov eax, dword [esp + 0x44]
push eax
call fcn.004b6eae
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
je 0x429a41
cmp dword [edi + 0x18], 8
jb 0x42991b
mov edi, dword [edi + 4]
jmp 0x42991e
add edi, 4
lea edi, [edi + esi*2 + 0x26]
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x4f28a0]
mov eax, ecx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x429942
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x64]
call fcn.00407ef0
mov dword [esp + 0x80], 1
mov eax, edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x429980
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x2c]
call fcn.00407ef0
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x1c]
jb 0x4299b6
lea edx, [esp + 0x20]
mov eax, dword [esp + 0x60]
mov esi, 8
cmp dword [esp + 0x74], esi
jae 0x4299c9
lea eax, [esp + 0x60]
cmp dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x28]
jae 0x4299d7
lea ecx, [esp + 0x28]
mov edx, dword [edx]
push edx
call fcn.0042f390
add esp, 4
test eax, eax
sete byte [esp + 0x17]
cmp dword [esp + 0x3c], esi
jb 0x4299fc
mov eax, dword [esp + 0x28]
push eax
call fcn.004b6eae
add esp, 4
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x74], esi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
jb 0x429a27
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004b6eae
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x429a57
mov eax, dword [esp + 0x18]
add eax, 4
cmp eax, 0x24
mov dword [esp + 0x18], eax
jb 0x429926
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0x4308c5
Capabilities:
Create thread

Disassembly:
mov eax, dword [edi]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x4308d2
xor al, al
pop ebx
ret
cmp dword [eax + 4], ebx
je 0x4308ce
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x430828
push ebx
push ebx
call fcn.004ba4fd
mov ecx, dword [edi]
mov dword [ecx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], ebx
jne 0x430909
or dword [eax + 0x10], 0xffffffff
mov esi, dword [edi]
call fcn.0043086b
xor al, al
jmp 0x43092b
mov byte [eax + 8], 1
mov eax, dword [edi]
push dword [eax + 0x10]
call dword [0x4e6114]
cmp eax, 0xffffffff
jne 0x430929
mov esi, dword [edi]
call fcn.0043086b
mov eax, dword [edi]
mov byte [eax + 8], bl
mov al, 1
pop esi
pop ebx
ret

Function at 0x436a9b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dc0d2
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x515854]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
push eax
lea esi, [esp + 0x28]
call fcn.00401620
and dword [esp + 0x50], 0
mov eax, esi
push eax
call fcn.0042f63c
pop ecx
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
lea esi, [ebx + 0xc]
push esi
call fcn.0043bb97
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x1c]
lea esi, [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.0043bd2b
test al, al
je 0x436b70
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0043bb97
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 4]
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
call fcn.0043bd2b
test al, al
je 0x436b70
mov eax, dword [esp + 0x10]
mov edx, 0x4ec52c
call fcn.004074b0
jmp 0x436b98
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x436b7d
call fcn.004b7b58
mov esi, dword [esp + 0x18]
cmp esi, dword [edi + 4]
jne 0x436b8b
call fcn.004b7b58
add esi, 0x28
push esi
mov esi, dword [esp + 0x14]
call fcn.00401620
lea esi, [esp + 0x24]
call fcn.00401650
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004b6e9f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x442528
Capabilities:
Check http status code

Disassembly:
push 0x50
mov eax, 0x4da35f
call fcn.004bf193
mov ebx, dword [ebp + 0xc]
mov esi, ecx
call dword [0x4e6168]
cmp dword [esi + 0x18], 8
jb 0x44254a
mov esi, dword [esi + 4]
jmp 0x44254d
add esi, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 0x80400000
push esi
push eax
lea esi, [ebp - 0x28]
call fcn.0044ea6a
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x28], esi
jne 0x44257b
lea esi, [ebp - 0x28]
call fcn.0044ea91
xor al, al
call fcn.004bf26b
ret
lea eax, [ebp - 0x28]
push eax
push 0x13
lea ecx, [ebp - 0x1c]
pop eax
call fcn.0044eaba
cmp dword [ebp - 0x1c], 0xc8
jne 0x44256b
lea eax, [ebp - 0x28]
push eax
push 5
lea ecx, [ebp - 0x14]
pop eax
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x14], esi
call fcn.0044eaba
test al, al
jne 0x4425c7
call dword [0x4e60e8]
cmp eax, 0x2f76
jne 0x44256b
mov byte [ebp + 0xb], 1
mov dword [ebp - 0x14], 0xa00000
jmp 0x4425cc
cmp dword [ebp - 0x14], esi
je 0x44256b
mov edi, dword [ebp - 0x14]
inc edi
mov esi, ebx
call fcn.00401140
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x5c]
call fcn.00441dbd
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0
push dword [ebx + 8]
call fcn.004b9920
mov eax, dword [ebp - 0x50]
and dword [ebp - 0x18], 0
add esp, 0xc
cmp eax, dword [ebp - 0x14]
jae 0x442655
mov edi, 0x1000
cmp byte [ebp + 0xb], 0
mov edx, edi
jne 0x442618
mov ecx, dword [ebp - 0x14]
sub ecx, eax
cmp ecx, edi
jae 0x442618
mov edx, ecx
mov ecx, dword [ebx + 8]
add eax, ecx
push edx
push eax
lea esi, [ebp - 0x5c]
lea eax, [ebp - 0x28]
call fcn.0044eb0b
cmp eax, 0xffffffff
je 0x442652
test eax, eax
jne 0x442648
cmp byte [ebp + 0xb], al
jne 0x442652
push 0xa
call fcn.004b6454
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 3
ja 0x442652
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x14]
jb 0x442605
jmp 0x442655
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
cmp eax, ecx
je 0x442673
cmp byte [ebp + 0xb], 0
jne 0x442679
xor bl, bl
lea esi, [ebp - 0x28]
call fcn.0044ea91
mov al, bl
jmp 0x442575
cmp byte [ebp + 0xb], 0
je 0x442699
cmp eax, 0xa00000
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jae 0x44269e
mov ecx, dword [ebx + 8]
push 1
add ecx, eax
push 0
push ecx
call fcn.004b9920
add esp, 0xc
jmp 0x44269e
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov bl, 1
jmp 0x442664
Function at 0x449953
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push ebx
xor eax, eax
push esi
mov esi, dword [eax + 0x517248]
mov edx, dword [edi]
mov dword [eax + edx], esi
add eax, 4
cmp eax, 0x48
jl 0x44995f
xor eax, eax
mov edx, 0x100
mov ebx, dword [eax + 0x517290]
mov esi, dword [edi + 4]
mov dword [eax + esi], ebx
add eax, 4
dec edx
jne 0x449979
cmp eax, 0x1000
jl 0x449974
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
mov edx, dword [ebp - 4]
add edx, eax
mov dword [ebp - 8], edx
push 0xc
lea eax, [esi + 1]
cdq
pop ebx
idiv ebx
lea eax, [esi + 2]
push 0xc
add dword [ebp - 4], 4
movzx ebx, byte [edx + ecx]
mov bh, byte [esi + ecx]
cdq
pop ecx
idiv ecx
mov eax, dword [ebp + 8]
shl ebx, 8
push 0xc
movzx eax, byte [edx + eax]
or ebx, eax
lea eax, [esi + 3]
cdq
idiv ecx
mov ecx, dword [ebp + 8]
shl ebx, 8
movzx eax, byte [edx + ecx]
or ebx, eax
mov eax, dword [ebp - 8]
xor dword [eax], ebx
lea eax, [esi + 4]
cdq
pop esi
idiv esi
cmp dword [ebp - 4], 0x48
mov esi, edx
jl 0x449997
and dword [ebp + 8], 0
and dword [ebp - 4], 0
xor esi, esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push edi
call fcn.00449281
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [esi + eax], ecx
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
mov dword [esi + eax + 4], ecx
add esi, 8
cmp esi, 0x48
jl 0x4499fc
xor esi, esi
mov ebx, 0x80
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push edi
call fcn.00449281
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
mov dword [esi + eax], ecx
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 4]
mov dword [esi + eax + 4], ecx
add esi, 8
dec ebx
jne 0x449a2a
cmp esi, 0x1000
jl 0x449a25
pop esi
pop ebx
leave
ret 4
Function at 0x44dddf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e2c32
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x515854]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], eax
call fcn.0043bf95
mov ecx, dword [ebx + 0xc]
push 8
pop edi
cmp ecx, edi
jae 0x44de3c
xor al, al
jmp 0x44defc
mov eax, dword [ebx + 8]
mov edx, dword [eax]
test edx, edx
mov eax, dword [eax + 4]
mov dword [esp + 0x18], edx
je 0x44de57
test eax, eax
je 0x44de57
add ecx, 0xfffffff8
cmp ecx, eax
jb 0x44de35
mov eax, dword [ebx + 8]
and dword [esp + 0x10], 0
test edx, edx
mov dword [esp + 0x1c], eax
jbe 0x44defa
mov edx, 0x4ec52c
lea eax, [esp + 0x20]
call fcn.004074b0
and dword [esp + 0x98], 0
lea eax, [esp + 0x20]
push eax
push 0x80000001
lea eax, [esp + 0x44]
push eax
call fcn.0044b7d4
lea esi, [esp + 0x20]
mov byte [esp + 0x98], 2
call fcn.00401650
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + ecx]
mov edx, dword [ebx + 0xc]
add edi, 4
lea esi, [eax + edi]
cmp esi, edx
ja 0x44df1d
add edi, ecx
push eax
push edi
lea ecx, [esp + 0x44]
call fcn.0044bcfc
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x18]
mov edi, esi
call fcn.0043e08c
or dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.0044b838
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jb 0x44de6b
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004b6e9f
mov esp, ebp
pop ebp
ret
or dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.0044b838
jmp 0x44de35
Function at 0x461ef6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [esi], ebx
je 0x461f08
xor eax, eax
jmp 0x461fb2
lea eax, [esi + 0x30]
push eax
call fcn.00464c60
test eax, eax
pop ecx
je 0x461f1e
push 0xc
pop eax
jmp 0x461fb2
push edi
xor edi, edi
lea eax, [esi + 0x14]
inc edi
push eax
mov dword [esi + 0x28], edi
call fcn.00464bb9
test eax, eax
pop ecx
jne 0x461fa8
lea eax, [esi + 0x18]
push eax
call fcn.00464bb9
test eax, eax
pop ecx
jne 0x461fa8
lea eax, [esi + 0x1c]
push eax
call fcn.00464bb9
test eax, eax
pop ecx
jne 0x461fa8
push dword [ebp + 0x10]
lea eax, [esi + 0x20]
push dword [ebp + 0x10]
push eax
call fcn.00464c16
add esp, 0xc
test eax, eax
jne 0x461fa8
push dword [ebp + 0x10]
lea eax, [esi + 0x24]
push ebx
push eax
call fcn.00464c16
add esp, 0xc
test eax, eax
jne 0x461fa8
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [esi + 4], edi
push dword [ebp + 8]
push ebx
push ebx
call fcn.004ba4fd
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x461fad
call dword [0x4e60e8]
cmp eax, ebx
jne 0x461fa8
mov eax, edi
cmp eax, ebx
je 0x461fad
push 0xc
pop eax
jmp 0x461fb1
mov dword [esi], edi
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x49592e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x495953
cmp eax, edi
jge 0x49594b
mov eax, esi
call fcn.0049532a
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x495975
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x49595a
cmp ecx, 4
jge 0x495994
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x495982
xor eax, eax
jmp 0x49598a
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x495978
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x4959c8
mov dword [0x51be50], 0x4fe3b8
xor eax, eax
jmp 0x495a08
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4959dd
mov dword [0x51be50], 0x4fe3c8
jmp 0x4959c4
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4959f2
mov ecx, edi
call fcn.00495355
test eax, eax
je 0x4959c4
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004b9fe0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x4bcbf6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4bcc33
cmp dword [ebp + 0x14], edi
je 0x4bcc33
cmp ecx, edi
jne 0x4bcc3a
call fcn.004b9e2b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004b7b34
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4bcc4e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4bcc6f
cmp ebx, 0xffffffff
je 0x4bcc5e
push ebx
push edi
push ecx
call fcn.004b9920
add esp, 0xc
cmp esi, edi
je 0x4bcc1b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4bcc1b
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4bcc8b
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4bcc92
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4bcd83
test word [esi + 0xc], 0x10c
je 0x4bcce6
mov eax, dword [esi + 4]
test eax, eax
je 0x4bcce6
jl 0x4bcde4
cmp ebx, eax
mov edi, ebx
jb 0x4bccb7
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4bcd8b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004b72ca
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4bcd7b
cmp ebx, dword [ebp - 0xc]
jb 0x4bcd53
cmp dword [ebp - 0xc], 0
je 0x4bcd10
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4bcd05
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4bcd0c
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4bcd1b
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4bcd1b
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4bcdb7
push eax
push dword [ebp - 8]
push esi
call fcn.004c5b26
pop ecx
push eax
call fcn.004ce5c0
add esp, 0xc
test eax, eax
je 0x4bcdf6
cmp eax, 0xffffffff
je 0x4bcde4
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4bcd7b
push esi
call fcn.004c6d92
cmp eax, 0xffffffff
pop ecx
je 0x4bcde8
cmp dword [ebp - 4], 0
je 0x4bcdb7
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4bcc9a
mov eax, dword [ebp + 0x14]
jmp 0x4bcc35
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4bcda2
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004b9920
add esp, 0xc
call fcn.004b9e2b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4bcc2b
cmp dword [ebp + 0xc], 0xffffffff
je 0x4bcdcd
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004b9920
add esp, 0xc
call fcn.004b9e2b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4bcc2b
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4bcc35
or dword [esi + 0xc], 0x10
jmp 0x4bcde8
Function at 0x4068c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068e9
xor eax, eax
test eax, eax
je 0x4068fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068fc
xor ecx, ecx
jmp 0x4068ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ac], 0
push esi
jne 0x406a59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a33
mov dword [ecx*4 + 0x4275a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275a8]
xor eax, esi
inc ecx
dec edx
jne 0x406a6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x431000
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
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xe3c5144
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5aaf22ca
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219