joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4133a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x48], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x42], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0x46], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
mov byte [ebp - 0x3c], cl
mov ecx, dword [eax + 4]
mov word [ebp - 0x3e], dx
mov edx, dword [eax]
mov dword [ebp - 0x37], ecx
movzx ecx, byte [eax + 0xa]
push ebx
mov dword [ebp - 0x3b], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0x31], cl
push str.SELECT__FROM_QuestKillCount_WHERE_Name_s
mov ecx, 0x4eb8c0
mov dword [ebp - 0x4c], 0xc48c1
mov word [ebp - 0x33], dx
call fcn.00412e90
add esp, 8
test al, al
je 0x4134d1
mov edx, dword [0x4eb8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4134d1
push str.QuestIndex
mov ebx, 0x4eb8c0
call fcn.00413050
push str.MonsterClass1
mov dword [ebp - 0x30], eax
call fcn.00413050
push str.MonsterClass2
mov dword [ebp - 0x2c], eax
call fcn.00413050
push str.MonsterClass3
mov dword [ebp - 0x28], eax
call fcn.00413050
push str.MonsterClass4
mov dword [ebp - 0x24], eax
call fcn.00413050
push str.MonsterClass5
mov dword [ebp - 0x20], eax
call fcn.00413050
push str.KillCount1
mov dword [ebp - 0x1c], eax
call fcn.00413050
push str.KillCount2
mov dword [ebp - 0x18], eax
call fcn.00413050
push str.KillCount3
mov dword [ebp - 0x14], eax
call fcn.00413050
push str.KillCount4
mov dword [ebp - 0x10], eax
call fcn.00413050
push str.KillCount5
mov dword [ebp - 0xc], eax
call fcn.00413050
mov dword [ebp - 8], eax
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4eb8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x413512
mov edx, dword [0x4eb8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4eb8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
or eax, 0xffffffff
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
movzx ebx, byte [ebp - 0x4b]
lea ecx, [ebp - 0x4c]
push ecx
push edx
call fcn.00414a90
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413530
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
lea edi, [esi + 0x11]
push edi
push str.SELECT_Name_FROM_QuestKillCount_WHERE_Name_s
mov ecx, 0x4eb8c0
call fcn.00412e90
add esp, 8
test al, al
je 0x4135b0
mov eax, dword [0x4eb8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4135b0
mov ecx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x40]
push edi
push eax
mov eax, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x3c]
push edx
mov edx, dword [esi + 0x28]
push eax
mov eax, dword [esi + 0x38]
push ecx
mov ecx, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
push str.UPDATE_QuestKillCount_SET_QuestIndex_d_MonsterClass1_d_KillCount1_d_MonsterClass2_d_KillCount2_d_MonsterClass3_d_KillCount3_d_MonsterClass4_d_KillCount4_d_MonsterClass5_d_KillCount5_d_WHERE_Name_s
jmp 0x413600
mov ecx, dword [0x4eb8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4eb8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x40]
push eax
mov eax, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x3c]
push edx
mov edx, dword [esi + 0x28]
push eax
mov eax, dword [esi + 0x38]
push ecx
mov ecx, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
push edi
push str.INSERT_INTO_QuestKillCount__Name_QuestIndex_MonsterClass1_KillCount1_MonsterClass2_KillCount2_MonsterClass3_KillCount3_MonsterClass4_KillCount4_MonsterClass5_KillCount5__VALUES___s__d__d__d__d__d__d__d__d__d__d__d_
mov ecx, 0x4eb8c0
call fcn.00412e90
mov edx, dword [0x4eb8cc]
add esp, 0x34
push edx
call ebx
mov eax, dword [0x4eb8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
Function at 0x413dc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42096c]
push ebx
push esi
push edi
push 0x6a
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [0x4eb830]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
lea edx, [ebp - 0x104]
push str.ItemCount:__d
push edx
mov esi, eax
call ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
push 0
push 0x401
push esi
call edi
push 0x5b5070
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x5b5098]
push 0x5b5070
mov dword [ebp - 0x108], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push str.QueueSize:__d
push eax
call ebx
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0x401
push esi
call edi
mov ecx, 0x4eb878
call fcn.00412a80
push eax
lea edx, [ebp - 0x104]
push edx
call ebx
add esp, 8
lea eax, [ebp - 0x104]
push eax
push 2
push 0x401
push esi
call edi
push 0
push 3
push 0x401
push esi
call edi
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415bda
mov esp, ebp
pop ebp
ret

Function at 0x414480
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x74]
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor edi, edi
cmp eax, edi
je 0x4144a8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x74]
push eax
call ebx
mov dword [esi + 0x74], edi
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x4144b5
push eax
call ebx
mov dword [esi + 0x70], edi
lea ecx, [esi + 0x38]
call fcn.00413790
lea edi, [esi + 0x14]
mov dword [ebp - 4], 8
mov eax, dword [edi]
test eax, eax
je 0x4144e1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi]
push ecx
call ebx
mov dword [edi], 0
add edi, 4
dec dword [ebp - 4]
jne 0x4144c7
mov eax, dword [esi + 0x10]
test eax, eax
je 0x414506
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edx
call ebx
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x414517
push eax
call ebx
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41452d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414540
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x5b5034], eax
cmp eax, 0xffffffff
jne 0x414592
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__WSASocket___failed_with_error:__d
push 1
call fcn.00415360
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415bda
mov esp, ebp
pop ebp
ret
mov eax, 2
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
movzx ecx, word [0x5b503c]
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x14]
mov word [ebp - 0x12], ax
mov eax, dword [0x5b5034]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4145f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__bind___failed_with_error:__d
push 1
call fcn.00415360
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415bda
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5b5034]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x41462f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__listen___failed_with_error:__d
push 1
call fcn.00415360
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00415bda
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.00415bda
mov esp, ebp
pop ebp
ret

Function at 0x414640
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41466e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__socket___failed_with_error:__d
push 1
call fcn.00415360
add esp, 0xc
xor al, al
pop esi
ret
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x5b5038], eax
test eax, eax
jne 0x4146a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateIoCompletionPort___failed_with_error:__d
push 1
call fcn.00415360
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret

Function at 0x4146b0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0x5b5030
push 0x414fa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5b5040], eax
test eax, eax
jne 0x4146ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.00415360
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x414710
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.00415360
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x414720
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 8
jbe 0x41473d
mov eax, 8
push ebx
push esi
push edi
xor edi, edi
mov dword [0x5b5064], eax
test eax, eax
je 0x414789
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, 0x5b5044
push 0
push 0
push 0x5b5030
push 0x415110
push 0
push 0
call ebx
mov dword [esi], eax
test eax, eax
je 0x414792
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x4147b1
inc edi
add esi, 4
cmp edi, dword [0x5b5064]
jb 0x414756
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.00415360
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.00415360
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4147d0
Capabilities:
Create thread

Disassembly:
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x5b50a0], eax
test eax, eax
jne 0x414803
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateSemaphore___failed_with_error:__d
push 1
call fcn.00415360
add esp, 0xc
xor al, al
ret
push 0
push 0
push 0x5b5030
push 0x415210
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5b50a4], eax
test eax, eax
jne 0x41483d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.00415360
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x414863
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.00415360
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x414a90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x5b50ac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
test esi, esi
js 0x414ab3
xor eax, eax
cmp esi, 0x14
setl al
test eax, eax
jne 0x414ac7
push 0x5b50ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, esi
imul edi, edi, 0x68
add edi, 0x5b4810
mov eax, dword [edi + 4]
test eax, eax
js 0x414bfb
xor ecx, ecx
cmp eax, 0x14
setl cl
mov eax, ecx
test eax, eax
je 0x414bfb
cmp dword [edi + 8], 0
je 0x414bfb
cmp dword [edi + 0x1c], 0xffffffff
je 0x414bfb
cmp ebx, 0x2000
jle 0x414b32
push ebx
push esi
push str._SocketTCP__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.00415360
add esp, 0x10
push 0x5b50ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [edi + 0x24]
cmp dword [esi + 0x20], 0
jle 0x414b97
mov eax, dword [esi + 0x42028]
lea ecx, [eax + ebx]
cmp ecx, 0x40000
jle 0x414b67
mov esi, dword [ebp + 8]
push ecx
push esi
push str._SocketTCP__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.00415360
add esp, 0x10
mov eax, esi
jmp 0x414bf1
mov edx, dword [ebp + 0xc]
push ebx
push edx
lea eax, [eax + esi + 0x2028]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [esi + 0x42028], ebx
push 0x5b50ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
push ebx
lea eax, [esi + 0x24]
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor ecx, ecx
push ecx
push esi
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [esi + 0x24]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
push 1
mov dword [eax], ebx
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2024], ecx
push eax
mov eax, dword [edi + 0x1c]
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x414b82
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x414b82
mov eax, dword [ebp + 8]
mov ecx, 0x5b5030
call fcn.00414c10
push 0x5b50ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x414cb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 0x7c
push edi
mov esi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x414ceb
xor eax, eax
cmp ebx, 0x14
setl al
test eax, eax
je 0x414ceb
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x414cfa
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00414c10
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
add dword [esi + 0x2024], eax
mov eax, dword [ebp + 8]
push ebx
lea edi, [esi + 0x24]
push eax
call fcn.00414870
test al, al
jne 0x414d2d
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00414c10
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x2024]
lea edx, [eax + esi + 0x24]
mov dword [esi + 0x18], edx
mov edx, 0x2000
sub edx, eax
xor eax, eax
push eax
mov dword [esi + 0x1c], eax
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, ebx
lea ecx, [esi + 0x14]
imul eax, eax, 0x68
mov dword [ecx], edx
lea edx, [ebp - 0xc]
push edx
push 1
push ecx
mov ecx, dword [eax + 0x5b482c]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x414db2
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x414db2
call esi
push eax
push str._SocketTCP__WSARecv___failed_with_error:__d
push 1
call fcn.00415360
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, ebx
call fcn.00414c10
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x414dd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
lea edi, [ebx + 0x7c]
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x414e09
xor ecx, ecx
cmp eax, 0x14
setl cl
test ecx, ecx
je 0x414e09
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x414e18
mov ecx, ebx
call fcn.00414c10
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add dword [esi + 0x2024], ecx
mov ecx, dword [esi + 0x2024]
mov ebx, eax
mov eax, dword [esi + 0x20]
imul ebx, ebx, 0x68
add ebx, 0x5b4810
cmp ecx, eax
jl 0x414efb
mov eax, dword [esi + 0x42028]
test eax, eax
jg 0x414e5a
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0x24]
cmp eax, 0x2000
jle 0x414ec9
lea eax, [esi + 0x2028]
push 0x2000
push eax
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x42028]
sub eax, 0x2000
push eax
lea ecx, [esi + 0x4028]
mov dword [esi + 0x18], edi
push ecx
lea eax, [esi + 0x2028]
lea edi, [esi + 0x14]
push eax
mov dword [edi], 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
mov dword [esi + 0x2024], 0
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0x18
add dword [esi + 0x42028], 0xffffe000
jmp 0x414f10
push eax
lea edx, [esi + 0x2028]
push edx
push edi
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x42028]
mov dword [esi + 0x18], edi
lea edi, [esi + 0x14]
add esp, 0xc
mov dword [edi], eax
mov dword [esi + 0x20], eax
xor eax, eax
mov dword [esi + 0x2024], eax
mov dword [esi + 0x42028], eax
jmp 0x414f09
lea edx, [ecx + esi + 0x24]
lea edi, [esi + 0x14]
sub eax, ecx
mov dword [esi + 0x18], edx
mov dword [edi], eax
mov dword [esi + 0x1c], 1
mov ecx, dword [ebx + 0x1c]
push 0
push esi
push 0
lea eax, [ebp - 8]
push eax
push 1
push edi
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x414f5c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x414f5c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00414c10
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4152d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x41f018]
xor eax, ebp
mov dword [ebp - 4], eax
jmp 0x4152f5
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x104]
push 0x100
push eax
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
add esp, 0x1c
push 0x10
push str.Error
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x41534d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x415bda
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f018]
jne 0x415be4
repz ret
jmp fcn.00416114
Function at 0x402a90
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040472c
test esi, esi
jne 0x402ac6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040481c
jmp 0x402ae4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029a4
mov edi, eax
test esi, esi
je 0x402ae4
cmp dword [ebx], 0
je 0x402ae4
dec esi
jmp 0x402acd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40384c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4038e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4038c4
xor eax, eax
push ebp
push 0x4038bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403900
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4038c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46e020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4045b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47004c], 0
je 0x404611
cmp word [0x470220], 0xd7b2
jne 0x4045d9
cmp dword [0x470228], 0
jbe 0x4045d9
mov eax, 0x47021c
call dword [0x470238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46e090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404638
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e030], 0
jne 0x40462d
push 0
push 0x46e088
push 0x46e090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret