joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4366a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47dd08
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4366d9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4367ec
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4366ed
mov eax, 0xffffffc7
jmp 0x4367ee
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4366fe
cmp dword [esi + 8], eax
jne 0x4366ed
cmp dword [esi + 8], eax
jne 0x436717
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x436717
mov eax, 0xffffffc7
jmp 0x4367ee
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43672b
push eax
mov ecx, ebx
call fcn.00435ed0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00408b20
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43675c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00408b40
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00435640
test eax, eax
mov dword [esp + 0x38], eax
je 0x43678f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x660a28
call fcn.00408d20
mov eax, dword [esp + 0x38]
jmp 0x4367ee
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00436500
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4367d3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00436520
mov esi, eax
test esi, esi
jne 0x436803
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00436500
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4367a5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x660a28
call fcn.00408d20
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x660a28
call fcn.00408d20
mov eax, esi
jmp 0x4367ee

Function at 0x439920
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x439980
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x439980
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x439980
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x439980
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4399c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43f910
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47e338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004750d6
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043f2b0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00475004
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004717e5
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004717e5
push 1
push 0
push 0
mov ecx, esi
call fcn.0047178d
push 1
push 0
push 1
mov ecx, esi
call fcn.0047178d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00475148
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43fa90
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47e358
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004750d6
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043f2b0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00475004
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43fb54
cmp dword [esp + 0x40], 1
jne 0x43fb52
cmp ecx, eax
jge 0x43fb54
mov eax, ecx
cmp eax, 0xc8
jge 0x43fb60
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043f910
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00475148
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4402d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47e3c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046fc06
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047537e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004768d6
test eax, eax
je 0x4403ec
mov ecx, dword [esp + 0x3c]
call fcn.004753ab
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4403b0
push edi
mov ecx, esi
call fcn.00472960
mov ecx, esi
call fcn.00440550
cmp dword [esp + 0x38], 1
jne 0x4403e5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00472aca
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x442e10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442e43
push esi
call fcn.00445f20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x442e3c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x442ec9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442eb2
mov eax, dword [esi + 8]
test eax, eax
je 0x442e67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x442eae
cmp eax, 2
je 0x442eb2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x442e5a
cmp eax, 3
je 0x442e8d
cmp eax, 1
jne 0x442e5a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x442e5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x442e5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442ef0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442ed8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442ef0
add esp, 4
pop esi
ret

Function at 0x44fb30
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44fb96
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44fb96
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44fb77
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x44ff20
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x44ff58
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x450c30
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x450c79
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4510f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47eb60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00450ca0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00450d20
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00450d20
lea ecx, [esi + 0xc]
call fcn.0046e596
lea ecx, [esi + 0x10]
call fcn.0046e596
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004522b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004522b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004522b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046e60b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046e60b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4709fb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x470a33
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046eab2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046ea8a
jmp 0x470a3f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4720e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47212b
call fcn.0047809d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47212b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x472122
xor eax, eax
jmp 0x472133
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00472139
pop edi
pop esi
pop ebx
ret 4

Function at 0x4785cd
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 0x4785fb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x478619
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00478533
jmp 0x478619
mov eax, dword [esi + 0x14]
test eax, eax
je 0x478619
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00478533
test edi, edi
mov eax, edi
jne 0x478603
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x411050
Capabilities:
Query environment variable

Disassembly:
jmp 0x413d12
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
cmp esi, ecx
jne 0x413d27
xor eax, eax
pop esi
ret
cmp word [esi], cx
je 0x413d3a
inc eax
inc eax
cmp word [eax], cx
jne 0x413d2c
inc eax
inc eax
cmp word [eax], cx
jne 0x413d2c
sub eax, esi
inc eax
push ebx
inc eax
mov ebx, eax
push edi
push ebx
call fcn.004110b9
mov edi, eax
pop ecx
test edi, edi
jne 0x413d5c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
push ebx
push esi
push edi
call fcn.00411505
add esp, 0xc
jmp 0x413d4f

Function at 0x4110c3
Capabilities:
Terminate process

Disassembly:
jmp 0x415285
jmp fcn.0041aa1f
cmp ecx, dword [0x42e170]
jne 0x41528f
repz ret
jmp 0x411311

Function at 0x41127b
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
jmp 0x4126d5
push 0x14
push 0x42cac0
call fcn.0041169f
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x412582
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x412582
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x412582
cmp dword [eax + 0x400074], 0xe
jbe 0x412582
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x412586
and dword [ebp - 0x1c], 0
push 1
call fcn.004110af
pop ecx
test eax, eax
jne 0x41259a
push 0x1c
call fcn.004124a5
pop ecx
call fcn.0041150a
test eax, eax
jne 0x4125ab
push 0x10
call fcn.004124a5
pop ecx
call fcn.00411695
and dword [ebp - 4], 0
call fcn.00411636
test eax, eax
jge 0x4125c5
push 0x1b
call fcn.004117d0
pop ecx
call fcn.0041101e
mov dword [0x42ffe4], eax
call fcn.00411050
mov dword [0x42f048], eax
call fcn.004115f0
test eax, eax
jge 0x4125ea
push 8
call fcn.004117d0
pop ecx
call fcn.00411663
test eax, eax
jge 0x4125fb
push 9
call fcn.004117d0
pop ecx
push 1
call fcn.004118a7
pop ecx
test eax, eax
je 0x41260e
push eax
call fcn.004117d0
pop ecx
mov eax, dword [0x42f07c]
mov dword [0x42f080], eax
push eax
push dword [0x42f070]
push dword [0x42f068]
call fcn.0041108c
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x41263c
push eax
call fcn.004118b6
call fcn.00411221
jmp 0x412671
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004115eb
ret
call fcn.004111fe
jmp 0x412530
Function at 0x41150a
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
jmp 0x41473b
mov edi, edi
push esi
push edi
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x414756
push esi
call fcn.0041114f
pop ecx
mov edi, eax
test edi, edi
je 0x4148be
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x42f6d4], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x42f6d8], eax
call esi
push str.FlsFree
push edi
mov dword [0x42f6dc], eax
call esi
cmp dword [0x42f6d4], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x42f6e0], eax
je 0x4147bf
cmp dword [0x42f6d8], 0
je 0x4147bf
cmp dword [0x42f6dc], 0
je 0x4147bf
test eax, eax
jne 0x4147e3
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x42f6d8], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x42f6d4], 0x41154b
mov dword [0x42f6dc], esi
mov dword [0x42f6e0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x42e160], eax
cmp eax, 0xffffffff
je 0x4148c3
push dword [0x42f6d8]
push eax
call esi
test eax, eax
je 0x4148c3
call fcn.004113b1
push dword [0x42f6d4]
call fcn.004113a2
push dword [0x42f6d8]
mov dword [0x42f6d4], eax
call fcn.004113a2
push dword [0x42f6dc]
mov dword [0x42f6d8], eax
call fcn.004113a2
push dword [0x42f6e0]
mov dword [0x42f6dc], eax
call fcn.004113a2
add esp, 0x10
mov dword [0x42f6e0], eax
call fcn.00411758
test eax, eax
je 0x4148be
push fcn.0041159b
push dword [0x42f6d4]
call fcn.004116f9
pop ecx
call eax
mov dword [0x42e15c], eax
cmp eax, 0xffffffff
je 0x4148be
push 0x214
push 1
call fcn.0041103c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4148be
push esi
push dword [0x42e15c]
push dword [0x42f6dc]
call fcn.004116f9
pop ecx
call eax
test eax, eax
je 0x4148be
push 0
push esi
call fcn.00411811
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x4148c5
call fcn.004114ec
xor eax, eax
pop edi
pop esi
ret
Function at 0x405c50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [0x4f4500]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x10], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebx
push edi
mov byte [esp + 0xf], 1
mov dword [esp + 0x10], 1
cmp eax, 1
jbe 0x405e21
mov dword [esp + 0x14], 0x1c
cmp dword [esp + 0x10], eax
jb 0x405cb5
call fcn.00443510
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x14]
push 0xffffffffffffffff
xor ebx, ebx
xor ecx, ecx
push ebx
mov word [esp + 0x44], cx
mov edi, 7
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
call fcn.00407d30
lea edx, [esp + 0x38]
push edx
push 3
mov eax, edx
call fcn.00411c60
mov edx, dword [esp + 0x54]
add esp, 8
push 2
push 0x4ee0d0
xor ecx, ecx
push edx
xor eax, eax
mov word [esp + 0x64], cx
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], ax
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
call fcn.00408d50
test eax, eax
setne al
and byte [esp + 0xf], al
je 0x405e3a
lea edi, [esp + 0x54]
lea eax, [esp + 0x70]
lea ebx, [esp + 0x38]
call fcn.00405af0
test al, al
je 0x405e35
mov ecx, edi
push ecx
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00411690
mov ecx, dword [esp + 0x24]
add esp, 8
push eax
call fcn.00406e30
cmp dword [esp + 0x34], 0x10
jb 0x405d88
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00443256
add esp, 4
mov edi, 7
xor ebx, ebx
cmp dword [esp + 0x6c], 8
jb 0x405da3
mov eax, dword [esp + 0x58]
push eax
call fcn.00443256
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x88], 8
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], cx
jb 0x405dc9
mov edx, dword [esp + 0x74]
push edx
call fcn.00443256
add esp, 4
xor eax, eax
cmp dword [esp + 0x50], 8
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], ax
jb 0x405df2
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00443256
add esp, 4
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x10]
add dword [esp + 0x14], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [esp + 0x10], edi
cmp edi, eax
jb 0x405caa
mov ecx, dword [esp + 0x8c]
pop edi
pop ebx
xor ecx, esp
call fcn.004436fd
mov esp, ebp
pop ebp
ret
xor ebx, ebx
lea edi, [ebx + 7]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
call fcn.00407770
jmp 0x405d8f
Function at 0x406450
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x4fa6cc], 0
jne 0x4064fc
push esi
push edi
push 0x3c
call fcn.0044353b
mov edi, eax
add esp, 4
test edi, edi
je 0x406493
mov esi, edi
call fcn.00407480
lea esi, [edi + 0x18]
call fcn.00408680
mov dword [edi + 0x38], 1
mov dword [0x4fa6cc], edi
jmp 0x40649d
mov dword [0x4fa6cc], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x18], cx
mov ecx, eax
mov dword [ebp - 4], 7
mov dword [ebp - 8], 0
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4064c0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408ab0
mov edi, dword [0x4fa6cc]
lea edx, [ebp - 0x1c]
push edx
call fcn.004071d0
cmp dword [ebp - 4], 8
pop edi
pop esi
jb 0x4064fc
mov eax, dword [ebp - 0x18]
push eax
call fcn.00443256
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4071d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f4500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea edx, [ebp - 0x20]
xor esi, esi
mov dword [ebp - 0x24], esi
push edx
xor ecx, ecx
push 3
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], esi
mov word [ebp - 0x1c], cx
call fcn.00411c60
add esp, 8
cmp dword [ebp - 0xc], esi
je 0x40723a
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], esi
jae 0x40721b
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [ebp - 0x24]
mov esi, eax
push esi
push edx
push edi
call fcn.00406580
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 8
jb 0x40724c
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00443256
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004436fd
mov esp, ebp
pop ebp
ret 4