joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cad1
Capabilities:
Initialize winsock library
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0x198
mov eax, 0x456851
call fcn.00427981
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1a4]
call fcn.004015de
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 1
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40cb14
mov ecx, dword [ebp - 0x1a4]
add ecx, 0xfffffff0
jmp 0x40cb8a
mov eax, dword [ebp + 8]
push eax
push dword [eax - 0xc]
lea eax, [ebp - 0x1a4]
push str.POST__collect_HTTP_1.1_r_nContent_Type:_application_x_www_form_urlencoded_r_nHost:_www.google_analytics.com_r_nContent_Length:__d_r_n_r_n_s
push eax
call fcn.00408d29
mov esi, dword [ebp - 0x1a4]
push 0x50
push str.www.google_analytics.com
mov ebx, dword [esi - 0xc]
call fcn.0040c82d
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
je 0x40cb74
cmp dword [esi - 4], 1
jle 0x40cb65
push dword [esi - 0xc]
lea ecx, [ebp - 0x1a4]
call fcn.00402f55
mov esi, dword [ebp - 0x1a4]
push 0
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, ebx
je 0x40cb7a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esi - 0x10]
call fcn.0040538e
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040538e
call fcn.00427930
ret

Function at 0x40cba0
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x455cfa
call fcn.0042794e
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov edi, dword [eax - 0xc]
lea eax, [edi + 1]
push eax
call fcn.0041962d
pop ecx
mov ecx, dword [ebp + 8]
mov esi, eax
cmp dword [ecx - 4], 1
mov ebx, dword [ecx - 0xc]
jle 0x40cbda
push ebx
lea ecx, [ebp + 8]
call fcn.00402f55
mov ecx, dword [ebp + 8]
push ebx
push ecx
push esi
call fcn.0042c160
add esp, 0xc
xor eax, eax
mov byte [esi + edi], al
push eax
push eax
push esi
push 0x40cc0b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040538e
call fcn.0042791c
ret
Function at 0x415114
Capabilities:
Compress data via winapi

Disassembly:
push 0xc
mov eax, 0x45765c
call fcn.0042794e
mov edi, ecx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x415167
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004014dd
and dword [ebp - 4], ebx
push 0x21
push dword [eax]
push esi
call fcn.004172ac
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0040538e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCompressBuffer
push ebx
call esi
push str.RtlGetCompressionWorkSpaceSize
push ebx
mov dword [edi], eax
call esi
push str.RtlDecompressBuffer
push ebx
mov dword [edi + 4], eax
call esi
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
mov dword [edi + 8], eax
lea eax, [edi + 0x18]
push ecx
push eax
push 2
call dword [edi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4151dc
call ebx
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004014dd
push 0x2d
push dword [eax]
mov dword [ebp - 4], 1
push esi
call fcn.004172ac
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0040538e
push 4
push 0x3000
push dword [edi + 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x415229
call ebx
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004014dd
push 0x35
push dword [eax]
mov dword [ebp - 4], 2
push esi
call fcn.004172ac
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0040538e
push 4
push 0x3000
push 0x5c00000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x415278
call ebx
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004014dd
push 0x3c
push dword [eax]
mov dword [ebp - 4], 3
push esi
call fcn.004172ac
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.0040538e
push 4
push 0x3000
push 0x6000000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x4152c3
call ebx
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004014dd
push 0x44
push dword [eax]
mov dword [ebp - 4], 4
push esi
call fcn.004172ac
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.0040538e
call fcn.0042791c
ret
Function at 0x416421
Capabilities:
Enumerate gui resources

Disassembly:
push 0x20
mov eax, 0x457841
call fcn.0042794e
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push eax
call fcn.004154d6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x416469
mov eax, dword [ebp - 0x14]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.0040a7a4
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
push 0x4152c9
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.004154d6
lea ecx, [ebp - 0x2c]
call fcn.004127dd
mov eax, dword [ebp + 8]
call fcn.0042791c
ret
Function at 0x4168ea
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0x10
mov eax, 0x457919
call fcn.0042794e
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004164c3
mov esi, eax
mov dword [ebp - 0x10], esi
pop ecx
test esi, esi
jne 0x416913
inc ebx
jmp 0x416a43
mov eax, dword [ebp + 0xc]
mov edi, dword [eax - 0xc]
test edi, edi
jne 0x41693f
push 0xffffffffffffffff
push ebx
push 0xb1
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
push ebx
push ebx
push 0x303
push dword [ebp - 0x10]
call esi
jmp 0x416a43
push ebx
mov byte [ebp - 0x14], bl
call dword [sym.imp.USER32.dll_OpenClipboard]
xor ecx, ecx
inc ecx
test eax, eax
je 0x416a1e
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [edi + edi]
mov dword [ebp - 0x18], eax
add eax, 2
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4169d3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
cmp dword [ecx - 4], 1
jle 0x416999
push dword [ecx - 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402fbf
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
push ecx
push eax
call fcn.0042c160
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
xor edx, edx
push edi
mov word [eax + ecx], dx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ecx, dword [ebp - 0x14]
test eax, eax
push 1
movzx ecx, cl
pop eax
cmovne ecx, eax
mov dword [ebp - 0x14], ecx
mov edi, dword [sym.imp.USER32.dll_CloseClipboard]
call edi
push 0xffffffffffffffff
push ebx
push 0xb1
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
push ebx
push ebx
push 0x303
push dword [ebp - 0x10]
call esi
push ebx
push ebx
push 0x302
push dword [ebp - 0x10]
call esi
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
call edi
cmp byte [ebp - 0x14], bl
jne 0x416a43
mov esi, dword [ebp - 0x10]
xor ecx, ecx
inc ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax - 4], ecx
jle 0x416a34
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402fbf
mov eax, dword [ebp + 0xc]
push eax
push 0x103
push 0xc
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040538e
mov eax, ebx
call fcn.0042791c
ret
Function at 0x41876a
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x457d21
call fcn.0042794e
xor esi, esi
xor ebx, ebx
inc esi
mov dword [0x476200], ebx
push esi
mov dword [ebp - 4], esi
call fcn.0041864c
push eax
lea ecx, [ebp - 0x10]
call fcn.00401534
push 0x45cc70
push dword [eax]
call fcn.00405c8e
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
sete cl
mov dword [0x4761fc], ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040538e
lea eax, [ebp + 8]
push str.TRUE
push eax
call fcn.00409e10
pop ecx
pop ecx
mov ecx, dword [0x476204]
test al, al
cmovne ecx, esi
mov dword [0x476204], ecx
call fcn.00418c18
test al, al
je 0x41894d
cmp dword [0x4762bc], ebx
je 0x418802
push ecx
mov ecx, esp
push 0x45cc7c
call fcn.00401461
call fcn.00418b7d
pop ecx
mov eax, dword [ebp + 0xc]
mov edi, ebx
cmp dword [eax - 0xc], ebx
jle 0x418837
push edi
mov ecx, 0x476298
call fcn.00402e1d
push edi
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.00418746
xor ecx, ecx
cmp ax, 0x30
sete cl
inc edi
mov dword [esi + 0x14], ecx
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax - 0xc]
jl 0x41880c
cmp dword [0x4762bc], ebx
je 0x418893
push ebx
call fcn.0043d62e
pop ecx
push ebx
push 0x3b
push 0x2f
push ebx
lea ecx, [ebp - 0x1c]
mov esi, eax
mov edi, edx
call fcn.004186f8
mov eax, dword [0x4762bc]
cdq
sub esi, eax
sbb edi, edx
cmp edi, dword [ebp - 0x18]
jg 0x41892f
jl 0x418876
cmp esi, dword [ebp - 0x1c]
ja 0x41892f
cmp edi, ebx
jl 0x41892f
jg 0x418888
cmp esi, ebx
jb 0x41892f
push str.__mb_Silent_Install_Builder_Demo_Package.
call fcn.004182da
pop ecx
push ebx
push ebx
push 0x418177
call fcn.0043d7f4
add esp, 0xc
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4762bc], ebx
je 0x41891a
cmp dword [0x476208], ebx
je 0x418923
push 0x96
lea eax, [ebp - 0x14]
mov ecx, 0x476220
push eax
call fcn.0040571d
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040725b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.0040538e
push ecx
mov eax, esp
lea ecx, [ebp - 0x10]
push ecx
push 0x45cd14
push eax
call fcn.00407e28
add esp, 0xc
call fcn.0040cdbe
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040538e
cmp dword [0x476208], 0
jne 0x418946
cmp dword [0x47620c], 0
jne 0x418946
push ebx
jmp 0x418948
push str.__mb_Demo_Package_is_expired
call fcn.004182da
pop ecx
mov dword [0x476208], 1
jmp 0x41894d
push 0xffffffffffffffff
call fcn.0041866e
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040538e
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040538e
call fcn.0042791c
ret
Function at 0x418969
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x457d5b
call fcn.0042794e
xor edi, edi
push edi
mov dword [ebp - 4], edi
call fcn.0041864c
push eax
mov ecx, 0x476224
call fcn.00405b9c
xor ebx, ebx
mov dword [0x4761fc], edi
lea eax, [ebp + 8]
inc ebx
push str.TRUE
push eax
mov dword [0x476200], ebx
call fcn.00409e10
pop ecx
pop ecx
mov ecx, dword [0x476204]
test al, al
cmovne ecx, ebx
mov dword [0x476204], ecx
call fcn.00418c18
test al, al
je 0x418a85
cmp dword [0x4762bc], edi
je 0x4189e3
push ecx
mov ecx, esp
push 0x45cd18
call fcn.00401461
call fcn.00418b7d
pop ecx
push edi
push edi
push 0x418177
call fcn.0043d7f4
add esp, 0xc
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4762bc], edi
je 0x418a69
cmp dword [0x476208], edi
je 0x418a72
push 0x96
lea eax, [ebp - 0x14]
mov ecx, 0x476220
push eax
call fcn.0040571d
push dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040725b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.0040538e
push ecx
mov eax, esp
lea ecx, [ebp - 0x10]
push ecx
push 0x45cd1c
push eax
call fcn.00407e28
add esp, 0xc
call fcn.0040cdbe
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040538e
cmp dword [0x476208], 0
jne 0x418a7e
cmp dword [0x47620c], 0
jne 0x418a7e
push edi
jmp 0x418a80
push 0xffffffffffffffff
call fcn.0041866e
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.0040538e
call fcn.0042791c
ret
Function at 0x418d32
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [0x4790b4], eax
xor ebx, ebx
mov eax, dword [ebp + 0x14]
push edi
mov dword [0x4790b0], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [0x4790ac], eax
call fcn.0041864c
push eax
lea ecx, [ebp + 0xc]
call fcn.00401534
push 0x17
call fcn.0041864c
push eax
mov ecx, 0x476224
call fcn.00405b9c
xor esi, esi
mov dword [0x476200], ebx
inc esi
push esi
call fcn.0041864c
push eax
lea ecx, [ebp + 0x14]
call fcn.00401534
push 0x45cc70
push dword [eax]
call fcn.00405c8e
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
neg eax
sbb eax, eax
inc eax
lea ecx, [ecx - 0x10]
mov dword [0x4761fc], eax
call fcn.0040538e
mov eax, dword [ebp + 8]
mov ecx, dword [0x476204]
mov dword [0x4761f8], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
cmp dword [eax + 0x20], ebx
cmovne ecx, esi
mov dword [0x476204], ecx
call fcn.00418c18
test al, al
je 0x418f38
cmp dword [0x4762bc], ebx
je 0x418df7
push ecx
mov ecx, esp
push 0x45cc7c
call fcn.00401461
call fcn.00418b7d
pop ecx
mov eax, dword [ebp + 0xc]
mov edi, ebx
cmp dword [eax - 0xc], ebx
jle 0x418e2c
push edi
mov ecx, 0x476298
call fcn.00402e1d
push edi
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.00418746
xor ecx, ecx
cmp ax, 0x30
sete cl
inc edi
mov dword [esi + 0x14], ecx
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax - 0xc]
jl 0x418e01
cmp dword [0x4762bc], ebx
je 0x418e88
push ebx
call fcn.0043d62e
pop ecx
push ebx
push 0x3b
push 0x2f
push ebx
lea ecx, [ebp - 8]
mov esi, eax
mov edi, edx
call fcn.004186f8
mov eax, dword [0x4762bc]
cdq
sub esi, eax
sbb edi, edx
cmp edi, dword [ebp - 4]
jg 0x418f1a
jl 0x418e6b
cmp esi, dword [ebp - 8]
ja 0x418f1a
cmp edi, ebx
jl 0x418f1a
jg 0x418e7d
cmp esi, ebx
jb 0x418f1a
push str.__mb_Silent_Install_Builder_Demo_Package.
call fcn.004182da
pop ecx
push ebx
push ebx
push 0x418177
call fcn.0043d7f4
add esp, 0xc
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4762bc], ebx
je 0x418f07
cmp dword [0x476208], ebx
je 0x418f0f
push 0x96
lea eax, [ebp + 0x10]
mov ecx, 0x476220
push eax
call fcn.0040571d
lea ecx, [ebp + 0x14]
push dword [eax]
call fcn.0040725b
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040538e
push ecx
mov eax, esp
lea ecx, [ebp + 0x14]
push ecx
push 0x45cd14
push eax
call fcn.00407e28
add esp, 0xc
call fcn.0040cdbe
pop ecx
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040538e
cmp dword [0x476208], ebx
jne 0x418f31
cmp dword [0x47620c], ebx
jne 0x418f31
push ebx
jmp 0x418f33
push str.__mb_Demo_Package_is_expired
call fcn.004182da
pop ecx
mov dword [0x476208], 1
jmp 0x418f38
push 0xffffffffffffffff
call fcn.0041866e
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040538e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419042
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [0x4790b4], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
mov dword [0x4790b0], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [0x4790ac], eax
call fcn.0041864c
push eax
mov ecx, 0x476224
call fcn.00405b9c
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, dword [0x476204]
inc edx
mov dword [0x4761f8], eax
mov eax, dword [ebp + 0x18]
mov dword [0x476200], edx
mov dword [0x4761fc], edi
mov eax, dword [eax]
cmp dword [eax + 0x20], edi
cmovne ecx, edx
mov dword [0x476204], ecx
call fcn.00418c18
test al, al
je 0x419161
cmp dword [0x4762bc], edi
je 0x4190c8
push ecx
mov ecx, esp
push 0x45cd18
call fcn.00401461
call fcn.00418b7d
pop ecx
push edi
push edi
push 0x418177
call fcn.0043d7f4
add esp, 0xc
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4762bc], edi
je 0x419147
cmp dword [0x476208], edi
je 0x41914f
push 0x96
lea eax, [ebp + 0x14]
mov ecx, 0x476220
push eax
call fcn.0040571d
lea ecx, [ebp + 0xc]
push dword [eax]
call fcn.0040725b
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.0040538e
push ecx
mov eax, esp
lea ecx, [ebp + 0xc]
push ecx
push 0x45cd1c
push eax
call fcn.00407e28
add esp, 0xc
call fcn.0040cdbe
pop ecx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.0040538e
cmp dword [0x476208], edi
jne 0x41915a
cmp dword [0x47620c], edi
jne 0x41915a
push edi
jmp 0x41915c
push 0xffffffffffffffff
call fcn.0041866e
pop edi
pop esi
pop ebp
ret

Function at 0x41a181
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x41a1ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41a1b1
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00407e25
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004247b1
int3

Function at 0x41a48c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x41a49d
xor eax, eax
jmp 0x41a4b9
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a4be
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00407e25
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004247b1
int3
Function at 0x41a55c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x4595c4]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41a58f
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00407e25
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004247b1
int3

Function at 0x41a668
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x41a693
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a699
cmp dword [ebp - 4], esi
jne 0x41a6b0
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00407e25
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.004247b1
lea ecx, [edi + 0xc]
call fcn.00407e25
push eax
push 0xffffffffffffffff
push 0xd
call fcn.00424407
int3

Function at 0x42358e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x423605
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4235cb
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x4235cb
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x4235f8
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4235fb
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4235f1
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4595c4]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x4235ae
test eax, eax
je 0x42364c
lea esi, [ecx + 0x1c]
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push edi
add ecx, 0x14
call fcn.00423863
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4595c4]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4238b6
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x4584aa
call fcn.004279b7
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4239ad
cmp edi, dword [ebx + 0xc]
jge 0x4239ad
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x42390d
cmp edi, dword [esi + 8]
jl 0x42399b
cmp dword [ebp + 0xc], 0
je 0x42399b
xor edi, edi
jmp 0x42393f
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.00423386
mov esi, eax
test esi, esi
je 0x423927
mov dword [esi], vtable.CThreadData.0
jmp 0x423929
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.00406fd1
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x42395b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x423967
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4239d4
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.0042c6e0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4239ad
cmp edi, dword [esi + 8]
jge 0x4239ad
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0042791c
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004196a2
int3