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

Disassembly:
push 0x198
mov eax, 0x1004bd39
call fcn.10026b04
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1a4]
call fcn.100014de
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 0x1000c81a
mov ecx, dword [ebp - 0x1a4]
add ecx, 0xfffffff0
jmp 0x1000c890
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.10008abb
mov esi, dword [ebp - 0x1a4]
push 0x50
push str.www.google_analytics.com
mov ebx, dword [esi - 0xc]
call fcn.1000c533
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
je 0x1000c87a
cmp dword [esi - 4], 1
jle 0x1000c86b
push dword [esi - 0xc]
lea ecx, [ebp - 0x1a4]
call fcn.10002ce7
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 0x1000c880
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.10005120
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10005120
call fcn.10026ab3
ret

Function at 0x1000c8a6
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x1004b1e2
call fcn.10026ad1
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov edi, dword [eax - 0xc]
lea eax, [edi + 1]
push eax
call fcn.10017f9b
pop ecx
mov ecx, dword [ebp + 8]
mov esi, eax
cmp dword [ecx - 4], 1
mov ebx, dword [ecx - 0xc]
jle 0x1000c8e0
push ebx
lea ecx, [ebp + 8]
call fcn.10002ce7
mov ecx, dword [ebp + 8]
push ebx
push ecx
push esi
call fcn.10029510
add esp, 0xc
xor eax, eax
mov byte [esi + edi], al
push eax
push eax
push esi
push 0x1000c911
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10005120
call fcn.10026a9f
ret
Function at 0x10014dff
Capabilities:
Compress data via winapi

Disassembly:
push 0xc
mov eax, 0x1004cb44
call fcn.10026ad1
mov edi, ecx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x10014e52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.100013dd
and dword [ebp - 4], ebx
push 0x21
push dword [eax]
push esi
call fcn.10016f97
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10005120
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 0x10014ec7
call ebx
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.100013dd
push 0x2d
push dword [eax]
mov dword [ebp - 4], 1
push esi
call fcn.10016f97
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10005120
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 0x10014f14
call ebx
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.100013dd
push 0x35
push dword [eax]
mov dword [ebp - 4], 2
push esi
call fcn.10016f97
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10005120
push 4
push 0x3000
push 0x5c00000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x10014f63
call ebx
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.100013dd
push 0x3c
push dword [eax]
mov dword [ebp - 4], 3
push esi
call fcn.10016f97
mov ecx, dword [ebp - 0x10]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10005120
push 4
push 0x3000
push 0x6000000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x10014fae
call ebx
push str.D:_source_aprelSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.100013dd
push 0x44
push dword [eax]
mov dword [ebp - 4], 4
push esi
call fcn.10016f97
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.10005120
call fcn.10026a9f
ret
Function at 0x1001610c
Capabilities:
Enumerate gui resources

Disassembly:
push 0x20
mov eax, 0x1004cd29
call fcn.10026ad1
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.100151c1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x10016154
mov eax, dword [ebp - 0x14]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.1000a4aa
pop ecx
pop ecx
lea eax, [ebp - 0x2c]
push eax
push 0x10014fb4
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.100151c1
lea ecx, [ebp - 0x2c]
call fcn.100124c8
mov eax, dword [ebp + 8]
call fcn.10026a9f
ret
Function at 0x100165d5
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0x10
mov eax, 0x1004ce01
call fcn.10026ad1
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.100161ae
mov esi, eax
mov dword [ebp - 0x10], esi
pop ecx
test esi, esi
jne 0x100165fe
inc ebx
jmp 0x1001672e
mov eax, dword [ebp + 0xc]
mov edi, dword [eax - 0xc]
test edi, edi
jne 0x1001662a
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 0x1001672e
push ebx
mov byte [ebp - 0x14], bl
call dword [sym.imp.USER32.dll_OpenClipboard]
xor ecx, ecx
inc ecx
test eax, eax
je 0x10016709
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 0x100166be
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 0x10016684
push dword [ecx - 0xc]
lea ecx, [ebp + 0xc]
call fcn.10002d51
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
push ecx
push eax
call fcn.10029510
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 0x1001672e
mov esi, dword [ebp - 0x10]
xor ecx, ecx
inc ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax - 4], ecx
jle 0x1001671f
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
call fcn.10002d51
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.10005120
mov eax, ebx
call fcn.10026a9f
ret
Function at 0x100172c6
Capabilities:
Get graphical window text

Disassembly:
push 0x44
mov eax, 0x1004cf8e
call fcn.10026ad1
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
mov esi, str.__mb_
mov dword [ebp - 4], ebx
push esi
call fcn.10002cad
test eax, eax
jne 0x1001731b
push 0x1004e8b4
push esi
lea ecx, [ebp + 8]
call fcn.10005347
cmp dword [0x10063efc], ebx
jne 0x1001731b
mov eax, dword [0x10063ef0]
test eax, eax
je 0x1001731b
push 0x30
push dword [0x10063f64]
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push str.unpack:
lea ecx, [ebp + 8]
call fcn.10002cad
test eax, eax
je 0x10017354
push ebx
push str.install:
lea ecx, [ebp + 8]
call fcn.10002cad
test eax, eax
je 0x10017354
push dword [ebp + 8]
push str._s_r_n
push 0x10063f18
call fcn.100024c6
add esp, 0xc
mov eax, dword [0x10063ef0]
test eax, eax
je 0x10017472
push ebx
push str.EDIT
push ebx
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
mov edi, eax
test edi, edi
je 0x10017472
lea ecx, [ebp - 0x10]
call fcn.100014de
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [ebp - 0x10]
lea esi, [eax + 1]
push esi
call fcn.10004f08
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], 1
jle 0x100173af
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.10002d51
mov ecx, dword [ebp - 0x10]
push esi
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.10005138
push 0x1004e8cc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100016d1
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
push dword [eax - 0xc]
push eax
call fcn.10002437
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.10005120
mov esi, dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x3f8
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001746a
push ebx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x1004
push eax
call ebx
push 0x3c
mov edi, eax
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.10029a90
mov eax, dword [ebp + 8]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x4c], edi
add esp, 0xc
mov dword [ebp - 0x50], ecx
cmp dword [eax - 4], ecx
jle 0x10017457
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.10002d51
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0x104d
push dword [ebp - 0x14]
call ebx
lea ecx, [esi - 0x10]
call fcn.10005120
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.10005120
call fcn.10026a9f
ret
Function at 0x1001779a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [0x10066aec], eax
xor ebx, ebx
mov eax, dword [ebp + 0x14]
push edi
mov dword [0x10066ae8], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [0x10066ae4], eax
call fcn.100174c7
push eax
lea ecx, [ebp + 0xc]
call fcn.10001434
push 0x17
call fcn.100174c7
push eax
mov ecx, 0x10063f1c
call fcn.1000592e
xor esi, esi
mov dword [0x10063ef8], ebx
inc esi
push esi
call fcn.100174c7
push eax
lea ecx, [ebp + 0x14]
call fcn.10001434
push 0x10051b08
push dword [eax]
call fcn.10005a20
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
neg eax
sbb eax, eax
inc eax
lea ecx, [ecx - 0x10]
mov dword [0x10063ef4], eax
call fcn.10005120
mov eax, dword [ebp + 8]
mov ecx, dword [0x10063efc]
mov dword [0x10063ef0], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
cmp dword [eax + 0x20], ebx
cmovne ecx, esi
mov dword [0x10063efc], ecx
call fcn.10017680
test al, al
je 0x100179a0
cmp dword [0x10063fb4], ebx
je 0x1001785f
push ecx
mov ecx, esp
push 0x10051b0c
call fcn.10001361
call fcn.100175e5
pop ecx
mov eax, dword [ebp + 0xc]
mov edi, ebx
cmp dword [eax - 0xc], ebx
jle 0x10017894
push edi
mov ecx, 0x10063f90
call fcn.10002baf
push edi
lea ecx, [ebp + 0xc]
mov esi, eax
call fcn.100175c1
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 0x10017869
cmp dword [0x10063fb4], ebx
je 0x100178f0
push ebx
call fcn.1003aa3a
pop ecx
push ebx
push 0x3b
push 0x2f
push ebx
lea ecx, [ebp - 8]
mov esi, eax
mov edi, edx
call fcn.10017573
mov eax, dword [0x10063fb4]
cdq
sub esi, eax
sbb edi, edx
cmp edi, dword [ebp - 4]
jg 0x10017982
jl 0x100178d3
cmp esi, dword [ebp - 8]
ja 0x10017982
cmp edi, ebx
jl 0x10017982
jg 0x100178e5
cmp esi, ebx
jb 0x10017982
push str.__mb_Silent_Install_Builder_Demo_Package.
call fcn.10017276
pop ecx
push ebx
push ebx
push 0x10017113
call fcn.1003ac00
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 [0x10063fb4], ebx
je 0x1001796f
cmp dword [0x10063f00], ebx
je 0x10017977
push 0x96
lea eax, [ebp + 0x10]
mov ecx, 0x10063f18
push eax
call fcn.100054af
lea ecx, [ebp + 0x14]
push dword [eax]
call fcn.10006fed
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.10005120
push ecx
mov eax, esp
lea ecx, [ebp + 0x14]
push ecx
push 0x10051ba4
push eax
call fcn.10007bba
add esp, 0xc
call fcn.1000cac4
pop ecx
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.10005120
cmp dword [0x10063f00], ebx
jne 0x10017999
cmp dword [0x10063f04], ebx
jne 0x10017999
push ebx
jmp 0x1001799b
push str.__mb_Demo_Package_is_expired
call fcn.10017276
pop ecx
mov dword [0x10063f00], 1
jmp 0x100179a0
push 0xffffffffffffffff
call fcn.100174e9
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.10005120
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100179b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [0x10066aec], eax
xor edi, edi
mov eax, dword [ebp + 0x14]
mov dword [0x10066ae8], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [0x10066ae4], eax
call fcn.100174c7
push eax
mov ecx, 0x10063f1c
call fcn.1000592e
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, dword [0x10063efc]
inc edx
mov dword [0x10063ef0], eax
mov eax, dword [ebp + 0x18]
mov dword [0x10063ef8], edx
mov dword [0x10063ef4], edi
mov eax, dword [eax]
cmp dword [eax + 0x20], edi
cmovne ecx, edx
mov dword [0x10063efc], ecx
call fcn.10017680
test al, al
je 0x10017acf
cmp dword [0x10063fb4], edi
je 0x10017a36
push ecx
mov ecx, esp
push 0x10051ba8
call fcn.10001361
call fcn.100175e5
pop ecx
push edi
push edi
push 0x10017113
call fcn.1003ac00
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 [0x10063fb4], edi
je 0x10017ab5
cmp dword [0x10063f00], edi
je 0x10017abd
push 0x96
lea eax, [ebp + 0x14]
mov ecx, 0x10063f18
push eax
call fcn.100054af
lea ecx, [ebp + 0xc]
push dword [eax]
call fcn.10006fed
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.10005120
push ecx
mov eax, esp
lea ecx, [ebp + 0xc]
push ecx
push 0x10051bac
push eax
call fcn.10007bba
add esp, 0xc
call fcn.1000cac4
pop ecx
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.10005120
cmp dword [0x10063f00], edi
jne 0x10017ac8
cmp dword [0x10063f04], edi
jne 0x10017ac8
push edi
jmp 0x10017aca
push 0xffffffffffffffff
call fcn.100174e9
pop edi
pop esi
pop ebp
ret

Function at 0x10018aef
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 0x10018b19
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10018b1f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.10007bb7
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10023355
int3

Function at 0x10018dfa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x10018e0b
xor eax, eax
jmp 0x10018e27
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 0x10018e2c
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.10007bb7
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10023355
int3
Function at 0x10018eca
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 [0x1004e5b8]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10018efd
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.10007bb7
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10023355
int3

Function at 0x10018fd6
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 0x10019001
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 0x10019007
cmp dword [ebp - 4], esi
jne 0x1001901e
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.10007bb7
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.10023355
lea ecx, [edi + 0xc]
call fcn.10007bb7
push eax
push 0xffffffffffffffff
push 0xd
call fcn.10022fab
int3

Function at 0x10022118
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 0x1002218f
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x10022155
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x10022155
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x10022182
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x10022185
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1002217b
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1004e5b8]
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 0x10022138
test eax, eax
je 0x100221d6
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.10022407
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 [0x1004e5b8]
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 0x1002245a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x1004d66b
call fcn.10026b3a
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 0x10022551
cmp edi, dword [ebx + 0xc]
jge 0x10022551
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100224b1
cmp edi, dword [esi + 8]
jl 0x1002253f
cmp dword [ebp + 0xc], 0
je 0x1002253f
xor edi, edi
jmp 0x100224e3
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.10021eb6
mov esi, eax
test esi, esi
je 0x100224cb
mov dword [esi], vtable.CThreadData.0
jmp 0x100224cd
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.10006d63
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x100224ff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1002250b
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x10022578
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.10029a90
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 0x10022551
cmp edi, dword [esi + 8]
jge 0x10022551
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10026a9f
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10018010
int3
Function at 0x100236e5
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x100626f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.10029a90
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.1003adf9
push eax
call fcn.100023d8
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x10053120]
je 0x10023843
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x10023857
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10023857
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x100237a1
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x10023795
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.100234ec
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x1002379c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100237a3
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.1002385b
test eax, eax
je 0x100237ca
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.10023373
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x100237ce
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.1002385b
test eax, eax
je 0x100237f5
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.10023373
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x100237f9
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.1002385b
test eax, eax
je 0x10023821
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.10023373
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x10023823
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x10023835
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x10023843
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026a91
leave
ret 4
xor eax, eax
jmp 0x10023846