joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e9342
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x59f22c
push dword [ebp + 8]
call fcn.005214fe
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4e939f
push ebx
push edi
push esi
call fcn.00520497
push eax
call fcn.0053238d
mov edi, eax
pop ecx
pop ecx
cmp edi, dword [ebp + 0x10]
jbe 0x4e937e
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x4e9394
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.00520e60
xor ebx, ebx
add esp, 0x10
cmp edi, eax
sete bl
push esi
call fcn.00520131
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x4eea7f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push 0x78
pop ecx
mov ax, word [edi + 0x210]
add ax, word [ebp + 0xc]
cwde
cdq
idiv ecx
movzx eax, ax
mov dword [ebp + 0xc], eax
cwde
mov word [edi + 0x210], dx
cdq
xor eax, edx
sub eax, edx
movzx ebx, ax
xor eax, eax
cmp ax, bx
jge 0x4eeb25
xor ecx, ecx
cmp word [ebp + 0xc], ax
setle cl
xor edx, edx
mov dword [ebp - 4], ecx
inc edx
mov eax, dword [edi]
push 0
push ecx
push edx
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
je 0x4eeaed
mov ecx, edi
call fcn.004efe08
mov ecx, dword [ebp - 4]
inc esi
push 1
pop edx
cmp si, bx
jl 0x4eeac8
cmp si, bx
jge 0x4eeb25
push dword [ebp + 0x14]
or eax, 0xffffffff
mov ecx, ebx
push dword [ebp + 0x10]
sub ecx, esi
cmp word [ebp + 0xc], 0
push 1
pop edx
cmovg eax, edx
movsx ecx, cx
cwde
imul ecx, eax
movsx eax, cx
mov ecx, edi
imul eax, eax, 0x78
movzx eax, ax
push eax
push dword [ebp + 8]
call fcn.004d859c
test bx, bx
je 0x4eeb64
mov ecx, edi
call fcn.004d64ed
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
movzx edx, word [ebp + 0x14]
mov edi, eax
movzx ecx, word [ebp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
shl edx, 0x10
or edx, ecx
push edx
push dword [ebp + 8]
push 0x200
push edi
call esi
push 0x2000001
push edi
push 0x20
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4f28db
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 9
je 0x4f28e8
xor eax, eax
jmp 0x4f2916
push dword [ecx + 4]
call fcn.004edda7
pop ecx
test eax, eax
je 0x4f2903
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x98]
test al, 2
jne 0x4f28e4
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor eax, 0x8000
shr eax, 0xf
pop ebp
ret 4
Function at 0x4f2a04
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call fcn.004f28db
test eax, eax
je 0x4f2a39
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, ebx
and al, 1
movzx eax, al
push eax
call fcn.004f241a
xor eax, eax
inc eax
jmp 0x4f2b36
push esi
push dword [ebx + 4]
call fcn.004edda7
mov esi, eax
mov dword [ebp - 4], esi
pop ecx
test esi, esi
je 0x4f2ae3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
je 0x4f2ae3
cmp edi, 0x25
je 0x4f2a73
cmp edi, 0x27
je 0x4f2a81
cmp edi, 0x26
je 0x4f2a73
cmp edi, 0x28
jne 0x4f2ae3
cmp edi, 0x27
je 0x4f2a81
cmp edi, 0x28
je 0x4f2a81
push 2
jmp 0x4f2a83
push 3
pop edi
jmp 0x4f2a91
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x4f2acd
push edi
mov ecx, esi
call fcn.004d6d0e
mov esi, eax
test esi, esi
jne 0x4f2a86
mov ecx, dword [ebp - 4]
cmp edi, 3
setne al
push eax
call fcn.004d6a0b
mov ecx, eax
jmp 0x4f2ac0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x4f2acd
push edi
mov ecx, esi
call fcn.004d6d0e
mov esi, eax
test esi, esi
jne 0x4f2ab2
jmp 0x4f2ade
push 1
mov ecx, esi
call fcn.0055250a
push eax
mov ecx, ebx
call fcn.004f2d89
xor eax, eax
inc eax
jmp 0x4f2b35
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x12
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x11
call esi
shr eax, 0xf
lea ecx, [ebp + 8]
and al, 1
movzx eax, al
push eax
push edi
call fcn.004f3d17
lea eax, [ebp + 8]
mov ecx, ebx
push eax
call fcn.004f2b8a
xor ebx, ebx
lea ecx, [ebp + 8]
test al, al
setne bl
call fcn.00401cd0
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f8107
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x4f812a
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x4f81c7
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.004f7d1d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4f814d
push ebx
call fcn.00520131
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x4f81a3
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x5d7214]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x4f8178
call fcn.00520131
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x4f81a3
push esi
push 1
push eax
call fcn.00520e60
push ebx
mov esi, eax
call fcn.00520131
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x4f81ac
push dword [ebp - 4]
call dword [0x5d7218]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x4f81c6
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004f80b2
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ff70f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0x10]
mov ebx, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4ff72f
xor eax, eax
jmp 0x4ff78e
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4ff72b
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ff72b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x4ff72b
push edi
mov ecx, ebx
call fcn.004ff264
push dword [ebp + 0x10]
lea ecx, [ebx + 4]
push dword [ebp + 8]
call fcn.004ff246
mov ecx, ebx
mov dword [ebx], esi
call fcn.004ff7ea
test eax, eax
jne 0x4ff78d
xor ecx, ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
or dword [ebx], 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4ffa24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push 0xc
pop edi
mov eax, dword [esi]
sub eax, edi
mov dword [ebp - 4], ebx
push eax
call fcn.0051293a
mov dword [ebp + 0xc], eax
pop ecx
test eax, eax
je 0x4ffa9a
cmp dword [esi], edi
jbe 0x4ffa84
movzx eax, word [ebx + 0x18]
mov ecx, dword [ebp - 4]
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
shr ebx, 8
xor bl, byte [eax + edi]
mov byte [ebp - 8], bl
push dword [ebp - 8]
call fcn.004ffbb7
mov eax, dword [ebp + 0xc]
mov byte [eax + edi - 0xc], bl
inc edi
mov ebx, dword [ebp - 4]
cmp edi, dword [esi]
jb 0x4ffa4d
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.00512935
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
xor eax, eax
add dword [esi], 0xfffffff4
inc eax
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4ffae5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xc
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
jae 0x4ffb06
xor eax, eax
jmp 0x4ffb4e
push edi
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
xor esi, esi
push ebx
movzx eax, word [ecx + 0x18]
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
shr ebx, 8
xor bl, byte [ebp + esi - 0x10]
mov byte [ebp - 0x14], bl
push dword [ebp - 0x14]
call fcn.004ffbb7
mov ecx, dword [ebp - 0x18]
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xc
jl 0x4ffb11
mov ecx, dword [ebp + 0x10]
xor eax, eax
shr ecx, 0x18
cmp byte [ebp - 5], cl
pop ebx
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005126ae
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ffbb7
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x10]
xor eax, edx
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 0x18]
movzx eax, al
shr edx, 8
mov eax, dword [esi + eax*4]
xor eax, edx
mov dword [edi + 0x10], eax
movzx eax, al
add eax, dword [edi + 0x14]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 0x14], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [esi + eax*4]
mov dword [edi + 0x18], ecx
pop edi
pop esi
pop ebp
ret 4
Function at 0x507299
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x248
mov eax, 0x58b4c6
call fcn.00513400
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00518c00
add esp, 0xc
cmp dword [ebp + 8], 0xffffffff
je 0x5072d7
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x254]
call fcn.00407ba0
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004168c0
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x507302
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
push 1
lea ecx, [ebp - 0x248]
call fcn.004081f0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00407c80
lea eax, [ebp - 0x230]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0057ca61
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.004197c0
push esi
push 1
lea ecx, [ebp - 0x248]
call fcn.004081f0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x249]
cmovae ecx, dword [ebp - 0x230]
push edx
lea edx, [ebp - 0x24a]
mov byte [ebp - 0x249], 0x5c
push edx
lea eax, [ecx + eax*2]
mov byte [ebp - 0x24a], 0x2f
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
push eax
push ecx
call fcn.00503d55
add esp, 0x10
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
push 1
lea ecx, [ebp - 0x230]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.004081f0
mov al, bl
call fcn.005133aa
ret 8

Function at 0x51098f
Capabilities:
Create thread

Disassembly:
push esi
push 0x5ecc34
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
push eax
push eax
push eax
push 0x510c48
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5ecc30], eax
mov eax, esi
pop esi
ret
Function at 0x515432
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x58c7df
call fcn.00513400
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x51554f
cmp byte [ebx + 0x3e], 0
je 0x51554f
mov eax, dword [ebx]
mov edi, 0xffff
push edi
mov esi, dword [eax + 0xc]
mov ecx, esi
call fcn.005138b8
mov ecx, ebx
call esi
movzx eax, ax
cmp di, ax
sete al
test al, al
je 0x51547e
xor al, al
jmp 0x515551
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00411020
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x5154ae
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x40]
mov ecx, dword [esi + 0x20]
push eax
call fcn.005138b8
mov ecx, edi
call dword [esi + 0x20]
sub eax, 0
je 0x5154e3
sub eax, 1
je 0x5154e7
dec eax
sub eax, 1
je 0x51553d
xor bl, bl
jmp 0x51553f
mov byte [ebx + 0x3e], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x5154f7
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
sub esi, edx
je 0x51551f
cmp eax, 0x10
jae 0x515506
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.005206f5
add esp, 0x10
cmp esi, eax
jne 0x5154df
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x51553d
test esi, esi
jne 0x5154a2
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004110f0
jmp 0x51549c
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408600
mov al, bl
jmp 0x515551
mov al, 1
call fcn.005133aa
ret
Function at 0x5159c4
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x58b186
call fcn.00513400
mov esi, ecx
mov dword [ebp - 0x30], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
jne 0x5159e9
xor eax, eax
jmp 0x515b62
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x515a15
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x515a15
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x515b62
cmp dword [esi + 0x4c], 0
je 0x515b5f
mov ecx, esi
call fcn.0051563b
xor eax, eax
cmp dword [esi + 0x38], eax
jne 0x515a48
push dword [esi + 0x4c]
push edi
call fcn.005151bb
pop ecx
pop ecx
test al, al
je 0x515b5f
movzx ebx, di
jmp 0x515b5f
push eax
push 8
lea ecx, [ebp - 0x28]
mov word [ebp - 0x2c], di
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00411020
and dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x515a80
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [esi + 0x38]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x3c]
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
call fcn.005138b8
mov ecx, edi
call dword [esi + 0x1c]
test eax, eax
js 0x515b53
cmp eax, 1
jg 0x515b2e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x515ac9
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x38]
sub edi, edx
je 0x515af6
cmp eax, 0x10
jae 0x515ad8
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x30]
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.005206f5
add esp, 0x10
cmp edi, eax
jne 0x515b29
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
jmp 0x515af9
mov esi, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 0x3c], edx
jne 0x515b23
test edi, edi
jne 0x515a74
cmp dword [ebp - 0x18], 0x20
jae 0x515b4d
push edi
push 8
lea ecx, [ebp - 0x28]
call fcn.004110f0
jmp 0x515a6e
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
jmp 0x515b4d
cmp eax, 3
jne 0x515b53
mov eax, dword [ebp - 0x30]
push dword [eax + 0x4c]
push dword [ebp - 0x2c]
call fcn.005151bb
pop ecx
pop ecx
test al, al
je 0x515b4d
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx eax, bx
movzx ebx, ax
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408600
mov ax, bx
call fcn.005133aa
ret 4

Function at 0x53ba89
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053b74c

Function at 0x53ba94
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053b8cd

Function at 0x540b90
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00540850
Function at 0x547bec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x5608a1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x5608ae
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.005608ba

Function at 0x56219f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ecx + 8]
push esi
push edi
sub eax, 0
je 0x56221c
sub eax, 1
je 0x56220d
sub eax, 1
je 0x5621fe
sub eax, 1
je 0x5621e6
sub eax, 1
je 0x5621d9
sub eax, 1
jne 0x562232
cmp byte [ecx], 0
mov eax, str.true
mov edx, str.false
cmove eax, edx
push eax
jmp 0x562221
cmp dword [ecx], 0
mov eax, 0x5c012c
cmovne eax, dword [ecx]
jmp 0x5621d6
movsd xmm0, qword [ecx]
push ecx
push ecx
movsd qword [esp], xmm0
push dword [ebp + 8]
call fcn.00563e6b
add esp, 0xc
jmp 0x562229
push dword [ecx + 4]
push dword [ecx]
push dword [ebp + 8]
call fcn.00563f6d
jmp 0x5621f9
push dword [ecx + 4]
push dword [ecx]
push dword [ebp + 8]
call fcn.00563f02
jmp 0x5621f9
push 0x5c012c
mov ecx, dword [ebp + 8]
call fcn.00407f10
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 4
push 8
pop ecx
mov esi, 0x5b4d00
mov edi, 0x29a
rep movsd dword es:[edi], dword [esi]
push 0x7b
movsw word es:[edi], word [esi]
call fcn.0051f422
int3

Function at 0x56226c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 0xffffffff
jne 0x562288
mov esi, dword [ebp + 8]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x56227f
sub esi, ecx
mov eax, bind
cmp esi, 0x7fffffff
cmovae esi, eax
lea eax, [esi + 1]
push eax
call fcn.00523890
mov edi, eax
pop ecx
test edi, edi
je 0x5622bd
push esi
push dword [ebp + 8]
push edi
call fcn.00518680
add esp, 0xc
mov byte [edi + esi], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret
push 9
pop ecx
mov esi, str.Failed_to_allocate_string_value_buffer
mov edi, 0x29a
rep movsd dword es:[edi], dword [esi]
push 0x7b
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.0051f422
int3
Function at 0x56c6d3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
call fcn.00521256
mov ecx, dword [ebp + 8]
xor edi, edi
mov esi, dword [ebp + 0xc]
xorps xmm1, xmm1
movsd qword [ebp - 0x20], xmm1
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov al, byte [eax]
mov dword [esi], ecx
mov byte [ebp - 1], al
movzx eax, byte [ecx]
test byte [eax + 0x5b79c1], 8
je 0x56c71e
inc ecx
movzx eax, byte [ecx]
test byte [eax + 0x5b79c1], 8
jne 0x56c70e
mov dword [ebp + 8], ecx
lea eax, [ebp + 8]
push eax
call fcn.0056bd63
mov esi, dword [ebp + 8]
pop ecx
mov dword [ebp - 0x18], eax
cmp byte [esi], 0x30
jne 0x56c85b
mov cl, byte [esi + 1]
cmp cl, 0x78
je 0x56c748
cmp cl, 0x58
jne 0x56c85b
mov al, byte [ebp - 1]
add esi, 2
mov cl, byte [esi]
cmp cl, al
jne 0x56c763
cmp dword [ebp - 0xc], 0
jne 0x56c7c1
mov dword [ebp - 0xc], 1
jmp 0x56c7be
movzx eax, cl
test byte [eax + 0x5b79c1], 0x10
je 0x56c7c1
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x56c780
cmp cl, 0x30
jne 0x56c780
inc dword [ebp - 0x14]
jmp 0x56c7b4
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x1e
jg 0x56c7b3
movsx eax, cl
push eax
call fcn.0056c2ce
movsd xmm1, qword [ebp - 0x20]
mulsd xmm1, qword [0x5b5b98]
pop ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movsd qword [ebp - 0x20], xmm1
jmp 0x56c7b4
inc edi
cmp dword [ebp - 0xc], 0
mov al, byte [ebp - 1]
je 0x56c7be
dec edi
inc esi
jmp 0x56c74e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], edi
push 0
pop edi
add eax, ecx
je 0x56c85b
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov cl, byte [esi]
shl eax, 2
cmp cl, 0x70
je 0x56c7ec
cmp cl, 0x50
jne 0x56c83c
lea eax, [ebp + 8]
inc esi
push eax
mov dword [ebp + 8], esi
call fcn.0056bd63
mov edx, dword [ebp + 8]
mov esi, eax
pop ecx
mov al, byte [edx]
movzx ecx, al
test byte [ecx + 0x5b79c1], 2
je 0x56c85b
imul ecx, edi, 0xa
movsx edi, al
add edi, 0xffffffd0
add edi, ecx
inc edx
movzx eax, byte [edx]
test byte [eax + 0x5b79c1], 2
mov al, byte [edx]
jne 0x56c80d
test esi, esi
je 0x56c82d
neg edi
mov ecx, dword [ebp - 8]
mov eax, ecx
mov esi, dword [ebp + 0xc]
shl eax, 2
add eax, edi
mov dword [esi], edx
cmp dword [ebp - 0x18], 0
je 0x56c849
xorps xmm1, xmmword [0x5c5900]
push eax
push ecx
push ecx
movsd qword [esp], xmm1
call fcn.0052365f
add esp, 0xc
jmp 0x56c85d
fldz
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x57264b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00512da0
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x1018], ebx
call fcn.00564c66
push ebx
lea esi, [eax - 1]
mov dword [ebp - 0x1020], esi
call fcn.0057f673
pop ecx
pop ecx
test esi, esi
jne 0x5726c1
push 1
push ebx
push edi
call fcn.00572cd5
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov ebx, eax
inc esi
push dword [ebp - 0x1018]
call fcn.0051fea9
pop ecx
test eax, eax
je 0x57281d
push 0
push 0
push edi
call fcn.005662c6
jmp 0x572818
push str.too_many_arguments
lea eax, [esi + 0x14]
push eax
push edi
call fcn.00566138
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov eax, dword [ebp - 0x1020]
add esp, 0xc
inc ebx
mov dword [ebp - 0x101c], esi
dec eax
mov dword [ebp - 0x1020], eax
test ebx, ebx
je 0x57269e
push esi
push edi
call fcn.00565a1c
pop ecx
pop ecx
cmp eax, 3
jne 0x57278e
push esi
push edi
call fcn.00565fc5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x57273e
mov ebx, dword [ebp - 0x1018]
push ebx
call fcn.005202fa
mov esi, eax
push ebx
push esi
call fcn.00520a58
push 0x5c012c
push edi
call fcn.0056512c
xor ebx, ebx
add esp, 0x14
cmp esi, 0xffffffff
setne bl
jmp 0x572786
lea eax, [ebp - 0x1014]
push eax
push edi
call fcn.00565f19
lea eax, [ebp - 0x1014]
push esi
push eax
call fcn.0056684f
push dword [ebp - 0x1018]
push esi
push 1
push eax
call fcn.00520e60
mov esi, eax
lea eax, [ebp - 0x1014]
add dword [ebp - 0x100c], esi
push eax
call fcn.005668ce
xor eax, eax
add esp, 0x24
cmp eax, esi
sbb ebx, ebx
neg ebx
mov esi, dword [ebp - 0x101c]
jmp 0x5727f2
push 0
push esi
push edi
call fcn.00566025
add esp, 0xc
cmp byte [eax], 0x2a
jne 0x5727a0
inc eax
movsx eax, byte [eax]
sub eax, 0x4c
je 0x5727df
sub eax, 0x15
je 0x5727cc
sub eax, 0xb
je 0x5727c8
dec eax
sub eax, 1
jne 0x57280c
push dword [ebp - 0x1018]
push edi
call fcn.00572dea
pop ecx
pop ecx
jmp 0x5727f0
push 1
jmp 0x5727e1
push dword [ebp - 0x1018]
push edi
call fcn.00572c61
pop ecx
xor ebx, ebx
pop ecx
inc ebx
jmp 0x5727f2
push 0
push dword [ebp - 0x1018]
push edi
call fcn.00572cd5
add esp, 0xc
mov ebx, eax
mov eax, dword [ebp - 0x1020]
inc esi
mov dword [ebp - 0x101c], esi
test eax, eax
jne 0x5726e5
jmp 0x57269e
push str.invalid_format
push esi
push edi
call fcn.00565e3c
add esp, 0xc
jmp 0x572837
test ebx, ebx
jne 0x572832
push 0xfffffffffffffffe
push edi
call fcn.005656e7
push edi
call fcn.005650fa
add esp, 0xc
sub esi, dword [ebp + 0x10]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005126ae
mov esp, ebp
pop ebp
ret