joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405902
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x40ad64]
push edi
jae 0x405ad7
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x40ad80]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x405ad7
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4059ad
test dl, 2
jne 0x4059ad
test dl, 0x48
je 0x405977
cmp byte [eax + 5], 0xa
je 0x405977
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4059c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4059a8
mov dword [0x40a8f0], ecx
jmp 0x405ade
cmp eax, 0x6d
jne 0x4059b4
xor eax, eax
jmp 0x405aeb
push eax
call fcn.00402404
pop ecx
jmp 0x405ae8
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x405ad2
test eax, eax
je 0x4059e7
cmp byte [ebx], 0xa
jne 0x4059e7
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4059f0
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x405acc
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x405abc
cmp al, 0xd
je 0x405a22
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x405aae
dec ecx
cmp dword [ebp - 8], ecx
jae 0x405a3c
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x405a37
add dword [ebp - 8], 2
jmp 0x405a90
mov dword [ebp - 8], eax
jmp 0x405aaa
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405a64
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405aaa
cmp dword [ebp - 0x10], 0
je 0x405aaa
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x405a85
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x405a90
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x405aad
cmp ebx, dword [ebp + 0xc]
jne 0x405a95
cmp byte [ebp - 1], 0xa
jne 0x405a95
mov byte [ebx], 0xa
jmp 0x405aad
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00405832
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x405aae
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x405a06
jmp 0x405acc
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x405acc
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x405aeb
and dword [0x40a8f0], 0
mov dword [0x40a8ec], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405af0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40aa70], ebx
push esi
push edi
jne 0x405b70
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405bab
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4092bc
push edi
call esi
test eax, eax
mov dword [0x40aa70], eax
je 0x405bab
push 0x4092ac
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40aa74], eax
call esi
cmp dword [0x40a8f8], 2
mov dword [0x40aa78], eax
jne 0x405b70
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40aa80], eax
je 0x405b70
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40aa7c], eax
mov eax, dword [0x40aa7c]
test eax, eax
je 0x405bb5
call eax
test eax, eax
je 0x405b9c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40aa80]
test eax, eax
je 0x405b9c
test byte [ebp - 8], 1
jne 0x405bb5
cmp dword [0x40a904], 4
jb 0x405baf
or byte [ebp + 0x12], 0x20
jmp 0x405bd4
xor eax, eax
jmp 0x405be4
or byte [ebp + 0x12], 4
jmp 0x405bd4
mov eax, dword [0x40aa74]
test eax, eax
je 0x405bd4
call eax
mov ebx, eax
test ebx, ebx
je 0x405bd4
mov eax, dword [0x40aa78]
test eax, eax
je 0x405bd4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40aa70]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40652e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40655c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x406563
cmp ebx, dword [eax + 4]
jae 0x406563
xor eax, eax
jmp 0x406753
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x406574
xor eax, eax
inc eax
jmp 0x406752
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40658a
cmp ecx, edx
jae 0x4066cf
cmp dword [eax + 4], 0
je 0x406593
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40657b
cmp dword [ebp + 8], 0
je 0x4065b5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4066cf
cmp eax, esi
jae 0x4066cf
mov eax, dword [0x40aa88]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4065da
cmp dword [esi*4 + 0x40aa90], edi
je 0x4066d3
inc esi
cmp esi, eax
jl 0x4065c8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40674f
cmp dword [ebp - 8], 0x1000000
jne 0x40674f
test byte [ebp - 0xc], 0xcc
je 0x406658
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40674f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40674f
cmp word [eax + 0x18], 0x10b
jne 0x40674f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40674f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406658
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406658
test byte [ecx + 0x27], 0x80
jne 0x4066cf
push 1
push 0x40aad0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40656c
mov ecx, dword [0x40aa88]
test ecx, ecx
mov edx, ecx
jle 0x40668c
lea eax, [ecx*4 + 0x40aa8c]
cmp dword [eax], edi
je 0x40668c
dec edx
sub eax, 4
test edx, edx
jg 0x406680
test edx, edx
jne 0x4066bd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406699
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4066b1
lea eax, [edx*4 + 0x40aa90]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40669f
cmp ecx, 0x10
jge 0x4066bd
inc ecx
mov dword [0x40aa88], ecx
push 0
push 0x40aad0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40656c
xor eax, eax
jmp 0x406752
test esi, esi
jle 0x40656c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40aad0
call ebx
test eax, eax
jne 0x40656c
cmp dword [esi*4 + 0x40aa90], edi
je 0x406729
mov eax, dword [0x40aa88]
lea esi, [eax - 1]
test esi, esi
jl 0x406717
cmp dword [esi*4 + 0x40aa90], edi
je 0x406713
dec esi
jns 0x406707
test esi, esi
jge 0x406727
cmp eax, 0x10
jge 0x406722
inc eax
mov dword [0x40aa88], eax
lea esi, [eax - 1]
jmp 0x406729
je 0x406741
xor ecx, ecx
test esi, esi
jl 0x406741
lea eax, [ecx*4 + 0x40aa90]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40672f
push 0
push 0x40aad0
call ebx
jmp 0x40656c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406d0e
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00404110
mov eax, dword [0x40a590]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x40ad64]
mov dword [ebp - 4], eax
jae 0x406e51
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x40ad80]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x406e51
push 1
push esi
push ebx
call fcn.00405832
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x406e5b
push 2
push esi
push ebx
call fcn.00405832
add esp, 0xc
cmp eax, 0xffffffff
je 0x406e5b
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x406dfb
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00401c40
push 0x8000
push ebx
call fcn.004073e0
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x406dba
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00404e3a
add esp, 0xc
cmp eax, 0xffffffff
je 0x406dd8
sub edi, eax
test edi, edi
jg 0x406daf
jmp 0x406dee
cmp dword [0x40a8f0], 5
jne 0x406deb
mov dword [0x40a8ec], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.004073e0
pop ecx
pop ecx
jmp 0x406e3b
jge 0x406e3b
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00405832
push ebx
call fcn.00404dfe
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x406e3b
mov dword [0x40a8ec], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40a8f0], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00405832
add esp, 0xc
mov eax, esi
pop edi
jmp 0x406e5e
mov dword [0x40a8ec], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00405252
leave
ret
Function at 0x40766e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404110
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407709
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40a8f8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x407709
cmp eax, 1
je 0x40772a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407709
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4076d6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x407705
xor eax, eax
inc eax
jmp 0x407749
cmp edi, eax
jae 0x40770d
xor eax, eax
jmp 0x407749
cmp eax, esi
jae 0x407714
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40a8f8]
jmp 0x40772d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4018e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4018f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401934
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401930
lea ebx, [ebx]
cmp esi, eax
jae 0x401934
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401920
cmp esi, eax
jb 0x40193a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402c80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, ecx
mov ecx, dword [esp + 4]
cmp ecx, 0x100012c
ja 0x402cf4
je 0x402cee
add ecx, 0xfefffff6
cmp ecx, 0xd7
ja case.0x402d47.16777727
movzx ecx, byte [ecx + 0x402eec]
jmp dword [ecx*4 + 0x402ebc]
add eax, 4
ret 4
add eax, 0x10
ret 4
add eax, 8
ret 4
add eax, 0x14
ret 4
add eax, 0x18
ret 4
add eax, 0x1c
ret 4
add eax, 0x20
ret 4
add eax, 0x24
ret 4
add eax, 0x28
ret 4
add eax, 0xdc
ret 4
add eax, 0x2c
ret 4
cmp ecx, 0x10001f4
ja 0x402d2e
je 0x402d28
sub ecx, 0x100012d
je 0x402d22
sub ecx, 1
je 0x402d1c
sub ecx, 1
jne case.0x402d47.16777727
add eax, 0xd8
ret 4
add eax, 0x34
ret 4
add eax, 0x30
ret 4
add eax, 0x38
ret 4
add ecx, 0xfefffe0b
cmp ecx, 0xa2
ja case.0x402d47.16777727
movzx edx, byte [ecx + 0x40308c]
jmp dword [edx*4 + 0x402fc4]
add eax, 0x3c
ret 4
add eax, 0x40
ret 4
add eax, 0x44
ret 4
add eax, 0x48
ret 4
add eax, 0x4c
ret 4
add eax, 0x50
ret 4
add eax, 0x54
ret 4
add eax, 0x58
ret 4
add eax, 0x5c
ret 4
add eax, 0x60
ret 4
add eax, 0x64
ret 4
add eax, 0x68
ret 4
add eax, 0x6c
ret 4
add eax, 0x70
ret 4
add eax, 0x74
ret 4
add eax, 0x78
ret 4
add eax, 0x7c
ret 4
add eax, 0x80
ret 4
add eax, 0x84
ret 4
add eax, 0x88
ret 4
add eax, 0x8c
ret 4
add eax, 0x90
ret 4
add eax, 0x94
ret 4
add eax, 0x98
ret 4
add eax, 0x9c
ret 4
add eax, 0xa0
ret 4
add eax, 0xa4
ret 4
add eax, 0xa8
ret 4
add eax, 0xac
ret 4
add eax, 0xb0
ret 4
add eax, 0xb4
ret 4
add eax, 0xb8
ret 4
add eax, 0xbc
ret 4
add eax, 0xc0
ret 4
add eax, 0xc4
ret 4
add eax, 0xc8
ret 4
add eax, 0xcc
ret 4
add eax, 0xd0
ret 4
add eax, 0xd4
ret 4
add eax, 0xe0
ret 4
add eax, 0xe4
ret 4
add eax, 0xe8
ret 4
add eax, 0xec
ret 4
add eax, 0xf0
ret 4
add eax, 0xf4
ret 4
add eax, 0xf8
ret 4
add eax, 0xfc
ret 4
add eax, 0x100
ret 4
add eax, 0x104
ret 4
xor eax, eax
ret 4
Function at 0x4037e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x42ecdc]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x220]
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
push esi
mov esi, dword [esp + 0x228]
push eax
push 0
push 0
push 0
mov ebp, ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [ebx], eax
mov ecx, ebp
jne 0x403834
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
call edx
jmp 0x4038cc
lea eax, [esp + 0x10]
push eax
push 0x1000066
mov dword [esp + 0x18], 0
call fcn.00403420
test byte [esp + 0x10], 1
je 0x40385b
mov ecx, dword [ebx]
mov dword [esi], ecx
jmp 0x403909
mov eax, dword [0x44a3c0]
cmp eax, 1
jne 0x403900
push edi
push 0x104
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [esp + 0x18]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403881
lea eax, [esp + 0x18]
mov ecx, 7
mov esi, 0x425c5c
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
pop edi
je 0x4038c2
push str.OpenVxDHandle
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4038e8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp]
mov eax, dword [edx + 0x10]
mov ecx, ebp
call eax
xor eax, eax
mov ecx, dword [esp + 0x21c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041192f
add esp, 0x214
ret 0xc
mov ecx, dword [ebx]
push ecx
call eax
mov edx, dword [esp + 0xc]
push esi
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [esp + 0xc]
jmp 0x403909
cmp eax, 2
jne 0x4038c2
mov eax, dword [ebx]
mov dword [esi], eax
cmp dword [esi], 0
je 0x4038c2
mov eax, 1
jmp 0x4038ce

Function at 0x403a00
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
call edx
cmp dword [esi + 0x180], 0
jne 0x403a23
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov eax, 1
pop esi
ret
mov eax, dword [esi + 0x17c]
test eax, eax
jne 0x403a3a
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
xor eax, eax
pop esi
ret
push eax
mov dword [esi + 0x34], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x403a2d
mov eax, dword [esi + 0x180]
test eax, eax
je 0x403ab0
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403a99
mov eax, dword [esi + 0x180]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
mov dword [esi + 0x180], 0
call eax
xor eax, eax
pop esi
ret
mov ecx, dword [esi + 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x180], 0
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov eax, 1
pop esi
ret
Function at 0x404950
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
call edx
or eax, 0xffffffff
cmp dword [esi + 4], eax
je 0x404968
cmp dword [esi + 0x58], eax
jne 0x404976
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
xor eax, eax
pop esi
pop ecx
ret
cmp dword [esi + 0x180], 0
je 0x404986
mov ecx, esi
call fcn.00403a00
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x404560
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x180], eax
jne 0x4049b5
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
xor eax, eax
pop esi
pop ecx
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov eax, 1
pop esi
pop ecx
ret

Function at 0x404a10
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
call edx
cmp dword [esi + 0x28], 0
je 0x404a28
mov ecx, esi
call fcn.00403c00
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x24], eax
jne 0x404a4b
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x404780
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x28], eax
jne 0x404a77
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
xor eax, eax
pop esi
pop ecx
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov eax, 1
pop esi
pop ecx
ret
Function at 0x404aa0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x423693
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x42ecdc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CTouchPad.0
mov eax, dword [esi + 0x40]
test eax, eax
mov dword [esp + 0x38], 1
je 0x404b44
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push eax
mov eax, dword [esi + 0x38]
push eax
call ebx
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x38]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push eax
push eax
push ecx
lea edx, [esp + 0x24]
push edx
call edi
test eax, eax
je 0x404b44
mov edi, edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x404b44
cmp eax, esi
je 0x404b2e
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push edx
call ebx
mov eax, dword [esi + 0x40]
push 1
push eax
push eax
mov eax, dword [esi + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
call edi
test eax, eax
jne 0x404b10
mov ecx, esi
call fcn.004043c0
push esi
call fcn.004049d0
add esp, 4
lea edx, [esi + 0x1a1f8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push fcn.004033a0
push 0x400
push 0x64
lea eax, [esi + 0x1f0]
push eax
mov byte [esp + 0x48], 0
call fcn.00412059
mov ecx, esi
mov dword [esp + 0x38], 0xffffffff
call fcn.00403eb0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x40e99d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40e9e0
call fcn.00409079
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40e9e0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e9fb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040e557
test ebx, ebx
mov esi, eax
je 0x40e9f9
test edi, edi
je 0x40e9f9
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40f2da
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40f308
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40f326
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040f244
jmp 0x40f326
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40f326
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040f244
test edi, edi
mov eax, edi
jne 0x40f310
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44c1e4]
test ecx, ecx
je 0x40f3e9
jmp 0x40f2d9
ret 8
Function at 0x41192f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ecdc]
jne 0x411939
repz ret
jmp fcn.00416bbc

Function at 0x41b8f2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00415734
xor ebx, ebx
cmp dword [0x44cfb8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41b9c7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41b932
xor eax, eax
jmp 0x41ba8b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41b92b
push eax
call fcn.004156d1
mov dword [esp], 0x427e88
push edi
mov dword [0x44cfb8], eax
call esi
push eax
call fcn.004156d1
mov dword [esp], 0x427e74
push edi
mov dword [0x44cfbc], eax
call esi
push eax
call fcn.004156d1
mov dword [0x44cfc0], eax
lea eax, [ebp - 8]
push eax
call fcn.004127aa
test eax, eax
pop ecx
pop ecx
je 0x41b995
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417051
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41b9c7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004156d1
cmp eax, ebx
pop ecx
mov dword [0x44cfc8], eax
je 0x41b9c7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004156d1
pop ecx
mov dword [0x44cfc4], eax
mov eax, dword [0x44cfc4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41ba40
cmp dword [0x44cfc8], esi
je 0x41ba40
push eax
call fcn.0041573d
pop ecx
call eax
cmp eax, ebx
je 0x41ba0d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44cfc8]
call fcn.0041573d
pop ecx
call eax
test eax, eax
je 0x41ba0d
test byte [ebp - 0x18], 1
jne 0x41ba40
lea eax, [ebp - 0xc]
push eax
call fcn.004127e1
test eax, eax
pop ecx
je 0x41ba28
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417051
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41ba37
or dword [ebp + 0x10], 0x200000
jmp 0x41ba71
or dword [ebp + 0x10], 0x40000
jmp 0x41ba71
mov eax, dword [0x44cfbc]
cmp eax, esi
je 0x41ba71
push eax
call fcn.0041573d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41ba71
mov eax, dword [0x44cfc0]
cmp eax, esi
je 0x41ba71
push dword [ebp - 4]
push eax
call fcn.0041573d
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 [0x44cfb8]
call fcn.0041573d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret