joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4baa30
Capabilities:
Access peb ldr_data
Create directory
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a1d0c
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x73a280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [0x748e40], edi
lea esi, [edi + 4]
mov dword [edi], vtable.CGuildMarkManager.0
mov dword [ebp - 0x18], esi
push 0x18
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005c8dfe
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005c8dfe
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x14]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esi
push 0x14
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005c8dfe
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xorps xmm0, xmm0
movups xmmword [edi + 0x1c], xmm0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
add edi, 0x34
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], edi
push 0x24
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.005c8dfe
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
push str.mark
mov byte [ebp - 4], 5
call fcn.0065d277
add esp, 0x14
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00447320
mov ecx, dword [eax + 8]
movq xmm0, qword [eax]
movq qword [ebp - 0x30], xmm0
cmp byte [ecx + 0xd], 0
jne 0x4bab81
mov eax, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x10]
jae 0x4babd4
cmp dword [esi + 4], 0xccccccc
je 0x4babff
mov edi, dword [esi]
mov dword [ebp - 0x24], esi
push 0x14
mov byte [ebp - 4], 6
mov dword [ebp - 0x20], 0
call fcn.005c8dfe
mov ecx, dword [ebp - 0x10]
add esp, 4
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], 0
mov dword [eax + 0x10], ecx
mov ecx, esi
push eax
push dword [ebp - 0x2c]
mov dword [eax], edi
push dword [ebp - 0x30]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov word [eax + 0xc], 0
call fcn.00446c80
mov edi, dword [ebp - 0x10]
inc edi
mov eax, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edi
cmp eax, 0x1900
jb 0x4bab58
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00446e70
int3
Function at 0x4bcff0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a1f63
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x73a280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea edi, [esi + 0x18]
mov dword [ebp - 4], 0
movups xmmword [edi], xmm0
lea eax, [edi + 0x10]
mov dword [edi + 0x14], 0xf
mov dword [eax], 0
mov dword [ebp - 0x10], eax
mov byte [edi], 0
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.0043c810
push 0
push 0
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004bd660
xor eax, eax
mov byte [esi + 0x38], 0
mov word [esi + 0x94], ax
mov byte [esi + 0x96], al
mov dword [esi + 0x98], eax
mov eax, esi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
cmp dword [esi + 0x14], 0xf
jbe 0x4bd121
mov eax, dword [esi]
mov dword [esi + 0x10], 0
mov byte [eax], 0
cmp dword [edi + 0x14], 0xf
jbe 0x4bd133
mov edi, dword [edi]
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 0x30]
mov dword [eax], 0
mov byte [edi], 0
call fcn.0043ca30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e1030
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x73a280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], ecx
mov ecx, dword [0x746958]
add ecx, 4
push ebx
push esi
push edi
mov eax, dword [ecx]
call dword [eax + 0x88]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4e1115
mov ecx, eax
call fcn.004414c0
test eax, eax
je 0x4e1115
xor ebx, ebx
call dword [sym.imp.IPHLPAPI.DLL_IcmpCreateFile]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e1128
call dword [sym.imp.KERNEL32.dll_GetLastError]
movaps xmm0, xmmword [0x6b8340]
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0xbc], xmm0
mov esi, eax
lea eax, [ebp - 0xbc]
movaps xmm0, xmmword [0x6c65f0]
movups xmmword [ebp - 0xac], xmm0
push eax
movaps xmm0, xmmword [0x6c6eb0]
movups xmmword [ebp - 0x9c], xmm0
mov dword [ebp - 0x4c], 0x274
movaps xmm0, xmmword [0x6c66a0]
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x48], 0xa7
movaps xmm0, xmmword [0x6c6290]
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x44], ebx
movaps xmm0, xmmword [0x6c6750]
movups xmmword [ebp - 0x6c], xmm0
movaps xmm0, xmmword [0x6c6270]
movups xmmword [ebp - 0x5c], xmm0
call fcn.00454140
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.005057e0
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret
push 0x20
mov dword [ebp - 0x38], 0x80
mov dword [ebp - 0x34], ebx
call fcn.0065d26c
mov esi, eax
add esp, 4
test esi, esi
jne 0x4e11bf
movaps xmm0, xmmword [0x6c6bd0]
lea eax, [ebp - 0xa0]
movups xmmword [ebp - 0xa0], xmm0
lea ecx, [ebp - 0x2c]
movaps xmm0, xmmword [0x6c68f0]
movups xmmword [ebp - 0x90], xmm0
push eax
movaps xmm0, xmmword [0x6c74a0]
movups xmmword [ebp - 0x80], xmm0
movaps xmm0, xmmword [0x6c6bc0]
movups xmmword [ebp - 0x70], xmm0
movaps xmm0, xmmword [0x6c65d0]
movups xmmword [ebp - 0x60], xmm0
movaps xmm0, xmmword [0x6b8070]
movups xmmword [ebp - 0x50], xmm0
call fcn.004d0d30
lea eax, [ebp - 0x2c]
push eax
call fcn.005057e0
add esp, 4
push edi
call dword [sym.imp.IPHLPAPI.DLL_IcmpCloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret
push 0x1388
push 0x20
push esi
lea eax, [ebp - 0x38]
push eax
push 4
push str.Hello_from_ICMP_ping
push str.57.129.24.163
call sub.WS2_32.dll_inet_addr
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_IcmpSendEcho]
test eax, eax
je 0x4e11eb
mov ebx, dword [esi + 8]
push esi
call fcn.00657fee
add esp, 4
push edi
call dword [sym.imp.IPHLPAPI.DLL_IcmpCloseHandle]
test ebx, ebx
je 0x4e1115
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 0x10], 0x6c
mov dword [ebp - 0xf], ebx
call fcn.00440e90
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xb], eax
lea eax, [ebp - 0x10]
push eax
push 9
call fcn.0052d080
test al, al
je 0x4e1115
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret
Function at 0x4ed5d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x73a280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x38]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edx
push 0
push 0
mov dword [ebp - 0x44], eax
mov eax, dword [ecx]
push edi
push ecx
mov dword [ebp - 0x38], 0
call dword [eax + 0x34]
mov ebx, eax
mov dword [ebp - 0x48], ebx
test ebx, ebx
js 0x4ed771
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004ec720
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004ec690
push 0
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004ec7e0
push 0
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.004ec7e0
mov ecx, dword [ebp - 0x44]
push 1
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebp - 0x38]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
test eax, eax
jne 0x4ed745
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop dword [eax]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004ec720
mov ecx, dword [esi + 0x20]
lea edx, [ebp - 0x14]
push 0
push 0x1000000
push 0
mov eax, dword [ecx]
push edi
push edx
push ecx
call dword [eax + 0x14]
test eax, eax
jns 0x4ed708
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [edi]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [ecx + 0x44]
test eax, eax
js 0x4ed6fd
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0xcc0020
push dword [esi + 0xc]
push dword [esi + 8]
push 0
push 0
push dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0x40]
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp - 0x3c]
mov eax, dword [edi]
push edi
call dword [eax + 0x68]
push dword [ebp - 0x40]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [ebp + 0x14], 0
je 0x4ed729
push 1
call ebx
test ax, ax
js 0x4ed742
push 0x1b
call ebx
test ax, ax
js 0x4ed742
push 0x20
call ebx
test ax, ax
js 0x4ed742
mov ecx, dword [ebp - 0x38]
push 0
push 0
push 0
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x18]
test eax, eax
je 0x4ed680
mov ebx, dword [ebp - 0x48]
sub dword [ebp + 0x18], 1
jne 0x4ed75b
push dword [ebp + 0x1c]
mov ecx, esi
push 0x514
push edi
call fcn.004ed0a0
mov ecx, dword [ebp - 0x44]
push 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4ed790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a31bd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x73a280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
call fcn.005c8dfe
add esp, 4
test eax, eax
je 0x4ed7cc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x4ed7ce
xor eax, eax
mov dword [ebp + 8], eax
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x4ed970
push 0
push 0
call fcn.00658cf5
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4ed80b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.005c7b02
int3
Function at 0x4ee430
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x73a280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push edi
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x105], 0x5c
je 0x4ee48b
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4ee478
mov ax, word [0x6c8674]
mov word [edi], ax
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4ee492
mov eax, dword [str.metin2client.dat]
mov dword [ecx], eax
mov eax, dword [0x6c8854]
mov dword [ecx + 4], eax
mov eax, dword [0x6c8858]
mov dword [ecx + 8], eax
mov eax, dword [0x6c885c]
mov dword [ecx + 0xc], eax
mov al, byte [0x6c8860]
mov byte [ecx + 0x10], al
call fcn.004bb5d0
lea edx, [ebp - 0x404]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x4ee4d0
push 7
lea eax, [ebp - 0x404]
push str.locale_
push eax
call fcn.0065d2e1
add esp, 0xc
test eax, eax
jne 0x4ee514
call fcn.004bb5d0
lea edx, [ebp - 0x404]
lea ecx, [eax + 7]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4ee507
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x104]
push eax
push 0x1ff
lea eax, [ebp - 0x304]
push eax
push 0
push esi
lea eax, [ebp - 0x404]
push eax
call edi
cmp byte [ebp - 0x304], 0
jne 0x4ee5a1
push 0x1ff
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 8]
push dword [0x74bb90]
call dword [sym.imp.USER32.dll_LoadStringA]
cmp byte [ebp - 0x304], 0
jne 0x4ee5a1
lea eax, [ebp - 0x104]
push eax
push 0x1ff
lea eax, [ebp - 0x304]
push eax
push 0
push esi
push 0x6c886c
call edi
cmp byte [ebp - 0x304], 0
jne 0x4ee5a1
lea ecx, [ebp - 0x304]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4ee594
lea eax, [ebp + 8]
mov ecx, 0x74bb94
push eax
call fcn.004edc40
lea ecx, [ebp - 0x304]
mov esi, eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ee5c0
sub ecx, edx
lea eax, [ebp - 0x304]
push ecx
push eax
mov ecx, esi
call fcn.00445140
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret

Function at 0x4eea10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a35af
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x73a280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0043c74a
pushf
push 0xa
Function at 0x4f1a90
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x74d03c]
test eax, eax
je 0x4f1ad4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x74d03c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f1abe
push dword [0x74d03c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x74d040]
mov dword [0x74d03c], 0
call dword [sym.imp.USER32.dll_SetFocus]
ret

Function at 0x4f2030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov edx, esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, esi
dec edi
mov dword [ebp + 0xc], edx
mov eax, edi
mov dword [ebp - 8], edi
sar eax, 1
mov dword [ebp - 4], eax
cmp esi, eax
jge 0x4f208e
nop dword [eax + eax]
lea edi, [ecx + ecx]
push dword [ebx + edi*4 + 4]
mov ecx, dword [ebx + edi*4 + 8]
call fcn.004f8e30
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, edi
mov eax, dword [ebx + ecx*4]
mov dword [ebx + esi*4], eax
mov esi, ecx
mov eax, dword [ebp - 4]
cmp ecx, eax
jl 0x4f2060
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
cmp ecx, eax
jne 0x4f20a2
mov eax, dword [ebp + 0x10]
test al, 1
jne 0x4f20a2
mov eax, dword [ebx + eax*4 - 4]
mov dword [ebx + esi*4], eax
mov esi, edi
cmp edx, esi
jge 0x4f20c9
mov eax, dword [ebp + 0x14]
lea edi, [esi - 1]
sar edi, 1
push dword [eax]
mov ecx, dword [ebx + edi*4]
call fcn.004f8e30
test al, al
je 0x4f20c9
mov eax, dword [ebx + edi*4]
mov dword [ebx + esi*4], eax
mov esi, edi
cmp dword [ebp + 0xc], edi
jl 0x4f20a6
mov eax, dword [ebp + 0x14]
pop edi
mov eax, dword [eax]
mov dword [ebx + esi*4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x505e90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x505f39
cmp byte [esi], 0
je 0x505f39
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x505eb0
sub ecx, edx
cmp ecx, 3
jb 0x505ec7
cmp byte [esi + 1], 0x3a
jne 0x505ec7
add esi, 3
mov ecx, esi
push ebx
push edi
mov edi, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x505ed0
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov dword [ebp - 4], eax
call fcn.005c91ea
mov ebx, eax
add esp, 4
mov al, byte [esi]
test al, al
je 0x505f2e
xor ecx, ecx
mov dword [ebp + 8], ecx
cmp al, 0x2f
je 0x505efe
cmp byte [edi], 0x5c
jne 0x505f22
push dword [ebp - 4]
push 0
push ebx
call fcn.006430f0
push dword [ebp + 8]
push esi
push ebx
call fcn.00653d40
add esp, 0x18
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp + 8]
mov al, byte [edi + 1]
inc edi
inc ecx
mov dword [ebp + 8], ecx
test al, al
jne 0x505ef5
push ebx
call fcn.005c913b
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x507810
Capabilities:
Get system information on windows
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x73a280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x130], ecx
test eax, eax
jne 0x50783f
mov eax, dword [esi + 0x114]
mov dword [esi + 0x134], eax
add eax, ecx
cmp eax, dword [esi + 0x114]
jbe 0x507862
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esi + 0x130]
xor edx, edx
mov ecx, dword [ebp - 0x44]
mov eax, edi
div ecx
mov ebx, edi
mov dword [ebp - 0x30], ecx
mov eax, edx
mov dword [ebp - 0x38], eax
sub ebx, eax
mov eax, dword [esi + 0x134]
push 0
mov dword [ebp - 0x34], eax
add eax, edi
push eax
push 0
push 2
push 0
push dword [esi + 0x110]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
mov dword [esi + 0x12c], ecx
test ecx, ecx
jne 0x5078d5
push str.CMappedFile::Map__m_hFM_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret 0xc
xor edx, edx
mov eax, edi
div dword [ebp - 0x30]
add edx, dword [ebp - 0x34]
push edx
push ebx
push 0
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x507929
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x29]
lea eax, [ebp - 0x28]
push eax
call fcn.005073f0
push esi
push eax
call fcn.005057e0
add esp, 8
xor eax, eax
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x3c]
add eax, dword [ebp - 0x38]
mov dword [esi + 0x13c], eax
mov dword [ecx], eax
mov ecx, esi
push dword [esi + 0x13c]
mov dword [esi + 0x128], 0
push dword [esi + 0x134]
call fcn.005077f0
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x134]
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.005c8a4d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x50c3b0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, edi
mov ecx, edi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
add ecx, eax
sub eax, 0x61c88647
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
add edi, edx
test ebx, ebx
jne 0x50c3c3
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x50c420
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0xc6ef3720
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, esi
mov ecx, esi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
sub esi, edx
test ebx, ebx
jne 0x50c436
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x50c580
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
or eax, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
jb 0x50c612
mov ecx, edi
shr ecx, 4
push ebx
mov dword [ebp + 0xc], ecx
push esi
lea esi, [edx + 2]
mov ebx, 4
nop dword [eax + eax]
movsx ecx, byte [esi - 2]
lea esi, [esi + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72a068]
movsx ecx, byte [esi - 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72a068]
movsx ecx, byte [esi - 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72a068]
movsx ecx, byte [esi - 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72a068]
sub ebx, 1
jne 0x50c5b0
add edx, 0x10
sub edi, 0x10
sub dword [ebp + 0xc], 1
jne 0x50c5a0
pop esi
pop ebx
test edi, edi
je 0x50c630
movsx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x72a068]
sub edi, 1
jne 0x50c616
not eax
pop edi
pop ebp
ret
Function at 0x50c900
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 1
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x50c92b
xor eax, eax
pop edi
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x50c950
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0
push ebx
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x50c9be
push ebx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
push ebx
push esi
call fcn.0050c580
add esp, 8
mov ebx, eax
test esi, esi
je 0x50c9ae
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret