joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462290
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4873b8]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], 4
je 0x4623b4
mov ebp, dword [0x4a30f4]
mov ebx, dword [esp + 0x124]
test ebp, ebp
je 0x4622f8
mov esi, 0x4a3170
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4622eb
test cl, cl
je 0x4622e7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4622eb
add eax, 2
add esi, 2
test cl, cl
jne 0x4622c7
xor eax, eax
jmp 0x4622f0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46237c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4a3170
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
je 0x462325
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x4854a0]
mov edx, dword [str.Jazz_Jackrabbit_2]
mov eax, dword [str.Epic_MegaGames]
push ebx
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str.Software_s_s_s_s
push ecx
call fcn.0047aba0
add esp, 0x18
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push 0x4a30f4
push 0
push 0xf003f
push 0
push 0x4a0dc0
push 0
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebp, dword [0x4a30f4]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x12c]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4623b4
cmp dword [esp + 0x10], 4
jne 0x4623b4
mov eax, dword [esp + 0x18]
cmp eax, 3
mov eax, dword [esp + 0x14]
je 0x4623bb
mov eax, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x4623d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
mov ebp, dword [0x4a30f4]
push esi
push edi
test ebp, ebp
je 0x462423
mov esi, 0x4a3170
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x462416
test cl, cl
je 0x462412
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x462416
add eax, 2
add esi, 2
test cl, cl
jne 0x4623f2
xor eax, eax
jmp 0x46241b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4624a7
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4a3170
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
je 0x462450
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x4854a0]
mov edx, dword [str.Jazz_Jackrabbit_2]
mov eax, dword [str.Epic_MegaGames]
push ebx
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str.Software_s_s_s_s
push ecx
call fcn.0047aba0
add esp, 0x18
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push 0x4a30f4
push 0
push 0xf003f
push 0
push 0x4a0dc0
push 0
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebp, dword [0x4a30f4]
mov edx, dword [esp + 0x120]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x120]
push edx
push 1
push eax
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x4624e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
mov ebp, dword [0x4a30f4]
push esi
push edi
test ebp, ebp
je 0x462533
mov esi, 0x4a3170
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x462526
test cl, cl
je 0x462522
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x462526
add eax, 2
add esi, 2
test cl, cl
jne 0x462502
xor eax, eax
jmp 0x46252b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4625b7
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4a3170
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebp, ebp
rep movsb byte es:[edi], byte [esi]
je 0x462560
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x4854a0]
mov edx, dword [str.Jazz_Jackrabbit_2]
mov eax, dword [str.Epic_MegaGames]
push ebx
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str.Software_s_s_s_s
push ecx
call fcn.0047aba0
add esp, 0x18
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push 0x4a30f4
push 0
push 0xf003f
push 0
push 0x4a0dc0
push 0
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebp, dword [0x4a30f4]
mov edx, dword [esp + 0x11c]
lea ecx, [esp + 0x120]
push 4
push ecx
push 3
push 0
push edx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x4625e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4a2bb4]
push ebx
push esi
push edi
test eax, eax
je 0x462610
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
div dword [0x4a24c4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x462616
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [0x4a2f38]
mov dword [ebp - 4], eax
mov eax, dword [0x4a2bb4]
test eax, eax
je 0x462646
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
div dword [0x4a24c4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
jmp 0x46264c
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [0x4a2f38]
mov cl, byte [0x488150]
sub eax, edx
xor edx, edx
cmp cl, 5
mov edi, eax
sete dl
mov esi, edx
test esi, esi
je 0x462671
xor ecx, ecx
call fcn.00464350
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [0x4a30d4]
push 0
push eax
mov eax, dword [0x4a30c8]
and edx, 0xffff
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test esi, esi
mov ebx, eax
je 0x46269f
call fcn.00464540
mov eax, dword [0x4a2bb4]
test eax, eax
je 0x4626c6
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
div dword [0x4a24c4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
jmp 0x4626cc
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [0x4a2f38]
mov ecx, dword [0x4a30e8]
sub eax, edi
sub eax, edx
add ecx, eax
mov eax, dword [0x4a2bb4]
test eax, eax
mov dword [0x4a30e8], ecx
je 0x46270b
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
div dword [0x4a24c4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
jmp 0x462711
call dword [sym.imp.WINMM.dll_timeGetTime]
mov esi, dword [ebp - 4]
mov edx, dword [0x4a2f38]
mov ecx, dword [0x4a30e8]
sub eax, esi
sub eax, edx
pop edi
add ecx, eax
mov eax, ebx
pop esi
mov dword [0x4a30e8], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462740
Capabilities:
Get file version info

Disassembly:
sub esp, 0x3d0
push str.VID:_Checking_for_available_video_modes
call fcn.0045d3a0
mov eax, dword [0x488184]
add esp, 4
cmp eax, 0xffffffff
jne 0x462962
push edi
mov ecx, 0x5b
xor eax, eax
lea edi, [esp + 0x268]
rep stosd dword es:[edi], eax
mov ecx, 0x5b
lea edi, [esp + 0xfc]
rep stosd dword es:[edi], eax
mov ecx, 0x1b
lea edi, [esp + 0x90]
push esi
push str.ddraw.dll
rep stosd dword es:[edi], eax
mov dword [esp + 0x98], 0x6c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4a3d60], eax
je 0x46291f
push str.DirectDrawCreate
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x4a3d60]
mov dword [0x4a3d5c], eax
lea eax, [esp + 0x100]
push 0x103
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x100]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x46288b
lea edi, [eax + 0x20]
push edi
call fcn.00459ed0
add esp, 4
mov esi, eax
lea ecx, [esp + 0x100]
push esi
push edi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
lea edx, [esp + 0xc]
lea eax, [esp + 8]
push edx
push eax
push str.StringFileInfo040904B0FileVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x462848
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push str.StringFileInfo040904E4FileVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x462882
mov ax, word [0x4891e0]
mov edx, dword [esp + 0xc]
mov cl, byte [0x4891e2]
mov word [esp + 0x14], ax
mov eax, dword [esp + 8]
push edx
mov byte [esp + 0x1a], cl
push eax
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esp + ecx + 0x1c]
push ecx
call fcn.0047b120
add esp, 0xc
push esi
call fcn.00459ff0
add esp, 4
mov eax, dword [0x4a3d60]
test eax, eax
je 0x46291f
mov eax, dword [0x4a3d5c]
test eax, eax
je 0x46291f
push 0
push 0x4a4210
push 0
call eax
test eax, eax
jne 0x46291f
mov eax, dword [0x4a4210]
push 0x4a4214
push 0x483060
push eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
jne 0x46291f
mov eax, dword [0x4a4214]
lea edx, [esp + 0x94]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
jne 0x46291f
mov eax, dword [esp + 0x270]
mov dword [0x4a420c], 0x200000
test eax, 0x80000000
mov eax, str.__DMA_
jne 0x462901
mov eax, 0x4a0dc0
push eax
push 0
lea eax, [esp + 0x1c]
push 2
push eax
push str.VID:_____DirectDraw_s_found__estimated__u._uMB_Video_Mem_s
call fcn.0045d3a0
add esp, 0x14
mov eax, 1
jmp 0x462945
push str.VID:_____DirectDraw_not_found___Disabled
call fcn.0045d3a0
mov ecx, dword [0x4a3d60]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4a3d60], 0
xor eax, eax
pop esi
pop edi
mov dword [0x488184], eax
mov dword [0x48817c], 0
call fcn.004629c0
add esp, 0x3d0
ret
push str.VID:_DirectDraw_check_skipped_on_user_request
call fcn.0045d3a0
add esp, 4
call fcn.004629c0
add esp, 0x3d0
ret
Function at 0x464080
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [0x4a4191]
sub esp, 0x3c
cmp al, 1
push ebp
push esi
push edi
je 0x4640f8
mov ecx, dword [0x4a41ac]
test ecx, ecx
jne 0x4640f8
test al, al
jne 0x4642cc
mov al, byte [0x488150]
mov ecx, 0xf
mov esi, 0x4a4170
lea edi, [esp + 0xc]
cmp al, 4
rep movsd dword es:[edi], dword [esi]
jne 0x4640c1
mov byte [esp + 0x2c], 2
jmp 0x4640ca
cmp al, 5
jne 0x4640ca
mov byte [esp + 0x2c], 1
mov eax, dword [0x4a41c0]
test eax, eax
je 0x4640e4
lea ecx, [esp + 0xc]
push ecx
call eax
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x3c
ret
lea edx, [esp + 0xc]
push edx
call fcn.00463340
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x3c
ret
or dword [0x4a41d0], 1
call fcn.0045c8d0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
mov ebp, eax
mov eax, dword [0x4a4214]
test eax, eax
mov dword [0x4a3130], 1
je 0x464167
cmp byte [0x488150], 5
jne 0x464167
mov eax, dword [0x4a30d4]
push 0
push eax
call esi
mov ecx, dword [0x4a30d4]
push 0x300
push 0xffffffffffffffec
push ecx
call edi
mov eax, dword [0x4a4214]
mov ecx, dword [0x4a30d4]
push 8
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x50]
mov eax, dword [0x4a4214]
push eax
mov edx, dword [eax]
call dword [edx + 0x28]
mov eax, dword [0x4a30d4]
push 2
push eax
call esi
mov edx, dword [0x4a41d0]
mov al, byte [0x4a6e8b]
xor ecx, ecx
and edx, 0xfffffffe
mov cl, al
mov dword [0x4a41d0], edx
test al, al
mov dword [0x4a41dc], ecx
je 0x464198
call fcn.004711ad
push 1
push 0
push 0
push 0xfff0
push 0xf120
push 0x112
call fcn.0045d260
mov ecx, dword [0x4a41d0]
mov al, byte [0x488150]
add esp, 0x18
or ecx, 2
cmp al, 5
mov dword [0x4a41d0], ecx
jne 0x4641e4
mov edx, dword [0x4a30d4]
push 8
push 0xffffffffffffffec
push edx
call edi
mov eax, dword [0x4a30d4]
push 9
push eax
call esi
mov eax, dword [0x4a4214]
mov esi, dword [0x4a41e0]
test eax, eax
je 0x464290
cmp byte [0x488150], 5
jne 0x464290
mov edx, dword [0x4a41c8]
mov ecx, 0x11
test edx, edx
jne 0x464218
mov ecx, 0x13
mov edx, dword [eax]
push ecx
mov ecx, dword [0x4a30d4]
push ecx
push eax
call dword [edx + 0x50]
mov ecx, dword [0x48813c]
mov eax, dword [0x4a4214]
push 0
and ecx, 0xff
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [0x488138]
push ecx
mov ecx, dword [0x488134]
push ecx
push eax
call dword [edx + 0x54]
mov ecx, dword [0x4a41e8]
call fcn.00464650
call fcn.00464aa0
test esi, esi
je 0x464272
mov ecx, esi
call fcn.00464650
mov esi, dword [esi + 0x44]
test esi, esi
jne 0x464264
mov ecx, dword [0x4a41ec]
test ecx, ecx
je 0x464281
call fcn.00464650
mov ecx, dword [0x4a41f0]
test ecx, ecx
je 0x464290
call fcn.00464650
mov eax, dword [0x4a41dc]
test eax, eax
je 0x46429e
call fcn.00466150
mov esi, dword [0x4a41d0]
mov dword [0x4a3130], 0
and esi, 0xfffffffd
mov dword [0x4a41d0], esi
call fcn.0045c8d0
mov ecx, dword [0x4a30e8]
sub eax, ebp
add ecx, eax
mov dword [0x4a30e8], ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret
Function at 0x464350
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
mov ebx, ecx
push esi
mov ecx, dword [0x4a41d0]
mov esi, 1
or ecx, esi
push edi
mov dword [0x4a41d0], ecx
call fcn.0045c8d0
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
mov ebp, eax
mov eax, dword [0x4a4214]
mov dword [0x4a3130], esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4643cd
cmp byte [0x488150], 5
jne 0x4643cd
mov eax, dword [0x4a30d4]
push 0
push eax
call esi
mov ecx, dword [0x4a30d4]
push 0x300
push 0xffffffffffffffec
push ecx
call edi
mov eax, dword [0x4a4214]
mov ecx, dword [0x4a30d4]
push 8
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x50]
mov eax, dword [0x4a4214]
push eax
mov edx, dword [eax]
call dword [edx + 0x28]
mov eax, dword [0x4a30d4]
push 2
push eax
call esi
mov edx, dword [0x4a41d0]
mov al, byte [0x4a6e8b]
xor ecx, ecx
and edx, 0xfffffffe
mov cl, al
mov dword [0x4a41d0], edx
test al, al
mov dword [0x4a41dc], ecx
je 0x4643fe
call fcn.004711ad
test ebx, ebx
je 0x464522
push 1
push 0
push 0
push 0xfff0
push 0xf120
push 0x112
call fcn.0045d260
mov ecx, dword [0x4a41d0]
mov al, byte [0x488150]
add esp, 0x18
or ecx, 2
cmp al, 5
mov dword [0x4a41d0], ecx
jne 0x464452
mov edx, dword [0x4a30d4]
push 8
push 0xffffffffffffffec
push edx
call edi
mov eax, dword [0x4a30d4]
push 9
push eax
call esi
mov eax, dword [0x4a4214]
mov esi, dword [0x4a41e0]
test eax, eax
je 0x4644fe
cmp byte [0x488150], 5
jne 0x4644fe
mov edx, dword [0x4a41c8]
mov ecx, 0x11
test edx, edx
jne 0x464486
mov ecx, 0x13
mov edx, dword [eax]
push ecx
mov ecx, dword [0x4a30d4]
push ecx
push eax
call dword [edx + 0x50]
mov ecx, dword [0x48813c]
mov eax, dword [0x4a4214]
push 0
and ecx, 0xff
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [0x488138]
push ecx
mov ecx, dword [0x488134]
push ecx
push eax
call dword [edx + 0x54]
mov ecx, dword [0x4a41e8]
call fcn.00464650
call fcn.00464aa0
test esi, esi
je 0x4644e0
mov ecx, esi
call fcn.00464650
mov esi, dword [esi + 0x44]
test esi, esi
jne 0x4644d2
mov ecx, dword [0x4a41ec]
test ecx, ecx
je 0x4644ef
call fcn.00464650
mov ecx, dword [0x4a41f0]
test ecx, ecx
je 0x4644fe
call fcn.00464650
mov eax, dword [0x4a41dc]
test eax, eax
je 0x46450c
call fcn.00466150
mov eax, dword [0x4a41d0]
mov dword [0x4a3130], 0
and al, 0xfd
mov dword [0x4a41d0], eax
call fcn.0045c8d0
mov ecx, dword [0x4a30e8]
sub eax, ebp
pop edi
add ecx, eax
pop esi
pop ebp
mov dword [0x4a30e8], ecx
pop ebx
ret
Function at 0x466c30
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
je 0x466cc2
mov edi, dword [esp + 0x14]
test edi, edi
je 0x466cc2
test byte [esi], 3
je 0x466cc2
test byte [esi + 4], 2
jne 0x466cc2
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x466c72
cmp dword [esp + 0xc], edi
je 0x466cc2
mov al, byte [esi + 4]
test al, 1
je 0x466c81
or al, 2
mov byte [esi + 4], al
pop edi
pop esi
ret
push 0
push 0x1fe
push 0x4a43d8
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x4a43d8
push 0x4a45d8
push str.fileWrite
push str.Fatal_Error_in__s__last_accessed_file__s__error_reason:__s
call fcn.0045c690
add esp, 0x10
pop edi
pop esi
ret

Function at 0x466cd0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
je 0x466d62
mov eax, dword [esi]
and eax, 3
cmp al, 1
je 0x466d62
test byte [esi + 4], 2
jne 0x466d62
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 8]
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x466d12
cmp dword [esp + 0xc], edi
je 0x466d62
mov al, byte [esi + 4]
test al, 1
je 0x466d21
or al, 2
mov byte [esi + 4], al
pop edi
pop esi
ret
push 0
push 0x1fe
push 0x4a43d8
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x4a43d8
push 0x4a45d8
push str.fileRead
push str.Fatal_Error_in__s__last_accessed_file__s__error_reason:__s
call fcn.0045c690
add esp, 0x10
pop edi
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x466e93
xor eax, eax
ret
not al
and eax, 0xff
shr eax, 4
and eax, 1
ret
Function at 0x467800
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
je 0x467975
cmp byte [ebp + 8], 5
jae 0x467975
mov al, byte [ebp + 9]
test al, al
je 0x46784b
mov dword [0x4a4824], 0x17
xor ecx, ecx
mov eax, 0x489a08
cmp byte [eax], 0x17
je 0x467998
add eax, 8
inc ecx
cmp eax, 0x489a20
jb 0x467832
jmp 0x4679a4
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jle 0x46796b
mov edi, dword [esp + 0x18]
mov edx, dword [ebp + 4]
push 0
push ebx
push edi
push edx
call sub.WSOCK32.dll_send
mov esi, eax
cmp esi, ebx
je 0x46796b
cmp esi, 0xffffffff
jne 0x4678dd
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4678d8
mov eax, dword [0x4a47fc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebx + 0xc]
push ecx
call fcn.00459ed0
mov ecx, ebx
mov esi, edi
mov edx, ecx
lea edi, [eax + 0xc]
shr ecx, 2
mov dword [eax + 4], ebx
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4678bd
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x1c], eax
test ecx, ecx
jne 0x4678ca
mov dword [ebp + 0x18], eax
mov eax, dword [0x4a47fc]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4678e5
cmp esi, 0xffffffff
je 0x4678f7
add edi, esi
sub ebx, esi
mov dword [esp + 0x18], edi
test ebx, ebx
jg 0x467857
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
xor edx, edx
mov ecx, 0x489894
cmp dword [ecx], esi
je 0x467917
add ecx, 0xc
inc edx
cmp ecx, 0x489a08
jb 0x467905
jmp 0x467936
lea ecx, [edx + edx*2]
shl ecx, 2
xor eax, eax
mov al, byte [ecx + 0x489890]
mov ecx, dword [ecx + 0x489898]
mov dword [0x4a4824], eax
mov dword [0x4a4820], ecx
cmp edx, 0x1f
jne 0x467962
push esi
push str.Unknown_Error__u
push 0x4a4770
call fcn.0047aba0
add esp, 0xc
mov dword [0x4a4824], 1
mov dword [0x4a4820], 0x4a4770
mov edx, dword [0x4a4820]
push edx
jmp 0x4679ab
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [0x4a4824], 0x16
xor ecx, ecx
mov eax, 0x489a08
cmp byte [eax], 0x16
je 0x467998
add eax, 8
inc ecx
cmp eax, 0x489a20
jb 0x467986
jmp 0x4679a4
mov eax, dword [ecx*8 + 0x489a0c]
mov dword [0x4a4820], eax
mov ecx, dword [0x4a4820]
push ecx
push str.netWrite
push str.NET:__s_failed:__s
call fcn.0045d3a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x467b70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
mov dx, word [eax]
mov eax, dword [ebp + 0x10]
test eax, eax
push edi
mov dword [ebp - 8], edx
jne 0x467b97
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
mov eax, dword [esi]
mov ebx, dword [esi + 4]
test eax, 0xfffe
jne 0x467bf4
cmp al, 1
je 0x467bcd
mov al, 6
mov dword [edi + 4], ebx
xor ebx, ebx
mov ecx, dword [esi + 8]
mov bh, byte [esi + 0xc]
mov dword [edi], eax
mov bl, byte [esi + 0xd]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
jmp 0x467bf4
mov al, byte [esi + 3]
mov bl, byte [esi + 5]
mov bh, byte [esi + 4]
mov ah, byte [esi + 2]
shl eax, 0x10
xor ecx, ecx
shl ebx, 0x10
mov al, 2
mov bl, byte [esi + 7]
mov dword [edi + 8], ecx
mov bh, byte [esi + 6]
mov dword [edi + 0xc], ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
mov edx, dword [edx*4 + 0x4a4800]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push 0x10
push eax
mov eax, dword [edx + 4]
push 0
push ecx
push esi
push eax
call sub.WSOCK32.dll_sendto
mov edi, dword [ebp + 0x10]
mov ebx, eax
cmp ebx, edi
jne 0x467c29
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xffffffff
jne 0x467d58
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x467ccb
mov ecx, dword [0x4a47fc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [edi + 0x18]
push edx
call fcn.00459ed0
mov ecx, edi
mov dword [eax + 0x14], edi
mov edx, ecx
lea edi, [eax + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x18]
lea ecx, [eax + 4]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x14]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 8]
mov ecx, dword [edx*4 + 0x4a4810]
test ecx, ecx
je 0x467c9d
mov dword [ecx], eax
mov ecx, dword [edx*4 + 0x4a4808]
mov dword [edx*4 + 0x4a4810], eax
test ecx, ecx
jne 0x467cb6
mov dword [edx*4 + 0x4a4808], eax
mov eax, dword [0x4a47fc]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xffffffff
jne 0x467d58
call sub.WSOCK32.dll_WSAGetLastError
mov esi, eax
xor edx, edx
mov ecx, 0x489894
cmp dword [ecx], esi
je 0x467cf4
add ecx, 0xc
inc edx
cmp ecx, 0x489a08
jb 0x467ce2
jmp 0x467d13
lea ecx, [edx + edx*2]
shl ecx, 2
xor eax, eax
mov al, byte [ecx + 0x489890]
mov ecx, dword [ecx + 0x489898]
mov dword [0x4a4824], eax
mov dword [0x4a4820], ecx
cmp edx, 0x1f
jne 0x467d3f
push esi
push str.Unknown_Error__u
push 0x4a4770
call fcn.0047aba0
add esp, 0xc
mov dword [0x4a4824], 1
mov dword [0x4a4820], 0x4a4770
mov edx, dword [0x4a4820]
push edx
push str.netSend
push str.NET:__s_failed:__s
call fcn.0045d3a0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret