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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a90c4
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x60b1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
test eax, eax
js 0x5640e5
push 0
push 0
push 0
push 0
push dword [ebp + 0xc]
push eax
push 1
call fcn.0042bedf
mov edi, eax
test edi, edi
js 0x5640e8
mov ecx, ebx
call fcn.00563c60
mov esi, eax
xor ecx, ecx
mov edx, 0x4c
mov dword [ebp + 8], esi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0042aa5b
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x56409a
push 0x562840
push 0x562660
push dword [ebp + 8]
mov dword [eax], esi
lea esi, [eax + 4]
push 0x4c
push esi
call fcn.00560e8a
jmp 0x56409c
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x5640e5
mov eax, dword [ebp + 0x10]
mov ecx, ebx
push esi
push 0
push 0
push 0
push 0
push 4
push 0
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0xc], 0xffffffff
call fcn.0042c0b4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x567910
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
mov ecx, dword [edx + 0x8c]
test ecx, ecx
je 0x567925
pop ebp
jmp fcn.0041e3ca
add edx, 0x90
cmp dword [edx + 0x14], 0xf
jbe 0x567933
mov edx, dword [edx]
test edx, edx
jne 0x567947
xor ecx, ecx
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.0040610c
pop ebp
ret 4
mov ecx, edx
push esi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x567950
sub ecx, esi
pop esi
push ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.0040610c
pop ebp
ret 4
Function at 0x573042
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00561270
mov eax, dword [0x60b1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.005819b4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x573084
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5731e0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00560de0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x637b08]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00586607
mov ecx, dword [esi*4 + 0x637b08]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x5731d9
cmp eax, dword [ecx + edi + 0x24]
jne 0x5731d9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5731d9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00586607
add esp, 0x14
test edx, edx
jl 0x5731d9
jg 0x57314f
test eax, eax
jb 0x5731d9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5731d9
jl 0x573169
cmp dword [ebp - 0x1008], eax
ja 0x5731d9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x573187
test ebx, ebx
je 0x5731c0
cmp ecx, edi
jae 0x5731c0
mov al, byte [ecx]
cmp al, 0xd
jne 0x5731a1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5731ad
cmp byte [ecx + 1], 0xa
jne 0x5731ad
inc ecx
jmp 0x5731ad
movzx eax, al
movsx eax, byte [eax + 0x60b3e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x573187
cmp edx, ebx
jne 0x573187
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5731de
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005616bd
leave
ret

Function at 0x57a37a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x57a3b9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x57a3b9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x57a3b9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x57a3b9
cmp dword [ecx + 0x74], 0xe
jbe 0x57a3b9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x585703
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x637b08]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x585743
cmp byte [ebx], 0xa
jne 0x585743
or byte [edi + eax + 0x28], 4
jmp 0x585748
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x585847
mov dl, byte [eax]
cmp dl, 0x1a
je 0x58582a
inc eax
cmp dl, 0xd
je 0x585774
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x58579a
cmp eax, ecx
jae 0x5857a8
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x58575c
jmp 0x585847
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x585825
cmp dword [ebp - 0x10], 0
je 0x585825
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x637b08]
test byte [eax + edi + 0x28], 0x48
je 0x5857ff
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5857ea
mov byte [esi], dl
jmp 0x5857fb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x637b08]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x585847
cmp byte [ebp - 1], 0xa
jne 0x58580e
cmp esi, ebx
jne 0x58580e
mov byte [esi], 0xa
jmp 0x585846
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00586625
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x585847
mov byte [esi], 0xd
jmp 0x585846
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x637b08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x585844
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x585847
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x585850
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x637b08]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x585896
cmp word [ebx], dx
jne 0x585896
or byte [eax + edi + 0x28], 4
jmp 0x58589b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x5859fe
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x5859de
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5858dc
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x585912
cmp eax, edx
jae 0x585920
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x5858b7
jmp 0x5859fe
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5859d9
cmp dword [ebp - 0x18], 0
je 0x5859d9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x637b08]
test byte [eax + edi + 0x28], 0x48
je 0x5859af
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x585973
mov word [esi], cx
jmp 0x5859aa
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x637b08]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x637b08]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x637b08]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5859fe
pop eax
cmp word [ebp - 4], ax
jne 0x5859bf
cmp esi, ebx
jne 0x5859bf
mov word [esi], ax
jmp 0x5859fb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00586625
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5859fe
push 0xd
pop eax
jmp 0x5859ba
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x637b08]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5859f8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5859fe
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x587abe
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5df768
push 0x5df760
push str.FlsAlloc
push 0x1f
call fcn.0058793d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x587af2
push dword [ebp + 8]
mov ecx, esi
call dword [0x5aba34]
call esi
jmp 0x587af8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x587b3c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5df778
push 0x5df770
push str.FlsGetValue
push 0x21
call fcn.0058793d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x587b73
push dword [ebp + 8]
mov ecx, esi
call dword [0x5aba34]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x587b7b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5df780
push 0x5df778
push str.FlsSetValue
push 0x22
call fcn.0058793d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x587bb5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5aba34]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x58c88d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x58c92a
push ebx
push esi
call fcn.0058c856
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0058a240
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x58c8d7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x58c929
push edi
push eax
call fcn.005876fa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x58c8f7
call fcn.00585291
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x58c928
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0058a240
add esp, 0x20
test eax, eax
jne 0x58c916
push edi
call fcn.00585291
jmp 0x58c91e
push ebx
call fcn.00585291
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x58c92d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x58c93e
pop esi
ret
push ebx
push edi
push esi
call fcn.0058c856
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005876fa
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x58c966
push ebx
push esi
push edi
call fcn.0056d0c0
add esp, 0xc
push 0
call fcn.00585291
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x58cd36
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0058c97b
Function at 0x5916db
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00591657
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x59184a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x59184a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5917ff
jg 0x591737
test eax, eax
je 0x5917f5
push 1
push 0x1000
call fcn.00588c2f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x59175a
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5917ec
push 0x8000
push ebx
call fcn.00583db5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x591783
jg 0x59177e
cmp ecx, 0x1000
jb 0x591783
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0058715f
add esp, 0x10
cmp eax, 0xffffffff
je 0x5917c8
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x59177e
jl 0x5917af
test ecx, ecx
jne 0x591770
push dword [ebp - 0xc]
push ebx
call fcn.00583db5
push esi
call fcn.00585291
add esp, 0xc
xor ebx, ebx
jmp 0x591858
cmp byte [edi + 0x24], 0
je 0x5917df
cmp dword [edi + 0x20], 5
jne 0x5917df
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5917ea
mov ebx, dword [edi + 0x18]
jmp 0x5917ec
xor ebx, ebx
push esi
call fcn.00585291
pop ecx
jmp 0x591858
test ecx, ecx
jg 0x5917c1
jl 0x5917ff
test eax, eax
jae 0x5917c1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00586625
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x59181f
cmp byte [edi + 0x1c], 0
je 0x5917c1
jmp 0x591850
push ebx
call fcn.00581f98
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5917c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x591858
cmp byte [edi + 0x1c], 0
je 0x591855
mov ebx, dword [edi + 0x18]
jmp 0x591858
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00586625
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x592400
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x59242d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x59242d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax]
sub esp, 0x50
mov dword [0x44491c], ecx
call fcn.00409dc0
push 0x4448fc
push 0x444640
call fcn.0040a170
push 0x42cc94
push 0x444430
call fcn.0040a170
push 0x42cc8c
call fcn.00418526
add esp, 0x14
test eax, eax
je 0x401111
push eax
push 0x444038
call fcn.0040a170
add esp, 8
push edi
push 0
call fcn.00422c3f
add esp, 4
test eax, eax
mov edi, 1
je 0x40113a
push edi
call fcn.00422c3f
add esp, 4
test eax, eax
je 0x40113a
mov dword [0x44487c], edi
jmp 0x401150
mov dword [0x444878], edi
mov dword [0x4448d8], edi
mov dword [0x44488c], 0
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x5c]
push eax
push 0x42c300
push 0x42cc88
mov dword [0x444868], edi
call fcn.00409320
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
push ecx
push edx
call fcn.004013f0
add esp, 0x18
test eax, eax
je 0x401195
push 0
call fcn.00409ed0
add esp, 4
push edi
call fcn.00418415
mov eax, dword [esp + 0x5c]
push eax
call fcn.004096f0
mov eax, dword [0x444878]
add esp, 4
test eax, eax
je 0x4011dd
mov eax, dword [0x444874]
test eax, eax
jne 0x4011dd
mov ecx, dword [0x42e2c4]
add ecx, 0x200
push 0x440428
push ecx
call fcn.00408fe0
add esp, 8
test eax, eax
mov dword [0x444874], eax
jne 0x4011dd
push edi
call fcn.00418415
push 0x200
mov ecx, 0x444840
call fcn.004080b0
push 0x32
push 0x444858
call fcn.00407c40
mov edx, dword [0x4448d8]
mov eax, dword [0x4448ec]
mov ecx, dword [0x4448e8]
push edx
mov edx, dword [0x444850]
push eax
mov eax, dword [0x444030]
push ecx
push edx
push eax
call fcn.004038b0
add esp, 0x1c
test eax, eax
je 0x40123b
push 0xffffffffffffffff
mov dword [0x444894], edi
mov dword [0x444868], edi
call fcn.004012f0
add esp, 4
mov eax, dword [0x444878]
test eax, eax
jne 0x40124a
mov dword [0x44488c], edi
push esi
push fcn.004012f0
push 2
call fcn.00417ed3
push 0
push 0
push 0x42cc4c
call fcn.00403e20
mov esi, dword [0x444840]
add esp, 0x14
push 0x444240
call fcn.00407520
push eax
push 0x444240
call fcn.004077f0
push eax
push 0x42cc14
push esi
call fcn.00417e81
mov ecx, dword [0x444840]
push 0
push 0
push ecx
call fcn.00403e20
lea edx, [esp + 0x24]
push 0x42cbd4
push edx
call fcn.00417e81
push 0
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00403e20
push edi
call fcn.00401c10
mov dword [0x444868], eax
mov eax, dword [0x4448d0]
add esp, 0x34
test eax, eax
pop esi
je 0x4012d9
call fcn.004028c0
push 0
call fcn.004012f0
add esp, 4
xor eax, eax
pop edi
add esp, 0x50
ret
Function at 0x4012f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x444898]
push esi
xor esi, esi
cmp eax, esi
je 0x401306
push 0x444240
call fcn.00406240
mov eax, dword [esp + 8]
cmp eax, esi
jl 0x401326
mov eax, 0x42cca0
jne 0x40131a
mov eax, 0x42cc9c
push esi
push 2
push eax
call fcn.00403e20
add esp, 0xc
cmp dword [0x44484c], esi
je 0x401354
mov eax, dword [0x444840]
push eax
mov dword [0x44484c], esi
mov dword [0x444848], esi
call fcn.00404bd0
add esp, 4
mov dword [0x444840], esi
mov dword [0x444844], esi
cmp dword [0x44463c], esi
je 0x401383
mov ecx, dword [0x444630]
push ecx
mov dword [0x44463c], esi
mov dword [0x444638], esi
call fcn.00404bd0
add esp, 4
mov dword [0x444630], esi
mov dword [0x444634], esi
mov edx, dword [0x4448ec]
push edx
call fcn.00404bd0
mov eax, dword [0x4448e4]
push eax
call fcn.00404bd0
mov ecx, dword [0x444238]
push ecx
call fcn.00404bd0
mov edx, dword [0x444850]
push edx
call fcn.00404bd0
mov eax, dword [0x444030]
push eax
call fcn.00404bd0
mov ecx, dword [0x4448e8]
push ecx
call fcn.00404bd0
mov edx, dword [0x444888]
neg edx
sbb edx, edx
and edx, 3
push edx
call fcn.00409ed0
mov eax, dword [0x444868]
add esp, 0x1c
push eax
call fcn.00418415
pop esi
nop
nop
nop
nop
nop
Function at 0x404b40
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x404b4f
mov edi, 1
push edi
call fcn.00419685
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x404ba3
push esi
call fcn.00418f46
mov esi, eax
call fcn.0040d9f0
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, eax
and esi, 8
je 0x404b86
mov edx, dword [fcn.0040eee0]
mov dword [fcn.0040eee0], edx
test al, 0x18
je 0x404b97
push edi
push 0x24
push 5
call fcn.0040d6c0
add esp, 0xc
test esi, esi
pop esi
je 0x404bbe
push 1
call fcn.00418415
test byte [esp + 0x10], 0x20
je 0x404bbe
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x405230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov al, byte [0x444900]
test al, al
jne 0x4052d1
mov byte [0x444900], 1
call fcn.00409dc0
call fcn.0040da40
mov eax, dword [0x444904]
test eax, eax
jne 0x4052a7
push 0x42e434
push 0x42c854
mov dword [0x444904], 0xcea
call sub.WSOCK32.dll_getservbyname
test eax, eax
je 0x405288
movzx eax, word [eax + 8]
push eax
call sub.WSOCK32.dll_ntohs
and eax, 0xffff
mov dword [0x444904], eax
push 0x42e424
call fcn.00418526
add esp, 4
test eax, eax
je 0x4052a7
push eax
call fcn.0041864f
add esp, 4
mov dword [0x444904], eax
mov eax, dword [0x444908]
test eax, eax
jne 0x4052d0
push 0x42e414
mov dword [0x444908], 0x42cccc
call fcn.00418526
add esp, 4
test eax, eax
je 0x4052d0
mov dword [0x444908], eax
ret
jmp fcn.0040d930
Function at 0x405c60
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call sub.WSOCK32.dll_connect
ret
Function at 0x409c20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x200
push esi
mov esi, dword [esp + 0x208]
push edi
push esi
call fcn.0040eea0
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
setne cl
push 0x42e758
mov edi, ecx
call fcn.00418714
push esi
call fcn.0040ed70
add esp, 0xc
test eax, eax
je 0x409c6a
push 0x440448
push esi
call fcn.0041905a
add esp, 8
jmp 0x409d56
push 0x200
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test edi, edi
mov eax, 0x4448f8
jne 0x409c88
mov eax, 0x42e500
push ebp
push eax
push esi
lea eax, [esp + 0x14]
push eax
push 0x42e74c
call fcn.0041878c
mov eax, dword [0x42e488]
add esp, 0x10
test eax, eax
mov ebp, 0x42e488
je 0x409d48
mov ecx, dword [0x44490c]
mov eax, dword [ebp]
cmp byte [eax], 0
je 0x409cc5
push eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x409ccf
test ecx, ecx
je 0x409d3a
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.0040a170
lea eax, [esp + 0x14]
add esp, 8
push eax
call fcn.0040edf0
mov al, byte [esp + 0x10]
add esp, 4
cmp al, 0x7e
jne 0x409d02
or ecx, 0xffffffff
lea edi, [esp + 0xc]
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x42e404]
mov word [edi - 1], cx
push 0
push 0x42e748
push 0x42e508
lea edx, [esp + 0x18]
push esi
push edx
call fcn.0040d150
add esp, 4
push eax
call fcn.0040ee70
lea eax, [esp + 0x20]
push 0x440448
push eax
call fcn.0041905a
mov ecx, dword [0x44490c]
add esp, 0x1c
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x409cb5
push 0x4448f8
call fcn.00418714
add esp, 4
pop ebp
push 0x440448
push 0x42e728
call fcn.0041905a
mov esi, dword [esp + 0x218]
mov eax, dword [esi]
add esp, 8
test eax, eax
je 0x409d9b
push 0x440448
push 0x20
call fcn.00418f58
mov ecx, dword [esi]
push 0x440448
push ecx
call fcn.0041905a
mov eax, dword [esi + 4]
add esi, 4
add esp, 0x10
test eax, eax
jne 0x409d75
push 0x42e5e8
call fcn.00418714
add esp, 4
pop edi
pop esi
add esp, 0x200
ret

Function at 0x409dc0
Capabilities:
Allocate thread local storage
Initialize winsock library

Disassembly:
mov al, byte [0x444911]
test al, al
jne 0x409e5d
mov byte [0x444911], 1
call fcn.0040d890
mov eax, dword [0x444918]
test eax, eax
jne 0x409e58
call fcn.00409f70
push 0x42e7b4
call fcn.00418526
add esp, 4
test eax, eax
mov dword [0x444918], eax
je 0x409e10
push eax
push 0x444b20
call fcn.0040cd20
add esp, 8
mov dword [0x444918], eax
push 0x42e7ac
call fcn.00418526
add esp, 4
test eax, eax
je 0x409e34
push eax
call fcn.00409e60
add esp, 4
or eax, 0x180
mov dword [0x42e880], eax
push 0x42e7a0
call fcn.00418526
add esp, 4
test eax, eax
je 0x409e58
push eax
call fcn.00409e60
add esp, 4
or eax, 0x1c0
mov dword [0x42e884], eax
jmp 0x40a080
ret
sub esp, 0x190
call fcn.0040a0e0
test al, al
je 0x40a0cf
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40a0ab
call sub.WSOCK32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x40a0bd
cmp word [esp], 2
je 0x40a0c8
call sub.WSOCK32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x40a0cf
mov byte [0x444910], 1
xor al, al
add esp, 0x190
ret