joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56dca0
Capabilities:
Receive http response

Disassembly:
mov eax, 0x1010
call fcn.005a5410
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [esp + 0x1018]
push ebx
push ebp
mov ebp, dword [esp + 0x101c]
push esi
push edi
mov edi, 0x1000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x102c]
push edi
push 4
push dword [0x633a74]
mov dword [esp + 0x24], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
push edi
lea eax, [esp + 0x24]
push eax
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x56ddbc
nop
mov eax, dword [esp + 0x10]
test eax, eax
je 0x56dd97
add eax, ebx
cmp edi, eax
jae 0x56dd60
nop
add edi, edi
jne 0x56dd3a
test esi, esi
je 0x56dd36
push esi
push edi
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor esi, esi
jmp 0x56dd60
push edi
test esi, esi
je 0x56dd50
push esi
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
jmp 0x56dd5e
push 4
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
push dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
lea eax, [ebx + esi]
push eax
call fcn.00586310
add ebx, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
add esp, 0xc
push eax
push 0x1000
lea eax, [esp + 0x24]
push eax
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x56dd10
lea eax, [ebx + 1]
cmp edi, eax
jae 0x56ddbc
nop
add edi, 1
jne 0x56ddd6
test esi, esi
je 0x56ddba
push esi
push edi
lfence
push dword [0x633a74]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor esi, esi
mov edi, dword [0x633a74]
mov byte [ebx + esi], 0
test ebx, ebx
je 0x56de17
mov eax, dword [esp + 0x14]
test eax, eax
je 0x56ddff
mov dword [eax], esi
jmp 0x56de09
lfence
push edi
mov edi, dword [0x633a74]
test esi, esi
je 0x56ddf2
push esi
push 4
push edi
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov esi, eax
jmp 0x56ddc2
push 4
push edi
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
jmp 0x56ddc2
push esi
push 0
push edi
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x56de13
mov dword [eax], ebx
mov al, 1
jmp 0x56de28
push esi
push 0
push edi
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor al, al
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00583f7f
add esp, 0x1010
ret 0xc
Function at 0x56e1a0
Capabilities:
Initialize winhttp library
Reference cloudflare dns server

Disassembly:
sub esp, 0x1c
test byte [0x6312ac], 1
push esi
push edi
mov esi, ecx
mov edi, str.1.1.1.1
jne 0x56e337
push ebx
mov ebx, 0x6312ac
lock bts dword [ebx], 0x1f
setb al
test al, al
je 0x56e1ea
test byte [0x6312ac], 1
jne 0x56e336
xor edx, edx
mov ecx, ebx
call sym.SystemInformer.exe_Ordinal_1388
jmp 0x56e336
cmp dword [0x62db64], 0x3f
push 0
sbb eax, eax
push 0
and eax, 0xfffffffc
push 0
add eax, 4
push eax
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [0x636008], eax
test eax, eax
je 0x56e32f
cmp dword [0x62db64], 0x3f
push 4
jae 0x56e237
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0xa00
push ecx
push 0x54
push eax
jmp 0x56e2e1
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x2800
push ecx
push 0x54
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 3
push eax
push 0x76
push dword [0x636008]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [0x62db64]
cmp eax, 0x64
jb 0x56e299
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push 0x85
push dword [0x636008]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [0x62db64]
cmp eax, 0x72
jb 0x56e2e7
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
push 0xc3
push dword [0x636008]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [0x62db64], 0x72
jb 0x56e2e7
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 1
push eax
push 0x9a
push dword [0x636008]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 1
push eax
push 0x49
push dword [0x636008]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [0x62db64], 0x64
jb 0x56e32f
push 0
test esi, esi
mov eax, edi
push 0x1bb
cmovne eax, esi
push eax
push dword [0x636008]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [0x63600c], eax
mov ecx, ebx
call sym.SystemInformer.exe_Ordinal_1358
pop ebx
cmp dword [0x62db64], 0x64
nop
jae 0x56e366
push 0
test esi, esi
push 0x1bb
cmovne edi, esi
push edi
push dword [0x636008]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
pop edi
mov dword [0x63600c], eax
pop esi
add esp, 0x1c
ret
mov eax, dword [0x63600c]
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x5752e0
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x4c
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
mov ebp, ecx
mov ebx, edx
push edi
mov eax, 0x38
mov esi, 0x78
mov edi, dword [ebp + 0x30]
mov edx, edi
and edx, 0x3f
sub eax, edx
sub esi, edx
cmp edx, 0x38
cmovb esi, eax
lea eax, [esi - 1]
push eax
lea eax, [esp + 0x15]
push 0
push eax
call fcn.005861b0
mov eax, dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
shl eax, 3
mov ecx, edi
shr ecx, 0x1d
add esp, 0xc
or ecx, eax
mov byte [esp + 0x10], 0x80
lea eax, [edi*8]
bswap eax
bswap ecx
mov dword [esp + esi + 0x14], eax
lea eax, [esi + 8]
mov dword [esp + esi + 0x10], ecx
mov ecx, ebp
push eax
call fcn.00575240
mov ecx, dword [ebp + 0x18]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx], edx
mov ecx, dword [ebp + 0x1c]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 4], edx
mov ecx, dword [ebp + 0x20]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 8], edx
mov ecx, dword [ebp + 0x24]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [ebx + 0xc], edx
mov ecx, dword [ebp + 0x28]
mov edx, ecx
mov eax, ecx
and edx, 0xff0000
shr eax, 0x10
or edx, eax
mov eax, ecx
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
shr edx, 8
mov ecx, dword [esp + 0x58]
shl eax, 8
pop edi
or edx, eax
mov dword [ebx + 0x10], edx
pop esi
mov dword [ebp + 0x18], 0x67452301
mov dword [ebp + 0x1c], 0xefcdab89
mov dword [ebp + 0x20], 0x98badcfe
mov dword [ebp + 0x24], 0x10325476
mov dword [ebp + 0x28], 0xc3d2e1f0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0
pop ebp
pop ebx
xor ecx, esp
call fcn.00583f7f
add esp, 0x4c
ret
Function at 0x5766c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x5766dd
xorps xmm3, xmm3
mov eax, 6
cvtss2sd xmm3, xmm2
mov dword [esp + 4], eax
jmp fcn.005758c0
nop dword [eax]
cmp eax, 0x3b9aca00
jge 0x5766f7
xorps xmm3, xmm3
cvtss2sd xmm3, xmm2
mov dword [esp + 4], eax
jmp fcn.005758c0
mov ecx, 0x84
mov eax, edx
mov edx, ecx
ret 4

Function at 0x576b60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x576b76
mov eax, 6
mov dword [esp + 4], eax
jmp fcn.005758c0
cmp eax, 0x3b9aca00
jge 0x576b86
mov dword [esp + 4], eax
jmp fcn.005758c0
mov ecx, 0x84
mov eax, edx
mov edx, ecx
ret 4
Function at 0x57c400
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
push edi
test esi, esi
je 0x57c44a
push 0
push 0
push 0x2000
lea edi, [esi + 0xc]
push edi
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x57c44a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x57c44a
add eax, 0xc
mov dword [esi + 4], edi
add eax, esi
mov dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
Function at 0x584e1c
Capabilities:
Parse pe header

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

Function at 0x594a2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x632a48]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x594a6c
cmp byte [ebx], 0xa
jne 0x594a6c
or byte [edi + eax + 0x28], 4
jmp 0x594a71
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x594b74
mov cl, byte [eax]
cmp cl, 0x1a
je 0x594b4f
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x594aa0
mov eax, dword [ebp - 8]
jmp 0x594ac0
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x594adc
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x594aba
add eax, 2
mov cl, 0xa
jmp 0x594abd
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x594a82
jmp 0x594b74
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 0x594b4a
cmp dword [ebp - 0x10], 0
je 0x594b4a
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x632a48]
test byte [eax + edi + 0x28], 0x48
je 0x594b29
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x594b19
mov byte [esi], 0xa
jmp 0x594b73
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x632a48]
mov byte [eax + edi + 0x2a], cl
jmp 0x594b73
cmp byte [ebp - 1], 0xa
jne 0x594b33
cmp esi, ebx
je 0x594b14
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0059ff88
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x594b74
mov byte [esi], 0xd
jmp 0x594b73
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x632a48]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x594b71
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x594b74
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x594b7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x632a48]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x594bc1
push 0xa
pop esi
cmp word [ebx], si
jne 0x594bc1
or byte [eax + edi + 0x28], 4
jmp 0x594bc6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x594d31
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x594d09
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x594c13
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x594c3d
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x594c5c
push 0xa
pop ebx
cmp word [edx], bx
jne 0x594c2a
push ebx
add eax, 4
pop edx
jmp 0x594c32
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x594bd8
jmp 0x594d31
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x594d04
cmp dword [ebp - 0x14], 0
je 0x594d04
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x632a48]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x594ce0
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x594ca8
mov word [esi], ax
jmp 0x594d2e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x632a48]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x632a48]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x632a48]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x594d2e
cmp word [ebp - 4], ax
jne 0x594cea
cmp esi, ebx
je 0x594ca0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0059ff88
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x594d31
push 0xd
pop eax
jmp 0x594ca0
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x632a48]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x594d2b
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x594d31
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x598907
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x598921
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x598938
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x598990
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0059fd36
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x598990
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x598990
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x598990
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x59898a
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x59898c
xor bl, bl
mov al, bl
jmp 0x598992
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x59eddb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005982e1
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x59ee4a
cmp esi, dword [ebp - 4]
je 0x59ee45
cmp dword [ebp + 0xc], 0
je 0x59ee45
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x59ee22
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0059e918
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x59ee4c
xor eax, eax
inc eax
jmp 0x59ee4c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x59eeb8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005982e1
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005982e1
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x59ef2f
cmp word [ecx], dx
je 0x59ef2f
mov eax, dword [0x5cc924]
push edi
dec eax
push eax
push 0x5cc810
call fcn.0059ee50
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x59efa2
cmp word [eax], dx
je 0x59efa2
mov eax, dword [edi]
test eax, eax
je 0x59ef53
cmp word [eax], dx
je 0x59ef53
lea eax, [ebp - 0x10]
push eax
call fcn.0059e81e
jmp 0x59ef5c
lea eax, [ebp - 0x10]
push eax
call fcn.0059e8b9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x59efcc
mov eax, dword [0x5cc80c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5cc500
call fcn.0059ee50
add esp, 0xc
test al, al
je 0x59efcc
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x59ef97
cmp word [eax], di
je 0x59ef97
lea eax, [ebp - 0x10]
push eax
call fcn.0059e81e
pop ecx
jmp 0x59efce
lea eax, [ebp - 0x10]
push eax
call fcn.0059e8b9
jmp 0x59ef94
mov eax, dword [edi]
test eax, eax
je 0x59efb9
cmp word [eax], dx
je 0x59efb9
lea eax, [ebp - 0x10]
push eax
call fcn.0059e7d3
pop ecx
jmp 0x59efcc
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x59f097
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0059ecd5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x59f097
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x59f097
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x59f097
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x59f024
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0059926c
test ebx, ebx
je 0x59f092
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0059926c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x59f097
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x59f097
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0058801e
add esp, 0x10
xor eax, eax
inc eax
jmp 0x59f099
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00583f7f
leave
ret
Function at 0x5a0196
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.005a0112
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5a0305
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5a0305
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5a02ba
jg 0x5a01f2
test eax, eax
je 0x5a02b0
push 1
push 0x1000
call fcn.00598d00
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5a0215
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5a02a7
push 0x8000
push ebx
call fcn.005976ef
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5a023e
jg 0x5a0239
cmp ecx, 0x1000
jb 0x5a023e
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00595ea8
add esp, 0x10
cmp eax, 0xffffffff
je 0x5a0283
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5a0239
jl 0x5a026a
test ecx, ecx
jne 0x5a022b
push dword [ebp - 0xc]
push ebx
call fcn.005976ef
push esi
call fcn.00598d60
add esp, 0xc
xor ebx, ebx
jmp 0x5a0313
cmp byte [edi + 0x24], 0
je 0x5a029a
cmp dword [edi + 0x20], 5
jne 0x5a029a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5a02a5
mov ebx, dword [edi + 0x18]
jmp 0x5a02a7
xor ebx, ebx
push esi
call fcn.00598d60
pop ecx
jmp 0x5a0313
test ecx, ecx
jg 0x5a027c
jl 0x5a02ba
test eax, eax
jae 0x5a027c
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0059ff88
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5a02da
cmp byte [edi + 0x1c], 0
je 0x5a027c
jmp 0x5a030b
push ebx
call fcn.0059fd36
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5a027c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5a0313
cmp byte [edi + 0x1c], 0
je 0x5a0310
mov ebx, dword [edi + 0x18]
jmp 0x5a0313
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0059ff88
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5a05b4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5a05ff
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005a074d
test al, al
jne 0x5a05f9
sub edx, 2
cmp edx, edi
jne 0x5a05df
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5a0621
lea eax, [edi + 2]
cmp edx, eax
je 0x5a0621
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005a0500
add esp, 0x10
jmp 0x5a0719
push esi
lea ecx, [ebp - 0x255]
call fcn.005a074d
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a0662
push dword [ebp - 0x25c]
jmp 0x5a0611
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5a069f
cmp word [ebp - 0x226], 0
je 0x5a06c0
cmp word [ebp - 0x226], ax
jne 0x5a069f
cmp word [ebp - 0x224], 0
je 0x5a06c0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005a0500
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5a070c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5a0679
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5a06f4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5a0719
push 0x5a0330
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0058def0
add esp, 0x10
jmp 0x5a06e9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00583f7f
leave
ret

Function at 0x5a5120
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5a514d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5a514d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219