joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403740
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426fb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4330e4]
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, ecx
cmp dword [esi + 0x60], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], vtable.asio::detail::win_iocp_io_context.0
je 0x4037f9
call fcn.00403d80
mov edi, dword [esi + 0x60]
push 0xffffffffffffffff
push 0
mov eax, dword [edi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [edi + 8]
call ebx
xor eax, eax
mov ecx, 0x435274
lock xadd dword [ecx], eax
mov ecx, dword [edi + 4]
push 0
push ecx
test eax, eax
je 0x4037c5
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4037db
push method.asio::execution_context::service.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0x60]
test edi, edi
je 0x4037f2
push dword [edi + 4]
call ebx
push 0xc
push edi
call fcn.0040e4b2
add esp, 8
mov dword [esi + 0x60], 0
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x40384c
mov edx, ecx
nop dword [eax]
mov eax, dword [edx + 0x14]
mov dword [esi + 0x54], eax
test eax, eax
jne 0x40381d
mov dword [esi + 0x58], eax
push 0
lea eax, [ebp - 0x18]
mov dword [edx + 0x14], 0
push eax
mov eax, dword [ecx + 0x18]
push ecx
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x4339b8
call eax
mov ecx, dword [esi + 0x54]
add esp, 0x10
mov edx, ecx
test ecx, ecx
jne 0x403810
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x403860
push eax
call ebx
mov edi, dword [esi + 0x2c]
test edi, edi
je 0x403877
push dword [edi + 4]
call ebx
push 0xc
push edi
call fcn.0040e4b2
add esp, 8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x403881
push eax
call ebx
mov dword [esi], vtable.asio::execution_context::service.0
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.0040e039
mov esp, ebp
pop ebp
ret
Function at 0x403bf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427035
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4330e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [esi + 0x18]
xor edx, edx
lock xadd dword [eax], edx
test edx, edx
jne 0x403c46
call fcn.00403d80
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 4], 0x4339b8
jmp 0x403d25
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push eax
call fcn.0040d7d0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
add esp, 4
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x54], xmm0
movups xmmword [ebp - 0x44], xmm0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x43529c]
neg ecx
movq qword [ebp - 0x20], xmm0
lea eax, [esi + 0x14]
mov dword [ebp - 0x18], 0
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x43529c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
push ecx
mov ecx, esi
xor edi, edi
call fcn.00403f00
test eax, eax
je 0x403cec
nop
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov edi, eax
lea eax, [ebp - 0x54]
push eax
push ecx
mov ecx, esi
call fcn.00403f00
test eax, eax
jne 0x403cd0
push dword [ebp - 0x18]
push dword [0x43529c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
nop dword [eax]
mov eax, dword [ebp + esi*4 - 0x54]
test eax, eax
je 0x403d11
push eax
call fcn.0040e4ad
add esp, 4
inc esi
cmp esi, 0xa
jl 0x403d00
lea eax, [ebp - 0x28]
push eax
call fcn.0040d8bb
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040e039
mov esp, ebp
pop ebp
ret 4
Function at 0x404700
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4330e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x14], edx
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0xffffffff
je 0x40487c
mov al, byte [edx]
test al, 8
je 0x404761
or al, 8
mov dword [ebp - 0xc], 0x4339b8
push 4
mov byte [edx], al
xor ecx, ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
push eax
push 0x80
push 0xffff
push ebx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x10]
setne dl
call fcn.00404690
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.00404690
test esi, esi
je 0x404869
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx]
mov ecx, dword [0x43526c]
mov dword [ebp - 8], edx
cmp ecx, dword [edx + 4]
jle 0x4047d3
push 0x43526c
call fcn.0040e156
mov ecx, dword [0x43526c]
add esp, 4
cmp ecx, 0xffffffff
jne 0x4047d0
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
mov ecx, dword [0x43526c]
add esp, 4
mov edx, dword [ebp - 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x4339b4]
jne 0x4047e9
cmp dword [edi], 0x2733
je 0x404837
cmp ecx, dword [edx + 4]
jle 0x404821
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x404821
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, dword [0x4339b4]
jne 0x404869
cmp dword [edi], 0x4d5
jne 0x404869
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 0x14]
push ebx
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
mov ecx, edi
test esi, esi
setne dl
call fcn.00404690
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e039
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e039
mov esp, ebp
pop ebp
ret
Function at 0x4050b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42713d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4330e4]
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 eax, ecx
mov dword [ebp - 0x20], eax
xorps xmm0, xmm0
xor bl, bl
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov edi, dword [ebp + 8]
lea esi, [eax + 0x4c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 4
nop dword [eax]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x405141
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [esi]
mov ecx, dword [esi - 0x10]
lea edx, [eax + edx*8]
mov eax, dword [edx]
cmp eax, ecx
je 0x405144
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
cmp eax, edx
je 0x405141
cmp dword [eax + 8], edi
je 0x40515e
mov ecx, dword [eax]
mov eax, ecx
cmp ecx, edx
jne 0x405134
mov ecx, dword [esi - 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
push ecx
lea ecx, [esi - 0x14]
call fcn.00409d30
test al, al
jne 0x405162
test bl, bl
jne 0x405162
jmp 0x405164
mov ecx, eax
jmp 0x405144
mov bl, 1
add esi, 0x1c
sub dword [ebp - 0x24], 1
jne 0x405110
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [esi + 0x14]
call fcn.00402140
test bl, bl
je 0x405250
push 0
push 0
lea eax, [ebp - 0x11]
mov byte [ebp - 0x11], 0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
push dword [esi + 0x34]
mov dword [ebp - 0x20], 0
call dword [sym.imp.WS2_32.dll_WSASend]
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x43526c]
cmp eax, dword [esi + 4]
jle 0x4051fa
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x4051fa
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], 0x4339b0
cmp eax, 0x40
je 0x405213
cmp eax, 0x4d2
jne 0x405250
mov eax, dword [0x43526c]
cmp eax, dword [esi + 4]
jle 0x405250
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x405250
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x1c]
mov ecx, edi
test ecx, ecx
je 0x405295
mov esi, ecx
mov eax, dword [edi + 0x14]
mov edi, eax
mov dword [esi + 0x14], 0
mov esi, eax
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ecx + 0x18]
push ecx
push 0
mov dword [ebp - 0x18], 0x4339b8
call eax
add esp, 0x10
mov ecx, esi
test esi, esi
jne 0x405262
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.0040e039
mov esp, ebp
pop ebp
ret 8
Function at 0x40a400
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4330e4]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp + 8], 0x4339b8
cmp eax, 0xffffffff
jne 0x40a487
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x43526c]
cmp eax, dword [ecx + 4]
jle 0x40a474
push 0x43526c
call fcn.0040e156
add esp, 4
cmp dword [0x43526c], 0xffffffff
jne 0x40a474
push 0x427cf0
call fcn.0040e498
add esp, 4
push 0x43526c
call fcn.0040e10c
add esp, 4
mov eax, 0x2719
mov dword [esp + 8], 0x4339b0
mov dword [esp + 4], eax
jmp 0x40a4aa
push 4
push edx
push 0x20
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [esp + 4]
setne dl
call fcn.00404690
mov eax, dword [esp + 4]
test eax, eax
jne 0x40a4bf
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0040e039
mov esp, ebp
pop ebp
ret 4
mov edx, str.set_option
lea ecx, [esp + 4]
call fcn.00401f10
int3
Function at 0x40c110
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42785d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4330e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x34]
mov dword [ebp - 4], 0
push dword [0x43529c]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40c1ae
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40c1ae
mov eax, 4
mov edi, dword [ecx + eax*4]
lea edx, [ecx + eax*4]
test edi, edi
je 0x40c172
cmp byte [edi], 0xd
jae 0x40c192
inc eax
cmp eax, 6
jl 0x40c163
mov eax, 4
nop dword [eax]
mov esi, dword [ecx + eax*4]
lea edx, [ecx + eax*4]
test esi, esi
jne 0x40c19f
inc eax
cmp eax, 6
jl 0x40c180
jmp 0x40c1ae
mov dword [edx], 0
mov al, byte [edi]
mov byte [edi + 0x34], al
jmp 0x40c1be
push esi
mov dword [edx], 0
call fcn.0040e4ad
add esp, 4
push 0x35
call fcn.0040e22c
mov edi, eax
add esp, 4
mov byte [edi + 0x34], 0xd
lea eax, [ebp + 8]
mov dword [ebp - 0x10], 0
push eax
lea ecx, [edi + 4]
call fcn.0040b700
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
mov dword [edi + 0x28], ecx
lea ecx, [ebp - 0x18]
mov dword [edi + 0x24], eax
mov eax, dword [ebp + 0x30]
mov dword [edi + 0x2c], eax
mov dword [edi], 0x40c790
mov dword [ebx], edi
mov dword [ebp - 0x14], 0
call fcn.0040c380
mov esi, dword [ebp + 0x18]
or edi, 0xffffffff
test esi, esi
je 0x40c223
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c223
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40c223
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40c248
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c248
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40c248
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x40c380
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx + 8]
mov dword [ebp - 4], esi
test esi, esi
je 0x40c3ec
mov esi, dword [esi + 0x14]
push edi
or edi, 0xffffffff
test esi, esi
je 0x40c3bc
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c3bc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40c3bc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 4]
mov esi, dword [esi + 0xc]
test esi, esi
je 0x40c3e4
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40c3e4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40c3e4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebx + 8], 0
pop edi
mov esi, dword [ebx + 4]
test esi, esi
je 0x40c42f
push dword [0x43529c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40c41f
mov edx, dword [eax + 4]
test edx, edx
je 0x40c41f
mov eax, 4
nop
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x40c435
inc eax
cmp eax, 6
jl 0x40c410
push esi
call fcn.0040e4ad
add esp, 4
mov dword [ebx + 4], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x34]
mov byte [esi], al
mov dword [ecx], esi
pop esi
mov dword [ebx + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c590
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427895
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4330e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
test al, 1
jne 0x40c5fb
push dword [0x43529c]
and eax, 0xfffffffc
mov esi, dword [eax + 8]
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40c5fb
nop dword [eax]
cmp dword [eax], esi
je 0x40c61d
mov eax, dword [eax + 8]
test eax, eax
jne 0x40c5f0
push dword [0x43529c]
lea eax, [edi + 1]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40c69d
mov ecx, dword [eax + 4]
jmp 0x40c69f
cmp dword [eax + 4], 0
je 0x40c5fb
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
mov dword [ebx], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push eax
call fcn.0040afb0
add esp, 8
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40c764
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
jmp 0x40c764
xor ecx, ecx
push ecx
push dword [ebp - 0x1c]
mov edx, 0x28
call fcn.0040a090
mov esi, eax
add esp, 8
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x40cab0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov eax, dword [ebx]
mov dword [esi + 0x20], eax
mov dword [ebx], 0
mov eax, dword [edi + 4]
and eax, 0xfffffffc
mov edi, dword [eax + 8]
lock inc dword [edi + 0x18]
push esi
push 0
push 0
mov dword [esi + 0x1c], 1
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x40c74e
lea ebx, [edi + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x58]
test eax, eax
je 0x40c737
mov dword [eax + 0x14], esi
jmp 0x40c73a
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
lea eax, [edi + 0x34]
mov ecx, 1
xchg dword [eax], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
call fcn.0040c8a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040e039
mov esp, ebp
pop ebp
ret 4
Function at 0x40c8a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427900
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4330e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x40c8ec
mov dword [ebp - 4], 0
mov eax, dword [eax + 0x20]
test eax, eax
je 0x40c8e5
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x40c92f
push dword [0x43529c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40c91f
mov edx, dword [eax + 4]
test edx, edx
je 0x40c91f
xor eax, eax
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x40c940
inc eax
cmp eax, 2
jl 0x40c910
push esi
call fcn.0040e4ad
add esp, 4
mov dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 0x28]
mov byte [esi], al
mov dword [ecx], esi
jmp 0x40c928

Function at 0x40cd56
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040cd32
pop esi
leave
ret 8

Function at 0x40eb7b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ebba
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ebba
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ebba
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ebba
cmp dword [ecx + 0x74], 0xe
jbe 0x40ebba
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41985a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004197dc

Function at 0x41a1c9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ae4c
push 0x42ae44
push str.FlsAlloc
push 0x1e
call fcn.00419fca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a1fd
push dword [ebp + 8]
mov ecx, esi
call dword [0x42821c]
call esi
jmp 0x41a203
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41a247
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ae5c
push 0x42ae54
push str.FlsGetValue
push 0x20
call fcn.00419fca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a27e
push dword [ebp + 8]
mov ecx, esi
call dword [0x42821c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41e278
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 0x41e315
push ebx
push esi
call fcn.0041e241
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.0041e18a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e2c2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e314
push edi
push eax
call fcn.00418bc2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e2e2
call fcn.00419e29
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e313
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e18a
add esp, 0x20
test eax, eax
jne 0x41e301
push edi
call fcn.00419e29
jmp 0x41e309
push ebx
call fcn.00419e29
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 0x420a4f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004208c0

Function at 0x423595
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x434fe8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4235d5
cmp byte [ebx], 0xa
jne 0x4235d5
or byte [eax + edi + 0x28], 4
jmp 0x4235da
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4236d8
mov al, byte [edx]
cmp al, 0x1a
je 0x4236ba
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x423609
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42362e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x423638
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4235eb
jmp 0x4236d8
push 0
lea eax, [ebp - 0xc]
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 0x4236b5
cmp dword [ebp - 0xc], 0
je 0x4236b5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x434fe8]
test byte [eax + edi + 0x28], 0x48
je 0x42368f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42367a
mov byte [esi], dl
jmp 0x42368b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x434fe8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4236d8
cmp byte [ebp - 1], 0xa
jne 0x42369e
cmp esi, ebx
jne 0x42369e
mov byte [esi], 0xa
jmp 0x4236d7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00422a14
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4236d8
mov byte [esi], 0xd
jmp 0x4236d7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x434fe8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4236d4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4236d8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret