joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414862
Capabilities:
Enumerate process modules

Disassembly:
push ebp
push ebx
mov edx, 0x10e
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x414869
call fcn.0042eb00
mov edx, dword [esp + 0x448]
lea ecx, [esp]
call fcn.00419000
mov dword [0x4b5001], 0x4000096
mov dword [0x4b5001], 0x400009a
push dword [esp + 0x444]
push 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 0x42c], eax
mov dword [0x4b5001], 0x400009b
cmp dword [esp + 0x42c], 0
je 0x4149e6
mov dword [0x4b5001], 0x400009c
lea ebp, [esp + 4]
mov dword [ebp], 0x428
mov dword [0x4b5001], 0x400009d
lea eax, [esp + 4]
push eax
push dword [esp + 0x430]
call sub.KERNEL32.dll_Module32FirstW
mov dword [esp + 0x430], eax
mov dword [0x4b5001], 0x400009e
cmp dword [esp + 0x430], 0
je 0x4149d0
mov dword [0x4b5001], 0x400009f
push edx
call fcn.0042e960
pop edx
push eax
push 1
push 1
push dword [esp + 0xc]
push edx
call fcn.0042e960
pop edx
push eax
push edx
call fcn.0042e960
pop edx
push eax
lea ebp, [esp + 0x1c]
lea eax, [ebp + 0x20]
push eax
call fcn.0042da10
call fcn.004192c2
add dword [esp], edx
call fcn.0042ca20
call fcn.004192e0
and eax, eax
je 0x414995
mov dword [0x4b5001], 0x40000a0
lea ebp, [esp + 4]
push dword [ebp + 0x14]
pop eax
mov dword [esp + 0x434], eax
mov dword [0x4b5001], 0x40000a1
jmp 0x4149d0
mov dword [0x4b5001], 0x40000a2
mov dword [0x4b5001], 0x40000a3
lea eax, [esp + 4]
push eax
push dword [esp + 0x430]
call sub.KERNEL32.dll_Module32NextW
mov dword [esp + 0x430], eax
mov dword [0x4b5001], 0x40000a4
jmp 0x414905
mov dword [0x4b5001], 0x40000a5
push dword [esp + 0x42c]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b5001], 0x40000a6
mov dword [0x4b5001], 0x40000a8
mov eax, dword [esp + 0x434]
jmp 0x414a0f
push dword [esp]
call fcn.0042eb60
add esp, 0x438
pop ebx
pop ebp
ret 8
Function at 0x4158a9
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4158b0
call fcn.0042eb00
mov dword [0x4b5001], 0x400007f
mov dword [0x4b5001], 0x4000081
mov dword [esp + 0x30], 0
mov dword [0x4b5001], 0x4000083
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
mov dword [0x4b5001], 0x4000084
lea ebp, [esp + 0xc]
movsx ebx, word [ebp]
cmp ebx, 9
jne 0x4159e2
mov dword [0x4b5001], 0x4000085
mov eax, str.IsWow64Process
push eax
mov eax, str.kernel32.dll
push eax
call fcn.004157b1
mov dword [esp], eax
mov dword [0x4b5001], 0x4000086
cmp dword [esp], 0
je 0x4159d8
mov dword [0x4b5001], 0x4000087
push dword [esp + 0x40]
push 0
push 0x400
call sub.KERNEL32.dll_OpenProcess
mov dword [esp + 8], eax
mov dword [0x4b5001], 0x4000088
cmp dword [esp + 8], 0
je 0x4159ce
mov dword [0x4b5001], 0x4000089
lea eax, [esp + 4]
push eax
push dword [esp + 0xc]
push dword [esp + 8]
call fcn.0041c105
mov dword [0x4b5001], 0x400008a
push dword [esp + 8]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b5001], 0x400008b
mov ebx, dword [esp + 4]
and ebx, ebx
jne 0x4159c4
mov dword [0x4b5001], 0x400008c
mov dword [esp + 0x30], 1
mov dword [0x4b5001], 0x400008d
mov dword [0x4b5001], 0x400008e
mov dword [0x4b5001], 0x400008f
mov dword [0x4b5001], 0x4000090
mov dword [0x4b5001], 0x4000092
mov eax, dword [esp + 0x30]
jmp 0x415a08
add esp, 0x34
pop ebx
pop ebp
ret 4

Function at 0x415c33
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x415c3a
call fcn.0042eb00
mov dword [0x4b5001], 0x15c
mov dword [0x4b5001], 0x15d
mov byte [esp], 0
mov dword [0x4b5001], 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 0x415d7a
mov dword [0x4b5001], 0x160
lea eax, [esp + 8]
mov dword [0x4b5001], 0x162
lea eax, [esp + 8]
push eax
mov eax, str.SeDebugPrivilege
push eax
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueW
and eax, eax
je 0x415d5d
mov dword [0x4b5001], 0x163
lea eax, [esp + 0x10]
mov dword [0x4b5001], 0x166
lea ebp, [esp + 0x10]
mov dword [ebp], 1
mov dword [0x4b5001], 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 [0x4b5001], 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 [0x4b5001], 0x169
push ebp
pop ebp
mov dword [ebp + 0xc], 2
mov dword [0x4b5001], 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 [0x4b5001], 0x16c
mov dword [0x4b5001], 0x16d
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b5001], 0x16e
mov dword [0x4b5001], 0x16f
movsx eax, byte [esp]
movsx eax, al
jmp 0x415da3
add esp, 0x34
pop ebx
pop ebp
ret
Function at 0x416c10
Capabilities:
Get graphical window text

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
call fcn.0042eb00
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.00419000
mov dword [0x4b5001], 0x38f
mov dword [0x4b5001], 0x391
push 5
call sub.USER32.DLL_GetDesktopWindow
push eax
call sub.USER32.DLL_GetWindow
mov dword [esp + 4], eax
mov dword [0x4b5001], 0x392
cmp dword [esp + 4], 0
je 0x416d6b
mov dword [0x4b5001], 0x393
push edx
call fcn.0042e960
pop edx
push eax
push edx
call fcn.0042e960
pop edx
push eax
push dword [esp + 0xc]
call sub.USER32.DLL_GetWindowTextLengthW
mov ebx, eax
add ebx, 2
push ebx
call fcn.0042d350
lea eax, [esp + 0xc]
push eax
call fcn.0042ea00
mov dword [0x4b5001], 0x394
push dword [esp + 8]
call fcn.0042cb00
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
call sub.USER32.DLL_GetWindowTextW
mov dword [0x4b5001], 0x395
push edx
call fcn.0042e960
pop edx
push eax
push edx
call fcn.0042e960
pop edx
push eax
push edx
call fcn.0042e960
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042d490
call fcn.0042ea90
push edx
call fcn.0042e960
pop edx
push eax
push edx
call fcn.0042e960
pop edx
push eax
push dword [esp + 0x18]
call fcn.0042d490
call fcn.004192c2
add dword [esp], edx
call fcn.004192c2
add dword [esp + 4], edx
call fcn.0042caa0
call fcn.004192e0
and eax, eax
je 0x416d36
mov dword [0x4b5001], 0x396
mov eax, 1
jmp 0x416d85
mov dword [0x4b5001], 0x397
mov dword [0x4b5001], 0x398
push 2
push dword [esp + 8]
call sub.USER32.DLL_GetWindow
mov dword [esp + 4], eax
mov dword [0x4b5001], 0x399
jmp 0x416c4f
mov dword [0x4b5001], 0x39a
xor eax, eax
jmp 0x416d85
push dword [esp]
call fcn.0042eb60
push dword [esp + 8]
call fcn.0042eb60
add esp, 0xc
pop ebx
ret 4
Function at 0x416e42
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov edx, 0x10d
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x416e48
call fcn.0042eb00
mov edx, dword [esp + 0x440]
lea ecx, [esp]
call fcn.00419000
mov dword [0x4b5001], 0x2000085
mov dword [0x4b5001], 0x2000088
lea ebp, [esp + 8]
mov dword [ebp], 0x428
mov dword [0x4b5001], 0x200008b
push dword [esp + 0x43c]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 4], eax
mov dword [0x4b5001], 0x200008c
cmp dword [esp + 4], 0
je 0x417021
mov dword [0x4b5001], 0x200008d
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Module32FirstW
and eax, eax
je 0x417004
mov dword [0x4b5001], 0x200008e
mov dword [0x4b5001], 0x200008f
push edx
call fcn.0042e960
pop edx
push eax
push edx
call fcn.0042e960
pop edx
push eax
lea ebp, [esp + 0x10]
lea eax, [ebp + 0x20]
push eax
call fcn.0042da10
lea eax, [esp + 0x434]
push eax
call fcn.0042ea00
mov dword [0x4b5001], 0x2000090
push edx
call fcn.0042e960
pop edx
push eax
push edx
call fcn.0042e960
pop edx
push eax
lea eax, [ebp + 0x220]
push eax
call fcn.0042da10
lea eax, [0x4fddec]
push eax
call fcn.0042ea00
mov dword [0x4b5001], 0x2000094
push edx
call fcn.0042e960
pop edx
push eax
push edx
call fcn.0042e960
pop edx
push eax
push dword [esp + 0x438]
call fcn.0042cd50
call fcn.0042ea90
push edx
call fcn.0042e960
pop edx
push eax
push edx
call fcn.0042e960
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042cd50
call fcn.004192f0
mov edx, eax
pop ecx
push ecx
call fcn.004192f0
mov ecx, eax
call fcn.00419270
je 0x416fcd
mov dword [0x4b5001], 0x2000096
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b5001], 0x2000097
lea ebp, [esp + 8]
mov eax, dword [ebp + 0x14]
jmp 0x417045
mov dword [0x4b5001], 0x2000098
mov dword [0x4b5001], 0x2000099
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Module32NextW
and eax, eax
je 0x416ff7
xor eax, eax
jmp 0x416ffc
mov eax, 1
and eax, eax
je 0x416edc
mov dword [0x4b5001], 0x200009a
mov dword [0x4b5001], 0x200009b
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b5001], 0x200009c
mov dword [0x4b5001], 0x200009e
xor eax, eax
jmp 0x417045
push dword [esp]
call fcn.0042eb60
push dword [esp + 0x430]
call fcn.0042eb60
add esp, 0x434
pop ebp
ret 8
Function at 0x4179a1
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov edx, 0x8e
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4179a7
call fcn.0042eb00
mov edx, dword [esp + 0x240]
lea ecx, [esp]
call fcn.00419000
mov dword [0x4b5001], 0x200006b
mov dword [0x4b5001], 0x200006f
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [0x4b5001], 0x2000071
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 4], eax
mov dword [0x4b5001], 0x2000072
cmp dword [esp + 4], 0
je 0x417b61
mov dword [0x4b5001], 0x2000073
lea ebp, [esp + 8]
mov dword [ebp], 0x22c
mov dword [0x4b5001], 0x2000074
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32FirstW
and eax, eax
je 0x417b44
mov dword [0x4b5001], 0x2000075
mov dword [0x4b5001], 0x2000076
push edx
call fcn.0042e960
pop edx
push eax
push edx
call fcn.0042e960
pop edx
push eax
lea ebp, [esp + 0x10]
lea eax, [ebp + 0x24]
push eax
call fcn.0042da10
lea eax, [esp + 0x238]
push eax
call fcn.0042ea00
mov dword [0x4b5001], 0x2000078
push edx
call fcn.0042e960
pop edx
push eax
push edx
call fcn.0042e960
pop edx
push eax
push dword [esp + 0x23c]
call fcn.0042cd50
call fcn.0042ea90
push edx
call fcn.0042e960
pop edx
push eax
push edx
call fcn.0042e960
pop edx
push eax
push dword [esp + 0xc]
call fcn.0042cd50
call fcn.004192f0
mov edx, eax
pop ecx
push ecx
call fcn.004192f0
mov ecx, eax
call fcn.00419270
je 0x417b0d
mov dword [0x4b5001], 0x2000079
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b5001], 0x200007a
lea ebp, [esp + 8]
mov eax, dword [ebp + 8]
jmp 0x417b85
mov dword [0x4b5001], 0x200007b
mov dword [0x4b5001], 0x200007c
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call sub.KERNEL32.dll_Process32NextW
and eax, eax
je 0x417b37
xor eax, eax
jmp 0x417b3c
mov eax, 1
and eax, eax
je 0x417a4e
mov dword [0x4b5001], 0x200007d
mov dword [0x4b5001], 0x200007e
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
mov dword [0x4b5001], 0x200007f
mov dword [0x4b5001], 0x2000081
xor eax, eax
jmp 0x417b85
push dword [esp + 0x234]
call fcn.0042eb60
push dword [esp]
call fcn.0042eb60
add esp, 0x238
pop ebp
ret 4
Function at 0x419a81
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4fe5a4], 0
push ebx
push esi
mov esi, 0x4fe5ac
jne 0x419aad
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4fe5c4], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4fe5a4], 1
push dword [0x4fe5c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x419b4a
push 0x14
push 8
push dword [0x4fd974]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x419b74
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4fe5a8]
test eax, eax
je 0x419aef
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x4fe5a8], 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 0x419b79
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4fe5c4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x4fd974]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x419b74
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 0x41a424
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x4fe620]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.0042e0c2
mov esi, eax
test esi, esi
je 0x41a5b9
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x41a4ce
push ebx
call fcn.0041a867
jmp 0x41a466
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x41a45e
push dword [esi + 0x14]
call fcn.0041a906
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.0041a3af
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x41a5d3
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41a4ab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x41a4bc
push dword [esp + 0x20]
push ebx
call fcn.0041a727
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x41a56e
test byte [esp + 0x1c], 1
je 0x41a4dd
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x41a578
push esi
call fcn.0041a346
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0042e8be
pop ecx
pop ecx
mov ecx, dword [0x4fe68c]
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 0x41a5b9
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 0x41a559
push edi
push dword [esp + 0x24]
push ebx
call fcn.0041a687
jmp 0x41a566
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 0x41a5b9
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 0x41a59a
push dword [esp + 0x20]
push ebx
call fcn.0041a727
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 0x41a5b9
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 0x41afd0
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x41b025
push dword [esp + 0x10]
push 0x41af4f
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4fe644]
test esi, esi
je 0x41b07e
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x41b01d
cmp byte [esi + 0x10], 0
je 0x41b01d
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 0x41aff9
jmp 0x41b07e
mov esi, dword [0x4fe644]
test esi, esi
je 0x41b07e
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 0x41b077
cmp byte [esi + 0x11], 0
je 0x41b053
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x41b06a
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 0x4fe644
call fcn.0042e87e
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x41b032
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41b736
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x4ff680]
call fcn.0042df51
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 0x41b836
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x41b78c
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x41b784
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x41b7cc
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x41b80e
push 0x22
pop edx
cmp cx, dx
je 0x41b7be
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41b7ae
xor ecx, ecx
cmp word [eax], cx
je 0x41b80e
mov ecx, eax
add eax, 2
jmp 0x41b810
test dx, dx
je 0x41b816
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x41b7be
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x41b804
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x41b80e
cmp cx, dx
je 0x41b801
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x41b7f1
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x41b7d6
jmp 0x41b7be
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x41b818
xor edx, edx
cmp dword [ebp], ebx
jne 0x41b821
test edi, edi
jne 0x41b83e
test edx, edx
je 0x41b826
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x41b77a
test edi, edi
jne 0x41b84f
mov eax, ebx
jmp 0x41b853
test esi, esi
je 0x41b84f
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x41b853
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x41b9ca
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 0x41ba79
cmp dword [esp + 0x24], 2
je 0x41ba79
push 0x2000
push edi
push dword [0x4fd974]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41ba4c
cmp dword [esp + 0x18], 2
jne 0x41ba64
test ebx, ebx
jne 0x41ba35
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x4fd974]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x41ba64
cmp ax, 0xd
je 0x41ba4c
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 0x41ba0c
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0049c5f0
jmp 0x41baff
push eax
push 0
push dword [0x4fd974]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x41bacb
cmp dword [esp + 0x18], 1
jne 0x41bae3
test ebx, ebx
jne 0x41baba
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x4fd974]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x41bae3
cmp al, 0xd
je 0x41bacb
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 0x41ba92
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x41bafa
call fcn.0049c640
jmp 0x41baff
call fcn.0049c7f0
push esi
push 0
push dword [0x4fd974]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc

Function at 0x41bde0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4fe65c], 0
jne 0x41bdee
call fcn.0041bd80
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x4fe660]
call esi
test eax, eax
jne 0x41be11
call fcn.0041bd80
push dword [0x4fe660]
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 0x41be20
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 0x41be80
mov ebx, 0x10
test edi, edi
jns 0x41be89
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x41be52
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41bea0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4fe65c], 0
jne 0x41beae
call fcn.0041bd80
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x4fe660]
call esi
mov edx, eax
test edx, edx
jne 0x41bed5
call fcn.0041bd80
push dword [0x4fe660]
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 0x41bf08
mov ebx, 0x10
test esi, esi
jns 0x41bf11
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x41bf20
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41d35a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41d3f8
cmp dword [ebp + 0xc], edi
je 0x41d3f8
push esi
push 0x30
push 8
push dword [0x4fd974]
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 0x41d3e7
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x41d56d
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41d3df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x41d3f7
push esi
call fcn.0041d5be
jmp 0x41d3f6
push esi
call fcn.0041d411
push esi
mov edi, eax
call fcn.0041d5be
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0x10