joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461350
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4b3570]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x40], 2
je 0x461406
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x208], ecx
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 1
push eax
lea eax, [ecx + 1]
mov dword [ebp - 0x104], ecx
push eax
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x218], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x461419
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 4
push eax
lea eax, [ebp - 0x214]
push eax
push 0x1007
push 0xffff
push dword [esi + 0x3c]
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [ebp - 0x214], 0
jne 0x461420
mov dword [esi + 0x40], 2
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047202b
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x40], 1
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0047202b
mov esp, ebp
pop ebp
ret 4
Function at 0x4619c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
call fcn.00461ca0
cmp dword [edi + 0x40], 2
jne 0x461abc
mov esi, dword [ebp + 0xc]
push 0
push esi
push dword [ebp + 8]
push dword [edi + 0x3c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jge 0x461abe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [eax]
cmp ebx, 0x2733
je 0x461abc
push str.TCP__
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004134d0
add esp, 8
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x461a22
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
push eax
call fcn.00413dc0
push 0x488fe0
push eax
call fcn.004134d0
add esp, 0x14
lea ecx, [edi + 0x18]
cmp dword [edi + 0x2c], 0x10
jb 0x461a46
mov ecx, dword [edi + 0x18]
push dword [edi + 0x28]
push ecx
push eax
call fcn.00413dc0
add esp, 0xc
mov esi, eax
push 0x48548c
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push 0x48a9d4
push ebx
push str._:_send_error._Error_code:
push esi
call fcn.004134d0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.004134d0
add esp, 8
push eax
call fcn.004134d0
add esp, 8
push eax
call fcn.004134d0
add esp, 8
cmp byte [edi + 0x30], 0
je 0x461ac5
mov ecx, edi
call fcn.004618b0
push str._Reconnect._n
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004134d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
push str._Failed._n
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004134d0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x461af0
Capabilities:
Create tcp socket
Create thread
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48048d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4b3570]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 8], eax
lea esi, [edi + 0x6a4]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esi], xmm0
push 0
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp + 8]
mov dword [edi + 0x6a8], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
push esi
push dword [edi + 8]
mov word [edi + 0x6a6], ax
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [edi + 8]
cmp eax, 0xffffffff
jne 0x461b94
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 8], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x1ff
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x461b7f
lea esi, [edi + 0x18]
lea eax, [esi + 0x680]
cmp esi, eax
je 0x461bc8
mov edi, eax
mov ecx, esi
call fcn.00460910
mov byte [esi + 0x60], 0
add esi, 0x68
cmp esi, edi
jne 0x461bb3
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0x8004667e
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x4142c0
push dword [ebp + 8]
mov byte [edi + 0x6a0], 0
push str.TCP_Server:_start_thread_at_port
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.004134d0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 8
call fcn.00471d99
add esp, 4
test eax, eax
je 0x461c2c
mov dword [eax], edi
mov dword [eax + 4], 0x4609c0
jmp 0x461c2e
xor eax, eax
mov dword [ebp + 8], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x4607c0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x461c8d
cmp dword [edi + 0x69c], 0
je 0x461c69
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x69c], eax
mov al, 1
mov dword [edi + 0x698], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [ebp - 0x10], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x4639c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x28]
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae edx, dword [ebp + 8]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push dword [ebp + 0x18]
push edx
push dword [ecx + 0x24]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x463a1c
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x463a12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x463a12
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00471dc9
add esp, 8
pop ebp
ret 0x18
Function at 0x4692d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480e9e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4b3570]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], edi
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
call fcn.00419680
mov ecx, esi
mov dword [esi + 0x30], 0
call fcn.00469f50
push edi
mov ecx, esi
call fcn.004693e0
inc dword [esi + 0x30]
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x24]
sar eax, 5
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
cmp dword [esi + 0x30], eax
jae 0x4693b2
mov eax, dword [0x48b368]
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0xc
movq xmm0, qword [str.expected_END]
mov dword [ebp - 0x14], 0xf
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
push 0xc
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004691c0
test al, al
je 0x4693d1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047202b
mov esp, ebp
pop ebp
ret 8
push str.unexpected_end_in_input
lea ecx, [ebp - 0x28]
call fcn.004145d0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00469180
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00469180
int3
Function at 0x46c870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4813ed
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4b3570]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x88], 0x10
lea edi, [esi + 0x74]
mov eax, edi
jb 0x46c8ac
mov eax, dword [edi]
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x70], eax
cmp eax, 0xffffffff
je 0x46ca1c
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
je 0x46ca15
mov eax, dword [esi + 0x8c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
and eax, 0xffffdfdf
mov word [ebp - 0x2e], 8
or eax, 0x1013
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
je 0x46ca5f
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
test eax, eax
je 0x46ca0e
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x7d0
push eax
push dword [esi + 0x70]
mov dword [ebp - 0x1c], 0x7d0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0x7d0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
jne 0x46c96f
push str.Serial:_SetCommTimeouts_failed.
jmp 0x46ca64
push 0x10
mov byte [esi + 0x58], 1
mov byte [esi + 0x98], 0
call fcn.00471d99
add esp, 4
test eax, eax
je 0x46c99a
mov dword [eax], esi
mov dword [eax + 8], 0x46ca90
mov dword [eax + 0xc], 0
jmp 0x46c99c
xor eax, eax
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 2
push ecx
push 0
push eax
push 0x424ce0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x88], ecx
test ecx, ecx
je 0x46ca7a
cmp dword [esi + 0x94], 0
je 0x46c9e1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov eax, dword [ebp - 0x84]
mov dword [esi + 0x90], ecx
mov dword [esi + 0x94], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047202b
mov esp, ebp
pop ebp
ret
push str.Serial:_GetCommTimeouts_failed.
jmp 0x46ca64
push str.Serial:_GetCommState_failed.
jmp 0x46ca64
push edi
lea eax, [ebp - 0x58]
push str.Serial:_cannot_open_serial_port
push eax
call fcn.00413890
push 0x485ecc
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0
push eax
call fcn.004137b0
add esp, 0x18
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00416490
push 0x48fc64
lea eax, [ebp - 0x7c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Serial:_SetCommState_failed.
lea ecx, [ebp - 0x7c]
call fcn.004164e0
push 0x48fc64
lea eax, [ebp - 0x7c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 6
mov dword [ebp - 0x84], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x470970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov edx, ecx
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x14]
mov ebx, 0xffff
shr ebx, cl
mov eax, ebx
mov dword [ebp - 4], edx
shl eax, 0x10
or ebx, eax
mov eax, dword [ebp + 0x10]
sar eax, 1
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x470a54
movss xmm1, dword [0x48a7dc]
push esi
push edi
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov esi, eax
add eax, dword [edx]
add ecx, 4
mov edi, eax
mov dword [ebp + 8], ecx
add eax, dword [edx + 4]
mov ecx, dword [ebp + 0x14]
mov ebx, eax
add eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
add edx, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x10]
shr edx, cl
and edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
xor edx, 0x80008000
movsx eax, dx
shr edx, 0x10
movd xmm0, eax
mov eax, dword [ebp + 0xc]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [eax + ecx*8], xmm0
movsx eax, dx
movd xmm0, eax
mov eax, dword [ebp + 0xc]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [eax + ecx*8 + 4], xmm0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add eax, 4
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [eax], ecx
add ecx, esi
mov dword [eax + 4], ecx
add ecx, edi
mov dword [eax + 8], ecx
add ecx, ebx
mov dword [eax + 0xc], ecx
add ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, eax
jl 0x4709b1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x472bb2
Capabilities:
Parse pe header

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

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

Function at 0x407c86
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415628
push 0x415620
push str.FlsAlloc
push 0x1f
call fcn.00407b45
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407cba
push dword [ebp + 8]
mov ecx, esi
call dword [0x41414c]
call esi
jmp 0x407cc0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407d04
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415638
push 0x415630
push str.FlsGetValue
push 0x21
call fcn.00407b45
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407d3b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41414c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407d43
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415640
push 0x415638
push str.FlsSetValue
push 0x22
call fcn.00407b45
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407d7d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41414c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b2c8
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 0x40b365
push ebx
push esi
call fcn.0040b291
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.0040b225
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b312
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b364
push edi
push eax
call fcn.00408435
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b332
call fcn.004079d8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b363
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b225
add esp, 0x20
test eax, eax
jne 0x40b351
push edi
call fcn.004079d8
jmp 0x40b359
push ebx
call fcn.004079d8
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 0x413420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41344d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41344d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0xf0fa30
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf0fa3a
pushal
call 0xf0fa40
pop ebp
sub ebp, 0x10
sub ebp, 0xb0fa30
jmp 0xf0fa56
mov eax, 0xb0fa30
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a9
mov edx, 0xb6d82fd3
xor byte [eax], dl
inc eax
dec ecx
jne 0xf0fa6d
jmp 0xf0fa80
pop eax
push ds
pop eax
pop edx
out dx, eax
rcl ebx, cl
rcl dword [edx + 0x12], cl
sub edx, ebx
rcl ebx, cl
rcr byte [esi], 1
imul edx, ebp, 0xffffffd3
rcl ebx, cl
imul edi, ebx, 0x24d3d3d3
xor eax, edx
sbb ebx, dword [eax + 0x52]
invalid
Function at 0x78ab1d3f
Capabilities:
Accept command line arguments
Get thread local storage value

Disassembly:
push 8
push 0x78ab1de0
call fcn.78ab0950
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x78abb8b1
xor edi, edi
cmp eax, edi
je 0x78ac7b31
cmp eax, 2
jne 0x78ab2967
call sym.MSVCR100.dll___set_flsgetvalue
push dword [0x78b548b4]
push dword [0x78b548b8]
call dword [sym.imp.kernel32.dll_TlsGetValue]
call eax
test eax, eax
jne 0x78ab1dd1
push 0x214
push 1
call sym.MSVCR100.dll__gmtime64_s
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x78ac7b77
push esi
push dword [0x78b548b4]
push dword [0x78b54e50]
call dword [sym.imp.kernel32.dll_DecodePointer]
call eax
test eax, eax
je 0x78ad7484
push edi
push esi
call sym.MSVCR100.dll__initptd
pop ecx
pop ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
call fcn.78ab1d38
xor eax, eax
inc eax
call fcn.78ab0995
ret
cmp eax, 3
jne 0x78ab1dd1
push edi
call sym.MSVCR100.dll__gmtime64_s
pop ecx
jmp 0x78ab1dd1
call fcn.78abb359
test eax, eax
je 0x78ac7b77
call fcn.78abba14
test eax, eax
je 0x78ad7437
call sym.MSVCR100.dll__gmtime64_s
test eax, eax
js 0x78ad7441
call sym.MSVCR100.dll__gmtime64_s
mov dword [0x78b55428], eax
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [sym.MSVCR100.dll__acmdln], eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [sym.MSVCR100.dll__wcmdln], eax
call fcn.78abb8a6
call fcn.78abb925
test eax, eax
js 0x78ac7b7e
push 0
call sym.MSVCR100.dll__gmtime64_s
pop ecx
test eax, eax
jne 0x78ac7b7e
inc dword [0x78b55424]
jmp 0x78ab1dd1
cmp dword [0x78b55424], edi
jle 0x78ac7b77
dec dword [0x78b55424]
mov dword [ebp - 4], edi
cmp dword [0x78b55eac], edi
je 0x78ad7448
call fcn.78ac7ac7
cmp dword [ebp + 0xc], edi
je 0x78ad7452
mov dword [ebp - 4], 0xfffffffe
call fcn.78ac7b6d
jmp 0x78ab1dd1
xor eax, eax
jmp 0x78ab1dd9
call fcn.78b26d78
jmp 0x78ad7441
call fcn.78b266ba
jmp 0x78ac7b77
call fcn.78afc6e7
jmp 0x78ad7437
call sym.MSVCR100.dll__cexit
jmp 0x78ac7b4e
call fcn.78b26d78
call fcn.78afc6e7
call fcn.78b266ba
jmp 0x78ac7b5c
push esi
call sym.MSVCR100.dll__gmtime64_s
pop ecx
jmp 0x78ac7b77

Function at 0x78ab23db
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x78ad7b05
test dword [ebp + 0xc], 0xfffffff9
jne 0x78ad7b05
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x78ac09bb
test al, 0x10
jne 0x78ab241d
test al, 1
je 0x78ab241d
test byte [ebp + 0xc], 2
jne 0x78ad7b22
xor eax, eax
pop esi
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call sym.MSVCR100.dll__gmtime64_s
pop ecx
call sym.MSVCR100.dll__errno
mov eax, dword [eax]
jmp 0x78ab241f
call sym.MSVCR100.dll___doserrno
mov dword [eax], esi
call sym.MSVCR100.dll__errno
push 0x16
pop esi
mov dword [eax], esi
call sym.MSVCR100.dll__invalid_parameter_noinfo
mov eax, esi
jmp 0x78ab241f
call sym.MSVCR100.dll___doserrno
mov dword [eax], 5
call sym.MSVCR100.dll__errno
mov dword [eax], 0xd
jmp 0x78ac09c8
Function at 0x78ac235f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
xor ecx, ecx
cmp esi, ecx
je 0x78ae06f7
cmp word [esi], cx
je 0x78ac2389
add eax, 2
cmp word [eax], cx
jne 0x78ac2379
add eax, 2
cmp word [eax], cx
jne 0x78ac2379
push ebx
sub eax, esi
lea ebx, [eax + 2]
push edi
push ebx
call sym.MSVCR100.dll__gmtime64_s
mov edi, eax
pop ecx
test edi, edi
je 0x78ac23a8
push ebx
push esi
push edi
call sym.MSVCR100.dll__gmtime64_s
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x78ac6a1d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x78ac6a2c
pop dword [ebp - 0x34]
mov eax, 0x78ac6a2c
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x5431d
push 0
mov eax, 0xd12a466e
sub eax, 0x588034e6
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x2d804ae6
add ecx, 0xd28000c2
mov ebx, eax
mov edi, 0x8f4c34fb
sub edi, 0x169646fb
add edi, dword [ebp - 0x34]
mov edx, 0x39f7e7be
xor dword [ebp - 0x20], esi
mov esi, dword [edi]
mov dword [ebp - 0x14], 0x4df571a5
sub esi, edx
xor dword [ebp - 0x10], 0xea5f6fbf
mov dword [ebx], esi
xor dword [ebp - 0x20], edi
add ebx, 0x63f498fc
add ebx, 0x9c0b6708
add edi, 0x1857117c
add edi, 0xe7a8ee88
loop 0x78ac6a80
add eax, 0x53cabab8
sub eax, 0x53c99945
mov ebx, eax
add eax, 0x94310f6e
add eax, 0x6bcef097
mov ecx, 0x4b75c62c
sub ecx, 0xd2cbc62c
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x78ac78ec
Capabilities:
Parse pe header

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