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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b7fd
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x5ef2a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x834], esi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 4], 0
mov dword [ebp - 0x830], 1
mov dword [ebp - 0x82c], 0
jmp 0x484da0
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0053f0c0
add esp, 0xc
lea eax, [ebp - 0x82c]
push eax
push 0x7ff
lea eax, [ebp - 0x810]
push eax
push dword [edi + 0x6c]
call ebx
test eax, eax
je 0x484e46
push dword [ebp - 0x82c]
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0xf
push eax
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
call fcn.00421120
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x828]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00423360
cmp dword [ebp - 0x814], 0x10
mov byte [ebp - 4], 0
jb 0x484e39
push dword [ebp - 0x828]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x82c], 0
ja 0x484da0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053d5c4
mov esp, ebp
pop ebp
ret 4

Function at 0x484e80
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x6c]
sub esp, 0xc
test eax, eax
je 0x484ee5
lea ecx, [ebp - 8]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], 4
push ecx
push 0
push 0x20000005
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x484eed
push str.CWinHttpRequest::GetUrlFileSize
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x58c5bc
call fcn.00485130
add esp, 0x10
xor al, al
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x484f00
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x484f50
push str.CWinHttpRequest::HttpRead
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x58c5ec
call fcn.00485130
add esp, 0x10
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x484f60
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 8], 0x58c4f8
cmp dword [esi + 0x48], 8
lea edx, [esi + 0x34]
push edi
mov dword [ebp - 4], 0
jb 0x484f83
mov edx, dword [edx]
cmp dword [esi + 0x18], 8
lea ecx, [esi + 4]
jb 0x484f8e
mov ecx, dword [ecx]
cmp byte [ebp + 8], 0
mov eax, 0x100
mov edi, 0x800100
cmovne eax, edi
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x5d35f8
push edx
push ecx
push dword [esi + 0x68]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x6c], eax
pop edi
pop esi
test eax, eax
jne 0x484fec
push str.CWinHttpRequest::OpenRequest
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x58c520
call fcn.00485130
add esp, 0x10
xor al, al
mov esp, ebp
pop ebp
ret 4
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x485000
Capabilities:
Initialize winhttp library

Disassembly:
push esi
mov esi, ecx
call fcn.00484830
push 0
push 0
push 0
test al, al
je 0x485016
push 0
jmp 0x485018
push 1
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x64], eax
pop esi
test eax, eax
jne 0x485050
push str.CWinHttpRequest::OpenSession
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x58c4bc
call fcn.00485130
add esp, 0x10
xor al, al
ret
mov al, 1
ret

Function at 0x485060
Capabilities:
Receive http response
Set http header

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4850b2
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x485075
mov eax, dword [eax]
push 0x20000000
push ecx
push eax
push dword [esi + 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x4850b2
push str.CWinHttpRequest::SendRequest
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x58c554
call fcn.00485130
add esp, 0x10
xor al, al
pop esi
ret
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi + 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4850f4
push str.CWinHttpRequest::SendRequest
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x58c570
call fcn.00485130
add esp, 0x10
xor al, al
pop esi
ret
push 0
push dword [esi + 0x6c]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x48512c
push str.CWinHttpRequest::SendRequest
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x58c584
call fcn.00485130
add esp, 0x10
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x486480
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c030
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5ef2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0053f802
mov dword [esi], vtable.boost::system::system_error.0
lea ecx, [esi + 0x18]
movq xmm0, qword [edi + 0xc]
movq qword [esi + 0xc], xmm0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [ebp - 4], 0
mov byte [ecx], 0
call fcn.00420f90
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [ebp - 4], 1
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x48650e
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x486610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c030
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5ef2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0053f802
mov dword [esi], vtable.boost::system::system_error.0
lea ecx, [esi + 0x18]
movq xmm0, qword [edi + 0xc]
movq qword [esi + 0xc], xmm0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [ebp - 4], 0
mov byte [ecx], 0
call fcn.00420f90
mov dword [esi], vtable.boost::thread_resource_error.0
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [ebp - 4], 1
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x4866a4
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x489800
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x489871
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5f48d8]
mov edx, eax
test cl, 1
jne 0x489850
or ecx, 1
mov dword [0x5f48d0], 0x25c5e09b
mov eax, vtable.boost::system::detail::system_error_category.0
mov dword [0x5f48d8], ecx
mov dword [0x5f48d4], 0x8fafd21e
mov dword [0x5f48c8], eax
jmp 0x489855
mov eax, dword [0x5f48c8]
mov eax, dword [eax + 0x18]
mov ecx, 0x5f48c8
push edx
mov dword [ebp - 0xc], edx
call eax
mov byte [ebp - 8], al
mov dword [ebp - 4], 0x5f48c8
test al, al
jne 0x489878
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x58cc4c
lea eax, [ebp - 0xc]
push eax
call fcn.00488280
int3

Function at 0x48acb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c030
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5ef2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0053f802
mov dword [esi], vtable.boost::system::system_error.0
lea ecx, [esi + 0x18]
movq xmm0, qword [edi + 0xc]
movq qword [esi + 0xc], xmm0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov dword [ebp - 4], 0
mov byte [ecx], 0
call fcn.00420f90
mov dword [esi], vtable.boost::lock_error.0
mov dword [esi + 0x30], vtable.boost::exception.0
mov ecx, dword [edi + 0x34]
mov dword [ebp - 4], 1
mov dword [esi + 0x34], ecx
test ecx, ecx
je 0x48ad44
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [esi + 0x30], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x48e030
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x14]
cmp ebx, 0xffffffff
je 0x48e15e
cmp byte [ebp + 0x10], 0
je 0x48e0a0
mov esi, dword [ebp + 0xc]
test byte [esi], 8
je 0x48e0a0
xor eax, eax
lea ecx, [ebp - 0xc]
mov dword [ebp + 8], eax
call fcn.00486dd0
or byte [esi], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp + 8]
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0048a860
add esp, 8
test eax, eax
jne 0x48e0a0
lea ecx, [ebp - 0xc]
call fcn.00486dd0
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.0048a860
mov esi, eax
add esp, 8
test esi, esi
je 0x48e15e
push 0
push 0x2733
lea ecx, [ebp - 0xc]
call fcn.00489890
mov ecx, dword [edi]
cmp ecx, dword [ebp - 0xc]
jne 0x48e102
mov edx, dword [ebp - 4]
mov ecx, dword [edi + 8]
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
jne 0x48e0f2
cmp ecx, edx
sete al
test al, al
jne 0x48e122
jmp 0x48e102
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x48e102
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
je 0x48e122
push 0
push 0x4d5
lea ecx, [ebp - 0xc]
call fcn.00489890
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0048b950
add esp, 8
test al, al
je 0x48e15a
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.0048a860
add esp, 8
mov esi, eax
test esi, esi
jne 0x48e1a8
mov eax, dword [0x5f48d8]
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
test al, 1
jne 0x48e198
or eax, 1
mov dword [0x5f48d0], 0x25c5e09b
mov dword [0x5f48d8], eax
mov dword [0x5f48d4], 0x8fafd21e
mov dword [0x5f48c8], 0x58cb3c
movq xmm0, qword [ebp - 0xc]
movq qword [edi], xmm0
mov dword [edi + 8], 0x5f48c8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48f4b0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x48f502
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x48f51a
mov ecx, esi
jmp 0x48f51f
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x48f54c
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x48f52e
mov eax, dword [eax]
jmp 0x48f512
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x48f53e
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x48f9e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 4]
push esi
push 0
push 0
push dword [ebp + 0x14]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
push eax
call fcn.0048a860
mov ecx, dword [esi]
add esp, 8
mov edi, eax
cmp ecx, 0x40
jne 0x48fa2e
push 0x2746
jmp 0x48fa3b
cmp ecx, 0x4d2
jne 0x48fa42
push 0x274d
mov ecx, esi
call fcn.00489900
test edi, edi
je 0x48fa4f
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5f48d8]
mov dword [ebp - 0x10], 0
mov byte [ebp - 0xc], 0
test al, 1
jne 0x48fa89
or eax, 1
mov dword [0x5f48d0], 0x25c5e09b
mov dword [0x5f48d8], eax
mov dword [0x5f48d4], 0x8fafd21e
mov dword [0x5f48c8], 0x58cb3c
movq xmm0, qword [ebp - 0x10]
mov eax, dword [ebp - 4]
movq qword [esi], xmm0
pop edi
mov dword [esi + 8], 0x5f48c8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x490480
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c588
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5ef2a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x5f49c9], 0
mov esi, dword [ebp + 0xc]
je 0x4904f7
cmp dword [esi + 0x14], 0x10
jb 0x4904c0
mov eax, dword [esi]
jmp 0x4904c2
mov eax, esi
push eax
lea eax, [ebp - 0x28]
push str._log___s_n
push eax
call fcn.00491160
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x14], 0x10
jb 0x4904f7
push dword [ebp - 0x28]
call fcn.0053ce38
add esp, 4
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00490b50
add esp, 8
mov eax, dword [0x5f49d4]
mov dword [ebp - 4], 0
test eax, eax
jne 0x49053c
push 0x18
call fcn.0053cde7
add esp, 4
mov dword [0x5f49d4], eax
xorps xmm0, xmm0
movdqu xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x5f49d4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00499600
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
jne 0x490563
push eax
push eax
call fcn.004900e0
add esp, 8
push dword [0x5f49d4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00499600
cmp dword [esi + 0x10], 0
mov edi, eax
je case.default.0x490591
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0xc]
call edx
mov ecx, dword [ebp + 8]
cmp ecx, eax
jg case.default.0x490591
cmp ecx, 3
ja case.default.0x490591
jmp dword [ecx*4 + 0x4905ec]
push esi
mov ecx, edi
call fcn.004990d0
jmp case.default.0x490591
push esi
mov ecx, edi
call fcn.004996d0
jmp case.default.0x490591
push esi
mov ecx, edi
call fcn.00499ba0
jmp case.default.0x490591
push esi
mov ecx, edi
call fcn.00499410
cmp dword [ebp - 0x2c], 0x10
jb 0x4905cf
push dword [ebp - 0x40]
call fcn.0053ce38
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053d5c4
mov esp, ebp
pop ebp
ret
Function at 0x490f50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c6b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5ef2a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.00491ad0
add esp, 4
cmp dword [ebp + 0x18], 0
jle 0x49112b
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00423b50
call fcn.00491390
add esp, 0x18
test al, al
je 0x490fcf
mov bl, 1
jmp 0x49112d
call fcn.00491700
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042a290
mov esi, eax
add esp, 0xc
lea eax, [ebp + 8]
cmp eax, esi
je 0x49101c
cmp dword [ebp + 0x1c], 8
jb 0x490fff
push dword [ebp + 8]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.00424aa0
cmp dword [ebp - 0x14], 8
jb 0x49102d
push dword [ebp - 0x28]
call fcn.0053ce38
add esp, 4
lea eax, [ebp + 8]
push eax
call fcn.004915a0
mov ecx, dword [ebp + 0x18]
mov esi, 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
cmp ecx, esi
jbe 0x4910dd
cmp ecx, esi
jbe 0x491121
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + esi*2], 0x5c
jne 0x4910d4
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.00423c70
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00423b50
call fcn.00491390
add esp, 0x18
test al, al
jne 0x4910bc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x4910d1
push dword [ebp - 0x28]
call fcn.0053ce38
add esp, 4
mov ecx, dword [ebp + 0x18]
inc esi
cmp ecx, esi
ja 0x491057
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call edi
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.00423b50
call fcn.00491390
add esp, 0x18
test al, al
je 0x49112b
mov bl, 1
jmp 0x49112d
push str.invalid_string_position
call fcn.00537d57
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x49113e
push dword [ebp + 8]
call fcn.0053ce38
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053d5c4
mov esp, ebp
pop ebp
ret
Function at 0x491390
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c718
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x5ef2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.004915a0
add esp, 4
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x4913ee
push dword [ebp + 8]
call fcn.0053ce38
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49c690
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d639
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5ef2a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00420f90
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00420f90
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00420f90
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.0049ec30
add esp, 4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.0049ea80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x49e560
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x5f4ad4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x49e5b4
push esi
push 0x10
call fcn.0053cde7
add esp, 4
test eax, eax
je 0x49e58a
mov ecx, eax
call fcn.0049dd70
mov esi, eax
jmp 0x49e58c
xor esi, esi
push dword [0x5f4ad4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49e5a4
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x5f4ad4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret