joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f7b50
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x5f7b66
lea eax, [esi + 0x28]
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5f7b94
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
je 0x5f7c8e
mov ecx, dword [ebp - 8]
test ecx, ecx
jg 0x5f7c8e
mov eax, dword [ebp - 0xc]
jl 0x5f7bcb
cmp eax, 0x7fffffff
ja 0x5f7c8e
or eax, ecx
je 0x5f7c8e
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x5f7c8e
mov ecx, dword [ebp - 0xc]
push 0
push 0
push 0
push 4
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esi], eax
call dword [ebp + 8]
cmp dword [esi], 0
je 0x5f7c1c
mov eax, 0x5f7cf0
jmp 0x5f7c5d
push dword [esi + 4]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x5f7c8e
xor edi, edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 4]
sub eax, edi
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5f7c7f
add edi, dword [ebp - 4]
cmp edi, dword [esi + 4]
jne 0x5f7c34
mov eax, 0x5f7cc0
push ebx
mov dword [esi + 0x18], eax
call dword [ebp + 8]
mov eax, dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [esi + 0x10], eax
xor eax, eax
pop ebx
mov dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [ebp + 8]
pop edi
pop ebx
mov dword [esi], 0
mov eax, 0x51
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x665060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [eax], 0
je 0x665142
cmp dword [ebp + 0x10], 0
je 0x665142
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [eax + 4], 0xffffffff
push ebx
movzx esi, byte [edi]
movzx eax, byte [edi + 1]
shl esi, 8
add esi, eax
push ecx
mov ecx, dword [ebp - 4]
push esi
call fcn.006ad0d0
mov ecx, dword [ebp + 8]
mov ebx, eax
test cl, cl
je 0x6650b3
test ebx, ebx
je 0x66513f
mov edx, esi
and edx, 0xfffffe00
mov dword [ebp + 0xc], edx
nop
test cl, cl
jne 0x6650c8
test ebx, ebx
je 0x665113
mov eax, esi
xor ecx, ecx
shr eax, 6
and esi, 0x3f
and eax, 7
lea edx, [ebx + eax*8]
xor eax, eax
bts eax, esi
cmp esi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp esi, 0x40
mov esi, dword [edx + 8]
cmovae ecx, eax
cmp byte [ebp + 8], 0
je 0x6650fb
or eax, esi
or dword [edx + 0xc], ecx
jmp 0x665104
not eax
not ecx
and eax, esi
and dword [edx + 0xc], ecx
mov ecx, dword [ebp + 8]
mov dword [edx + 8], eax
mov edx, dword [ebp + 0xc]
mov dword [ebx], 0xffffffff
add edi, dword [ebp + 0x14]
sub dword [ebp + 0x10], 1
je 0x66513f
movzx esi, byte [edi]
movzx eax, byte [edi + 1]
shl esi, 8
add esi, eax
cmp edx, esi
ja 0x665098
lea eax, [edx + 0x200]
cmp esi, eax
jb 0x6650c0
jmp 0x665098
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x665150
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [ecx], 0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
je 0x665226
cmp dword [ebp + 0x10], 0
je 0x665226
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], 0xffffffff
movzx esi, byte [edi]
movzx eax, byte [edi + 1]
shl esi, 8
add esi, eax
mov dword [ebp + 0xc], esi
nop dword [eax + eax]
push edx
push esi
call fcn.006ad0d0
mov edx, dword [ebp + 8]
mov ebx, eax
test dl, dl
je 0x6651a4
test ebx, ebx
je 0x66521b
mov ecx, esi
and ecx, 0xfffffe00
add ecx, 0x200
mov dword [ebp - 4], ecx
cmp esi, dword [ebp + 0xc]
jb 0x66521b
mov dword [ebp + 0xc], esi
test dl, dl
jne 0x6651c5
test ebx, ebx
je 0x6651fa
mov eax, esi
xor ecx, ecx
shr eax, 6
and esi, 0x3f
and eax, 7
lea edx, [ebx + eax*8]
xor eax, eax
bts eax, esi
cmp esi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp esi, 0x40
cmovae ecx, eax
or dword [edx + 8], eax
or dword [edx + 0xc], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ebx], 0xffffffff
add edi, dword [ebp + 0x14]
sub dword [ebp + 0x10], 1
je 0x665226
movzx esi, byte [edi]
movzx eax, byte [edi + 1]
shl esi, 8
add esi, eax
cmp esi, ecx
jb 0x6651b5
mov ecx, dword [ebp - 8]
jmp 0x665190
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x669c90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d9410
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x747040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
mov dword [edi], 0
mov eax, dword [eax + 0x18]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0x10000
mov word [edi + 0x40], 0
mov ecx, dword [edi + 0xc]
add ecx, 0x90
mov dword [ebp - 4], 0
mov dword [edi + 0x44], 0x710938
call fcn.0068dd40
mov edx, 0x710938
mov ecx, edx
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov eax, edx
cmp dword [ecx + 0x10], 4
cmovae eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
test ecx, ecx
je 0x669d8d
mov eax, dword [ecx]
mov eax, dword [ecx]
test eax, eax
je 0x669d8d
mov eax, 1
lock xadd dword [ecx], eax
mov dword [edi + 0x38], ecx
mov byte [edi + 0x30], 0
mov ebx, dword [edi + 0xc]
mov ecx, dword [ebx + 0x20]
cmp ecx, 0xffffffff
jne 0x669dcc
lea ecx, [ebx + 0x38]
call fcn.00695b70
mov edx, 0x710938
cmp dword [eax + 0x10], 6
cmovae edx, dword [eax + 0xc]
movzx ecx, byte [edx + 4]
movzx eax, byte [edx + 5]
shl ecx, 8
add eax, ecx
xor ecx, ecx
cmp ecx, eax
sbb ecx, ecx
and ecx, eax
mov dword [ebx + 0x20], ecx
mov dword [edi + 0x3c], ecx
lea ecx, [edi + 0x14]
mov byte [edi + 0x40], 1
call fcn.006c7b20
mov dword [edi + 0x24], 0x3fffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x669fc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d9440
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x747040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x5c]
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [esi], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xffffffff
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x50], eax
mov eax, dword [eax + 0x18]
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0x10000
mov word [ecx + 0x2c], 0
test edx, edx
je 0x66a0c1
mov eax, dword [edx]
mov eax, dword [edx]
test eax, eax
je 0x66a0c1
mov eax, 1
lock xadd dword [edx], eax
mov dword [ecx + 0x24], edx
mov byte [ecx + 0x1c], 0
jmp 0x66a0cc
mov dword [ecx + 0x24], edx
mov byte [ecx + 0x1c], 0
test edx, edx
je 0x66a0d1
call fcn.006c7b20
mov ecx, dword [esi + 0x54]
add ecx, 0x90
mov dword [ebp - 4], 0
mov dword [esi + 0x8c], 0
call fcn.0068dd40
mov edx, 0x710938
mov ecx, edx
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
cmp dword [ecx + 0x10], 4
cmovae edx, dword [ecx + 0xc]
mov ecx, dword [esi + 0x54]
add ecx, 0x90
mov dword [esi + 0x90], edx
call fcn.0068dd40
mov ecx, dword [esi + 0x90]
mov dword [esi + 0x94], eax
call fcn.00696f60
cmp dword [esi + 0x4c], 1
mov dword [esi + 0x98], eax
jne 0x66a149
mov ecx, dword [esi + 0x50]
cmp dword [ecx + 0x68], 0
je 0x66a149
mov ecx, eax
call fcn.006865f0
jmp 0x66a14b
xor eax, eax
mov dword [esi + 0x9c], eax
mov ecx, edi
lea eax, [esi + 0xa0]
push eax
call fcn.006879b0
mov eax, dword [edi + 0x28]
mov edx, dword [esi + 0x90]
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], 1
mov dword [esi + 0xb4], 0xffffffff
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], pe_nt_image_headers32
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
sub ecx, 1
je 0x66a1ab
xor al, al
jmp 0x66a1c1
movzx ecx, byte [edx + 4]
mov eax, 0x100
imul ecx, eax
movzx eax, byte [edx + 5]
add cx, ax
setne al
mov ecx, esi
mov byte [esi + 0xc0], al
mov dword [esi + 0xc1], 0x101
mov dword [esi + 0xc8], 1
mov dword [esi + 0xcc], 0xffffffff
mov dword [esi + 0xd0], 0xffffffff
mov dword [esi + 0xd4], 0
call fcn.006a54d0
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 0x10
Function at 0x66a600
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d94c6
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x747040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [edi], edx
add eax, edx
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x3c], 1
mov dword [edi + 0x40], 1
mov dword [edi + 0x44], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x48], 1
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov eax, dword [edi]
mov dword [edi + 4], eax
mov eax, dword [edi + 0xc]
mov byte [ebp - 4], 2
mov dword [edi + 0x18], 0
mov dword [edi + 8], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.0068bdc0
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x30]
cmp edx, ecx
jl 0x66a746
inc edx
test ecx, ecx
js 0x66a722
cmp edx, ecx
jbe 0x66a746
mov esi, ecx
mov eax, esi
add esi, 8
shr eax, 1
add esi, eax
cmp edx, esi
ja 0x66a708
cmp esi, 0x3fffffff
jb 0x66a72e
not ecx
mov dword [edi + 0x30], ecx
mov eax, dword [0x710938]
mov dword [0x74b2f0], eax
jmp 0x66a759
mov ecx, dword [edi + 0x38]
test esi, esi
jne 0x66a7ad
push ecx
call fcn.005c69b0
add esp, 4
xor eax, eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x30], esi
mov ecx, dword [edi + 0x34]
lea eax, [ecx + 1]
mov dword [edi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [eax + ecx*4], 0
mov dword [edi + 0x3c], 1
mov eax, edi
mov dword [edi + 0x40], 1
mov dword [edi + 0x44], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x48], 1
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [esi*4]
push eax
push ecx
call fcn.005cfa1f
add esp, 8
test eax, eax
jne 0x66a740
mov ecx, dword [edi + 0x30]
cmp esi, ecx
jbe 0x66a746
or eax, 0xffffffff
sub eax, ecx
mov dword [edi + 0x30], eax
mov eax, dword [0x710938]
mov dword [0x74b2f0], eax
jmp 0x66a759
Function at 0x6cf780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d9b70
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x747040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, 0x710938
test eax, eax
cmovne ecx, eax
test ecx, ecx
je 0x6cf7ca
mov eax, dword [ecx]
mov eax, dword [ecx]
test eax, eax
je 0x6cf7ca
mov eax, 1
lock xadd dword [ecx], eax
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x10000
mov word [ebp - 0x10], 0
call fcn.006618a0
mov ebx, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x6cf8e7
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x34]
push ecx
push str.end___p.._p___u_edit_requests
push 0xffffffffffffffff
push 0
push 1
push 0
push ecx
push str.SANITIZE
call fcn.0040b8a0
mov eax, dword [eax]
add esp, 0x28
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x6cf8cb
mov esi, dword [ebp - 0x18]
or eax, 0xffffffff
lock xadd dword [esi], eax
cmp eax, 1
jne 0x6cf8cb
mov dword [esi], 0xffff2153
mov edi, dword [esi + 8]
nop
test edi, edi
je 0x6cf894
mov ecx, edi
call fcn.0068bf90
push edi
call fcn.005c69b0
add esp, 4
mov dword [esi + 8], 0
mov esi, dword [ebp - 0x18]
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x6cf8bb
push dword [esi + 0x18]
call eax
add esp, 4
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.005c69b0
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
push 8
push 1
call fcn.005cf5fe
mov esi, eax
add esp, 8
test esi, esi
je 0x6cf961
mov edi, dword [ebp + 0xc]
mov dword [esi], ebx
mov word [esi + 4], di
call fcn.0065ecf0
test eax, eax
je 0x6cf93e
mov dword [eax + 0xc], 0x66e4a0
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], fcn.0066e3e0
mov dword [eax + 0x20], 0xffffffff
mov dword [eax + 0x24], eax
mov dword [eax + 0x30], eax
mov dword [eax + 0x18], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0066e3e0
mov eax, 0x747f80
add esp, 4
mov dword [eax + 0x18], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0066e300
add esp, 4
mov eax, 0x747f80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5ae79c
Capabilities:
Encode data using xor

Disassembly:
xchg esp, eax
out 0xd1, eax
add cl, byte [esp + ebp*8 + 0x3d58793f]
xor eax, 0xba8aa9c
dec eax
ja 0x5ae7a6
mov ch, 0xd1
int3

Function at 0x64476c
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
les ecx, [edi - 0x26]
push 0x74
fisttp qword [edi + eax*8]
cmp eax, 0x2319e0f8
sahf
jle 0x64478e
mov dword [0x1b7d1148], eax
sbb dl, al
mov ebx, 0x71803040
imul edx, dword [ebx + 0x798caf18], 0xffffffbc
cmp byte [ecx], ah
or al, 0x6c
mov esp, 0x6c0c2138
sbb dword [ecx + 0x76354d59], eax
xchg ecx, eax
and al, 0x5d
xor ah, bh
push eax
aad 0x3f
xor esp, dword [ebp - 0x45fa7e03]
pop eax
add dword [edi + ebx*8], ecx
or edx, dword [esi + eax*2 + 0x58a115cc]
mov cl, byte gs:[esi]
scasb al, byte es:[edi]
mov ah, 5
cmp al, 0x1a
pop ds
std
sub ebx, dword [ebp + 0x50fcce37]
and dword [edi + edx*8 - 0x7dd781d6], edi
inc ebp
std
jle 0x644781
push 0xdaa828b0
mov cl, 0x1f
mov al, byte [0x35a14af9]
sbb ch, ch
xor al, 0xb
bound ecx, qword [edx + edi*8]
xchg edi, eax
pop esp
sar dword [ecx + 0x44], 1
outsb dx, byte [esi]
mov al, byte [0xd578f179]
lea esp, [ebx + 0x1c]
pop esp
dec edx
dec ecx
cmp dl, 0x10
push 0x8284cd64
bswap esp
push eax
dec edx
test ch, al
cmp cl, al
in al, 0xec
jmp dword [ebx + 0x61]
Function at 0x4035d5
Capabilities:
Terminate process

Disassembly:
jmp 0x45cb04
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45cb15
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058c6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4036fc
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a55b1
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a55c2
pop esi
ret
push ebx
push edi
push esi
call fcn.004a5498
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fb7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a55ea
push ebx
push esi
push edi
call fcn.004056aa
add esp, 0xc
push 0
call fcn.004061fe
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405772
Capabilities:
Parse pe header

Disassembly:
jmp 0x44bd00
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44bd3f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44bd3f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44bd3f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44bd3f
cmp dword [ecx + 0x74], 0xe
jbe 0x44bd3f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4499e9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00403765
mov eax, dword [eax + 0x14]
test eax, eax
je 0x449a2c
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x449a2c
sub eax, 1
je 0x449a27
sub eax, 1
je 0x449a23
xor eax, eax
leave
ret
push 3
jmp 0x449a2e
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x490385
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4903c4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4903c4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4903c4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4903c4
cmp dword [ecx + 0x74], 0xe
jbe 0x4903c4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49f356
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d7a
mov eax, dword [0x4d5040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405e20
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49f398
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49f4f4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f6f
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d8858]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00403274
mov ecx, dword [esi*4 + 0x4d8858]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x49f4ed
cmp eax, dword [ecx + edi + 0x24]
jne 0x49f4ed
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49f4ed
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403274
add esp, 0x14
test edx, edx
jl 0x49f4ed
jg 0x49f463
test eax, eax
jb 0x49f4ed
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49f4ed
jl 0x49f47d
cmp dword [ebp - 0x1008], eax
ja 0x49f4ed
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49f49b
test ebx, ebx
je 0x49f4d4
cmp ecx, edi
jae 0x49f4d4
mov al, byte [ecx]
cmp al, 0xd
jne 0x49f4b5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49f4c1
cmp byte [ecx + 1], 0xa
jne 0x49f4c1
inc ecx
jmp 0x49f4c1
movzx eax, al
movsx eax, byte [eax + 0x4d53a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49f49b
cmp edx, ebx
jne 0x49f49b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49f4f2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040304e
leave
ret
Function at 0x49fc33
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d8858]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49fc73
cmp byte [ebx], 0xa
jne 0x49fc73
or byte [edi + eax + 0x28], 4
jmp 0x49fc78
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x49fd77
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49fd5a
inc eax
cmp dl, 0xd
je 0x49fca4
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49fcca
cmp eax, ecx
jae 0x49fcd8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x49fc8c
jmp 0x49fd77
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49fd55
cmp dword [ebp - 0x10], 0
je 0x49fd55
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d8858]
test byte [eax + edi + 0x28], 0x48
je 0x49fd2f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49fd1a
mov byte [esi], dl
jmp 0x49fd2b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d8858]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49fd77
cmp byte [ebp - 1], 0xa
jne 0x49fd3e
cmp esi, ebx
jne 0x49fd3e
mov byte [esi], 0xa
jmp 0x49fd76
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401915
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49fd77
mov byte [esi], 0xd
jmp 0x49fd76
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d8858]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49fd74
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49fd77
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret