joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53ef40
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, ecx
mov edi, edx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x53f06f
push str.BinaryData
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x53ef93
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
mov dword [ebp - 8], eax
test ebx, ebx
je 0x53f069
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ecx, dword [edi + 0x18]
mov ebx, eax
mov edx, dword [edi + 0x1c]
mov esi, ecx
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
cmp ecx, edx
jle 0x53efc4
mov esi, edx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], esi
mov edx, ecx
test byte [edi + 0x28], 0x10
je 0x53f015
cmp esi, 0xffffffff
jne 0x53efeb
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x53efdd
lea esi, [eax + 1]
mov dword [edi + 0x10], esi
mov ecx, dword [ebp - 4]
mov edx, edi
push ebx
push esi
call fcn.0053f160
jmp 0x53f032
mov ecx, dword [ebp - 4]
push edx
push esi
mov edx, edi
call fcn.0053f080
mov ecx, dword ds:[ebp - 4]
mov edx, edi
push ebx
push esi
call fcn.0053f160
mov ecx, dword [ebp - 4]
mov edx, edi
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.0053eb80
jmp 0x53f032
cmp esi, 0xffffffff
jne 0x53f028
cmp dword [edi + 0x14], 3
mov esi, eax
jne 0x53f028
lea esi, [eax + 1]
mov dword [edi + 0x10], esi
mov eax, dword [edi + 4]
sub eax, esi
cmp ebx, eax
cmova ebx, eax
mov eax, dword ds:[edi]
push ebx
push dword [ebp - 0xc]
add eax, esi
push eax
call fcn.00580c90
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x10]
push 0x105
push 0
push 0
push dword [ebp - 4]
mov dword [edi + 0x10], eax
call dword [sym.imp.USER32.dll_RedrawWindow]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x542b20
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x14]
mov edi, ecx
push eax
push edi
mov esi, edx
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x542d1f
mov eax, dword ds:[ebp - 8]
or eax, dword [ebp - 0x10]
or eax, dword [ebp - 0xc]
or eax, dword [ebp - 0x14]
je 0x542d1f
cmp dword [esi + 0x1bc], 0
jg 0x542bcd
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push 0
mov ebx, eax
push ebx
push edi
call dword [sym.imp.USER32.dll_GetUpdateRgn]
mov eax, dword [esi + 0x1c0]
test eax, eax
jne 0x542b9b
mov dword [esi + 0x1c0], ebx
jmp 0x542bad
push 2
push ebx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.USER32.dll_BeginPaint]
jmp 0x542bc0
test eax, eax
je 0x542d1f
jmp 0x542d14
test dword [esi + 0x20], 0x200000
je 0x542c8c
cmp dword [esi + 0x17c], 0
jne 0x542c8c
push dword [esi]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x542c8c
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x17c], eax
test eax, eax
je 0x542c8c
mov eax, dword [esi + 0x38]
mov dword [esi + 0x188], eax
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x18c], eax
mov eax, dword [esi + 0x40]
mov dword [esi + 0x190], eax
mov eax, dword [esi + 0x44]
push eax
mov dword [esi + 0x194], eax
mov eax, dword [esi + 0x190]
inc eax
push eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x184], eax
test eax, eax
jne 0x542c6a
push dword [esi + 0x17c]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi + 0x17c], 0
jmp 0x542c8c
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword ds:[esi + 0x184]
push dword [esi + 0x17c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x180], eax
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
test ebx, ebx
je 0x542d1f
mov ecx, dword [ebp - 0x50]
mov edx, esi
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x17c]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x542d08
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, edi
call fcn.00547e60
mov edx, dword ds:[ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
push 0xcc0020
push edx
push ecx
push dword [esi + 0x17c]
sub eax, edx
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x542d14
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
push ebx
call fcn.00547e60
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e94f
mov esp, ebp
pop ebp
ret
Function at 0x568840
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xc
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
xor eax, eax
cmp dword [0x62dbb0], 0x3f
push eax
sbb ecx, ecx
push eax
and ecx, 0xfffffffc
mov dword [esi], eax
push eax
add ecx, 4
mov dword [esi + 4], eax
push ecx
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
test eax, eax
jne 0x56889c
push esi
push eax
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [0x62dbb0], 0x3f
lea ecx, [ebp - 4]
push 4
push ecx
push 0x54
push eax
jae 0x5688c9
mov dword [ebp - 4], 0xa00
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], 0x2800
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 3
push eax
push 0x76
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [0x62dbb0]
cmp eax, 0x64
jb 0x568916
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x85
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [0x62dbb0]
cmp eax, 0x72
jb 0x568935
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0xc3
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x568a80
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x14]
and edx, 1
shl edx, 0x17
push esi
mov esi, dword [ebp + 8]
mov eax, edx
or eax, 0x100
test byte [ebp + 0x14], 2
cmove eax, edx
push eax
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 8], eax
pop esi
test eax, eax
jne 0x568ac5
xor al, al
mov esp, ebp
pop ebp
ret 0x10
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 8
push ecx
push 0x3f
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov al, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x568ca0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push 0xffff
push dword [edi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x568cda
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x568d28
mov eax, dword [ebp - 4]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0
push eax
mov dword [ebp - 8], 0
call sym.SystemInformer.exe_PhCreateString3
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
push dword [ebp + 0xc]
push 0xffff
push dword [edi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x568d32
lea ecx, ds:[esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x568d28
call fcn.004fbd80
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [esi + 4]
call sym.SystemInformer.exe_PhCountStringZ
add eax, eax
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x568dc0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x21c], eax
mov edx, dword [ebp + 0xc]
lea eax, [esp + 4]
push esi
mov esi, dword [ebp + 8]
and dl, 1
push edi
mov edi, dword [ebp + 0x10]
push 0
push eax
movzx ecx, dl
lea eax, [esp + 0x28]
neg ecx
mov dword [esp + 0x14], 0x100
push eax
sbb ecx, ecx
and ecx, 5
mov eax, ecx
or eax, 0x13
test byte [ebp + 0xc], 2
push 0
cmove eax, ecx
push eax
push dword [esi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edi, edi
test eax, eax
je 0x568e6e
lea eax, [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push 0xa
lea eax, [esp + 0x18]
push eax
call sym.SystemInformer.exe_PhStringToInteger64
test al, al
je 0x568e6e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [edi], eax
mov al, 1
mov dword [edi + 4], ecx
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword ds:[esp + 0x224]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x568fa0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0059f2c0
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x1000
mov dword [ebp - 0x100c], eax
mov eax, dword [ebp + 0xc]
push edi
push 4
push dword [0x633f94]
mov dword [ebp - 0x1010], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1014], eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x1008]
push eax
push edi
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x100c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x5690c8
mov ecx, dword [ebp - 0x1008]
test ecx, ecx
je 0x569095
lea eax, ds:[ecx + ebx]
cmp edi, eax
jae 0x569052
add edi, edi
push edi
test esi, esi
jne 0x56903b
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x56904a
push esi
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [ebp - 0x1008]
mov esi, eax
push ecx
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebx + esi]
push eax
call fcn.00580c90
add ebx, dword [ebp - 0x1008]
lea eax, [ebp - 0x1008]
add esp, 0xc
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x100c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x569010
lea eax, [ebx + 1]
cmp edi, eax
jae 0x5690c8
inc edi
lfence
push edi
test esi, esi
jne 0x5690b5
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x5690c6
push esi
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov esi, eax
mov byte [ebx + esi], 0
test ebx, ebx
je 0x56910e
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x5690de
mov dword [eax], esi
jmp 0x5690ed
push esi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x5690f9
mov dword [eax], ebx
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e94f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5701a0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
mov dword [ebp - 0x50], eax
mov esi, 0x78
mov edi, dword [eax + 0x30]
mov edx, edi
and edx, 0x3f
mov eax, 0x38
sub eax, edx
sub esi, edx
cmp edx, 0x38
cmovb esi, eax
lea eax, [esi - 1]
push eax
lea eax, [ebp - 0x4b]
push 0
push eax
call fcn.00580b30
mov eax, dword ds:[ebp - 0x50]
lea edx, [ebp - 0x4c]
mov ecx, edi
mov byte [ebp - 0x4c], 0x80
shr ecx, 0x1d
add esp, 0xc
mov eax, dword [eax + 0x2c]
shl eax, 3
or ecx, eax
lea eax, [edi*8]
bswap eax
bswap ecx
mov dword [ebp + esi - 0x48], eax
lea eax, [esi + 8]
mov dword [ebp + esi - 0x4c], ecx
mov esi, dword [ebp - 0x50]
mov ecx, esi
push eax
call fcn.005700e0
mov ecx, dword [esi + 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 [esi + 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 [esi + 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 [esi + 0x24]
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 + 0xc], edx
mov ecx, dword [esi + 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 [ebp - 4]
shl eax, 8
xor ecx, ebp
or edx, eax
mov dword [ebx + 0x10], edx
pop edi
mov dword [esi + 0x18], 0x67452301
mov dword [esi + 0x1c], 0xefcdab89
mov dword [esi + 0x20], 0x98badcfe
mov dword [esi + 0x24], 0x10325476
mov dword [esi + 0x28], 0xc3d2e1f0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
pop esi
pop ebx
call fcn.0057e94f
mov esp, ebp
pop ebp
ret

Function at 0x5770a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jb 0x5770e0
lea edi, [esi + 0xc]
cmp ecx, edi
je 0x5770e0
push 0
push 0
sub ecx, esi
lea eax, [ebp - 8]
sub ecx, 0xc
push ecx
push edi
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x5770f2
mov dword [esi + 4], edi
mov ecx, edi
mov al, byte [ebp + 8]
mov byte [ecx], al
inc dword [esi + 4]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x577100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
test esi, esi
je 0x57714b
push 0
push 0
push 0x2000
lea edi, [esi + 0xc]
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x57714b
mov eax, dword [ebp - 4]
test eax, eax
je 0x57714b
add eax, 0xc
mov dword [esi + 4], edi
add eax, esi
mov dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x577160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
test esi, esi
je 0x5771a4
mov eax, dword [esi + 4]
lea edi, [esi + 0xc]
cmp eax, edi
je 0x57719c
push 0
push 0
sub eax, esi
sub eax, 0xc
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x5771a4
mov dword [esi + 4], edi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x58f06d
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 + 0x632f00]
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 0x58f0ad
cmp byte [ebx], 0xa
jne 0x58f0ad
or byte [edi + eax + 0x28], 4
jmp 0x58f0b2
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 0x58f1b1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x58f194
inc eax
cmp dl, 0xd
je 0x58f0de
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x58f104
cmp eax, ecx
jae 0x58f112
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 0x58f0c6
jmp 0x58f1b1
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 0x58f18f
cmp dword [ebp - 0x10], 0
je 0x58f18f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x632f00]
test byte [eax + edi + 0x28], 0x48
je 0x58f169
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x58f154
mov byte [esi], dl
jmp 0x58f165
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x632f00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x58f1b1
cmp byte [ebp - 1], 0xa
jne 0x58f178
cmp esi, ebx
jne 0x58f178
mov byte [esi], 0xa
jmp 0x58f1b0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00599950
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x58f1b1
mov byte [esi], 0xd
jmp 0x58f1b0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x632f00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x58f1ae
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x58f1b1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x58f1ba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x632f00]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x58f200
cmp word [ebx], dx
jne 0x58f200
or byte [eax + edi + 0x28], 4
jmp 0x58f205
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x58f368
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x58f348
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x58f246
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x58f27c
cmp eax, edx
jae 0x58f28a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x58f221
jmp 0x58f368
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x58f343
cmp dword [ebp - 0x18], 0
je 0x58f343
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x632f00]
test byte [eax + edi + 0x28], 0x48
je 0x58f319
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x58f2dd
mov word [esi], cx
jmp 0x58f314
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x632f00]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x632f00]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x632f00]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x58f368
pop eax
cmp word [ebp - 4], ax
jne 0x58f329
cmp esi, ebx
jne 0x58f329
mov word [esi], ax
jmp 0x58f365
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00599950
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x58f368
push 0xd
pop eax
jmp 0x58f324
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x632f00]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x58f362
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x58f368
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x593710
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c4f84
push 0x5c4f7c
push str.FlsAlloc
push 0x1f
call fcn.005935f7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x593744
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a28f0]
call esi
jmp 0x59374a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x59378e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c4f94
push 0x5c4f8c
push str.FlsGetValue
push 0x21
call fcn.005935f7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5937c5
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a28f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5937cd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c4f9c
push 0x5c4f94
push str.FlsSetValue
push 0x22
call fcn.005935f7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x593807
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5a28f0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x5987af
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00592769
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 0x59881e
cmp esi, dword [ebp - 4]
je 0x598819
cmp dword [ebp + 0xc], 0
je 0x598819
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5987f6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005982ec
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x598820
xor eax, eax
inc eax
jmp 0x598820
xor eax, eax
pop edi
pop esi
leave
ret