joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e450
Capabilities:
Create tcp socket
Create udp socket
Get system information on windows
Set socket configuration

Disassembly:
sub esp, 0x38
push edi
push 0x4c
call fcn.00408480
mov edi, eax
add esp, 4
test edi, edi
je 0x40e5d6
lea eax, [esp + 0x18]
push eax
mov dword [edi], 0x494f4350
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x2c]
lea eax, [edi + 0x20]
lea edx, [ecx + ecx]
push eax
mov dword [edi + 4], edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x10], eax
test eax, eax
je 0x40e5cf
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 8], eax
test eax, eax
je 0x40e5cf
call fcn.0040b530
mov dword [edi + 0xc], eax
test eax, eax
je 0x40e5cf
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
je 0x40e5cf
push 1
lea ecx, [esp + 0xb]
push ecx
push 4
push 0xffff
push eax
mov byte [esp + 0x1b], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0x44]
xor eax, eax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov word [esp + 0x16], ax
mov eax, dword [esp + 0x40]
mov edx, 2
push ecx
mov word [esp + 0xc], dx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0xc]
mov word [esp + 0xe], ax
mov eax, dword [edi + 0x14]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40e5cf
mov ecx, dword [edi + 0x14]
push bind
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x40e5cf
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [edi + 0x18], eax
test eax, eax
je 0x40e5cf
mov edx, dword [edi + 0x14]
push 8
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x40e5cf
push esi
xor esi, esi
cmp dword [edi + 4], esi
jbe 0x40e5af
mov eax, dword [edi + 0xc]
push 0
push 0
push edi
push 0x40e380
push 0
push eax
call fcn.0040b5e0
inc esi
add esp, 0x18
cmp esi, dword [edi + 4]
jb 0x40e591
mov ecx, dword [edi + 0xc]
push 0
push 0
push edi
push 0x40dd50
push 0
push ecx
call fcn.0040b5e0
add esp, 0x18
pop esi
mov eax, edi
pop edi
add esp, 0x38
ret
call fcn.0040da30
xor eax, eax
pop edi
add esp, 0x38
ret
Function at 0x40e879
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
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 0x40e8aa
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x40e8b1
cmp ebx, dword [ebp + 8]
jae 0x40e8b1
xor eax, eax
jmp 0x40ea97
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40e8c2
xor eax, eax
inc eax
jmp 0x40ea96
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40e8d4
cmp ecx, edx
jae 0x40e938
cmp dword [eax + 4], 0
je 0x40e8dd
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40e8c9
cmp dword [ebp + 8], 0
je 0x40e8f7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40e938
cmp eax, esi
jae 0x40e938
mov ecx, dword [0x414190]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x40e919
cmp dword [eax*4 + 0x414198], esi
je 0x40e93f
inc eax
cmp eax, ecx
jl 0x40e90b
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x40e9af
mov eax, dword [ebp + 8]
jmp 0x40e9b1
xor eax, eax
jmp 0x40ea96
test eax, eax
jle 0x40e8ba
xor edx, edx
mov ebx, 0x4141d8
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x40e8ba
cmp dword [eax*4 + 0x414198], esi
je 0x40e98e
lea eax, [ecx - 1]
test eax, eax
jl 0x40e97b
cmp dword [eax*4 + 0x414198], esi
je 0x40e977
dec eax
jns 0x40e96b
test eax, eax
jge 0x40e98c
cmp ecx, 0x10
jge 0x40e987
inc ecx
mov dword [0x414190], ecx
lea eax, [ecx - 1]
jmp 0x40e98e
je 0x40e9a6
xor edx, edx
test eax, eax
jl 0x40e9a6
lea ecx, [edx*4 + 0x414198]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x40e994
xor eax, eax
xchg dword [ebx], eax
jmp 0x40e8ba
xor eax, eax
test eax, eax
je 0x40ea94
cmp dword [ebp - 8], 0x1000000
jne 0x40ea94
test byte [ebp - 0xc], 0xcc
je 0x40ea26
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40ea94
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40ea94
cmp word [eax + 0x18], 0x10b
jne 0x40ea94
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40ea94
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40ea26
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40ea26
test byte [ecx + 0x27], 0x80
jne 0x40e938
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x4141d8
xchg dword [edx], ecx
test ecx, ecx
jne 0x40ea96
mov ecx, dword [0x414190]
test ecx, ecx
mov edx, ecx
jle 0x40ea55
lea eax, [ecx*4 + 0x414194]
cmp dword [eax], esi
je 0x40ea55
dec edx
sub eax, 4
test edx, edx
jg 0x40ea49
test edx, edx
jne 0x40ea86
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40ea62
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40ea7a
lea eax, [edx*4 + 0x414198]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x40ea68
cmp ecx, 0x10
jge 0x40ea86
inc ecx
mov dword [0x414190], ecx
xor eax, eax
mov ecx, 0x4141d8
xchg dword [ecx], eax
jmp 0x40e8ba
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1b540646
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x72c578c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401c60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4b39
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4e54c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push str.WA_AccountLogin
push 0x10
call fcn.00427e30
push 0
call fcn.004403b0
add esp, 0xc
test al, al
jne 0x401d44
lea eax, [esi - 0x690]
push 0x690
push 0x40238b
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
call fcn.004022c0
mov esi, eax
push 0x1c
mov dword [esp + 0x44], 0
call fcn.00490738
add esp, 0xc
mov dword [esp + 8], eax
mov byte [esp + 0x38], 1
test eax, eax
je 0x401cf9
push ecx
push esi
mov ecx, eax
call fcn.00436cb0
mov ecx, eax
jmp 0x401cfb
xor ecx, ecx
mov byte [esp + 0x38], 0
push ecx
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x401d18
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
add eax, 4
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
push 0
call fcn.004405b0
add esp, 8
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00410380
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
push 0
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
call dword [eax + 0xe0]
mov eax, dword [esi + 0xc]
push 0
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0xe0]
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x401d73
call fcn.0043f970
mov eax, dword [0x4ec260]
test al, 1
jne 0x401da6
or eax, 1
mov dword [0x4ec260], eax
mov dword [esp + 0x38], 2
call fcn.00429320
push 0x4bc490
call fcn.00490eff
add esp, 4
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x14]
mov ecx, 0x4ec268
push eax
call fcn.0042b4d0
mov dword [esp + 0x38], 3
mov ecx, dword [esi + 8]
push eax
call fcn.00403d30
cmp dword [esp + 0x28], 0x10
jb 0x401dd9
push dword [esp + 0x14]
call fcn.0048fa72
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4052f0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b4ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4e54c0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x4e54c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004024b0
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.00405210
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x40536d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.00492031
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x405396
push dword [esp + 0x10]
call fcn.0048fa72
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004906bc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d3f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40d3f8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d40b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x40d410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5a51
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x40d530
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x268]
call fcn.00403840
lea eax, [ebp - 0x268]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x238]
call fcn.00409db0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0040aba0
mov byte [ebp - 4], 2
cmp esi, eax
je 0x40d4ad
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004033d0
cmp dword [ebp - 0x23c], 8
jb 0x40d4c4
push dword [ebp - 0x250]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0x23c], 7
cmp dword [ebp - 0x224], 8
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
jb 0x40d4f8
push dword [ebp - 0x238]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0x224], 7
cmp dword [ebp - 0x254], 8
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
jb 0x40d52c
push dword [ebp - 0x268]
call fcn.0048fa72
add esp, 4
mov al, 1
jmp 0x40d532
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004906bc
mov esp, ebp
pop ebp
ret
Function at 0x40d550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5ab7
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x47c], 0
cmp dword [ecx + 0x14], 8
jb 0x40d590
mov ecx, dword [ecx]
lea eax, [ebp - 0x220]
push eax
push 0
push 0x4d15c0
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40d5b0
xor al, al
jmp 0x40d798
push 0x104
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x104
ja 0x40d668
test eax, eax
je 0x40d668
xor ecx, ecx
mov dword [ebp - 0x464], 7
mov dword [ebp - 0x468], 0
mov word [ebp - 0x478], cx
push eax
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x478]
call fcn.00403740
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x460]
call fcn.00409db0
mov byte [ebp - 4], 5
cmp esi, eax
je 0x40d639
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004033d0
cmp dword [ebp - 0x44c], 8
jb 0x40d650
push dword [ebp - 0x460]
call fcn.0048fa72
add esp, 4
cmp dword [ebp - 0x464], 8
jb 0x40d796
push dword [ebp - 0x478]
jmp 0x40d78e
xor eax, eax
mov dword [ebp - 0x44c], 7
mov dword [ebp - 0x450], 0
mov word [ebp - 0x460], ax
cmp word [ebp - 0x220], ax
jne 0x40d692
xor ecx, ecx
jmp 0x40d6af
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
jmp 0x40d6a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d6a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x460]
call fcn.00403740
xor eax, eax
mov dword [ebp - 4], 1
push 0xffffffffffffffff
push eax
mov word [ebp - 0x448], ax
lea ecx, [ebp - 0x448]
lea eax, [ebp - 0x460]
mov dword [ebp - 0x434], 7
push eax
mov dword [ebp - 0x438], 0
call fcn.004033d0
push 1
push ecx
lea eax, [ebp - 0x47c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x47c], 0
call fcn.004021e0
cmp eax, 0xffffffff
je 0x40d731
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x448]
call fcn.00403320
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 3
cmp esi, eax
je 0x40d74b
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004033d0
cmp dword [ebp - 0x434], 8
jb 0x40d762
push dword [ebp - 0x448]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0x434], 7
cmp dword [ebp - 0x44c], 8
mov dword [ebp - 0x438], 0
mov word [ebp - 0x448], ax
jb 0x40d796
push dword [ebp - 0x460]
call fcn.0048fa72
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004906bc
mov esp, ebp
pop ebp
ret
Function at 0x40d7c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x2c], 0
cmp dword [edi + 0x14], 8
jb 0x40d800
mov ebx, dword [edi]
jmp 0x40d802
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d82a
test al, 0x10
je 0x40d819
mov al, 1
jmp 0x40d8cb
test esi, esi
je 0x40d823
mov dword [esi], 0xfffffff7
xor al, al
jmp 0x40d8cb
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040a240
mov dword [ebp - 4], 2
cmp dword [edi + 0x14], 8
jb 0x40d846
mov eax, dword [edi]
jmp 0x40d848
mov eax, edi
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
push 0
call fcn.0040b860
test eax, eax
jne 0x40d86b
test esi, esi
je 0x40d8b2
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x40d8b8
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040d7c0
test al, al
jne 0x40d87d
xor bl, bl
jmp 0x40d8b8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d8b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x40d8a5
mov ecx, edi
call fcn.0040d3f0
test al, al
jne 0x40d8b6
test esi, esi
je 0x40d8b2
mov ecx, ebx
call fcn.00415910
mov dword [esi], eax
xor bl, bl
jmp 0x40d8b8
mov bl, 1
cmp dword [ebp - 0x14], 8
jb 0x40d8c9
push dword [ebp - 0x28]
call fcn.0048fa72
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004906bc
mov esp, ebp
pop ebp
ret
Function at 0x40db20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5b61
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40dc33
cmp eax, 0x104
ja 0x40dc33
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403840
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x260]
call fcn.00409db0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0040aba0
mov byte [ebp - 4], 2
cmp esi, eax
je 0x40dbcd
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004033d0
cmp dword [ebp - 0x21c], 8
jb 0x40dbe4
push dword [ebp - 0x230]
call fcn.0048fa72
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x40dc18
push dword [ebp - 0x260]
call fcn.0048fa72
add esp, 4
cmp dword [ebp - 0x234], 8
jb 0x40dc2f
push dword [ebp - 0x248]
call fcn.0048fa72
add esp, 4
mov al, 1
jmp 0x40dc35
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004906bc
mov esp, ebp
pop ebp
ret

Function at 0x40df20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov esi, edx
test edi, edi
je 0x40df4b
call fcn.00416320
cmp eax, 1
jl 0x40df4b
mov dword [ebp - 4], 0x10000
jmp 0x40df4d
xor edi, edi
push 8
call fcn.00490738
add esp, 4
mov ebx, eax
push 0
push dword [ebp - 4]
mov dword [ebx], esi
mov esi, dword [ebp + 8]
test esi, esi
push ebx
push 0x40de90
push edi
setne cl
push 0
mov byte [ebx + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40df90
push ebx
call fcn.0048fa72
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x40dfa6
mov dword [esi], eax
mov al, 1
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e200
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov dword [esp + 4], 0xffffffff
cmp eax, 0xffffffff
jne 0x40e255
push str.slot_____DWORD_0xFFFFFFFF_
lea edx, [esp + 8]
mov ecx, esi
call fcn.00409100
add esp, 4
test eax, eax
je 0x40e255
push eax
push 0x12
push str.threading_thread_local_win.cc
lea ecx, [esp + 0x14]
call fcn.00411de0
lea ecx, [esp + 8]
call fcn.00411ec0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e280
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5c95
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
mov eax, dword [0x4e54c0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
xor ebx, ebx
push edx
mov dword [esp + 0xc], ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x40e366
cmp dword [0x4eb048], 4
jg 0x40e34d
push 1
push 2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 4
call fcn.004078f0
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xb0], str.threading_thread_local_win.cc
mov dword [esp + 0xb4], 0x24
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xb8], eax
push 0x24
push str.threading_thread_local_win.cc
lea ecx, [esp + 0x14]
mov byte [esp + 0xd0], 1
call fcn.004121c0
lea eax, [esp + 0x14]
mov dword [esp + 0xc8], 2
push str.Failed_to_TlsSetValue__.
mov ebx, 1
push eax
mov dword [esp + 0x10], ebx
call fcn.00407470
add esp, 8
mov dword [esp + 0xc8], 0xffffffff
test bl, 1
je 0x40e366
lea ecx, [esp + 0xc]
call fcn.00411ec0
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411bd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
mov eax, dword [0x4e54c0]
xor eax, esp
mov dword [esp + 0x284], eax
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
push edi
lea edi, [esi + 0x10]
je 0x411d21
cmp byte [0x4eb044], 0
je 0x411d21
push 0x104
lea eax, [esp + 0x84]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x80]
push 0x5c
push eax
call fcn.00492c4f
add esp, 8
test eax, eax
je 0x411c39
xor ecx, ecx
mov word [eax + 2], cx
push str.debug_message.exe
lea eax, [esp + 0x84]
push 0x104
push eax
call fcn.00492e07
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x411c5b
mov esi, dword [esi]
mov eax, dword [edi]
lea edx, [esp + 8]
lea ecx, [esp + 0x68]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
call fcn.004142a0
cmp dword [esp + 0x78], 0
je 0x411d0e
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00491b10
add esp, 0xc
mov dword [esp + 0x20], 0x44
cmp dword [esp + 0x7c], 8
lea ecx, [esp + 0x10]
lea eax, [esp + 0x68]
cmovae eax, dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x411ced
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
jmp 0x411d0e
cmp dword [esp + 0x7c], 8
lea eax, [esp + 0x68]
push 0x40010
cmovae eax, dword [esp + 0x6c]
push str.Fatal_error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [esp + 0x7c], 8
jb 0x411d21
push dword [esp + 0x68]
call fcn.0048fa72
add esp, 4
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
xor ecx, esp
call fcn.004906bc
mov esp, ebp
pop ebp
ret