joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e040
Capabilities:
Check for time delay via gettickcount
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0xfa0
jae 0x40e091
jmp 0x40e060
push str.www.baidu.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40e097
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
sub eax, ebx
cmp eax, 0xfa0
jb 0x40e060
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop edi
pop esi
pop ebx
ret

Function at 0x40e0b0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0x288
mov esi, eax
mov dword [ebp - 8], 0x288
call fcn.00483e64
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x40e1c0
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 8]
push eax
push ebx
call edi
cmp eax, 0x6f
jne 0x40e110
push ebx
call fcn.00483dea
mov ecx, dword [ebp - 8]
add esp, 4
push ecx
call fcn.00483e64
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
test eax, eax
je 0x40e1c0
lea edx, [ebp - 8]
push edx
push ebx
call edi
test eax, eax
jne 0x40e1c0
mov edi, ebx
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x40e1c0
jmp 0x40e133
mov edi, dword [ebp - 0xc]
mov eax, dword [edi + 0x194]
mov ecx, dword [edi + 0x198]
lea edx, [edi + 0x1b0]
push edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
je 0x40e1b3
mov ebx, dword [esi + 4]
mov ecx, dword [ebx + 4]
cmp byte [ecx + 0x21], 0
jne 0x40e176
cmp dword [ecx + 0x10], eax
jae 0x40e16c
mov ecx, dword [ecx + 8]
jmp 0x40e170
mov ebx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0x21], 0
je 0x40e162
cmp ebx, dword [esi + 4]
je 0x40e180
cmp eax, dword [ebx + 0x10]
jae 0x40e1a4
mov dword [ebp - 0x28], eax
xor eax, eax
lea edi, [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.0040eb90
push ebx
lea edi, [ebp - 0x10]
mov ecx, esi
call fcn.0040e720
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], ecx
mov ebx, dword [ebp - 4]
mov edi, dword [edi]
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40e130
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
je 0x40e1d5
push ebx
call fcn.00483dea
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ec40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
je 0x40ec63
push edi
movzx edi, byte [edx]
mov eax, dword [esi]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50ba90]
inc edx
dec ecx
mov dword [esi], eax
jne 0x40ec45
pop edi
ret
Function at 0x40f2f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed5d2
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x51e584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x9c
lea eax, [ebp - 0xac]
push 0
push eax
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb0], 0
call fcn.00485940
add esp, 0xc
lea ecx, [ebp - 0xac]
push ecx
mov dword [ebp - 0xac], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x9c]
dec eax
mov dword [ebp - 0xb0], 1
je 0x40f523
dec eax
je 0x40f3ae
push 0x2b8
push str.e:workcode_tpsp_tpsp
push 0x50d22c
call fcn.00482fc7
add esp, 0xc
push 7
push str.UNKNOWN
jmp 0x40f52a
mov eax, dword [ebp - 0xa8]
sub eax, 5
je 0x40f452
dec eax
je 0x40f3e3
push 0x2ab
push str.e:workcode_tpsp_tpsp
push 0x50d22c
call fcn.00482fc7
add esp, 0xc
push 7
push str.UNKNOWN
jmp 0x40f52a
mov eax, dword [ebp - 0xa4]
sub eax, 0
je 0x40f435
dec eax
je 0x40f418
dec eax
je 0x40f3fb
push 0x2a1
jmp 0x40f470
cmp byte [ebp - 0x12], 1
mov eax, str.Windows_8
je 0x40f40b
mov eax, str.Windows_Server_2012
push eax
mov ecx, esi
call fcn.0040c7c0
jmp 0x40f531
cmp byte [ebp - 0x12], 1
mov eax, str.Windows_7
je 0x40f428
mov eax, str.Windows_Server_2008_R2
push eax
mov ecx, esi
call fcn.0040c7c0
jmp 0x40f531
cmp byte [ebp - 0x12], 1
mov eax, str.Windows_Vista
je 0x40f445
mov eax, str.Windows_Server_2008
push eax
mov ecx, esi
call fcn.0040c7c0
jmp 0x40f531
mov eax, dword [ebp - 0xa4]
sub eax, 0
je 0x40f515
dec eax
je 0x40f507
dec eax
je 0x40f493
push 0x286
push str.e:workcode_tpsp_tpsp
push 0x50d22c
call fcn.00482fc7
add esp, 0xc
push str.UNKNOWN
mov ecx, esi
call fcn.0040c7c0
jmp 0x40f531
lea edx, [ebp - 0xd8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp byte [ebp - 0x12], 1
jne 0x40f4be
cmp word [ebp - 0xd8], 9
jne 0x40f4be
push str.Windows_XP_Professional_x64_Edition
mov ecx, esi
call fcn.0040c7c0
jmp 0x40f531
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call edi
test eax, eax
jne 0x40f4da
push str.Windows_Server_2003
mov ecx, esi
call fcn.0040c7c0
jmp 0x40f531
push 0x59
call edi
test eax, eax
je 0x40f4f0
push str.Windows_Server_2003_R2
mov ecx, esi
call fcn.0040c7c0
jmp 0x40f531
test dword [ebp - 0x14], 0x8000
je 0x40f531
push str.Windows_Home_Server
mov ecx, esi
call fcn.0040c7c0
jmp 0x40f531
push str.Windows_XP
mov ecx, esi
call fcn.0040c7c0
jmp 0x40f531
push str.Windows_2000
mov ecx, esi
call fcn.0040c7c0
jmp 0x40f531
push 5
push str.Win9x
mov ecx, esi
call fcn.00402a60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004815a9
mov esp, ebp
pop ebp
ret
Function at 0x40fc00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0x51e584]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push esi
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fc4b
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.004815a9
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40fcb5
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea esp, [esp]
lea ecx, [esp + 0x34]
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40fc96
test dl, dl
je 0x40fc92
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40fc96
add eax, 2
add ecx, 2
test dl, dl
jne 0x40fc76
xor eax, eax
jmp 0x40fc9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40fcad
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
jne 0x40fc70
jmp 0x40fcb5
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0xc]
pop esi
pop ebx
xor ecx, esp
call fcn.004815a9
mov esp, ebp
pop ebp
ret
Function at 0x4101a0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x410234
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4101b7
sub eax, edx
je 0x410234
push 0x44
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00485940
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push esi
xor ecx, ecx
push ebx
mov dword [ebp - 0x70], 0x44
mov word [ebp - 0x40], cx
mov dword [ebp - 0x44], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41023c
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x41022a
push eax
call esi
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x410234
push eax
call esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410250
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x51e584]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push str.Advapi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x410297
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004815a9
mov esp, ebp
pop ebp
ret
push str.RegDeleteKeyExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4102c8
movzx ecx, byte [ebp + 0x10]
neg ecx
sbb ecx, ecx
push 0
and ecx, 0xffffff00
add ecx, 0x200
push ecx
push esi
push ebx
call eax
jmp 0x4102d0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4102ee
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004815a9
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp + 0x10]
neg eax
sbb eax, eax
lea edx, [esp + 0x14]
push edx
and eax, 0x100
add eax, 0x20019
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41031e
xor ecx, ecx
cmp eax, 2
jmp 0x410425
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax - 1], 0x5c
lea edi, [esi + eax]
je 0x410336
mov byte [edi], 0x5c
inc edi
mov byte [edi], 0
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4103e5
lea eax, [esp + 0x28]
sub eax, edi
mov dword [esp + 0x18], eax
mov edx, 0x208
mov eax, edi
lea esp, [esp]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x41039d
mov ecx, dword [esp + 0x18]
mov cl, byte [ecx + eax]
test cl, cl
je 0x41039d
mov byte [eax], cl
inc eax
dec edx
jne 0x410380
jmp 0x4103a1
test edx, edx
jne 0x4103a2
dec eax
mov edx, dword [ebp + 0x10]
push edx
push esi
push ebx
mov byte [eax], 0
call fcn.00410250
add esp, 0xc
test eax, eax
je 0x4103e5
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0
push eax
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x410372
mov byte [edi - 1], 0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x410419
movzx edx, byte [ebp + 0x10]
neg edx
sbb edx, edx
push 0
and edx, 0xffffff00
add edx, 0x200
push edx
push esi
push ebx
call eax
jmp 0x410421
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ecx, ecx
test eax, eax
sete cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004815a9
mov esp, ebp
pop ebp
ret
Function at 0x412640
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9e88
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51e584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebx + 8]
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 4]
mov dword [esi], vtable.tpsp::TASKITEM.0
call fcn.004bdb50
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413030
Capabilities:
Extract resource via kernel32 functions
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x51e584]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [esp + 0x10], eax
jb 0x413060
mov eax, dword [eax]
push 0x50daa0
push eax
call fcn.004836e8
add esp, 8
test eax, eax
je 0x413097
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004815a9
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x526128]
movzx eax, si
push edi
push eax
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4131eb
mov edx, dword [0x526128]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x4131eb
mov eax, dword [0x526128]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4131e0
mov ecx, dword [esp + 0x10]
push 0x50d53c
call fcn.004041e0
push eax
call fcn.004836e8
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4131e0
push edi
mov dword [esp + 0x18], 1
call fcn.00482427
add esp, 4
push edi
mov esi, eax
push ebx
push esi
mov dword [esp + 0x24], esi
call fcn.004859c0
add esp, 0xc
push edi
mov ecx, esi
call fcn.00410e70
xor eax, eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
push esi
mov eax, edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 0
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call fcn.00421f10
add esp, 4
lea esi, [esp + 0x20]
lea ebx, [esp + 0x78]
call fcn.00421fd0
call fcn.00423480
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
push ecx
push edi
push 1
push ebx
call fcn.004838ae
push ebx
mov esi, eax
call fcn.0048280a
add esp, 0x14
cmp esi, edi
je 0x4131d3
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x10]
push edx
call fcn.00483bd9
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004815a9
mov esp, ebp
pop ebp
ret
Function at 0x417c60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f00fb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51e584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 3
push 0x68
call fcn.004819b0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x417cb4
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call fcn.004310f0
jmp 0x417cb6
xor eax, eax
test eax, eax
setne cl
mov dword [ebp - 4], 0xffffffff
test cl, cl
jne 0x417ce5
push 0x64
call edi
mov edx, esi
dec esi
test edx, edx
jne 0x417c90
lea eax, [edx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
call fcn.004435d0
push 0
push 0
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call fcn.0048446e
mov esi, eax
mov eax, dword [ebp + 0xc]
add esp, 0x18
test eax, eax
jne 0x417d3e
test esi, esi
je 0x417d27
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x417d73
lea ecx, [ebp - 0x10]
push ecx
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x5b4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4185e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f00fb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51e584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x30
call fcn.004819b0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41862b
mov ecx, dword [ebp + 8]
push ecx
push eax
call fcn.00437510
mov edi, eax
jmp 0x41862d
xor edi, edi
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.004435d0
push 0
push 0
push eax
push 0x416920
push 0
push 0
call fcn.0048446e
mov edi, dword [edi + 0x20]
add esp, 0x18
mov esi, eax
test edi, edi
jne 0x418692
test esi, esi
je 0x418679
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4186c9
lea edx, [ebp + 8]
push edx
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x5b4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4186f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f00fb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x51e584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x30
call fcn.004819b0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41873b
mov ecx, dword [ebp + 8]
push ecx
push eax
call fcn.00438540
mov esi, eax
jmp 0x41873d
xor esi, esi
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004435d0
push 0
push 0
push eax
push 0x4174b0
push 0
push 0
call fcn.0048446e
mov edi, eax
mov eax, dword [esi + 0x18]
add esp, 0x18
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x18], 0
jne 0x4187ac
test edi, edi
je 0x418793
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
test eax, eax
jne 0x4187db
lea edx, [ebp + 8]
push edx
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x5b4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x418800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f044e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x51e584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x28
call fcn.004819b0
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x418885
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
mov dword [esi], vtable.tpsp::OPDELETE.0
call fcn.004bdb50
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, 0x51f6e0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [0x5262a4]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0x3e8
mov dword [esi + 0x18], eax
mov byte [esi + 0x1c], bl
mov ecx, esi
mov dword [esi + 0x24], ebx
call fcn.0043b8d0
jmp 0x418887
xor esi, esi
push ebx
push ebx
push esi
push 0x417760
push ebx
push ebx
call fcn.0048446e
add esp, 0x18
cmp eax, ebx
je 0x4188b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41aee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ee7a5
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x51e584]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push edi
mov eax, dword [0x51e584]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xa0], ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], vtable.tpsp::TASKINDEX.0
call fcn.004bdb50
mov ecx, dword [0x526210]
mov edx, dword [0x526214]
mov eax, 0x51f6e0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x30], 0xe10
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0xa0], 1
xor edi, edi
cmp dword [esi + 0xc], ebx
jle 0x41b040
cmp edi, dword [esi + 0xc]
jl 0x41afe9
push 0x338
push str.E:WorkCodeTPSPTpsp
push 3
lea ecx, [esp + 0x74]
mov byte [esp + 0x1f], bl
call fcn.0049a7e0
mov byte [esp + 0xa0], 2
or dword [esp + 0x14], 1
push str.CHECK_failed:__index_____size___:
mov ecx, eax
call fcn.0049aad0
push eax
lea ecx, [esp + 0x17]
call fcn.0049ad20
mov dword [esp + 0xa0], 1
test byte [esp + 0x14], 1
je 0x41b009
and dword [esp + 0x14], 0xfffffffe
lea ecx, [esp + 0x68]
call fcn.0049a810
mov eax, dword [esi + 8]
mov eax, dword [eax + edi*4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp eax, ecx
je 0x41b031
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.0042d6e0
mov ecx, dword [esp + 0x2c]
cmp dword [ebp + 8], ecx
je 0x41b07b
inc edi
cmp edi, dword [esi + 0xc]
jl 0x41afe9
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0042beb0
xor eax, eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004815a9
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0xa0], 0xffffffff
call fcn.0042beb0
mov eax, 1
jmp 0x41b056