joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10045a4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1007028]
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
mov esi, ecx
push ebx
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], 1
mov dword [esi + 0x638], ebx
mov dword [esi + 0x63c], ebx
mov dword [esi + 0x6b0], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x674], eax
lea eax, [esi + 0x678]
push eax
push ebx
push esi
push 0x100370d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x674]
mov dword [esi + 0x66c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x674]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x6a8]
cmp ecx, ebx
je 0x100462f
push esi
call fcn.01004e11
cmp dword [esi + 0x6a0], ebx
mov dword [ebp - 0x208], ebx
jle 0x100474f
push edi
xor edi, edi
mov eax, dword [esi + 0x6a4]
push 0x100
mov word [ebp - 0x204], bx
push dword [eax + edi + 0x228]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
push 0x401
push dword [esi + 0x670]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x6a4]
add eax, edi
cmp dword [eax + 0x14], ebx
je 0x10046d0
mov ecx, dword [esi + 0x6a8]
cmp ecx, ebx
je 0x10046d0
push eax
call fcn.01004e2b
mov eax, dword [esi + 0x6a4]
push dword [esi + 0x6ac]
add eax, edi
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx]
add eax, 0x238
push eax
push ecx
call dword [edx + 0x10]
test eax, eax
jge 0x10046d0
mov dword [esi + 0x658], 2
mov eax, dword [esi + 0x6a4]
add eax, edi
mov ecx, dword [eax + 0x238]
or ecx, dword [eax + 0x23c]
jne 0x10046f5
test byte [eax + 0x230], 0x10
je 0x10046f5
mov dword [eax + 0x240], ebx
mov eax, dword [esi + 0x6a4]
mov ecx, dword [eax + edi + 0x238]
add dword [esi + 0x638], ecx
mov eax, dword [eax + edi + 0x23c]
adc dword [esi + 0x63c], eax
cmp dword [esi + 0x6b0], 1
je 0x100473e
inc dword [ebp - 0x208]
mov eax, dword [ebp - 0x208]
add edi, 0x248
cmp eax, dword [esi + 0x6a0]
jl 0x1004644
jmp 0x100474e
mov dword [esi + 0x658], 3
mov dword [ebp - 0x20c], ebx
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20c]
pop esi
pop ebx
call fcn.01005499
leave
ret
Function at 0x1004766
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1007028]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], 1
mov dword [esi + 0x690], edi
mov dword [esi + 0x694], edi
mov dword [esi + 0x6b4], edi
call fcn.010033e3
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x684], eax
lea eax, [esi + 0x688]
push eax
push edi
push esi
push 0x1003916
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x684]
mov dword [esi + 0x67c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x684]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x6a8]
cmp ecx, edi
je 0x10047f6
push esi
call fcn.01004e11
cmp dword [esi + 0x6a0], edi
mov dword [ebp - 0x208], edi
jle 0x100493a
push ebx
xor ebx, ebx
mov eax, dword [esi + 0x6a4]
add eax, ebx
cmp dword [eax + 0x240], edi
je 0x1004909
cmp dword [eax + 0x244], edi
je 0x1004909
push 0x100
push dword [eax + 0x228]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea eax, [ebp - 0x204]
push eax
push edi
push 0x402
push dword [esi + 0x680]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x6a4]
add eax, ebx
mov dword [esi + 0x698], edi
mov dword [esi + 0x69c], edi
cmp dword [eax + 0x14], edi
je 0x10048b6
mov ecx, dword [esi + 0x6a8]
cmp ecx, edi
je 0x10048b6
push eax
call fcn.01004e2b
push dword [esi + 0x6ac]
mov eax, dword [esi + 0x6a4]
add eax, ebx
push dword [eax + 0x23c]
mov ecx, dword [eax + 0x14]
push dword [eax + 0x238]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jge 0x10048b6
mov dword [esi + 0x658], 2
mov eax, dword [esi + 0x6a4]
mov ecx, dword [eax + ebx + 0x238]
add dword [esi + 0x690], ecx
mov eax, dword [eax + ebx + 0x23c]
push edi
adc dword [esi + 0x694], eax
push edi
push 0x401
push dword [esi + 0x680]
mov dword [esi + 0x698], edi
mov dword [esi + 0x69c], edi
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esi + 0x6b4], 1
je 0x1004929
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x208]
mov eax, dword [ebp - 0x208]
add ebx, 0x248
cmp eax, dword [esi + 0x6a0]
jl 0x100480b
jmp 0x1004939
mov dword [esi + 0x658], 4
mov dword [ebp - 0x20c], edi
pop ebx
cmp dword [esi + 0x6b4], edi
jne 0x1004960
push 0xffffffffffffffff
push dword [esi + 0x67c]
mov dword [esi + 0x6b4], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esi + 0x6b4], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20c]
pop edi
pop esi
call fcn.01005499
leave
ret
Function at 0x1004b7e
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x1007028]
mov dword [ebp - 4], eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.01004b1c
xor eax, eax
cmp dword [ebp + 0xc], eax
lea ecx, [ebp - 0x2cc]
je 0x1004bb3
push 0x301
jmp 0x1004bb8
push 0x300
push 0x2b4
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2cc]
call fcn.01005499
leave
ret 8

Function at 0x1004be0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1007028]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x414]
push eax
xor edx, edx
push edi
mov word [ebp - 0x20c], dx
call fcn.01004b1c
push edx
push edx
push edx
push edx
push edx
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
add edi, 0x41
movzx eax, di
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x6a
call fcn.01004d06
add esp, 0xc
mov edi, eax
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
inc eax
pop esi
call fcn.01005499
leave
ret 8

Function at 0x1004c73
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007028]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
inc edi
mov dword [esi], edi
call fcn.01004b1c
test eax, eax
je 0x1004cf1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
sub eax, ecx
je 0x1004cef
dec eax
je 0x1004ceb
dec eax
je 0x1004ce1
dec eax
je 0x1004cd9
dec eax
je 0x1004cd1
dec eax
je 0x1004cc9
dec eax
jne 0x1004cef
mov dword [esi], 6
jmp 0x1004ce7
mov dword [esi], 5
jmp 0x1004cf1
mov dword [esi], 4
jmp 0x1004cf1
mov dword [esi], 3
jmp 0x1004ce7
mov dword [esi], 2
mov eax, edi
jmp 0x1004cf3
mov dword [esi], edi
jmp 0x1004cf1
mov dword [esi], ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01005499
leave
ret 8

Function at 0x1005138
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
and word [esi], 0
lea eax, [ebp + 8]
push eax
push 0x10016a0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100518e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push 0x1001690
push dword [ebp + 8]
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], 0
jne 0x10051a0
push 0x1001688
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
leave
ret 8
Function at 0x10055b1
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001700
call fcn.01005864
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10055ec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10055ec
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1005604
cmp eax, 0x20b
je 0x10055f1
mov dword [ebp - 0x1c], edi
jmp 0x1005618
cmp dword [ecx + 0x84], 0xe
jbe 0x10055ec
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1005612
cmp dword [ecx + 0x74], 0xe
jbe 0x10055ec
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1007068], 0xffffffff
or dword [0x100706c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1007064]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1007060]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1007070], eax
call fcn.0100585c
cmp dword [0x1007030], edi
jne 0x1005673
push fcn.0100585c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01005845
push 0x1007010
push 0x100700c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100705c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1007058]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1007008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100239a
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x10056ea
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100571f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100589f
ret
Function at 0x100282e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push dword [ebp + 8]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 0xc
lea eax, [ebp + eax*2 - 0x100]
dec eax
dec eax
mov cx, word [eax]
cmp cx, 0x5c
je 0x100286f
cmp cx, 0x2f
jne 0x1002875
and word [eax], 0
jmp 0x100285e
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret 4

Function at 0x1002890
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
push esi
push dword [edi + 4]
mov esi, dword [sym.imp.ntdll.dll_wcscpy]
lea eax, [ebp - 0x108]
push eax
call esi
push dword [edi + 4]
call dword [sym.imp.ntdll.dll_wcslen]
lea eax, [ebp + eax*2 - 0x108]
push 0x10013e8
push eax
mov dword [ebp - 8], eax
call esi
add esp, 0x14
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x10028f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x1002a22
push ebx
mov ebx, dword [sym.imp.ntdll.dll_wcscmp]
lea eax, [ebp - 0x32c]
push 0x10013e4
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10029fa
lea eax, [ebp - 0x32c]
push 0x10013dc
push eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x10029fa
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.ntdll.dll__wcslwr]
push eax
push dword [ebp - 8]
call esi
mov eax, dword [edi + 0xc]
add esp, 0xc
test eax, eax
je 0x100295c
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ntdll.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x32c]
push eax
push dword [edi + 8]
call fcn.01002bf7
test eax, eax
je 0x10029fa
cmp dword [edi + 0xc], 0
je 0x10029d5
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x458]
push eax
lea edx, [ebp - 0x108]
call fcn.01002769
test eax, eax
je 0x10029d5
test byte [ebp - 0x358], 0x10
je 0x10029fa
lea eax, [ebp - 0x458]
push eax
call fcn.0100282e
test eax, eax
je 0x10029fa
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x458]
push eax
mov eax, dword [ebp + 8]
call fcn.010025d2
jmp 0x10029fa
lea eax, [ebp - 0x108]
push eax
call fcn.0100282e
test eax, eax
je 0x10029fa
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 0xc]
call fcn.010026a2
mov ebx, eax
test ebx, ebx
jne 0x1002a1f
lea eax, [ebp - 0x358]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test ebx, ebx
jne 0x10028f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1002a1f
mov eax, ebx
pop ebx
pop esi
leave
ret 8
Function at 0x1002e10
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10013f0
call fcn.01002fac
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1002e4b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002e4b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002e63
cmp eax, 0x20b
je 0x1002e50
mov dword [ebp - 0x1c], edi
jmp 0x1002e77
cmp dword [ecx + 0x84], 0xe
jbe 0x1002e4b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002e71
cmp dword [ecx + 0x74], 0xe
jbe 0x1002e4b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10055a0], 0xffffffff
or dword [0x10055a4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10042e8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10042e4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10055a8], eax
call fcn.01002fa8
cmp dword [0x1004254], edi
jne 0x1002ed2
push fcn.01002fa8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01002f96
push 0x1001114
push 0x1001110
call sub.msvcrt.dll__initterm
mov eax, dword [0x10042e0]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x10042dc]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x100110c
push 0x1001108
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001489
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002f49
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002f7e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002fe5
ret
Function at 0x401870
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
jne 0x4018a7
push 0x144
push 0x48c1ac
push str.pBufSize
push str.CHECKF
push 0x48c174
call fcn.00401000
add esp, 0x14
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
mov dword [ebx], 0
mov eax, dword [esi + 0x17f8]
cmp eax, 2
je 0x4018c0
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
mov al, byte [ebp + 0xc]
push edi
test al, al
je 0x401946
mov ecx, dword [esi + 0x1c]
cmp ecx, 0xffffffff
je 0x401946
mov eax, dword [esi + 0x820]
cmp eax, 0x800
jge 0x401946
mov edx, 0x800
push 0
sub edx, eax
lea eax, [eax + esi + 0x20]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x40192c
mov eax, dword [esi + 0x820]
mov ecx, dword [esi + 0x1800]
push edi
mov edx, dword [ecx]
lea eax, [eax + esi + 0x20]
push eax
call dword [edx + 0xc]
mov eax, dword [esi + 0x820]
add eax, edi
pop edi
mov dword [esi + 0x820], eax
mov ecx, eax
lea eax, [esi + 0x20]
mov dword [ebx], ecx
pop esi
pop ebx
pop ebp
ret 8
je 0x40193f
test edi, edi
jge 0x401946
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x401946
mov ecx, esi
call fcn.00401a40
mov ecx, dword [esi + 0x820]
lea eax, [esi + 0x20]
pop edi
mov dword [ebx], ecx
pop esi
pop ebx
pop ebp
ret 8

Function at 0x401b50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, ecx
push edi
cmp dword [ebx + 0x17f8], 2
jne 0x401c00
mov eax, dword [ebx + 0x17f4]
test eax, eax
jne 0x401b70
pop edi
mov al, 1
pop ebx
ret
push 0
lea edi, [ebx + 0x824]
push eax
mov eax, dword [ebx + 0x1c]
push edi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x401bec
mov ecx, dword [ebx + 0x17f4]
sub ecx, eax
test ecx, ecx
jle 0x401bab
mov edx, ecx
push esi
lea esi, [eax + ebx + 0x824]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov ecx, dword [ebx + 0x17f4]
sub ecx, eax
mov dword [ebx + 0x17f4], ecx
jns 0x401bdc
push 0x1b8
push 0x48c1ac
push str.m_nSendLen___0
push str.ASSERT
push 0x48c174
call fcn.00401000
add esp, 0x14
mov ecx, dword [ebx + 0x17f4]
xor eax, eax
test ecx, ecx
pop edi
pop ebx
sete al
ret
push str.SOCKET_BUF
call fcn.00401000
add esp, 4
mov ecx, ebx
call fcn.00401a40
pop edi
xor al, al
pop ebx
ret
Function at 0x403860
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4774f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov al, byte [0x497a78]
push ebx
push esi
push edi
test al, al
mov dword [ebp - 0x10], esp
jne 0x4039c4
call fcn.00476129
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.00470f1b
push str..exe
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.004710ae
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov edi, eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4038da
push esi
call fcn.0046f712
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 0x24], ebx
jne 0x4038ff
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00470ead
mov eax, 0x497960
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
push ebx
push esi
push edx
push edi
mov byte [ebp - 4], 1
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x403924
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 0x481b18
push eax
call fcn.0044a502
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x28]
push ecx
push edx
push 0x48ca8c
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40397e
mov eax, dword [ebp - 0x18]
mov esi, 0x34
cmp eax, esi
je 0x40396f
push 0x21e
push 0x48c9a4
push str.unInfoLen__sizeof_g_FileInfo_
push str.ASSERT
push 0x48c174
call fcn.00401000
mov eax, dword [ebp - 0x18]
add esp, 0x14
cmp eax, esi
jne 0x40397e
mov esi, dword [ebp - 0x28]
mov ecx, 0xd
mov edi, 0x497a40
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.0046f73b
mov eax, dword [0x497a48]
add esp, 4
mov ecx, eax
push str.16:44:31
and ecx, 0xffff
push str.Feb__1_2008
push ecx
shr eax, 0x10
push eax
push str.JehadNpcServer_beta_V_d._d_____s__s_
push 0x497a78
call fcn.00449cf1
add esp, 0x18
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.00470ead
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 0x497a78
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4041a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push esi
push 0x41c
call fcn.0046f712
mov esi, eax
add esp, 4
test esi, esi
je 0x404300
mov al, byte [esp + 8]
mov cl, byte [esp + 0xc]
lea edx, [esi + 0x408]
mov byte [esi + 0x40a], cl
mov cl, byte [esp + 0x14]
push ebx
mov byte [edx], al
mov al, byte [esp + 0x14]
mov byte [esi + 0x40b], al
mov al, byte [esp + 0x1c]
mov byte [esi + 0x409], cl
mov cl, byte [esp + 0x20]
mov byte [esi + 0x40c], al
mov al, byte [esp + 0x24]
mov byte [esi + 0x40e], cl
mov cl, byte [esp + 0x28]
mov byte [esi + 0x40f], al
mov eax, dword [edx]
push ebp
lea ebp, [esi + 4]
push edi
mov byte [esi + 0x40d], cl
mov dword [esi + 0x410], eax
mov dword [esi + 0x414], eax
mov ecx, 0x80
xor eax, eax
mov edi, ebp
mov dword [esi + 0x418], 1
mov dword [esi], 0x47d978
mov dword [esp + 0x18], 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov al, byte [ecx + 1]
xor edi, edi
mov byte [esp + 0x14], al
mov byte [edi + ebp], al
mov eax, dword [esp + 0x14]
xor edx, edx
and eax, 0xff
mov dl, byte [ecx]
xor ebx, ebx
imul edx, eax
mov bl, byte [ecx + 2]
add edx, ebx
imul edx, eax
xor eax, eax
mov al, byte [ecx + 3]
add eax, edx
and eax, 0x800000ff
jns 0x40427e
dec eax
or eax, 0xffffff00
inc eax
inc edi
mov byte [esp + 0x14], al
cmp edi, 0x100
jl 0x40424c
mov eax, dword [esp + 0x18]
add ecx, 4
add ebp, 0x100
dec eax
mov dword [esp + 0x18], eax
jne 0x404243
mov ecx, 0x80
xor eax, eax
lea edi, [esi + 0x204]
rep stosd dword es:[edi], eax
mov ecx, 0xfffffefc
lea eax, [esi + 0x104]
sub ecx, esi
mov edx, dword [eax - 0x100]
mov edi, dword [eax]
xor edx, edi
mov dword [eax + 0x100], edx
mov edx, dword [eax - 0x100]
mov ebp, dword [eax]
add eax, 4
and edx, ebp
mov dword [eax + 0x1fc], edx
lea edx, [ecx + eax]
cmp edx, 0x100
jl 0x4042bb
xor eax, eax
pop edi
mov word [esi + 0x406], ax
mov word [esi + 0x404], ax
pop ebp
mov eax, esi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x404a10
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
mov dword [esi], 0x47d998
test eax, eax
je 0x404a56
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404a50
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.Hard_terminate_thread__may_be_lost_some_resources.
call fcn.004021e0
add esp, 4
mov ecx, dword [esi + 4]
push ecx
call edi
mov esi, dword [esi + 8]
test esi, esi
je 0x404a60
push esi
call edi
pop edi
pop esi
ret
Function at 0x404ac0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x404b4b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 8], eax
jne 0x404af9
push str.Create_close_thread_event_failed.
call fcn.00401000
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov cl, byte [ebp + 8]
lea eax, [ebp - 4]
neg cl
sbb ecx, ecx
push eax
and ecx, 0xfffffffc
add ecx, 4
push ecx
push esi
push 0x404c00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
je 0x404b2b
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Create_thread_failed.
call fcn.00401000
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push str.Cant_create_thread_since_already_created.
call fcn.00401000
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x404b70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x404bc5
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x404bcc
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 8]
mov dword [esi + 4], 0
push ecx
call edi
mov dword [esi + 8], 0
pop edi
mov al, 1
pop esi
pop ebp
ret 4
xor al, al
pop esi
pop ebp
ret 4