joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b520
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4189dd
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4294ec]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.CConnectionBase.0
call fcn.00410610
lea ecx, [esi + 0xc]
call fcn.00414b30
mov eax, dword [0x429700]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x429700
mov dword [esp + 0x20], ebx
call edx
add eax, 0x10
mov dword [esi + 0x130], eax
mov eax, dword [0x429700]
mov edx, dword [eax + 0xc]
mov ecx, 0x429700
mov byte [esp + 0x20], 1
call edx
add eax, 0x10
mov dword [esi + 0x138], eax
mov eax, dword [0x429700]
mov edx, dword [eax + 0xc]
mov ecx, 0x429700
mov byte [esp + 0x20], 2
call edx
add eax, 0x10
mov dword [esi + 0x13c], eax
lea eax, [esp + 0x13]
push eax
lea edx, [esp + 0x17]
lea ecx, [esi + 0x170]
push edx
mov byte [esp + 0x28], 3
call fcn.004092a0
lea eax, [esp + 0x13]
push eax
lea edx, [esp + 0x17]
lea ecx, [esi + 0x190]
push edx
mov byte [esp + 0x28], 4
call fcn.00409330
lea eax, [esp + 0x13]
push eax
lea edx, [esp + 0x17]
lea ecx, [esi + 0x1b0]
push edx
mov byte [esp + 0x28], 5
call fcn.004093c0
mov dword [esi + 0x1d0], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push ebx
push ebx
mov byte [esp + 0x30], 7
mov dword [esi + 0x168], ebx
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x148], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x158], eax
mov dword [esi + 0x140], ebx
mov dword [esi + 0x134], 0xffffffff
call edi
mov dword [esi + 0x150], eax
mov eax, dword [esi + 0x1d0]
cmp eax, ebx
je 0x40b66d
mov dword [esi + 0x1d0], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esi + 0x1d8]
push eax
mov dword [esi + 0x1d4], ebx
mov dword [esi + 0x1f0], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x410060
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push str.SOFTWARESamsungKiesDebug
push closesocket
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx - 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
add edx, edx
push edx
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x4100ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ecx
ret 8
Function at 0x410100
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x418c35
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4294ec]
xor eax, esp
mov dword [esp + 0x418], eax
push ebp
push esi
push edi
mov eax, dword [0x4294ec]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x43c]
xor edi, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
mov eax, dword [0x429700]
mov edx, dword [eax + 0xc]
mov ecx, 0x429700
mov dword [esp + 0x434], 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], 3
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x400
lea eax, [esp + 0x2c]
push edi
push eax
mov byte [esp + 0x440], 2
call sub.MSVCR90.dll_memset
lea ecx, [esp + 0x20]
push str.SOFTWARESamsungKiesDebug
push ecx
call fcn.00405d50
mov ebp, dword [esp + 0x28]
add esp, 0x14
lea edx, [esp + 0x10]
push edx
push ebp
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x444]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x429700]
mov edx, dword [eax + 0xc]
mov ecx, 0x429700
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x18], 1
test edi, edi
jne 0x41021c
lea eax, [esp + 0x28]
push eax
push 0x41e008
push esi
call fcn.00405d50
add esp, 0xc
jmp 0x41022a
push str.Error
push esi
call fcn.00405d50
add esp, 8
lea eax, [ebp - 0x10]
mov byte [esp + 0x434], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41024e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x440]
add eax, 0xfffffff0
mov byte [esp + 0x434], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410279
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0041759c
add esp, 0x428
ret 8
Function at 0x411ae0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x411b30
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x411b2f
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x411b1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error:_d
call fcn.00416aa0
add esp, 8
cmp dword [esp + 0xc], esi
je 0x411b2f
push str.Diskfull
call fcn.00416aa0
add esp, 4
pop esi
ret 8
Function at 0x412200
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x418e7b
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4294ec]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4294ec]
xor eax, esp
push eax
lea eax, [esp + 0x43c]
mov dword fs:[0], eax
mov eax, dword [0x429700]
mov edx, dword [eax + 0xc]
mov edi, dword [esp + 0x44c]
mov ebp, ecx
mov ecx, 0x429700
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push 0x5c
push edi
mov dword [esp + 0x44c], 0
call dword [sym.imp.MSVCR90.dll_wcschr]
add esp, 8
test eax, eax
jne 0x412364
push 1
push 0x23
lea eax, [esp + 0x30]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41238f
mov esi, dword [sym.imp.MSVCR90.dll_wcscat_s]
push str.SamsungKies
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call esi
mov ebx, dword [sym.imp.SHELL32.dll_SHCreateDirectory]
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0
call ebx
push 0x41caec
lea eax, [esp + 0x2c]
push 0x104
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x208
lea edx, [esp + 0x234]
push 0
push edx
call sub.MSVCR90.dll_memset
movzx eax, word [esp + 0x2a]
movzx ecx, word [esp + 0x26]
movzx edx, word [esp + 0x24]
push eax
push ecx
push edx
lea eax, [esp + 0x248]
push str._d__02d__02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x250]
push ecx
lea edx, [esp + 0x4c]
push 0x104
push edx
call esi
add esp, 0x2c
lea eax, [esp + 0x28]
push eax
push 0
call ebx
push 0x41caec
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call esi
push edi
lea edx, [esp + 0x38]
push 0x104
push edx
call esi
add esp, 0x18
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.00406020
jmp 0x41238b
test edi, edi
jne 0x41236c
xor eax, eax
jmp 0x412380
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412371
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00403dc0
mov esi, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ecx, 0xffffffff
mov dword [esp + 0x444], ecx
cmp eax, ecx
jne 0x4123d3
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4123cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4123f4
mov dword [ebp], eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4123ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x43c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.0041759c
add esp, 0x434
ret 4
Function at 0x412700
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push esi
push edi
lea eax, [esp + 0x18]
push eax
xor esi, esi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareSamsungKies2.0
push closesocket
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41276e
mov esi, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.LogLevel
mov edi, 4
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412766
cmp dword [esp + 0x14], edi
je 0x41276e
mov dword [esp + 0xc], 3
mov edi, dword [esp + 0xc]
test esi, esi
je 0x41277d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x14
ret

Function at 0x412790
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
push esi
push edi
lea eax, [esp + 0x18]
push eax
xor esi, esi
lea ecx, [esp + 0xc]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareSamsungKies2.0
push closesocket
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4127fe
mov esi, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.LogLevel2
mov edi, 4
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4127f6
cmp dword [esp + 0x14], edi
je 0x4127fe
mov dword [esp + 0xc], 0
mov edi, dword [esp + 0xc]
test esi, esi
je 0x41280d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x14
ret

Function at 0x4128a0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x4128bc
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x4126f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4128e4
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x413220
Capabilities:
Accept command line arguments

Disassembly:
push ecx
cmp byte [0x429644], 0
push esi
mov esi, ecx
je 0x413235
or eax, 0xffffffff
pop esi
pop ecx
ret 4
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 4]
push ecx
push eax
mov ecx, esi
call fcn.004130a0
cmp al, 1
jne 0x413265
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.00412f90
pop esi
pop ecx
ret 4
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
Function at 0x4133d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push edi
mov edi, ecx
cmp byte [edi + 4], 0
jne 0x4133fa
push 0x429470
lea ecx, [esp + 8]
call dword [sym.imp.MSVCR90.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x42617c
lea eax, [esp + 8]
push eax
call sub.MSVCR90.dll__CxxThrowException
xor edx, edx
cmp dword [edi + 0x3cc], edx
jle 0x413420
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
lea ecx, [ecx]
mov cl, byte [esi]
xor byte [eax], cl
inc edx
inc esi
inc eax
cmp edx, dword [edi + 0x3cc]
jl 0x413410
pop esi
pop edi
add esp, 0xc
ret 8
Function at 0x414a10
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4294ec]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x114
xor esi, esi
lea eax, [esp + 8]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x414b18
mov eax, dword [esp + 0x14]
sub eax, 1
je 0x414adc
sub eax, 1
jne 0x414b18
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x414a95
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x414aba
mov esi, 5
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041759c
add esp, 0x118
ret
ja 0x414abf
cmp eax, 4
jne 0x414b18
cmp dword [esp + 0xc], esi
jne 0x414b18
mov esi, eax
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041759c
add esp, 0x118
ret
cmp eax, 1
jb 0x414b18
mov esi, 6
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041759c
add esp, 0x118
ret
cmp dword [esp + 8], 4
jne 0x414b13
mov eax, dword [esp + 0xc]
cmp eax, 0xa
jne 0x414b09
mov esi, 2
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041759c
add esp, 0x118
ret
mov esi, 3
cmp eax, 0x5a
je 0x414b18
mov esi, 1
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041759c
add esp, 0x118
ret
Function at 0x414ea0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebx, ecx
cmp dword [ebx + 0x120], 0
push esi
push edi
je 0x414ebd
lea ecx, [ebx + 0x8c]
call fcn.004017b0
mov eax, dword [ebx + 0x5c]
mov ecx, dword [esp + 0x40]
push str.WriteData
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call fcn.00416aa0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
add esp, 4
lea ebp, [ebx + 0x4c]
push ebp
lea edx, [esp + 0x14]
push edx
mov edx, dword [ebx + 0x30]
push eax
push ecx
push edx
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x414fb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x414ff0
mov dword [esp + 0x40], edi
cmp dword [esp + 0x14], 0
je 0x414fb2
mov eax, dword [esp + 0x3c]
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
jne 0x414fbe
push eax
mov eax, dword [ebx + 0x30]
lea edx, [esp + 0x14]
push edx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x414f6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e4
jne 0x414fe2
add edi, dword [esp + 0x10]
jmp 0x414fa7
add edi, dword [esp + 0x10]
mov esi, dword [esp + 0x38]
push esi
push edi
push str.Send__d__d_
call fcn.00416aa0
add esp, 0xc
cmp edi, esi
je 0x414f9f
test edi, edi
jne 0x414f92
inc dword [esp + 0x40]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x414fa7
mov dword [esp + 0x14], 0
cmp dword [esp + 0x40], 0xa
jb 0x414f20
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0x10
sub eax, 1
je 0x414fdb
sub eax, 0x101
je 0x414fd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x414ff0
mov esi, 0x5b4
jmp 0x414ff0
mov esi, 0x4c7
jmp 0x414ff0
push esi
push str.Write_Error___d
call fcn.00416aa0
add esp, 8
mov eax, dword [ebx + 0x30]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebx + 0x30]
push 0xf
push ecx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x10
Function at 0x415d30
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x429670]
test eax, eax
je 0x415d4e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x429670]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x4168d0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x418fc0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4294ec]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, 1
cmp dword [0x42966c], ebx
ja 0x416a26
mov eax, dword [0x429700]
mov edx, dword [eax + 0xc]
mov ecx, 0x429700
mov dword [ebp - 4], 0
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0x40c]
lea eax, [ebp + 0x410]
push eax
push ecx
push 0x400
lea edx, [ebp]
push 0x400
push edx
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCR90.dll__vsnprintf_s]
add esp, 0x14
test eax, eax
jle 0x416a06
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
push 0x423600
push ecx
call fcn.00411fb0
add esp, 0xc
push ebx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00416430
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jne 0x4169a9
test eax, eax
jge 0x4169a2
push 0x80070057
call fcn.00401de0
cmp byte [ecx], 0xa
jne 0x4169a9
xor bl, bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4169c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4169d9
push 0x4235fc
lea ecx, [ebp - 0x14]
call fcn.00416850
cmp dword [0x429668], 0
mov esi, dword [ebp - 0x14]
jbe 0x416a4b
push ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0x18], esp
mov edi, esp
push eax
call fcn.00411c50
add eax, 0x10
add esp, 4
mov ecx, 0x429690
mov dword [edi], eax
call fcn.004120a0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416a26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.0041759c
add ebp, 0x404
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x416a06
Function at 0x416aa0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x419000
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4294ec]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, 1
cmp dword [0x42966c], ebx
ja 0x416bd3
mov eax, dword [0x429700]
mov edx, dword [eax + 0xc]
mov ecx, 0x429700
mov dword [ebp - 4], 0
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp + 0x80c]
lea eax, [ebp + 0x810]
push eax
push ecx
push 0x400
lea edx, [ebp]
push 0x400
push edx
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCR90.dll__vsnwprintf_s]
add esp, 0x14
test eax, eax
jle 0x416bb3
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
push str._NPSC__s
push ecx
call fcn.00405d50
add esp, 0xc
push ebx
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.004164b0
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jne 0x416b79
test eax, eax
jge 0x416b6e
push 0x80070057
call fcn.00401de0
movzx eax, word [ecx]
cmp ax, 0xa
jne 0x416b79
xor bl, bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416b98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x416ba9
push 0x423634
lea ecx, [ebp - 0x14]
call fcn.00416890
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416bd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0041759c
add ebp, 0x804
mov esp, ebp
pop ebp
ret

Function at 0x416e30
Capabilities:
Create thread

Disassembly:
cmp dword [0x42966c], 0
ja 0x416ed4
cmp dword [0x429668], 1
jae 0x416e60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 1
push eax
push ecx
push edx
call fcn.00416c40
add esp, 0x10
ret
push esi
push edi
push 0x18
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
fld qword [0x429678]
mov edi, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
fstp qword [esi]
fld qword [0x429678]
push edi
fadd qword [0x4236b0]
fstp qword [0x429678]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
call fcn.0041752d
push edi
push 0
push eax
mov dword [esi + 0x14], eax
mov dword [esi + 8], 1
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x14]
push edi
push ecx
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0x20
push 0
push 0
push esi
push 0x416820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
ret
Function at 0x416ee0
Capabilities:
Create thread

Disassembly:
cmp dword [0x42966c], 0
ja 0x416f84
cmp dword [0x429668], 1
jae 0x416f10
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 1
push eax
push ecx
push edx
call fcn.00416c40
add esp, 0x10
ret
push esi
push edi
push 0x18
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
fld qword [0x429678]
mov edi, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
fstp qword [esi]
fld qword [0x429678]
push edi
fadd qword [0x4236b0]
fstp qword [0x429678]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
call fcn.0041752d
push edi
push 0
push eax
mov dword [esi + 0x14], eax
mov dword [esi + 8], 0
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x14]
push edi
push ecx
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0x20
push 0
push 0
push esi
push 0x416820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
ret

Function at 0x417040
Capabilities:
Create thread

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4294ec]
xor eax, esp
mov dword [esp + 0x218], eax
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x208
lea ecx, [esp + 0x14]
push 0
push ecx
call sub.MSVCR90.dll_memset
movzx edx, word [esp + 0x16]
movzx eax, word [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x24]
push str.Connection__02d__02d.log
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
mov ecx, 0x429690
call fcn.00412200
cmp dword [0x42966c], 0
ja 0x4170c0
push 0
push 0
push 0
push 0x416f90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x429670], eax
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0041759c
add esp, 0x21c
ret

Function at 0x41759c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4294ec]
jne 0x4175a6
repz ret
jmp fcn.00417c7d