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

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x414d5f
call fcn.0042dad0
mov dword [0x4b4001], 0x400007f
mov dword [0x4b4001], 0x4000081
mov dword [esp + 0x30], 0
mov dword [0x4b4001], 0x4000083
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
mov dword [0x4b4001], 0x4000084
lea ebp, [esp + 0xc]
movsx ebx, word [ebp]
cmp ebx, 9
jne 0x414e91
mov dword [0x4b4001], 0x4000085
mov eax, str.IsWow64Process
push eax
mov eax, str.kernel32.dll
push eax
call fcn.00414c60
mov dword [esp], eax
mov dword [0x4b4001], 0x4000086
cmp dword [esp], 0
je 0x414e87
mov dword [0x4b4001], 0x4000087
push dword [esp + 0x40]
push 0
push 0x400
call sub.KERNEL32.dll_OpenProcess
mov dword [esp + 8], eax
mov dword [0x4b4001], 0x4000088
cmp dword [esp + 8], 0
je 0x414e7d
mov dword [0x4b4001], 0x4000089
lea eax, [esp + 4]
push eax
push dword [esp + 0xc]
push dword [esp + 8]
call fcn.0041b0d5
mov dword [0x4b4001], 0x400008a
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b4001], 0x400008b
mov ebx, dword [esp + 4]
and ebx, ebx
jne 0x414e73
mov dword [0x4b4001], 0x400008c
mov dword [esp + 0x30], 1
mov dword [0x4b4001], 0x400008d
mov dword [0x4b4001], 0x400008e
mov dword [0x4b4001], 0x400008f
mov dword [0x4b4001], 0x4000090
mov dword [0x4b4001], 0x4000092
mov eax, dword [esp + 0x30]
jmp 0x414eb7
add esp, 0x34
pop ebx
pop ebp
ret 4

Function at 0x4150e2
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4150e9
call fcn.0042dad0
mov dword [0x4b4001], 0x15c
mov dword [0x4b4001], 0x15d
mov byte [esp], 0
mov dword [0x4b4001], 0x15f
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
and eax, eax
je 0x415229
mov dword [0x4b4001], 0x160
lea eax, [esp + 8]
mov dword [0x4b4001], 0x162
lea eax, [esp + 8]
push eax
mov eax, str.SeDebugPrivilege
push eax
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueW
and eax, eax
je 0x41520c
mov dword [0x4b4001], 0x163
lea eax, [esp + 0x10]
mov dword [0x4b4001], 0x166
lea ebp, [esp + 0x10]
mov dword [ebp], 1
mov dword [0x4b4001], 0x167
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 4], eax
mov dword [0x4b4001], 0x168
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 [0x4b4001], 0x169
push ebp
pop ebp
mov dword [ebp + 0xc], 2
mov dword [0x4b4001], 0x16b
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 [0x4b4001], 0x16c
mov dword [0x4b4001], 0x16d
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b4001], 0x16e
mov dword [0x4b4001], 0x16f
movsx eax, byte [esp]
movsx eax, al
jmp 0x415252
add esp, 0x34
pop ebx
pop ebp
ret
Function at 0x416068
Capabilities:
Get graphical window text

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
call fcn.0042dad0
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.00418000
mov dword [0x4b4001], 0x37e
mov dword [0x4b4001], 0x380
push 5
call sub.USER32.DLL_GetDesktopWindow
push eax
call sub.USER32.DLL_GetWindow
mov dword [esp + 4], eax
mov dword [0x4b4001], 0x381
cmp dword [esp + 4], 0
je 0x4161c3
mov dword [0x4b4001], 0x382
push edx
call fcn.0042d930
pop edx
push eax
push edx
call fcn.0042d930
pop edx
push eax
push dword [esp + 0xc]
call sub.USER32.DLL_GetWindowTextLengthW
mov ebx, eax
add ebx, 2
push ebx
call fcn.0042c320
lea eax, [esp + 0xc]
push eax
call fcn.0042d9d0
mov dword [0x4b4001], 0x383
push dword [esp + 8]
call fcn.0042bad0
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call sub.USER32.DLL_GetWindowTextW
mov dword [0x4b4001], 0x384
push edx
call fcn.0042d930
pop edx
push eax
push edx
call fcn.0042d930
pop edx
push eax
push edx
call fcn.0042d930
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042c460
call fcn.0042da60
push edx
call fcn.0042d930
pop edx
push eax
push edx
call fcn.0042d930
pop edx
push eax
push dword [esp + 0x18]
call fcn.0042c460
call fcn.00418292
add dword [esp], edx
call fcn.00418292
add dword [esp + 4], edx
call fcn.0042ba70
call fcn.004182b0
and eax, eax
je 0x41618e
mov dword [0x4b4001], 0x385
mov eax, 1
jmp 0x4161dd
mov dword [0x4b4001], 0x386
mov dword [0x4b4001], 0x387
push 2
push dword [esp + 8]
call sub.USER32.DLL_GetWindow
mov dword [esp + 4], eax
mov dword [0x4b4001], 0x388
jmp 0x4160a7
mov dword [0x4b4001], 0x389
xor eax, eax
jmp 0x4161dd
push dword [esp]
call fcn.0042db30
push dword [esp + 8]
call fcn.0042db30
add esp, 0xc
pop ebx
ret 4
Function at 0x41629a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov edx, 0x10d
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4162a0
call fcn.0042dad0
mov edx, dword [esp + 0x440]
lea ecx, [esp]
call fcn.00418000
mov dword [0x4b4001], 0x2000085
mov dword [0x4b4001], 0x2000088
lea ebp, [esp + 8]
mov dword [ebp], 0x428
mov dword [0x4b4001], 0x200008b
push dword [esp + 0x43c]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 4], eax
mov dword [0x4b4001], 0x200008c
cmp dword [esp + 4], 0
je 0x416479
mov dword [0x4b4001], 0x200008d
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Module32FirstW
and eax, eax
je 0x41645c
mov dword [0x4b4001], 0x200008e
mov dword [0x4b4001], 0x200008f
push edx
call fcn.0042d930
pop edx
push eax
push edx
call fcn.0042d930
pop edx
push eax
lea ebp, [esp + 0x10]
lea eax, [ebp + 0x20]
push eax
call fcn.0042c9e0
lea eax, [esp + 0x434]
push eax
call fcn.0042d9d0
mov dword [0x4b4001], 0x2000090
push edx
call fcn.0042d930
pop edx
push eax
push edx
call fcn.0042d930
pop edx
push eax
lea eax, [ebp + 0x220]
push eax
call fcn.0042c9e0
lea eax, [0x4fce40]
push eax
call fcn.0042d9d0
mov dword [0x4b4001], 0x2000094
push edx
call fcn.0042d930
pop edx
push eax
push edx
call fcn.0042d930
pop edx
push eax
push dword [esp + 0x438]
call fcn.0042bd20
call fcn.0042da60
push edx
call fcn.0042d930
pop edx
push eax
push edx
call fcn.0042d930
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042bd20
call fcn.004182c0
mov edx, eax
pop ecx
push ecx
call fcn.004182c0
mov ecx, eax
call fcn.00418240
je 0x416425
mov dword [0x4b4001], 0x2000096
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b4001], 0x2000097
lea ebp, [esp + 8]
mov eax, dword [ebp + 0x14]
jmp 0x41649d
mov dword [0x4b4001], 0x2000098
mov dword [0x4b4001], 0x2000099
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Module32NextW
and eax, eax
je 0x41644f
xor eax, eax
jmp 0x416454
mov eax, 1
and eax, eax
je 0x416334
mov dword [0x4b4001], 0x200009a
mov dword [0x4b4001], 0x200009b
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b4001], 0x200009c
mov dword [0x4b4001], 0x200009e
xor eax, eax
jmp 0x41649d
push dword [esp]
call fcn.0042db30
push dword [esp + 0x430]
call fcn.0042db30
add esp, 0x434
pop ebp
ret 8
Function at 0x416df9
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov edx, 0x8e
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x416dff
call fcn.0042dad0
mov edx, dword [esp + 0x240]
lea ecx, [esp]
call fcn.00418000
mov dword [0x4b4001], 0x200006b
mov dword [0x4b4001], 0x200006f
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [0x4b4001], 0x2000071
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 4], eax
mov dword [0x4b4001], 0x2000072
cmp dword [esp + 4], 0
je 0x416fb9
mov dword [0x4b4001], 0x2000073
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [0x4b4001], 0x2000074
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32FirstW
and eax, eax
je 0x416f9c
mov dword [0x4b4001], 0x2000075
mov dword [0x4b4001], 0x2000076
push edx
call fcn.0042d930
pop edx
push eax
push edx
call fcn.0042d930
pop edx
push eax
lea ebp, [esp + 0x10]
lea eax, [ebp + 0x24]
push eax
call fcn.0042c9e0
lea eax, [esp + 0x238]
push eax
call fcn.0042d9d0
mov dword [0x4b4001], 0x2000078
push edx
call fcn.0042d930
pop edx
push eax
push edx
call fcn.0042d930
pop edx
push eax
push dword [esp + 0x23c]
call fcn.0042bd20
call fcn.0042da60
push edx
call fcn.0042d930
pop edx
push eax
push edx
call fcn.0042d930
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042bd20
call fcn.004182c0
mov edx, eax
pop ecx
push ecx
call fcn.004182c0
mov ecx, eax
call fcn.00418240
je 0x416f65
mov dword [0x4b4001], 0x2000079
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b4001], 0x200007a
lea ebp, [esp + 8]
mov eax, dword [ebp + 8]
jmp 0x416fdd
mov dword [0x4b4001], 0x200007b
mov dword [0x4b4001], 0x200007c
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32NextW
and eax, eax
je 0x416f8f
xor eax, eax
jmp 0x416f94
mov eax, 1
and eax, eax
je 0x416ea6
mov dword [0x4b4001], 0x200007d
mov dword [0x4b4001], 0x200007e
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b4001], 0x200007f
mov dword [0x4b4001], 0x2000081
xor eax, eax
jmp 0x416fdd
push dword [esp + 0x234]
call fcn.0042db30
push dword [esp]
call fcn.0042db30
add esp, 0x238
pop ebp
ret 4
Function at 0x418a51
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4fd5e0], 0
push ebx
push esi
mov esi, 0x4fd5e8
jne 0x418a7d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4fd600], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4fd5e0], 1
push dword [0x4fd600]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x418b1a
push 0x14
push 8
push dword [0x4fc9ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x418b44
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4fd5e4]
test eax, eax
je 0x418abf
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4fd5e4], 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 0x418b49
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4fd600]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x4fc9ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x418b44
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 0x4193f4
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x4fd65c]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.0042d092
mov esi, eax
test esi, esi
je 0x419589
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x41949e
push ebx
call fcn.00419837
jmp 0x419436
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x41942e
push dword [esi + 0x14]
call fcn.004198d6
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.0041937f
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x4195a3
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41947b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x41948c
push dword [esp + 0x20]
push ebx
call fcn.004196f7
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x41953e
test byte [esp + 0x1c], 1
je 0x4194ad
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x419548
push esi
call fcn.00419316
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0042d88e
pop ecx
pop ecx
mov ecx, dword [0x4fd6c8]
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 0x419589
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 0x419529
push edi
push dword [esp + 0x24]
push ebx
call fcn.00419657
jmp 0x419536
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 0x419589
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 0x41956a
push dword [esp + 0x20]
push ebx
call fcn.004196f7
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 0x419589
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 0x419fa0
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x419ff5
push dword [esp + 0x10]
push 0x419f1f
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4fd680]
test esi, esi
je 0x41a04e
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x419fed
cmp byte [esi + 0x10], 0
je 0x419fed
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 0x419fc9
jmp 0x41a04e
mov esi, dword [0x4fd680]
test esi, esi
je 0x41a04e
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 0x41a047
cmp byte [esi + 0x11], 0
je 0x41a023
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41a03a
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 0x4fd680
call fcn.0042d84e
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x41a002
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41a706
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x4fe6b8]
call fcn.0042cf21
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 0x41a806
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x41a75c
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x41a754
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x41a79c
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x41a7de
push 0x22
pop edx
cmp cx, dx
je 0x41a78e
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41a77e
xor ecx, ecx
cmp word [eax], cx
je 0x41a7de
mov ecx, eax
add eax, 2
jmp 0x41a7e0
test dx, dx
je 0x41a7e6
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x41a78e
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x41a7d4
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x41a7de
cmp cx, dx
je 0x41a7d1
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41a7c1
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x41a7a6
jmp 0x41a78e
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x41a7e8
xor edx, edx
cmp dword [ebp], ebx
jne 0x41a7f1
test edi, edi
jne 0x41a80e
test edx, edx
je 0x41a7f6
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x41a74a
test edi, edi
jne 0x41a81f
mov eax, ebx
jmp 0x41a823
test esi, esi
je 0x41a81f
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x41a823
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41a99a
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 0x41aa49
cmp dword [esp + 0x24], 2
je 0x41aa49
push 0x2000
push edi
push dword [0x4fc9ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41aa1c
cmp dword [esp + 0x18], 2
jne 0x41aa34
test ebx, ebx
jne 0x41aa05
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x4fc9ec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x41aa34
cmp ax, 0xd
je 0x41aa1c
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 0x41a9dc
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0049b5c0
jmp 0x41aacf
push eax
push 0
push dword [0x4fc9ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41aa9b
cmp dword [esp + 0x18], 1
jne 0x41aab3
test ebx, ebx
jne 0x41aa8a
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x4fc9ec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x41aab3
cmp al, 0xd
je 0x41aa9b
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 0x41aa62
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x41aaca
call fcn.0049b610
jmp 0x41aacf
call fcn.0049b7c0
push esi
push 0
push dword [0x4fc9ec]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x41adb0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4fd698], 0
jne 0x41adbe
call fcn.0041ad50
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x4fd69c]
call esi
test eax, eax
jne 0x41ade1
call fcn.0041ad50
push dword [0x4fd69c]
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 0x41adf0
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 0x41ae50
mov ebx, 0x10
test edi, edi
jns 0x41ae59
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x41ae22
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41ae70
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4fd698], 0
jne 0x41ae7e
call fcn.0041ad50
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x4fd69c]
call esi
mov edx, eax
test edx, edx
jne 0x41aea5
call fcn.0041ad50
push dword [0x4fd69c]
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 0x41aed8
mov ebx, 0x10
test esi, esi
jns 0x41aee1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x41aef0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41c32a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41c3c8
cmp dword [ebp + 0xc], edi
je 0x41c3c8
push esi
push 0x30
push 8
push dword [0x4fc9ec]
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 0x41c3b7
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x41c53d
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41c3af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x41c3c7
push esi
call fcn.0041c58e
jmp 0x41c3c6
push esi
call fcn.0041c3e1
push esi
mov edi, eax
call fcn.0041c58e
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0x10