joyce8/EMBER2024-capa huggingface dataset:
Function at 0x540460
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x62a040]
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 0x54065f
mov eax, dword ds:[ebp - 8]
or eax, dword [ebp - 0x10]
or eax, dword [ebp - 0xc]
or eax, dword [ebp - 0x14]
je 0x54065f
cmp dword [esi + 0x1bc], 0
jg 0x54050d
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 0x5404db
mov dword [esi + 0x1c0], ebx
jmp 0x5404ed
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 0x540500
test eax, eax
je 0x54065f
jmp 0x540654
test dword [esi + 0x20], 0x200000
je 0x5405cc
cmp dword [esi + 0x17c], 0
jne 0x5405cc
push dword [esi]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x5405cc
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x17c], eax
test eax, eax
je 0x5405cc
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 0x5405aa
push dword [esi + 0x17c]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [esi + 0x17c], 0
jmp 0x5405cc
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 0x54065f
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 0x540648
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, edi
call fcn.00545760
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 0x540654
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
push ebx
call fcn.00545760
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.0057c26f
mov esp, ebp
pop ebp
ret
Function at 0x566140
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xc
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
xor eax, eax
cmp dword [0x62abb0], 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 0x56619c
push esi
push eax
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [0x62abb0], 0x3f
lea ecx, [ebp - 4]
push 4
push ecx
push 0x54
push eax
jae 0x5661c9
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 [0x62abb0]
cmp eax, 0x64
jb 0x566216
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 [0x62abb0]
cmp eax, 0x72
jb 0x566235
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 0x566380
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 0x5663c5
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 0x5665a0
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 0x5665da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x566628
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 0x566632
lea ecx, ds:[esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x566628
call fcn.004f9e40
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 0x5666c0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x62a040]
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 0x56676e
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 0x56676e
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.0057c26f
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.0057c26f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5668a0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.0059cbf0
mov eax, dword [0x62a040]
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 [0x631034]
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 0x5669c8
mov ecx, dword [ebp - 0x1008]
test ecx, ecx
je 0x566995
lea eax, ds:[ecx + ebx]
cmp edi, eax
jae 0x566952
add edi, edi
push edi
test esi, esi
jne 0x56693b
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x56694a
push esi
push 4
push dword [0x631034]
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.0057e5b0
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 0x566910
lea eax, [ebx + 1]
cmp edi, eax
jae 0x5669c8
inc edi
lfence
push edi
test esi, esi
jne 0x5669b5
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x5669c6
push esi
push 4
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov esi, eax
mov byte [ebx + esi], 0
test ebx, ebx
je 0x566a0e
mov eax, dword [ebp - 0x1010]
test eax, eax
je 0x5669de
mov dword [eax], esi
jmp 0x5669ed
push esi
push 0
push dword [0x631034]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x5669f9
mov dword [eax], ebx
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057c26f
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push dword [0x631034]
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.0057c26f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x56daa0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x62a040]
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.0057e450
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.0056d9e0
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.0057c26f
mov esp, ebp
pop ebp
ret

Function at 0x5749a0
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 0x5749e0
lea edi, [esi + 0xc]
cmp ecx, edi
je 0x5749e0
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 0x5749f2
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 0x574a00
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 0x574a4b
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 0x574a4b
mov eax, dword [ebp - 4]
test eax, eax
je 0x574a4b
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 0x574a60
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 0x574aa4
mov eax, dword [esi + 4]
lea edi, [esi + 0xc]
cmp eax, edi
je 0x574a9c
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 0x574aa4
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 0x58c99d
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 + 0x62fe80]
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 0x58c9dd
cmp byte [ebx], 0xa
jne 0x58c9dd
or byte [edi + eax + 0x28], 4
jmp 0x58c9e2
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 0x58cae1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x58cac4
inc eax
cmp dl, 0xd
je 0x58ca0e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x58ca34
cmp eax, ecx
jae 0x58ca42
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 0x58c9f6
jmp 0x58cae1
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 0x58cabf
cmp dword [ebp - 0x10], 0
je 0x58cabf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x62fe80]
test byte [eax + edi + 0x28], 0x48
je 0x58ca99
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x58ca84
mov byte [esi], dl
jmp 0x58ca95
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x62fe80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x58cae1
cmp byte [ebp - 1], 0xa
jne 0x58caa8
cmp esi, ebx
jne 0x58caa8
mov byte [esi], 0xa
jmp 0x58cae0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00597281
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x58cae1
mov byte [esi], 0xd
jmp 0x58cae0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x62fe80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x58cade
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x58cae1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x58caea
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 + 0x62fe80]
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 0x58cb30
cmp word [ebx], dx
jne 0x58cb30
or byte [eax + edi + 0x28], 4
jmp 0x58cb35
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 0x58cc98
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 0x58cc78
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x58cb76
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x58cbac
cmp eax, edx
jae 0x58cbba
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 0x58cb51
jmp 0x58cc98
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 0x58cc73
cmp dword [ebp - 0x18], 0
je 0x58cc73
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x62fe80]
test byte [eax + edi + 0x28], 0x48
je 0x58cc49
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 0x58cc0d
mov word [esi], cx
jmp 0x58cc44
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x62fe80]
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 + 0x62fe80]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x62fe80]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x58cc98
pop eax
cmp word [ebp - 4], ax
jne 0x58cc59
cmp esi, ebx
jne 0x58cc59
mov word [esi], ax
jmp 0x58cc95
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00597281
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x58cc98
push 0xd
pop eax
jmp 0x58cc54
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x62fe80]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x58cc92
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x58cc98
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 0x591040
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c2f24
push 0x5c2f1c
push str.FlsAlloc
push 0x1f
call fcn.00590f27
mov esi, eax
add esp, 0x10
test esi, esi
je 0x591074
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a08ec]
call esi
jmp 0x59107a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5910be
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c2f34
push 0x5c2f2c
push str.FlsGetValue
push 0x21
call fcn.00590f27
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5910f5
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a08ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5910fd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5c2f3c
push 0x5c2f34
push str.FlsSetValue
push 0x22
call fcn.00590f27
mov esi, eax
add esp, 0x10
test esi, esi
je 0x591137
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5a08ec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x5960df
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00590099
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 0x59614e
cmp esi, dword [ebp - 4]
je 0x596149
cmp dword [ebp + 0xc], 0
je 0x596149
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x596126
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00595c1c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x596150
xor eax, eax
inc eax
jmp 0x596150
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5961b5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x62a040]
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.00590099
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.00590099
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 0x59622c
cmp word [ecx], dx
je 0x59622c
mov eax, dword [0x5c3444]
push edi
dec eax
push eax
push 0x5c3330
call fcn.00596154
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x59629f
cmp word [eax], dx
je 0x59629f
mov eax, dword [edi]
test eax, eax
je 0x596250
cmp word [eax], dx
je 0x596250
lea eax, [ebp - 0x10]
push eax
call fcn.00595b22
jmp 0x596259
lea eax, [ebp - 0x10]
push eax
call fcn.00595bbd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5962c9
mov eax, dword [0x5c332c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5c3020
call fcn.00596154
add esp, 0xc
test al, al
je 0x5962c9
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x596294
cmp word [eax], di
je 0x596294
lea eax, [ebp - 0x10]
push eax
call fcn.00595b22
pop ecx
jmp 0x5962cb
lea eax, [ebp - 0x10]
push eax
call fcn.00595bbd
jmp 0x596291
mov eax, dword [edi]
test eax, eax
je 0x5962b6
cmp word [eax], dx
je 0x5962b6
lea eax, [ebp - 0x10]
push eax
call fcn.00595ad7
pop ecx
jmp 0x5962c9
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 0x596394
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00595fd9
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x596394
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x596394
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x596394
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x596321
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0059123d
test ebx, ebx
je 0x59638f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0059123d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x596394
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 0x596394
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005802c0
add esp, 0x10
xor eax, eax
inc eax
jmp 0x596396
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057c26f
leave
ret