joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9bf0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi*4 + 0x20a514c]
mov dword [esp + 0x18], edi
test esi, esi
js 0x4a9e89
cmp esi, 0x1194
jge 0x4a9e89
cmp dword [edi + 4], 3
jne 0x4a9e89
movzx eax, word [edi + 0x78]
cmp eax, 1
je 0x4a9c3a
cmp eax, 6
jne 0x4a9e89
cmp byte [edi + 0xa], 0
jg 0x4a9e89
cmp byte [edi + 0x9c0], 0
jne 0x4a9e89
mov eax, dword [edi + 0x384]
test al, 3
je 0x4a9e89
and eax, 0xffc0
cmp eax, 0x300
jne 0x4a9e89
cmp dword [edi + 0x3e0], 0
je 0x4a9c82
mov byte [esp + 0x1c], 0
jmp 0x4a9e74
mov edx, dword [ebp + 8]
cmp byte [edx + 4], 9
ja 0x4a9e6f
cmp byte [edx + 5], 2
ja 0x4a9cfd
cmp byte [edx + 6], 0xcc
jb 0x4a9ca5
mov byte [esp + 0x1c], 5
jmp 0x4a9e74
mov dword [edi + 0x3e0], 1
movzx eax, byte [edx + 6]
imul ecx, eax, 0x10c
mov eax, dword [edi + 0x390]
add eax, ecx
movzx ecx, word [eax + 4]
mov ebx, ecx
test cx, cx
js 0x4a9e5e
mov dword [esp + 0x10], 0x2000
cmp bx, word [esp + 0x10]
jge 0x4a9e5e
movzx ebx, byte [edx + 5]
movsx eax, word [eax + 6]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x4a9d07
mov dword [edi + 0x3e0], 0
mov byte [esp + 0x1c], 3
jmp 0x4a9e74
movzx eax, byte [edx + 4]
push eax
call fcn.004a9970
movsx ecx, cx
cmp ecx, eax
je 0x4a9d2c
mov dword [edi + 0x3e0], 0
mov byte [esp + 0x1c], 6
jmp 0x4a9e74
push edi
xor edx, edx
call fcn.0049cfd0
xor ecx, ecx
lea ebx, [eax - 0xc]
test ebx, ebx
jle 0x4a9d57
mov esi, dword [edi + 0x39c]
cmp byte [esi + ecx], 0xff
lea eax, [edx + 1]
cmovne eax, edx
inc ecx
mov edx, eax
cmp ecx, ebx
jl 0x4a9d43
mov esi, dword [ebp + 0xc]
mov ebx, dword [esp + 0x10]
inc ebx
lea ebx, [ebx + ebx*4]
add ebx, ebx
cmp edx, ebx
jge 0x4a9d79
mov dword [edi + 0x3e0], 0
mov byte [esp + 0x1c], 7
jmp 0x4a9e74
mov edx, dword [edi + 0xe4]
cmp edx, 0xf4240
jae 0x4a9d9b
mov dword [edi + 0x3e0], 0
mov byte [esp + 0x1c], 8
jmp 0x4a9e74
add edx, 0xfff0bdc0
mov ecx, esi
mov dword [edi + 0xe4], edx
call fcn.004e9640
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + 6]
push eax
push esi
call fcn.0049de90
mov eax, dword [ebp + 8]
lea edx, [esp + 0x10]
push 5
mov ecx, esi
mov word [esp + 0x14], 0x5c1
mov byte [esp + 0x16], 0x28
mov al, byte [eax + 6]
mov byte [esp + 0x17], al
mov byte [esp + 0x18], 1
call fcn.00526480
add esp, 4
test ebx, ebx
je 0x4a9e31
mov edi, dword [ebp + 8]
nop
push 0
push 0xff
movzx eax, byte [edi + 4]
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.004a98d0
push eax
push 0
push 0
mov dl, 0xeb
mov ecx, esi
call fcn.00472500
add esp, 0x40
sub ebx, 1
jne 0x4a9df0
mov edi, dword [esp + 0x18]
push 5
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x1bc05c1
push eax
push esi
mov byte [esp + 0x28], 1
call fcn.005192f0
mov dword [edi + 0x3e0], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x3e0], 0
mov byte [esp + 0x1c], 4
jmp 0x4a9e74
mov byte [esp + 0x1c], 2
push 5
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x1bc05c1
push eax
push esi
call fcn.005192f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4aace0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
test eax, eax
js 0x4aaecf
cmp eax, 0xcc
jge 0x4aaecf
test ecx, ecx
js 0x4aaecf
cmp ecx, 0xcc
jge 0x4aaecf
mov edx, dword [ebp + 8]
imul eax, eax, 0x10c
mov edx, dword [edx + 0x390]
movzx eax, word [eax + edx + 4]
mov esi, eax
test ax, ax
js 0x4aaecf
mov ebx, 0x2000
cmp si, bx
jge 0x4aaecf
imul edi, ecx, 0x10c
movzx ecx, word [edi + edx + 4]
mov eax, ecx
add edi, edx
test cx, cx
js 0x4aaecf
cmp ax, bx
jge 0x4aaecf
test byte [edi + 0xb6], 3
je 0x4aad77
cmp dword [0xbda8c4], 0
je 0x4aaecf
xor eax, eax
lea esi, [edi + 0xd3]
nop
cmp byte [esi + eax], 0xff
jne 0x4aad99
inc eax
cmp eax, 5
jl 0x4aad80
test byte [edi + 0xcc], 0xf0
jne 0x4aaecf
xor eax, eax
nop dword [eax + eax]
cmp byte [esi + eax], 0xff
jne 0x4aaecf
inc eax
cmp eax, 5
jl 0x4aada0
movsx ecx, cx
lea eax, [ecx - 0xe00]
cmp eax, 0x9ff
ja 0x4aaddc
and ecx, 0x800001ff
jns 0x4aadd0
dec ecx
or ecx, 0xfffffe00
inc ecx
sub ecx, 0x3e
cmp ecx, 0xa
jbe 0x4aaecf
push edi
call fcn.004aaa70
mov ebx, eax
test ebx, ebx
je 0x4aaecf
push edi
call fcn.004aaae0
mov ecx, eax
mov dword [ebp + 0x10], ecx
test ecx, ecx
je 0x4aaecf
cmp ebx, 3
ja 0x4aaecf
test ecx, ecx
js 0x4aaecf
cmp ecx, 0x10
jge 0x4aaecf
shl ebx, 4
add ebx, ecx
imul eax, ebx, 0xac
cmp dword [eax + 0x9ed104], ecx
lea eax, [eax + 0x9ed104]
jne 0x4aaecf
test eax, eax
je 0x4aaecf
mov ebx, dword [eax + 0x28]
call fcn.00526930
cdq
mov ecx, 0x64
idiv ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x644]
cmp edx, dword [eax*4 + 0xbdad8c]
jge 0x4aaec6
movzx eax, byte [edi + 0xd8]
and bl, 0xf
mov ecx, dword [ebp + 0x10]
push eax
movzx eax, byte [edi + 0xd2]
push esi
push eax
movzx eax, byte [edi + 0xb6]
shl cl, 4
or cl, bl
push ecx
push eax
movzx eax, byte [edi + 0x9f]
push eax
movzx eax, byte [edi + 0x9e]
push eax
movzx eax, byte [edi + 0x9d]
push eax
movzx eax, byte [edi + 0x9c]
push eax
movsx eax, word [edi + 4]
mov byte [edi + 0xcc], cl
mov ecx, edi
push eax
call fcn.00493d40
mov eax, dword [ebp + 8]
mov ecx, 0x6509a4
push dword [eax]
call fcn.004d6bf0
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
Function at 0x4aaef0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
test eax, eax
js 0x4ab0b5
cmp eax, 0xcc
jge 0x4ab0b5
test ecx, ecx
js 0x4ab0b5
cmp ecx, 0xcc
jge 0x4ab0b5
mov edx, dword [ebp + 8]
imul eax, eax, 0x10c
mov edx, dword [edx + 0x390]
movzx eax, word [eax + edx + 4]
mov dword [ebp - 4], eax
movzx esi, ax
test ax, ax
js 0x4ab0b5
mov edi, 0x2000
cmp si, di
jge 0x4ab0b5
imul esi, ecx, 0x10c
add esi, edx
movzx eax, word [esi + 4]
mov ecx, eax
test ax, ax
js 0x4ab0b5
cmp cx, di
jge 0x4ab0b5
xor eax, eax
lea edi, [esi + 0xd3]
nop
cmp byte [edi + eax], 0xff
jne 0x4ab0b5
inc eax
cmp eax, 5
jl 0x4aaf80
mov bl, byte [esi + 0xcc]
test bl, 0xf0
je 0x4ab0b5
push esi
call fcn.004aaa70
test eax, eax
je 0x4ab0b5
movzx ebx, bl
mov ecx, ebx
shr ecx, 4
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x4ab0b5
cmp eax, 3
ja 0x4aafe2
shl eax, 4
add eax, ecx
imul eax, eax, 0xac
lea edx, [eax + 0x9ed104]
xor eax, eax
cmp dword [edx], ecx
cmovne edx, eax
mov dword [ebp + 0xc], edx
jmp 0x4aafe9
mov dword [ebp + 0xc], 0
movsx eax, word [esi + 6]
and ebx, 0xf
cmp ebx, eax
jge 0x4ab0b5
cmp ebx, 0xf
jae 0x4ab0b5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x644]
mov ecx, dword [eax*4 + 0xbdad9c]
mov dword [ebp + 0x10], ecx
mov ecx, 0x1c2c
cmp word [ebp - 4], cx
jne 0x4ab029
mov eax, dword [eax*4 + 0xbdadac]
mov dword [ebp + 0x10], eax
call fcn.00526930
cdq
mov ecx, 0x64
idiv ecx
cmp edx, dword [ebp + 0x10]
jge 0x4ab03e
inc ebx
jmp 0x4ab044
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx + 0x28]
movzx eax, byte [esi + 0xd8]
and bl, 0xf
mov ecx, dword [ebp - 8]
push eax
movzx eax, byte [esi + 0xd2]
push edi
push eax
movzx eax, byte [esi + 0xb6]
shl cl, 4
or cl, bl
push ecx
push eax
movzx eax, byte [esi + 0x9f]
push eax
movzx eax, byte [esi + 0x9e]
push eax
movzx eax, byte [esi + 0x9d]
push eax
movzx eax, byte [esi + 0x9c]
push eax
movsx eax, word [esi + 4]
mov byte [esi + 0xcc], cl
mov ecx, esi
push eax
call fcn.00493d40
mov eax, dword [ebp + 8]
mov ecx, 0x6509a4
push dword [eax]
call fcn.004d6bf0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ab0c0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
test eax, eax
js 0x4ab2bd
cmp eax, 0xcc
jge 0x4ab2bd
test ecx, ecx
js 0x4ab2bd
cmp ecx, 0xcc
jge 0x4ab2bd
mov edx, dword [ebp + 8]
imul eax, eax, 0x10c
mov edx, dword [edx + 0x390]
movzx eax, word [eax + edx + 4]
mov esi, eax
test ax, ax
js 0x4ab2bd
mov edi, 0x2000
cmp si, di
jge 0x4ab2bd
imul ebx, ecx, 0x10c
movzx ecx, word [ebx + edx + 4]
mov eax, ecx
add ebx, edx
test cx, cx
js 0x4ab2bd
cmp ax, di
jge 0x4ab2bd
xor eax, eax
lea esi, [ebx + 0xd3]
nop dword [eax]
cmp byte [esi + eax], 0xff
jne 0x4ab169
inc eax
cmp eax, 5
jl 0x4ab150
test byte [ebx + 0xcc], 0xf0
jne 0x4ab2bd
xor eax, eax
nop dword [eax + eax]
cmp byte [esi + eax], 0xff
jne 0x4ab2bd
inc eax
cmp eax, 5
jl 0x4ab170
lea eax, [ebp + 0x10]
movsx edi, cx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp + 0x10], edi
push eax
mov ecx, 0x9f4360
call fcn.00405650
mov eax, dword [ebp - 4]
mov ecx, dword [0x9f4360]
cmp byte [eax + 0xd], 0
jne 0x4ab1ac
cmp edi, dword [eax + 0x10]
jge 0x4ab1ae
mov eax, ecx
cmp eax, ecx
je 0x4ab2bd
push ebx
call fcn.004aaa70
mov edi, eax
test edi, edi
je 0x4ab2bd
push ebx
call fcn.004aaae0
mov ecx, eax
mov dword [ebp + 0xc], ecx
test ecx, ecx
je 0x4ab2bd
cmp edi, 3
ja 0x4ab2bd
test ecx, ecx
js 0x4ab2bd
cmp ecx, 0x10
jge 0x4ab2bd
shl edi, 4
add edi, ecx
imul eax, edi, 0xac
cmp dword [eax + 0x9ed104], ecx
lea eax, [eax + 0x9ed104]
jne 0x4ab2bd
test eax, eax
je 0x4ab2bd
movzx eax, word [ebx + 6]
mov edx, 0xd
cmp ax, dx
movzx ecx, al
cmovg ecx, edx
mov dword [ebp + 0x10], ecx
call fcn.00526930
cdq
mov ecx, 0x64
idiv ecx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x644]
cmp edx, dword [eax*4 + 0xbdad8c]
jge 0x4ab2b2
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and cl, 0xf
shl al, 4
or cl, al
movzx eax, byte [ebx + 0xd8]
push eax
movzx eax, byte [ebx + 0xd2]
push esi
push eax
movzx eax, byte [ebx + 0xb6]
push ecx
push eax
movzx eax, byte [ebx + 0x9f]
push eax
movzx eax, byte [ebx + 0x9e]
push eax
movzx eax, byte [ebx + 0x9d]
push eax
movzx eax, byte [ebx + 0x9c]
push eax
movsx eax, word [ebx + 4]
mov byte [ebx + 0xcc], cl
mov ecx, ebx
push eax
call fcn.00493d40
push dword [edi]
mov ecx, 0x6509a4
call fcn.004d6bf0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ae110
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + edi*4]
cmp dword [esi*4 + 0xd034cc], 0
jne 0x4ae138
mov eax, dword [esi*4 + 0xd034d4]
jmp 0x4ae13a
call ebx
mov dword [esi*4 + 0xd034d4], eax
call fcn.004b1070
mov eax, dword [0xd03908]
imul eax, dword [0xd0390c]
push eax
push dword [0xd03904]
push dword [0x1082708]
call fcn.0052b7a0
add esp, 0xc
cmp edi, 5
ja case.default.0x4ae170
jmp dword [edi*4 + 0x4ae2b8]
mov dword [0xd034b8], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004b0700
cmp dword [0xd0356c], 0
mov dword [0xd034b8], 1
jne 0x4ae1a9
mov eax, dword [0xd03574]
jmp 0x4ae1ab
call ebx
mov dword [0xd03574], eax
call fcn.004b1070
push 6
lea eax, [ebp - 8]
mov dword [0xd03544], 1
push eax
mov dword [ebp - 8], 0x3d106c1
mov word [ebp - 4], 0x101
call fcn.004b1bb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
mov ecx, 0xd035a4
mov dword [0xd034b8], 2
call fcn.004aefa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
mov ecx, 0xd037d0
mov dword [0xd034b8], 3
call fcn.004afea0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [0xd03894], 0
mov dword [0xd034b8], 4
jne 0x4ae238
mov eax, dword [0xd0389c]
jmp 0x4ae23a
call ebx
mov dword [0xd0389c], eax
lea eax, [ebp - 8]
push 6
push eax
mov dword [0xd03868], 1
mov dword [0xd0386c], 1
mov dword [0xd03870], 1
mov dword [ebp - 8], 0x3d106c1
mov word [ebp - 4], 0x104
call fcn.004b1bb0
mov eax, dword [0xd19640]
imul eax, dword [0xd19644]
push eax
push dword [0xd1963c]
push dword [0x1082708]
call fcn.0052b7a0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [0xd034b8], 5
call fcn.004b0700
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4aee60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1f4]
mov eax, dword [eax*4 + 0x20a514c]
cmp byte [eax + 0x7a], 0
jne 0x4aeee8
mov eax, dword [esi + 0x1f8]
mov eax, dword [eax*4 + 0x20a514c]
cmp byte [eax + 0x7a], 0
jne 0x4aeee8
cmp dword [esi + 0x1f0], 0
jne 0x4aeec2
mov dword [esi + 0x1d4], 1
mov dword [esi + 0x1d8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x1f0], eax
mov byte [ebp - 4], 0
jmp 0x4aef73
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x1f0]
cmp eax, 0xbb8
jb 0x4aef8d
push 0xf
mov ecx, esi
call fcn.004aefa0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x1dc]
call fcn.004b0c60
mov eax, dword [esi + 0x220]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x214]
sub eax, dword [esi + 0x210]
cmp eax, dword [esi + edx*4 + 0x1fc]
jb 0x4aef49
mov ecx, dword [ebp - 8]
lea eax, [edx + 1]
cmp edx, 3
cmovne edx, eax
call fcn.004c3fd0
mov ecx, dword [esi + 0x214]
cmp ecx, 3
lea eax, [ecx + 1]
cmovne ecx, eax
mov dword [esi + 0x214], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x210], eax
mov eax, dword [esi + 0x1f8]
mov ecx, dword [eax*4 + 0x20a514c]
mov eax, dword [esi + 0x1f4]
mov eax, dword [eax*4 + 0x20a514c]
cmp byte [eax + 0x7a], 0
jne 0x4aef93
cmp byte [ecx + 0x7a], 0
jne 0x4aef99
mov byte [ebp - 4], 2
mov al, byte [0x9f1c28]
mov byte [ebp - 3], al
lea eax, [ebp - 8]
push 6
push eax
mov dword [ebp - 8], 0x7d106c1
call fcn.004b1bb0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ecx + 0x7a], 0
jne 0x4aef6f
mov byte [ebp - 4], 1
jmp 0x4aef73
Function at 0x4b0c60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x57a040]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, ecx
call esi
sub eax, dword [edi + 0xc]
cmp eax, 0x4e20
jb 0x4b0dd6
mov eax, dword [edi + 4]
test eax, eax
js 0x4b0dd6
cmp eax, 0x1194
jge 0x4b0dd6
call esi
mov dword [edi + 0xc], eax
mov ecx, 0xdac
nop
mov esi, ecx
mov eax, dword [esi*4 + 0x20a514c]
cmp dword [eax + 4], 3
jne 0x4b0dc7
movzx ecx, word [eax + 0x78]
cmp ecx, 1
je 0x4b0cd5
cmp ecx, 6
jne 0x4b0dc7
cmp byte [eax + 0xa], 0
jg 0x4b0dc7
cmp byte [eax + 0x9c0], 0
jne 0x4b0dc7
cmp byte [eax + 0x149], 0x27
mov ecx, esi
jne 0x4b0dc9
mov eax, dword [edi + 4]
push 7
mov dword [esp + 0x10], 0x6d107c1
mov byte [esp + 0x16], 1
mov eax, dword [eax*4 + 0x20a514c]
movzx ecx, word [eax + 0xcc]
mov eax, ecx
mov byte [esp + 0x15], cl
shr eax, 8
mov byte [esp + 0x14], al
lea eax, [esp + 0x10]
push eax
push esi
call fcn.005192f0
mov ecx, dword [edi + 4]
mov edx, esi
push 0
push 0xffffffffffffffff
push 1
call fcn.004ca370
mov ebx, dword [esi*4 + 0x20a514c]
mov eax, 0x1a26
add esp, 0xc
xorps xmm1, xmm1
mov edx, dword [ebx + 0x390]
cmp word [edx + 0xa7c], ax
jne 0x4b0d7a
movss xmm0, dword [edx + 0xa98]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x4b0d96
mov eax, 0x1a26
mov ecx, esi
cmp word [edx + 0xb88], ax
jne 0x4b0dc9
movss xmm0, dword [edx + 0xba4]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x4b0dc9
push 0
push 0
push 0
push 0
push 0
mov dword [ebx + 0xfc], 0
mov ecx, 0x6509a4
mov eax, dword [edi + 4]
push 0
push dword [esi*4 + 0x20a514c]
push dword [eax*4 + 0x20a514c]
call fcn.004dd760
mov ecx, esi
inc ecx
cmp ecx, 0x1194
jl 0x4b0cb0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret
Function at 0x4b24e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x57a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x9f4358]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
js 0x4b25e9
cmp eax, 9
jge 0x4b25e9
imul edi, eax, 0x214
inc eax
push ecx
mov dword [0x9f4358], eax
mov eax, dword [ebp + 8]
push pe_nt_image_headers32
add edi, 0x9f30a4
lea ebx, [edi + 4]
mov dword [edi], eax
push ebx
call fcn.0052d6d0
add esp, 0xc
cmp dword [edi], 0
je 0x4b25e9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xe]
lea esi, [edi + 0x110]
movzx ecx, word [ebp - 0x12]
movzx eax, word [ebp - 0x14]
push edx
push ecx
push eax
push ebx
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x104], edx
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
cmp eax, 0xffffffff
jne 0x4b25c5
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00529f01
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4b25e9
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00529f01
mov esp, ebp
pop ebp
ret 8
Function at 0x4b2600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x57a040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x4b27ea
cmp eax, dword [ecx + 0x12b8]
jge 0x4b27ea
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x4b27ea
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x4b267f
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x4b267f
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x4b273e
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0x816]
lea esi, [edi + 0x114]
movzx ecx, word [ebp - 0x81a]
movzx eax, word [ebp - 0x81c]
push edx
push ecx
push eax
mov dword [edi + 0x110], eax
lea eax, [edi + 8]
push eax
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x108], edx
mov dword [edi + 0x10c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x4b2709
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00529f01
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4b273e
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00529f01
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.0052bd20
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.00411450
add esp, 0x14
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call fcn.0052bd20
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x810]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x40c]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x40c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b27c4
push 0
lea eax, [ebp - 0x820]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00529f01
mov esp, ebp
pop ebp
ret
Function at 0x4b30e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0
push 0x20
push 3
push 0
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b3209
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
lea eax, [ebp - 2]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b31fe
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b31fe
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 1]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b31fe
movzx eax, byte [ebp - 1]
movzx ecx, byte [ebp + 0xb]
inc eax
inc ecx
mov dword [ebx + 0x18], eax
imul eax, ecx
mov dword [ebx + 0x14], ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x4b3197
push ecx
call fcn.0052a538
mov eax, dword [ebp - 0xc]
add esp, 4
mov dword [ebx + 0x10], 0
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4b3214
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b31fe
mov esi, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
mov dword [esi], edx
imul edx, ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x43c], eax
push edx
call fcn.0052a34a
add esp, 4
mov dword [esi + 0x440], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x15d30], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push str.__s__Could_not_read_file
call fcn.00526250
push esi
push str.__s__Could_not_open_file
call fcn.00526250
push esi
push str.__s__Could_not_alloc_file_buffer
call fcn.00526250
int3
Function at 0x4b93f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push pe_nt_image_headers32
lea ebx, [esi + 0xc]
push ebx
call fcn.0052d6d0
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b9448
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_open_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4b946b
push eax
call fcn.0052a538
add esp, 4
mov dword [esi + 4], 0
push dword [esi + 8]
call fcn.0052a34a
add esp, 4
mov dword [esi + 4], eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push 0
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b94bb
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_read_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret 4