joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415fa1
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x415fa8
call fcn.0042fe80
mov dword [0x4b6001], 0x400007f
mov dword [0x4b6001], 0x4000081
mov dword [esp + 0x30], 0
mov dword [0x4b6001], 0x4000083
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
mov dword [0x4b6001], 0x4000084
lea ebp, [esp + 0xc]
movsx ebx, word [ebp]
cmp ebx, 9
jne 0x4160da
mov dword [0x4b6001], 0x4000085
mov eax, str.IsWow64Process
push eax
mov eax, str.kernel32.dll
push eax
call fcn.00415ea9
mov dword [esp], eax
mov dword [0x4b6001], 0x4000086
cmp dword [esp], 0
je 0x4160d0
mov dword [0x4b6001], 0x4000087
push dword [esp + 0x40]
push 0
push 0x400
call sub.KERNEL32.dll_OpenProcess
mov dword [esp + 8], eax
mov dword [0x4b6001], 0x4000088
cmp dword [esp + 8], 0
je 0x4160c6
mov dword [0x4b6001], 0x4000089
lea eax, [esp + 4]
push eax
push dword [esp + 0xc]
push dword [esp + 8]
call fcn.0041d115
mov dword [0x4b6001], 0x400008a
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b6001], 0x400008b
mov ebx, dword [esp + 4]
and ebx, ebx
jne 0x4160bc
mov dword [0x4b6001], 0x400008c
mov dword [esp + 0x30], 1
mov dword [0x4b6001], 0x400008d
mov dword [0x4b6001], 0x400008e
mov dword [0x4b6001], 0x400008f
mov dword [0x4b6001], 0x4000090
mov dword [0x4b6001], 0x4000092
mov eax, dword [esp + 0x30]
jmp 0x416100
add esp, 0x34
pop ebx
pop ebp
ret 4

Function at 0x41632b
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x416332
call fcn.0042fe80
mov dword [0x4b6001], 0x171
mov dword [0x4b6001], 0x172
mov byte [esp], 0
mov dword [0x4b6001], 0x174
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
and eax, eax
je 0x416472
mov dword [0x4b6001], 0x175
lea eax, [esp + 8]
mov dword [0x4b6001], 0x177
lea eax, [esp + 8]
push eax
mov eax, str.SeDebugPrivilege
push eax
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueW
and eax, eax
je 0x416455
mov dword [0x4b6001], 0x178
lea eax, [esp + 0x10]
mov dword [0x4b6001], 0x17b
lea ebp, [esp + 0x10]
mov dword [ebp], 1
mov dword [0x4b6001], 0x17c
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 4], eax
mov dword [0x4b6001], 0x17d
lea ebp, [esp + 8]
push dword [ebp + 4]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 8], eax
mov dword [0x4b6001], 0x17e
push ebp
pop ebp
mov dword [ebp + 0xc], 2
mov dword [0x4b6001], 0x180
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
push eax
pop eax
mov byte [esp], al
mov dword [0x4b6001], 0x181
mov dword [0x4b6001], 0x182
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b6001], 0x183
mov dword [0x4b6001], 0x184
movsx eax, byte [esp]
movsx eax, al
jmp 0x41649b
add esp, 0x34
pop ebx
pop ebp
ret
Function at 0x417308
Capabilities:
Get graphical window text

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
call fcn.0042fe80
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.0041a000
mov dword [0x4b6001], 0x3ba
mov dword [0x4b6001], 0x3bc
push 5
call sub.USER32.DLL_GetDesktopWindow
push eax
call sub.USER32.DLL_GetWindow
mov dword [esp + 4], eax
mov dword [0x4b6001], 0x3bd
cmp dword [esp + 4], 0
je 0x417463
mov dword [0x4b6001], 0x3be
push edx
call fcn.0042fce0
pop edx
push eax
push edx
call fcn.0042fce0
pop edx
push eax
push dword [esp + 0xc]
call sub.USER32.DLL_GetWindowTextLengthW
mov ebx, eax
add ebx, 2
push ebx
call fcn.0042e6d0
lea eax, [esp + 0xc]
push eax
call fcn.0042fd80
mov dword [0x4b6001], 0x3bf
push dword [esp + 8]
call fcn.0042de80
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call sub.USER32.DLL_GetWindowTextW
mov dword [0x4b6001], 0x3c0
push edx
call fcn.0042fce0
pop edx
push eax
push edx
call fcn.0042fce0
pop edx
push eax
push edx
call fcn.0042fce0
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042e810
call fcn.0042fe10
push edx
call fcn.0042fce0
pop edx
push eax
push edx
call fcn.0042fce0
pop edx
push eax
push dword [esp + 0x18]
call fcn.0042e810
call fcn.0041a2d2
add dword [esp], edx
call fcn.0041a2d2
add dword [esp + 4], edx
call fcn.0042de20
call fcn.0041a2b0
and eax, eax
je 0x41742e
mov dword [0x4b6001], 0x3c1
mov eax, 1
jmp 0x41747d
mov dword [0x4b6001], 0x3c2
mov dword [0x4b6001], 0x3c3
push 2
push dword [esp + 8]
call sub.USER32.DLL_GetWindow
mov dword [esp + 4], eax
mov dword [0x4b6001], 0x3c4
jmp 0x417347
mov dword [0x4b6001], 0x3c5
xor eax, eax
jmp 0x41747d
push dword [esp]
call fcn.0042fee0
push dword [esp + 8]
call fcn.0042fee0
add esp, 0xc
pop ebx
ret 4
Function at 0x41753a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov edx, 0x10d
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x417540
call fcn.0042fe80
mov edx, dword [esp + 0x440]
lea ecx, [esp]
call fcn.0041a000
mov dword [0x4b6001], 0x2000085
mov dword [0x4b6001], 0x2000088
lea ebp, [esp + 8]
mov dword [ebp], 0x428
mov dword [0x4b6001], 0x200008b
push dword [esp + 0x43c]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 4], eax
mov dword [0x4b6001], 0x200008c
cmp dword [esp + 4], 0
je 0x417719
mov dword [0x4b6001], 0x200008d
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Module32FirstW
and eax, eax
je 0x4176fc
mov dword [0x4b6001], 0x200008e
mov dword [0x4b6001], 0x200008f
push edx
call fcn.0042fce0
pop edx
push eax
push edx
call fcn.0042fce0
pop edx
push eax
lea ebp, [esp + 0x10]
lea eax, [ebp + 0x20]
push eax
call fcn.0042ed90
lea eax, [esp + 0x434]
push eax
call fcn.0042fd80
mov dword [0x4b6001], 0x2000090
push edx
call fcn.0042fce0
pop edx
push eax
push edx
call fcn.0042fce0
pop edx
push eax
lea eax, [ebp + 0x220]
push eax
call fcn.0042ed90
lea eax, [0x4ff2b0]
push eax
call fcn.0042fd80
mov dword [0x4b6001], 0x2000094
push edx
call fcn.0042fce0
pop edx
push eax
push edx
call fcn.0042fce0
pop edx
push eax
push dword [esp + 0x438]
call fcn.0042dfa0
call fcn.0042fe10
push edx
call fcn.0042fce0
pop edx
push eax
push edx
call fcn.0042fce0
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042dfa0
call fcn.0041a2f0
mov edx, eax
pop ecx
push ecx
call fcn.0041a2f0
mov ecx, eax
call fcn.0041a270
je 0x4176c5
mov dword [0x4b6001], 0x2000096
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b6001], 0x2000097
lea ebp, [esp + 8]
mov eax, dword [ebp + 0x14]
jmp 0x41773d
mov dword [0x4b6001], 0x2000098
mov dword [0x4b6001], 0x2000099
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Module32NextW
and eax, eax
je 0x4176ef
xor eax, eax
jmp 0x4176f4
mov eax, 1
and eax, eax
je 0x4175d4
mov dword [0x4b6001], 0x200009a
mov dword [0x4b6001], 0x200009b
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b6001], 0x200009c
mov dword [0x4b6001], 0x200009e
xor eax, eax
jmp 0x41773d
push dword [esp]
call fcn.0042fee0
push dword [esp + 0x430]
call fcn.0042fee0
add esp, 0x434
pop ebp
ret 8
Function at 0x418099
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov edx, 0x8e
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x41809f
call fcn.0042fe80
mov edx, dword [esp + 0x240]
lea ecx, [esp]
call fcn.0041a000
mov dword [0x4b6001], 0x200006b
mov dword [0x4b6001], 0x200006f
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [0x4b6001], 0x2000071
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 4], eax
mov dword [0x4b6001], 0x2000072
cmp dword [esp + 4], 0
je 0x418259
mov dword [0x4b6001], 0x2000073
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [0x4b6001], 0x2000074
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32FirstW
and eax, eax
je 0x41823c
mov dword [0x4b6001], 0x2000075
mov dword [0x4b6001], 0x2000076
push edx
call fcn.0042fce0
pop edx
push eax
push edx
call fcn.0042fce0
pop edx
push eax
lea ebp, [esp + 0x10]
lea eax, [ebp + 0x24]
push eax
call fcn.0042ed90
lea eax, [esp + 0x238]
push eax
call fcn.0042fd80
mov dword [0x4b6001], 0x2000078
push edx
call fcn.0042fce0
pop edx
push eax
push edx
call fcn.0042fce0
pop edx
push eax
push dword [esp + 0x23c]
call fcn.0042dfa0
call fcn.0042fe10
push edx
call fcn.0042fce0
pop edx
push eax
push edx
call fcn.0042fce0
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042dfa0
call fcn.0041a2f0
mov edx, eax
pop ecx
push ecx
call fcn.0041a2f0
mov ecx, eax
call fcn.0041a270
je 0x418205
mov dword [0x4b6001], 0x2000079
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b6001], 0x200007a
lea ebp, [esp + 8]
mov eax, dword [ebp + 8]
jmp 0x41827d
mov dword [0x4b6001], 0x200007b
mov dword [0x4b6001], 0x200007c
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32NextW
and eax, eax
je 0x41822f
xor eax, eax
jmp 0x418234
mov eax, 1
and eax, eax
je 0x418146
mov dword [0x4b6001], 0x200007d
mov dword [0x4b6001], 0x200007e
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b6001], 0x200007f
mov dword [0x4b6001], 0x2000081
xor eax, eax
jmp 0x41827d
push dword [esp + 0x234]
call fcn.0042fee0
push dword [esp]
call fcn.0042fee0
add esp, 0x238
pop ebp
ret 4
Function at 0x41aa87
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4ffa5c], 0
push ebx
push esi
mov esi, 0x4ffa64
jne 0x41aab3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4ffa7c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4ffa5c], 1
push dword [0x4ffa7c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x41ab50
push 0x14
push 8
push dword [0x4fedf4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x41ab7a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4ffa60]
test eax, eax
je 0x41aaf5
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4ffa60], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41ab7f
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4ffa7c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x4fedf4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41ab7a
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x41b434
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x4ffad8]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.0042f442
mov esi, eax
test esi, esi
je 0x41b5c9
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x41b4de
push ebx
call fcn.0041b877
jmp 0x41b476
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x41b46e
push dword [esi + 0x14]
call fcn.0041b916
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.0041b3bf
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x41b5e3
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41b4bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x41b4cc
push dword [esp + 0x20]
push ebx
call fcn.0041b737
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x41b57e
test byte [esp + 0x1c], 1
je 0x41b4ed
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x41b588
push esi
call fcn.0041b356
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0042fc3e
pop ecx
pop ecx
mov ecx, dword [0x4ffb44]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x41b5c9
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x41b569
push edi
push dword [esp + 0x24]
push ebx
call fcn.0041b697
jmp 0x41b576
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x41b5c9
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x41b5aa
push dword [esp + 0x20]
push ebx
call fcn.0041b737
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x41b5c9
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x41bfe0
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41c035
push dword [esp + 0x10]
push 0x41bf5f
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4ffafc]
test esi, esi
je 0x41c08e
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41c02d
cmp byte [esi + 0x10], 0
je 0x41c02d
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x41c009
jmp 0x41c08e
mov esi, dword [0x4ffafc]
test esi, esi
je 0x41c08e
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x41c087
cmp byte [esi + 0x11], 0
je 0x41c063
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41c07a
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x4ffafc
call fcn.0042fbfe
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x41c042
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41c746
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x500b38]
call fcn.0042f2d1
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x41c846
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x41c79c
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x41c794
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x41c7dc
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x41c81e
push 0x22
pop edx
cmp cx, dx
je 0x41c7ce
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41c7be
xor ecx, ecx
cmp word [eax], cx
je 0x41c81e
mov ecx, eax
add eax, 2
jmp 0x41c820
test dx, dx
je 0x41c826
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x41c7ce
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x41c814
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x41c81e
cmp cx, dx
je 0x41c811
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41c801
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x41c7e6
jmp 0x41c7ce
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x41c828
xor edx, edx
cmp dword [ebp], ebx
jne 0x41c831
test edi, edi
jne 0x41c84e
test edx, edx
je 0x41c836
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x41c78a
test edi, edi
jne 0x41c85f
mov eax, ebx
jmp 0x41c863
test esi, esi
je 0x41c85f
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x41c863
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41c9da
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x41ca89
cmp dword [esp + 0x24], 2
je 0x41ca89
push 0x2000
push edi
push dword [0x4fedf4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41ca5c
cmp dword [esp + 0x18], 2
jne 0x41ca74
test ebx, ebx
jne 0x41ca45
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x4fedf4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x41ca74
cmp ax, 0xd
je 0x41ca5c
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x41ca1c
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0049d970
jmp 0x41cb0f
push eax
push 0
push dword [0x4fedf4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41cadb
cmp dword [esp + 0x18], 1
jne 0x41caf3
test ebx, ebx
jne 0x41caca
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x4fedf4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x41caf3
cmp al, 0xd
je 0x41cadb
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x41caa2
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x41cb0a
call fcn.0049d9c0
jmp 0x41cb0f
call fcn.0049db70
push esi
push 0
push dword [0x4fedf4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x41cdf0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4ffb14], 0
jne 0x41cdfe
call fcn.0041cd90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x4ffb18]
call esi
test eax, eax
jne 0x41ce21
call fcn.0041cd90
push dword [0x4ffb18]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x41ce30
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x41ce90
mov ebx, 0x10
test edi, edi
jns 0x41ce99
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x41ce62
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41ceb0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4ffb14], 0
jne 0x41cebe
call fcn.0041cd90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x4ffb18]
call esi
mov edx, eax
test edx, edx
jne 0x41cee5
call fcn.0041cd90
push dword [0x4ffb18]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x41cf18
mov ebx, 0x10
test esi, esi
jns 0x41cf21
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x41cf30
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41e36a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41e408
cmp dword [ebp + 0xc], edi
je 0x41e408
push esi
push 0x30
push 8
push dword [0x4fedf4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x14]
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x28], eax
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
test al, 1
je 0x41e3f7
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x41e57d
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41e3ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x41e407
push esi
call fcn.0041e5ce
jmp 0x41e406
push esi
call fcn.0041e421
push esi
mov edi, eax
call fcn.0041e5ce
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0x10