joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101fde6
Capabilities:
Write file on windows

Disassembly:
push 0x18
push 0x105c018
call fcn.01022e04
mov esi, ecx
mov dword [ebp - 0x28], esi
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
cmp dword [esi], 0xffffffff
jne 0x101fe0b
xor eax, eax
jmp 0x101fe71
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
push 0x3e8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x101fe36
cmp eax, 0x80
je 0x101fe36
cmp eax, 0x102
jne 0x101fe62
mov dword [ebp - 0x20], edi
jmp 0x101fe3d
mov dword [ebp - 0x1c], 1
push 2
push edi
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0101fe7e
mov eax, dword [ebp - 0x20]
call fcn.01022e49
ret 8

Function at 0x101fe9c
Capabilities:
Check mutex on windows
Get file size
Write file on windows

Disassembly:
push 0x30
push 0x105c038
call fcn.01022e04
mov edi, ecx
mov dword [ebp - 0x28], edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
cmp dword [edi], 0xffffffff
je 0x101fec5
xor eax, eax
inc eax
jmp 0x101ff8e
lea ecx, [ebp - 0x40]
call fcn.0104f503
cmp eax, ebx
je 0x101fed8
xor eax, eax
jmp 0x101ff8e
push 0x1005768
push ebx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 4], eax
lea esi, [ebp - 0x40]
cmp eax, ebx
jne 0x101fef9
call fcn.0104f3d0
jmp 0x101fed1
call fcn.0104f3d0
push ebx
mov esi, 0x80
push esi
push 4
push ebx
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x101ff28
mov ecx, edi
call fcn.0101fdb7
jmp 0x101fed1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x101ff50
cmp eax, esi
je 0x101ff50
cmp eax, 0x102
jne 0x101ff7f
mov dword [ebp - 0x1c], 1
jmp 0x101ff7f
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
jne 0x101ff7c
push ebx
lea eax, [ebp - 0x24]
push eax
push 2
push 0x10057ac
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
jmp 0x101ff7f
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.0101ff9b
mov eax, dword [ebp - 0x1c]
call fcn.01022e49
ret 4
Function at 0x101ffaf
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x1064918], 0
je 0x1020055
lea eax, [ebp - 0x24]
push eax
push dword [0x1064914]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1020042
mov cx, word [ebp - 0x1e]
mov dx, word [0x106490e]
xor eax, eax
add dx, cx
mov word [ebp - 0xa], cx
lea ecx, [ebp - 0xc]
push ecx
mov word [ebp - 4], ax
mov word [ebp - 2], ax
push dword [ebp - 4]
mov word [ebp - 0xc], ax
mov eax, dword [0x106490c]
push eax
push dword [0x1064918]
mov word [ebp - 8], ax
push dword [0x1064914]
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputW]
test eax, eax
je 0x1020042
mov eax, dword [ebp - 8]
inc eax
mov word [ebp - 4], ax
mov ax, word [ebp - 6]
mov word [ebp - 2], ax
push dword [ebp - 4]
push dword [0x1064914]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push dword [0x1064918]
call fcn.010213a1
and dword [0x1064918], 0
pop ecx
push dword [0x1064910]
push dword [0x1064914]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
or dword [0x1064914], 0xffffffff
call dword [sym.imp.KERNEL32.dll_FreeConsole]
leave
ret
Function at 0x10200ad
Capabilities:
Manipulate console buffer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 4], ax
mov word [ebp - 2], ax
call fcn.01035328
cmp eax, 3
je 0x1020234
push edi
push 0x10057c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x1020233
push 0x10057b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x102022c
push 0xffffffffffffffff
call eax
test eax, eax
je 0x102022c
push esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x1064914], eax
cmp eax, 0xffffffff
je 0x1020225
push 0x1064910
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x1020225
mov eax, dword [0x1064910]
or eax, 3
push eax
push dword [0x1064914]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
je 0x1020225
lea eax, [ebp - 0x2c]
push eax
push dword [0x1064914]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1020225
mov si, word [ebp - 0x28]
xor eax, eax
inc eax
mov word [0x106490e], ax
push 4
pop ecx
movsx eax, si
mov dword [ebp - 8], eax
mul ecx
lea ecx, [ebp - 8]
push ecx
push edx
push eax
mov word [0x106490c], si
call fcn.0102007b
test eax, eax
jne 0x1020225
push dword [ebp - 8]
call fcn.01021488
pop ecx
mov dword [0x1064918], eax
test eax, eax
je 0x10201e5
xor ecx, ecx
mov word [ebp - 8], cx
mov word [ebp - 6], cx
mov word [ebp - 0x14], cx
mov ecx, dword [ebp - 0x26]
mov word [ebp - 0x12], cx
inc ecx
mov word [ebp - 0xe], cx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 8]
mov word [ebp - 0x10], si
push dword [0x106490c]
push eax
push dword [0x1064914]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
xor eax, eax
mov word [ebp - 4], ax
mov ax, word [ebp - 0x26]
mov word [ebp - 2], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
movsx eax, word [ebp - 0x28]
push eax
push 0x20
push dword [0x1064914]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x1020225
push dword [ebp - 4]
push dword [0x1064914]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
xor ebx, ebx
inc ebx
jmp 0x102022b
call dword [sym.imp.KERNEL32.dll_FreeConsole]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10202e5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jne 0x1020306
xor eax, eax
jmp 0x10203db
push edi
mov edi, dword [esi + 4]
push eax
jmp 0x1020397
push dword [esi]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.010232de
add esp, 0x10
cmp eax, 1
jne 0x10203c2
cmp byte [ebp - 1], 0x2c
je 0x10203a5
cmp byte [ebp - 1], 0xa
je 0x10203a5
inc dword [ebp - 8]
mov eax, dword [esi + 8]
cmp dword [ebp - 8], eax
jbe 0x102037e
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x102035c
push 0x106
mov dword [esi + 8], 0x104
call fcn.01021488
jmp 0x102036f
add eax, 0x104
mov dword [esi + 8], eax
add eax, 2
push eax
push ecx
call fcn.01021fe6
pop ecx
pop ecx
test eax, eax
je 0x10203ae
mov ecx, dword [ebp - 8]
mov dword [esi + 4], eax
lea edi, [eax + ecx - 1]
mov al, byte [ebp - 1]
mov byte [edi], al
cmp byte [ebp - 1], 0x20
je 0x1020394
cmp dword [ebp - 0xc], 0
mov ebx, edi
jne 0x1020394
mov dword [ebp - 0xc], edi
push dword [esi]
inc edi
call fcn.01023001
pop ecx
test eax, eax
je 0x1020310
cmp dword [esi], 0
jne 0x10203cf
xor eax, eax
jmp 0x10203da
mov eax, dword [esi + 4]
test eax, eax
je 0x10203aa
push eax
call fcn.010213a1
and dword [esi + 4], 0
pop ecx
jmp 0x10203aa
push dword [esi]
call fcn.01022bf1
and dword [esi], 0
pop ecx
jmp 0x10203aa
mov eax, dword [ebp - 0xc]
inc ebx
mov byte [ebx], 0
mov byte [ebx + 1], 0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1020b9b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1063194]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01020adc
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.010219e0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1020c0e
cmp dword [ebp - 0x94], 5
jb 0x1020c2f
jmp 0x1020c2b
cmp dword [ebp - 0x88], 1
jne 0x1020c2f
cmp dword [ebp - 0x94], 4
ja 0x1020c2b
jne 0x1020c2f
cmp dword [ebp - 0x90], 0
jbe 0x1020c2f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x10057f4
call fcn.0102094f
test eax, eax
jge 0x1020c50
mov byte [0x1064704], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01021557
leave
ret
Function at 0x1023509
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1063194]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.0102383d
pop ecx
test eax, eax
je 0x102353e
push esi
push esi
push esi
push esi
push esi
call fcn.01024f1a
add esp, 0x14
push 4
pop eax
call fcn.0102b290
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x102365a
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x10235d3
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x10058dc
call esi
test eax, eax
jne 0x10235aa
push 0x10058c0
call esi
test eax, eax
je 0x10235d3
push 0x10058a8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10235d3
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x10235d3
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x10235d3
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.010234dd
add esp, 0xc
test eax, eax
jl 0x102365a
not esi
and dword [ebp - 8], esi
je 0x1023605
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.010234dd
add esp, 0xc
test eax, eax
jl 0x102365a
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x1023610
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x1023624
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x102365a
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x102365a
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x102365a
xor eax, eax
inc eax
jmp 0x102365c
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01021557
leave
ret
Function at 0x1023ac9
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x10631a8]
je 0x1023aef
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x1023add
cmp esi, 0x17
jae 0x1023c49
push 3
call fcn.0102b8cd
pop ecx
cmp eax, 1
je 0x1023c13
push 3
call fcn.0102b8cd
pop ecx
test eax, eax
jne 0x1023b22
cmp dword [0x1063190], 1
je 0x1023c13
cmp edi, 0xfc
je 0x1023c49
push 0x1005ebc
mov edi, 0x314
push edi
mov esi, 0x1064c50
push esi
call fcn.0102b860
add esp, 0xc
test eax, eax
je 0x1023b58
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01024f1a
add esp, 0x14
mov byte [0x1064d6d], bl
push 0x104
mov ebx, 0x1064c69
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1023b9b
push 0x1005ea4
push 0x2fb
push ebx
call fcn.0102b860
add esp, 0xc
test eax, eax
je 0x1023b9b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.01024f1a
add esp, 0x14
push ebx
push edi
push esi
call fcn.0102b7e7
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x1023bb9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01024f1a
add esp, 0x14
push 0x1005ea0
push edi
push esi
call fcn.0102b7e7
add esp, 0xc
test eax, eax
je 0x1023bd9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01024f1a
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x10631ac]
push edi
push esi
call fcn.0102b7e7
add esp, 0xc
test eax, eax
je 0x1023bfe
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01024f1a
add esp, 0x14
push 0x12010
push 0x1005e78
push esi
call fcn.0102b640
add esp, 0xc
jmp 0x1023c49
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x1023c49
cmp edi, 0xffffffff
je 0x1023c49
mov edx, dword [esi*8 + 0x10631ac]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1023c32
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102422c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1065174]
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x102427b
call edi
mov esi, eax
cmp esi, ebx
je 0x1024261
mov dword [0x1065174], 1
jmp 0x1024280
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1024276
push 2
pop eax
mov dword [0x1065174], eax
jmp 0x102427b
mov eax, dword [0x1065174]
cmp eax, 1
jne 0x10242db
cmp esi, ebx
jne 0x1024293
call edi
mov esi, eax
cmp esi, ebx
jne 0x1024293
xor eax, eax
jmp 0x10243ac
mov eax, esi
cmp word [esi], bx
je 0x10242a8
inc eax
inc eax
cmp word [eax], bx
jne 0x102429a
inc eax
inc eax
cmp word [eax], bx
jne 0x102429a
sub eax, esi
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
call fcn.01021488
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x10242cc
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x10243ac
push dword [ebp - 4]
push esi
push edi
call fcn.01022620
add esp, 0xc
jmp 0x10242be
cmp eax, 2
je 0x10242e4
cmp eax, ebx
jne 0x102428c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x102428c
cmp byte [esi], bl
je 0x1024325
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x102428c
add dword [ebp - 4], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1024311
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x10242f7
mov esi, dword [ebp - 8]
inc dword [ebp - 4]
push 2
push dword [ebp - 4]
call fcn.01023497
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
cmp edi, ebx
jne 0x1024349
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x102428c
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x102439b
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push edi
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10243b1
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1024373
sub eax, ecx
lea esi, [esi + eax + 1]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1024385
sub eax, ecx
sar eax, 1
lea edi, [edi + eax*2 + 2]
cmp byte [esi], bl
jne 0x1024350
push dword [ebp - 8]
xor eax, eax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.010213a1
pop ecx
push dword [ebp - 8]
jmp 0x102433e
Function at 0x10243c7
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1065178]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x102440b
call esi
test eax, eax
je 0x10243f0
mov dword [0x1065178], 1
jmp 0x1024410
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1024407
mov dword [0x1065178], 2
jmp 0x1024419
xor eax, eax
jmp 0x102446f
cmp eax, 1
jne 0x1024414
call esi
jmp 0x102446f
cmp eax, 2
jne 0x1024407
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x102446c
push 2
push edi
call fcn.01023497
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x102446c
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x1024463
mov eax, dword [ebp - 4]
jmp 0x102446e
push dword [ebp - 4]
call fcn.010213a1
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1024af0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x10057c0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1024b42
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1005f38
push edi
call esi
push 0x1005f2c
push edi
mov dword [0x106517c], eax
call esi
push 0x1005f20
push edi
mov dword [0x1065180], eax
call esi
push 0x1005f18
push edi
mov dword [0x1065184], eax
call esi
mov dword [0x1065188], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x106517c], ebx
je 0x1024b68
cmp dword [0x1065180], ebx
je 0x1024b68
cmp dword [0x1065184], ebx
je 0x1024b68
cmp dword [0x1065188], ebx
jne 0x1024b8c
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x1065180], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x106517c], 0x10247b4
mov dword [0x1065184], esi
mov dword [0x1065188], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x106330c], eax
cmp eax, 0xffffffff
je 0x1024bff
push dword [0x1065180]
push eax
call esi
test eax, eax
je 0x1024bff
call fcn.01023a82
push dword [0x106517c]
call fcn.010246b6
push dword [0x1065180]
mov dword [0x106517c], eax
call fcn.010246b6
push dword [0x1065184]
mov dword [0x1065180], eax
call fcn.010246b6
push dword [0x1065188]
mov dword [0x1065184], eax
call fcn.010246b6
add esp, 0x10
mov dword [0x1065188], eax
call fcn.01025076
test eax, eax
jne 0x1024c05
call fcn.010247f1
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x10249a0
push dword [0x106517c]
call fcn.0102473c
pop ecx
call eax
mov dword [0x1063310], eax
cmp eax, 0xffffffff
je 0x1024bfa
push 0x214
push 1
call fcn.0102b91d
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x1024bfa
push esi
push dword [0x1063310]
push dword [0x1065184]
call fcn.0102473c
pop ecx
call eax
test eax, eax
jne 0x1024c58
push esi
call fcn.010213a1
pop ecx
jmp 0x1024bfa
push ebx
push esi
call fcn.01024833
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x1024c01
Function at 0x102b640
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0102472e
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x1065680], ebx
jne 0x102b719
push ebx
push ebx
push 0x1006108
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x102b684
xor eax, eax
jmp 0x102b7dd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10060fc
push edi
call esi
cmp eax, ebx
je 0x102b67d
push eax
call fcn.010246b6
mov dword [esp], 0x10060ec
push edi
mov dword [0x1065680], eax
call esi
push eax
call fcn.010246b6
mov dword [esp], 0x10060d8
push edi
mov dword [0x1065684], eax
call esi
push eax
call fcn.010246b6
mov dword [0x1065688], eax
lea eax, [ebp - 8]
push eax
call fcn.0102383d
pop ecx
pop ecx
test eax, eax
je 0x102b6e7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01024f1a
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x102b719
push 0x10060bc
push edi
call esi
push eax
call fcn.010246b6
pop ecx
mov dword [0x1065690], eax
cmp eax, ebx
je 0x102b719
push 0x10060a4
push edi
call esi
push eax
call fcn.010246b6
pop ecx
mov dword [0x106568c], eax
mov eax, dword [0x106568c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x102b792
cmp dword [0x1065690], esi
je 0x102b792
push eax
call fcn.0102473c
pop ecx
call eax
cmp eax, ebx
je 0x102b75f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1065690]
call fcn.0102473c
pop ecx
call eax
test eax, eax
je 0x102b75f
test byte [ebp - 0x18], 1
jne 0x102b792
lea eax, [ebp - 0xc]
push eax
call fcn.0102387e
pop ecx
test eax, eax
je 0x102b77a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01024f1a
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x102b789
or dword [ebp + 0x10], 0x200000
jmp 0x102b7c3
or dword [ebp + 0x10], 0x40000
jmp 0x102b7c3
mov eax, dword [0x1065684]
cmp eax, esi
je 0x102b7c3
push eax
call fcn.0102473c
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x102b7c3
mov eax, dword [0x1065688]
cmp eax, esi
je 0x102b7c3
push dword [ebp - 4]
push eax
call fcn.0102473c
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1065680]
call fcn.0102473c
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret