joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6150
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5431c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [eax], 0x22
jne 0x4d618a
inc eax
push 0x22
push eax
call fcn.00528f00
add esp, 8
test eax, eax
je 0x4d61f3
inc eax
test eax, eax
je 0x4d61f3
push 0x20
push eax
call fcn.00528f00
add esp, 8
test eax, eax
je 0x4d61f3
lea ecx, [eax + 1]
mov eax, ecx
push edi
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4d61b8
sub eax, edi
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041af60
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, esi
mov dword [ebp - 4], 0
call dword [eax + 0x9c]
cmp dword [ebp - 0x10], 0x10
pop edi
jb 0x4d61f3
mov edx, dword [ebp - 0x24]
push edx
call fcn.00527b8e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x9a], 1
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4d63a0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov eax, dword [ecx + 0x318]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4d6431
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, ebx
je 0x4d642b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebx
je 0x4d642b
mov ecx, eax
push edi
lea edi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x4d6410
sub ecx, edi
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0041af60
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x30]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.0041ad80
cmp dword [ebp - 0x18], 0x10
jb 0x4d6461
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00527b8e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
pop ebx
call fcn.00528d83
mov esp, ebp
pop ebp
ret 4
Function at 0x4db280
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x188]
push eax
push 0x55d094
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4db2ca
xor eax, eax
jmp 0x4db402
mov cl, byte [ebp - 0x21]
push ebx
mov byte [ebp - 0x20], cl
push edi
lea ecx, [ebp - 0x20]
call fcn.0043fff0
mov dword [ebp - 0x1c], eax
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], eax
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [ebp - 0x18], ebx
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x15c]
push str.popcap_d.dmo
push eax
mov dword [ebp - 0x14], ebx
call fcn.00528d1e
add esp, 0xc
cmp eax, 1
jne 0x4db330
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x20]
call fcn.00453400
lea eax, [ebp - 0x188]
push eax
push esi
call edi
test eax, eax
jne 0x4db300
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
dec ecx
cmp edx, ecx
jle 0x4db39e
cmp byte [ebp + 0xc], bl
je 0x4db39e
mov edx, dword [eax + 0xc]
push edx
lea eax, [ebp - 0x48]
push str.popcap_d.dmo
push eax
call fcn.00481330
mov ecx, dword [eax + 0x18]
mov esi, 0x10
add esp, 0xc
cmp ecx, esi
jb 0x4db380
mov eax, dword [eax + 4]
jmp 0x4db383
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x30], esi
jb 0x4db39b
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00527b8e
add esp, 4
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], ebx
jne 0x4db3ca
mov eax, dword [esi]
push esi
push eax
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.004535e0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00527b8e
add esp, 4
xor eax, eax
jmp 0x4db400
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.004a6150
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi]
mov edi, dword [ecx + 0xc]
push esi
push eax
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.004535e0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00527b8e
add esp, 4
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop esi
call fcn.00528d83
mov esp, ebp
pop ebp
ret
Function at 0x4dd420
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x30d]
test al, al
jne 0x4dd50f
mov al, byte [esi + 0x549]
test al, al
mov byte [esi + 0x30d], 1
je 0x4dd472
mov ecx, dword [esi + 0x8c]
mov edx, dword [esi + 0x88]
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0xd0]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x90]
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0xd4]
mov al, byte [esi + 0x531]
test al, al
je 0x4dd492
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
mov al, byte [esi + 0x531]
test al, al
jne 0x4dd483
pop edi
mov ecx, dword [esi + 0x344]
test ecx, ecx
je 0x4dd4a1
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esi + 0x334]
call fcn.00476230
mov ecx, dword [esi + 0x334]
call fcn.00489fd0
test eax, eax
jne 0x4dd4c2
mov byte [esi + 0x338], 1
mov al, byte [esi + 0x30e]
test al, al
jne 0x4dd4e3
mov eax, dword [esi + 0x33c]
test eax, eax
je 0x4dd4e3
mov eax, dword [eax + 0x54]
test eax, eax
je 0x4dd4e3
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [esi + 0x318]
test eax, eax
je 0x4dd4f6
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.004db660
mov al, byte [esi + 0x3a0]
test al, al
je 0x4dd50f
mov edx, dword [esi]
mov ecx, esi
pop esi
jmp dword [edx + 0x4c]
pop esi
ret
Function at 0x4e00a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4e00f0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x404]
push str._s_function_not_found_in_bass.dll
push ecx
call fcn.00529201
add esp, 0xc
push 0x10
push 0x55d870
lea edx, [ebp - 0x404]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0052c099
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00528d83
mov esp, ebp
pop ebp
ret
Function at 0x4e0390
Capabilities:
Terminate process

Disassembly:
push 0x5c46b4
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x5c46b0]
test eax, eax
jne 0x4e03e9
push 0x64
call fcn.005183e0
add esp, 4
test eax, eax
je 0x4e03c0
push str.bass.dll
mov ecx, eax
call fcn.004e0100
jmp 0x4e03c2
xor eax, eax
mov dword [0x5c46b0], eax
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4e03e9
push 0x10
push 0x55d870
push str.Cant_find_bass.dll.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0052c099
ret

Function at 0x4e04a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4e04f0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x404]
push str._s_function_not_found_in_fmod.dll
push ecx
call fcn.00529201
add esp, 0xc
push 0x10
push 0x55d870
lea edx, [ebp - 0x404]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0052c099
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00528d83
mov esp, ebp
pop ebp
ret
Function at 0x4e08a0
Capabilities:
Terminate process

Disassembly:
push 0x5c46bc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x5c46b8]
test eax, eax
jne 0x4e08fc
push 0x80
call fcn.005183e0
add esp, 4
test eax, eax
je 0x4e08d3
push str.fmod.dll
mov ecx, eax
call fcn.004e0500
jmp 0x4e08d5
xor eax, eax
mov dword [0x5c46b8], eax
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4e08fc
push 0x10
push 0x55d870
push str.Cant_find_fmod.dll.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0052c099
ret

Function at 0x4e0db0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x543e28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
mov edx, 0x3ff00000
lea edi, [esi + 0xc]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.Sexy::DSoundInstance.0
mov dword [esi + 4], ecx
mov byte [esi + 0x12], bl
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov dword [esi + 8], eax
mov dword [edi], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x30], 0xac44
je 0x4e0eab
mov ecx, dword [ecx + 0x1494]
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x14]
cmp eax, ebx
je 0x4e0e9f
cmp eax, 0x8878000a
jg 0x4e0e6c
je 0x4e0e5f
cmp eax, 0x8007000e
je 0x4e0e52
cmp eax, 0x80070057
jne 0x4e0e99
push ebx
push 0x55e134
push str.DSERR_INVALIDPARAM
jmp 0x4e0e92
push ebx
push 0x55e134
push str.DSERR_OUTOFMEMORY
jmp 0x4e0e92
push ebx
push 0x55e134
push str.DSERR_ALLOCATED
jmp 0x4e0e92
cmp eax, 0x88780032
je 0x4e0e87
cmp eax, 0x887800aa
jne 0x4e0e99
push ebx
push 0x55e134
push str.DSERR_UNINITIALIZED
jmp 0x4e0e92
push ebx
push 0x55e134
push str.DSERR_INVALIDCALL
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.0052c099
mov edi, dword [edi]
mov ecx, dword [edi]
lea eax, [esi + 0x30]
push eax
push edi
call dword [ecx + 0x20]
mov ecx, esi
call fcn.004dfe40
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e6750
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
pop ebp
ret
Function at 0x4f1900
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4f1933
push esi
call fcn.004ffa30
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4f192c
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4f19b4
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4f19a3
lea ebx, [ebx]
mov eax, dword [esi + 8]
test eax, eax
je 0x4f195d
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4f199e
cmp eax, 2
je 0x4f19a3
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4f1950
cmp eax, 3
je 0x4f1983
cmp eax, 1
jne 0x4f1950
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x4f1950
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4f1950
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004f1790
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x4f19d4
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
call fcn.004f1790
pop esi
pop ebp
ret

Function at 0x4f23b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
test edx, edx
push edi
mov edi, dword [ebp + 8]
je 0x4f2410
push ebx
push esi
mov ecx, dword [edx]
mov ebx, dword [ecx]
mov esi, dword [edx + 4]
mov ecx, dword [edx + 8]
add esi, ebx
cmp edi, ecx
mov ebx, edi
jl 0x4f23d4
mov ebx, ecx
xor ecx, ecx
test ebx, ebx
mov dword [ebp - 4], ebx
jle 0x4f2402
lea ecx, [ecx]
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
mov edi, dword [edi*4 + 0x589d80]
shl eax, 8
xor eax, edi
mov edi, dword [ebp - 4]
inc ecx
cmp ecx, edi
jl 0x4f23e0
mov edi, dword [ebp + 8]
mov edx, dword [edx + 0xc]
sub edi, ecx
test edx, edx
mov dword [ebp + 8], edi
jne 0x4f23c0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4f7810
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4f781e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 8
not eax
jb 0x4f7911
push ebx
push edi
mov edi, esi
shr edi, 3
xor edx, edx
mov dl, byte [ecx]
mov ebx, eax
shr ebx, 8
sub esi, 8
xor edx, eax
and edx, 0xff
mov eax, dword [edx*4 + 0x560a18]
xor eax, ebx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x560a18]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x560a18]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x560a18]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x560a18]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x560a18]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x560a18]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x560a18]
shr eax, 8
xor eax, edx
inc ecx
dec edi
jne 0x4f7837
pop edi
pop ebx
test esi, esi
je 0x4f7931
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x560a18]
shr eax, 8
xor eax, edx
inc ecx
dec esi
jne 0x4f7915
not eax
pop esi
pop ebp
ret
Function at 0x4fc700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebx + 0x24]
push esi
push edi
mov dword [ebp - 4], eax
jmp 0x4fc713
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub ecx, edx
sub ecx, esi
mov dword [ebp - 8], ecx
jne 0x4fc734
test edx, edx
jne 0x4fc743
test esi, esi
jne 0x4fc743
mov ecx, eax
jmp 0x4fc7cc
cmp ecx, 0xffffffff
jne 0x4fc743
mov ecx, 0xfffffffe
jmp 0x4fc7cc
mov esi, dword [ebx + 0x24]
lea esi, [eax + esi - 0x106]
cmp edx, esi
jb 0x4fc7cc
mov edi, dword [ebx + 0x30]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [edi + eax]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x68]
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x54]
sub esi, eax
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x68], esi
mov esi, dword [ebx + 0x44]
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x64], edx
lea edx, [ecx + esi*2]
jmp 0x4fc790
movzx ecx, word [edx - 2]
sub edx, 2
cmp ecx, eax
jb 0x4fc79f
sub ecx, eax
jmp 0x4fc7a1
xor ecx, ecx
dec esi
mov word [edx], cx
jne 0x4fc790
mov edx, dword [ebx + 0x38]
mov esi, eax
lea edx, [edx + eax*2]
nop
movzx ecx, word [edx - 2]
sub edx, 2
cmp ecx, eax
jb 0x4fc7bf
sub ecx, eax
jmp 0x4fc7c1
xor ecx, ecx
dec esi
mov word [edx], cx
jne 0x4fc7b0
mov ecx, dword [ebp - 8]
add ecx, eax
mov eax, dword [ebx]
mov edx, dword [eax + 4]
test edx, edx
je 0x4fc830
mov edx, dword [ebx + 0x6c]
mov edi, dword [ebx + 0x64]
mov esi, dword [ebx + 0x30]
add edx, edi
add edx, esi
push edx
push eax
call fcn.004fc4a0
mov ecx, dword [ebx + 0x6c]
add ecx, eax
mov edx, ecx
add esp, 8
cmp edx, 3
mov dword [ebx + 0x6c], ecx
jb 0x4fc81b
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edx, 0x106
jae 0x4fc830
mov edx, dword [ebx]
mov eax, dword [edx + 4]
test eax, eax
jne 0x4fc710
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x52714f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 4], 0
push edi
xor eax, eax
lea edi, [ebp - 3]
stosb byte es:[edi], al
push 2
lea eax, [ebp - 4]
push eax
push 0x22
call fcn.0052d2fc
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov al, byte [ebp - 4]
cmp al, 0x30
pop edi
jne 0x527181
push 2
pop eax
leave
ret
cmp al, 0x31
jne 0x52718a
xor eax, eax
inc eax
leave
ret
sub al, 0x32
neg al
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
leave
ret

Function at 0x528a1c
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x528a38
call fcn.0052b77d
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x528aaa
push esi
push 0x88
push 1
call fcn.0052c54a
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x528a90
push esi
call fcn.0052f9ae
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x52897c
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x528a88
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x528aa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0052a120
test ebx, ebx
pop ecx
je 0x528aa2
push ebx
call fcn.0052b78f
pop ecx
or eax, 0xffffffff
jmp 0x528aa9
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x52a5cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x58becc]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x52a646
push ebx
call fcn.0052a594
test eax, eax
pop ecx
jne 0x52a618
call fcn.0052b786
mov dword [eax], 0xf
call fcn.0052b77d
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.00528d83
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x52a658
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x52a608
inc eax
cmp eax, 0x104
ja 0x52a608
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x52a690
cmp eax, dword [ebp + 0x10]
jg 0x52a673
mov eax, dword [ebp + 0x10]
push eax
call fcn.0052c538
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x52a6a5
call fcn.0052b77d
mov dword [eax], 0xc
jmp 0x52a608
cmp eax, dword [ebp + 0x10]
jle 0x52a6a5
call fcn.0052b77d
mov dword [eax], 0x22
jmp 0x52a608
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.0052fcf0
pop ecx
pop ecx
jmp 0x52a60a
Function at 0x52bfc6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0052d447
xor esi, esi
inc esi
cmp dword [0x5c4d9c], esi
pop ecx
jne 0x52bfee
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x5c4d98], esi
mov byte [0x5c4d94], al
jne 0x52c054
mov ecx, dword [0x5c656c]
test ecx, ecx
je 0x52c035
mov eax, dword [0x5c6568]
sub eax, 4
cmp eax, ecx
jmp 0x52c02e
mov eax, dword [eax]
test eax, eax
je 0x52c020
call eax
mov eax, dword [0x5c6568]
sub eax, 4
cmp eax, dword [0x5c656c]
mov dword [0x5c6568], eax
jae 0x52c018
mov eax, 0x5840ac
mov esi, 0x5840b4
cmp eax, esi
mov edi, eax
jae 0x52c054
mov eax, dword [edi]
test eax, eax
je 0x52c04d
call eax
add edi, 4
cmp edi, esi
jb 0x52c045
mov eax, 0x5840b8
mov esi, 0x5840c0
cmp eax, esi
mov edi, eax
jae 0x52c073
mov eax, dword [edi]
test eax, eax
je 0x52c06c
call eax
add edi, 4
cmp edi, esi
jb 0x52c064
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x52c084
push 8
call fcn.0052d3b3
jmp 0x52c096
push dword [ebp + 8]
mov dword [0x5c4d9c], 1
call fcn.0052bf1f
pop ecx
pop ebp
ret
Function at 0x530061
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x530227
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x5c5440]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x530227
test cl, 0x48
je 0x5300c7
mov al, byte [eax + 5]
cmp al, 0xa
je 0x5300c7
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x530119
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x530101
call fcn.0052b77d
mov dword [eax], 9
call fcn.0052b786
mov dword [eax], esi
jmp 0x530111
cmp eax, 0x6d
je 0x530227
push eax
call fcn.0052b78f
pop ecx
or eax, 0xffffffff
jmp 0x530229
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x530222
test edx, edx
je 0x53013c
cmp byte [ebx], 0xa
jne 0x53013c
or al, 4
jmp 0x53013e
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x53021c
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x53020c
cmp al, 0xd
je 0x530172
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x5301fe
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x53018c
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x530187
add dword [ebp + 0x10], 2
jmp 0x5301e0
mov dword [ebp + 0x10], eax
jmp 0x5301fa
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5301b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5301fa
cmp dword [ebp - 0xc], 0
je 0x5301fa
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x5301d5
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x5301e0
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x5301fd
cmp ebx, dword [ebp + 0xc]
jne 0x5301e5
cmp byte [ebp - 1], 0xa
jne 0x5301e5
mov byte [ebx], 0xa
jmp 0x5301fd
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0053280f
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x5301fe
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x530156
jmp 0x53021c
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x53021c
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x530229
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret