joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4525f0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x9135b8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
xor ebx, ebx
mov al, byte [esi]
and edx, 0xff
xor eax, edx
xor edx, edx
mov dl, byte [esi + 1]
mov bl, ch
shl eax, 8
xor edx, ebx
xor ecx, ecx
mov cl, byte [esi + 2]
or eax, edx
xor edx, edx
push edi
mov dl, byte [0x9135ba]
xor ebp, ebp
shl eax, 8
xor ecx, edx
xor edx, edx
mov dl, byte [0x9135bb]
or eax, ecx
xor ecx, ecx
mov cl, byte [esi + 3]
xor ecx, edx
mov edx, dword [esp + 0x18]
shl eax, 8
or eax, ecx
lea edi, [edx - 8]
xor ecx, ecx
test edi, edi
jle 0x452664
xor edx, edx
mov dl, byte [ecx + esi + 8]
inc edx
imul edx, ecx
add ebp, edx
inc ecx
cmp ecx, edi
jl 0x452653
mov ecx, dword [0x9135bc]
mov edx, dword [esi + 4]
xor ecx, ebp
cmp ecx, edx
je 0x45267a
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
mov edi, 3
xor edx, edx
xor ecx, ecx
mov dl, byte [edi + esi]
test eax, eax
jle 0x45269a
mov bl, byte [ecx + esi + 8]
xor bl, dl
inc edx
mov byte [ecx + esi + 8], bl
inc ecx
cmp ecx, eax
jl 0x45268a
dec edi
jns 0x45267f
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret

Function at 0x454c50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 8]
cmp eax, 0xea60
jbe 0x454cbe
push edi
mov edi, dword [ebx + 0x28]
test edi, edi
je 0x454cb4
push esi
mov esi, dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x20]
mov edi, dword [edi + 0xc]
sub eax, edx
cmp eax, 0x493e0
jb 0x454caf
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 0xc]
push esi
call dword [eax + 0x14]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x454ca2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi + 0x1c], 0
test esi, esi
je 0x454caf
push esi
call fcn.004680f8
add esp, 4
test edi, edi
jne 0x454c6c
pop esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 8], eax
pop edi
pop ebx
ret
Function at 0x456340
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
sub esp, 0x154
mov eax, dword [esp + 0x158]
push ebp
push eax
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x18]
push ecx
push str.SCREEN.bmp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x456401
push esi
push edi
mov edi, str.SCREEN
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
mov dword [esp + 0xd], edx
push 0x2e
not ecx
mov dword [esp + 0x15], edx
dec ecx
mov dword [esp + 0x19], edx
mov byte [esp + 0x10], 0
lea esi, [esp + ecx + 0x50]
mov word [esp + 0x1d], dx
push esi
mov byte [esp + 0x23], dl
call fcn.00468bf0
mov ecx, eax
lea edi, [esp + 0x14]
sub ecx, esi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.004681f9
add esp, 0xc
cmp eax, ebp
jl 0x4563e7
lea edx, [esp + 0xc]
push edx
call fcn.004681f9
mov ebp, eax
add esp, 4
inc ebp
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x456379
pop edi
pop esi
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x160]
push ebp
push edx
push str._sSCREEN_04d.bmp
push eax
call fcn.0046811c
add esp, 0x10
pop ebp
add esp, 0x154
ret
Function at 0x456430
Capabilities:
Get common file path

Disassembly:
sub esp, 0x8c0
push ebx
mov ebx, dword [esp + 0x8c8]
push edi
push 0
mov eax, dword [ebx]
lea ecx, [esp + 0x28]
push 1
push ecx
push 0
push ebx
mov dword [esp + 0x38], 0x7c
call dword [eax + 0x64]
mov edx, dword [esp + 0x2c]
imul edx, dword [esp + 0x30]
shl edx, 2
push edx
call fcn.00468b1a
mov edi, eax
add esp, 4
test edi, edi
jne 0x456486
mov eax, dword [ebx]
push edi
push ebx
call dword [eax + 0x80]
pop edi
pop ebx
add esp, 0x8c0
ret
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00456600
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x88]
add esp, 0xc
sar edx, 1
cmp eax, 0x1f
mov dword [esp + 0x34], edx
je 0x4564de
cmp eax, 0x7c00
je 0x4564d1
cmp eax, 0xf800
jne 0x4564ec
lea ecx, [esp + 0x24]
push edi
push ecx
call fcn.00456670
jmp 0x4564e9
lea edx, [esp + 0x24]
push edi
push edx
call fcn.004566e0
jmp 0x4564e9
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00456730
add esp, 8
lea ecx, [esp + 0x24]
push edi
push ecx
call fcn.004567b0
lea edx, [esp + 0x1c]
push 0xe
push edx
call fcn.00456860
mov dword [esp + 0x18], eax
lea eax, [esp + 0xb0]
push 0x28
push eax
call fcn.00456860
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x24], eax
imul ecx, dword [esp + 0x48]
shl ecx, 1
push ecx
push edi
call fcn.00456860
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8f0]
add esp, 0x20
test eax, eax
jne 0x456563
lea edx, [esp + 0x4c8]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0xc8]
lea ecx, [esp + 0x4c8]
push eax
push ecx
jmp 0x45656c
lea edx, [esp + 0xc8]
push edx
push eax
call fcn.00456340
add esp, 8
lea eax, [esp + 0xc8]
push esi
push 0x47c86c
push eax
call fcn.0046926d
mov esi, eax
add esp, 8
test esi, esi
je 0x4565e1
push esi
push 0xe
lea ecx, [esp + 0x20]
push 1
push ecx
call fcn.0046951b
push esi
push 0x28
lea edx, [esp + 0xbc]
push 1
push edx
call fcn.0046951b
mov eax, dword [esp + 0x50]
push esi
imul eax, dword [esp + 0x58]
shl eax, 1
push eax
push 1
push edi
call fcn.0046951b
push esi
push 0xc
lea ecx, [esp + 0x44]
push 1
push ecx
call fcn.0046951b
add esp, 0x40
push esi
call fcn.004691c5
add esp, 4
push edi
call fcn.004680f8
mov edx, dword [ebx]
add esp, 4
push 0
push ebx
call dword [edx + 0x80]
pop esi
pop edi
pop ebx
add esp, 0x8c0
ret
Function at 0x4575d0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
push 0
call fcn.00465d50
xor eax, eax
mov al, byte [esi + 0x930]
cmp eax, 4
ja case.default.0x4575ec
jmp dword [eax*4 + 0x457778]
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00457790
jmp case.default.0x4575ec
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00457ab0
jmp case.default.0x4575ec
mov eax, dword [0x8ab7c4]
lea edi, [esi + 0x780]
push eax
mov ecx, edi
call fcn.0045c900
test eax, eax
jne case.default.0x4575ec
mov ecx, edi
call fcn.0045be20
push 0
push 0
mov ecx, esi
mov byte [esi + 0x930], 2
mov dword [esi + 0x1160], 1
mov dword [esi + 0x1164], 0
call fcn.004584c0
mov edx, dword [0x8aa48c]
push 0x8b187c
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x8aa48c]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [0x8ab7f4]
mov edx, dword [0x8ab7f0]
mov eax, dword [0x8aa48c]
push 1
push 0xd
add ecx, 0x195
push 0x4b
add edx, 0x120
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [0x8aa48c]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
lea edx, [esi + 0x10bc]
push 0
push edx
mov ecx, esi
call fcn.00458440
push 4
push 0
mov ecx, esi
call fcn.00458b20
push 0
push 0
push 0
lea eax, [esi + 0x10fc]
push 1
push eax
mov ecx, esi
call fcn.00458440
push 4
push 1
mov ecx, esi
call fcn.00458b20
jmp case.default.0x4575ec
mov eax, dword [0x8ab7c4]
lea ecx, [esi + 0x780]
push eax
call fcn.0045c900
test eax, eax
jne case.default.0x4575ec
mov byte [esi + 0x930], al
mov dword [esi + 0x1164], eax
mov eax, dword [esi + 0x1168]
mov dword [esi + 0x1160], 1
cmp eax, 0xffffffff
je case.default.0x4575ec
push 1
push eax
mov ecx, esi
call fcn.00458b20
jmp case.default.0x4575ec
mov eax, dword [0x8ab7c4]
lea ecx, [esi + 0x780]
push eax
call fcn.0045c900
test eax, eax
jne case.default.0x4575ec
mov ecx, esi
call fcn.004570a0
mov ecx, dword [esi + 0x778]
mov edx, dword [esi + 0x774]
push ecx
push edx
lea ecx, [esi + 0x290]
call fcn.004182a0
pop edi
pop esi
ret 4
Function at 0x45969b
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x218]
push eax
lea ebx, [esi + 0x290]
push edi
mov ecx, ebx
call fcn.00418470
test eax, eax
jne 0x459830
cmp edi, 0xd
jne 0x459830
cmp byte [esi + 0x930], 2
jne 0x459830
mov eax, dword [esi + 0x1488]
cmp eax, 0xffffffff
je 0x4597e9
cmp eax, 2
jge 0x4597e9
mov edx, dword [0x8aa48c]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push 0x104
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [0x8aa48c]
push 0x8b187c
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov al, byte [esp + 0xc]
test al, al
je 0x4597e9
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xe
jle 0x459759
push 0xffff
push 0x96
push 0x8c
push eax
push 0x47d848
jmp 0x4597da
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.004589b0
test eax, eax
je 0x45979d
mov eax, dword [esi + 0x1488]
xor ecx, ecx
mov edx, eax
add eax, 0x43
shl edx, 6
shl eax, 6
mov cl, byte [edx + esi + 0x10c1]
xor edx, edx
mov dl, byte [eax + esi]
push ecx
push edx
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, 0x8ab828
call fcn.00451fe0
jmp 0x4597e9
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x110]
push ecx
push 0x321
mov ecx, esi
call fcn.00403ad0
push 0xffff
push 0x96
push 0x8c
lea edx, [esp + 0x11c]
push 0
push edx
push 0
add esi, 8
push 0
push esi
mov ecx, ebx
call fcn.00418030
mov eax, dword [0x8aa48c]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [0x8ab7f4]
mov edx, dword [0x8ab7f0]
mov eax, dword [0x8aa48c]
push 1
push 0xd
add ecx, 0x195
push 0x4b
add edx, 0x120
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [0x8aa48c]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x208
ret 8
Function at 0x45ada0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push connect
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x45ae80
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esi + 0x420]
push 0x3a
push edx
push edi
call ebp
mov eax, dword [esi + 0x452]
shl eax, 4
push eax
call fcn.00468b1a
mov dword [esi + 0x45c], eax
mov eax, dword [esi + 0x456]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x28], ebx
jbe 0x45ae6f
xor ecx, ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
push ecx
push edx
push 0x10
push eax
push edi
mov dword [esp + 0x34], ecx
call ebp
mov eax, dword [esp + 0x14]
test ax, ax
je 0x45ae5c
mov ecx, dword [esi + 0x45c]
add ecx, ebx
add ebx, 0x10
mov dword [ecx], eax
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
mov eax, dword [esp + 0x1c]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x20]
mov dword [ecx + 0xc], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x456]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jb 0x45ae0f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
mov dword [esi + 0x14], ebx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4

Function at 0x45ae90
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push connect
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x45af12
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 0x52c]
push 0x3a
push edx
push edi
call ebx
mov eax, dword [esi + 0x55e]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.00468b1a
mov dword [esi + 0x568], eax
mov esi, dword [esi + 0x55e]
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esi + esi*2]
push 0
push ecx
shl edx, 3
push edx
push eax
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
ret 4
mov dword [esi + 0x56c], 0
pop edi
pop esi
ret 4

Function at 0x45b5b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push str.WAVE
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x45b604
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45b604
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x45b604
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
push eax
call fcn.0045ba60
add esp, 0x10
test eax, eax
je 0x45b604
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x45b610
Capabilities:
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push connect
push eax
mov dword [ebp], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45b647
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
push esi
cmp edi, 0xffffffff
jne 0x45b66d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
push edi
test esi, esi
jne 0x45b694
call ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
call ebx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push esi
call fcn.0045ba60
add esp, 0x10
test eax, eax
jne 0x45b6c0
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov dword [ebp], esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x465ea0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [0x917700]
cmp eax, 0x186a0
jbe 0x465eec
mov eax, dword [0x9173dc]
push esi
xor esi, esi
test eax, eax
jle 0x465ee4
push edi
mov edi, 0x9173e0
mov ecx, dword [edi]
mov al, byte [ecx + 4]
test al, al
jne 0x465ed6
call fcn.00466770
mov eax, dword [0x9173dc]
inc esi
add edi, 4
cmp esi, eax
jl 0x465ec8
pop edi
call ebx
mov dword [0x917700], eax
pop esi
pop ebx
ret

Function at 0x466160
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x124
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x130]
mov ebx, ecx
push esi
push edi
or ecx, 0xffffffff
mov edi, ebp
mov byte [ebx + 4], 0
lea edx, [ebx + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x44]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x44]
mov edx, ecx
sub eax, 3
add edx, eax
mov edi, 0x47dbb4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push connect
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46622a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 4
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 0x18
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x10], eax
shl eax, 5
push eax
call fcn.00468b1a
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx + 0xc], edi
jne 0x46627a
push eax
call fcn.004680f8
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 4
mov ecx, dword [ebx + 0x10]
xor eax, eax
shl ecx, 5
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 0x10]
xor edi, edi
test eax, eax
jle 0x4662c5
xor ebp, ebp
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x10]
push 0
push eax
lea edx, [ecx + ebp + 4]
push 4
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 0x10]
inc edi
add ebp, 0x20
cmp edi, eax
jl 0x46629b
mov ebp, dword [esp + 0x138]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push connect
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
pop esi
setne cl
mov dword [ebx + 8], eax
pop ebp
mov eax, ecx
pop ebx
add esp, 0x124
ret 4
Function at 0x466300
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
sub esp, 0x108
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x114]
mov ebx, ecx
push esi
push edi
or ecx, 0xffffffff
mov edi, ebp
mov byte [ebx + 4], 1
lea edx, [ebx + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x28]
mov edx, ecx
sub eax, 3
add edx, eax
mov edi, 0x47dbb4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push connect
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4663ca
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [ebx + 0x18]
push 0x18
push eax
push esi
call edi
mov ecx, dword [ebx + 0x2c]
shl ecx, 2
push ecx
call fcn.00468b1a
add esp, 4
mov dword [ebx + 0x30], eax
test eax, eax
jne 0x46640c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret 4
mov ecx, dword [ebx + 0x2c]
lea edx, [esp + 0x10]
push 0
push edx
shl ecx, 2
push ecx
push eax
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
push 0
push 0x80
push 3
push 0
push 1
push connect
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x466456
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret 4
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x46647f
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret 4
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebp
mov dword [ebx + 0x34], eax
call edi
push esi
call edi
mov ecx, dword [ebx + 0x34]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x108
ret 4
Function at 0x4664b0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x108
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x114]
mov ebx, ecx
push esi
push edi
or ecx, 0xffffffff
mov edi, ebp
mov byte [ebx + 4], 2
lea edx, [ebx + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x28]
mov edx, ecx
sub eax, 3
add edx, eax
mov edi, 0x47dbb4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push connect
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x2c]
push ecx
call esi
mov edi, eax
test edi, edi
je 0x466623
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [ebx + 0x18]
push 0x18
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebx + 0x2c]
shl ecx, 2
push ecx
call fcn.00468b1a
add esp, 4
mov dword [ebx + 0x30], eax
test eax, eax
je 0x46661c
mov ecx, dword [ebx + 0x2c]
lea edx, [esp + 0x10]
push 0
push edx
shl ecx, 2
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0x80
push 3
push 0
push 1
push connect
push ebp
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x46661c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
call fcn.00468b1a
add esp, 4
lea edx, [esp + 0x10]
mov dword [ebx + 0x34], eax
push 0
push edx
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
mov ecx, ebx
call fcn.00466720
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret 4
Function at 0x466640
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
cmp edi, dword [esi + 0x10]
jae 0x466714
mov edx, dword [esi + 0xc]
mov dword [esi + 0x3c], 0
shl edi, 5
add edi, edx
mov eax, dword [edi + 4]
test eax, eax
je 0x466714
cmp word [edi + 8], 0x1000
lea ebx, [edi + 8]
jg 0x466714
cmp word [edi + 0xa], 0x1000
jg 0x466714
mov ecx, dword [edi + 0x1c]
test ecx, ecx
jne 0x4666dd
push 0
push 0
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x11
push ebx
push edx
call ebp
mov eax, dword [edi + 0x15]
shl eax, 1
push eax
call fcn.00468b1a
add esp, 4
mov dword [edi + 0x1c], eax
test eax, eax
je 0x466714
mov edx, dword [edi + 0x15]
lea ecx, [esp + 0x14]
push 0
push ecx
shl edx, 1
push edx
push eax
mov eax, dword [esi + 8]
push eax
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [edi], eax
mov dword [esi + 0x38], ebx
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x3c], ecx
call ebp
sub eax, dword [esi + 0x14]
cmp eax, 0x3a98
jb 0x466708
mov ecx, esi
call fcn.00466770
call ebp
mov dword [esi + 0x14], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 4