joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431ef0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x497098
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x431f29
inc eax
mov dword [esi + 0x10], eax
jmp 0x43203c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x431f3d
mov eax, 0xffffffc7
jmp 0x43203e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x431f4e
cmp dword [esi + 8], eax
jne 0x431f3d
cmp dword [esi + 8], eax
jne 0x431f67
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x431f67
mov eax, 0xffffffc7
jmp 0x43203e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x431f7b
push eax
mov ecx, ebx
call fcn.00431720
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00406fb0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x431fac
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00406fd0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00430e90
test eax, eax
mov dword [esp + 0x38], eax
je 0x431fdf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xa91c00
call fcn.004071b0
mov eax, dword [esp + 0x38]
jmp 0x43203e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00431d50
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x432023
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00431d70
mov esi, eax
test esi, esi
jne 0x432053
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00431d50
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x431ff5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xa91c00
call fcn.004071b0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xa91c00
call fcn.004071b0
mov eax, esi
jmp 0x43203e

Function at 0x4369f0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x436a50
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x436a50
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x436a50
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x436a50
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x436a90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4426d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x497988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00490a4e
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00442030
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0049097c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0048d271
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0048d271
push 1
push 0
push 0
mov ecx, esi
call fcn.0048d219
push 1
push 0
push 1
mov ecx, esi
call fcn.0048d219
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00490ac0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x442850
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4979a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00490a4e
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00442030
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0049097c
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x442914
cmp dword [esp + 0x40], 1
jne 0x442912
cmp ecx, eax
jge 0x442914
mov eax, ecx
cmp eax, 0xc8
jge 0x442920
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004426d0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00490ac0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x443110
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x497a53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048b6a8
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00490cf6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00492212
test eax, eax
je 0x44322c
mov ecx, dword [esp + 0x3c]
call fcn.00490d23
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4431f0
push edi
mov ecx, esi
call fcn.0048e38f
mov ecx, esi
call fcn.004433e0
cmp dword [esp + 0x38], 1
jne 0x443225
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048e4ca
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x445430
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x445463
push esi
call fcn.004536e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44545c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4454e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4454d2
mov eax, dword [esi + 8]
test eax, eax
je 0x445487
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4454ce
cmp eax, 2
je 0x4454d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44547a
cmp eax, 3
je 0x4454ad
cmp eax, 1
jne 0x44547a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44547a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44547a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00445510
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4454f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00445510
add esp, 4
pop esi
ret

Function at 0x445d90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x445db1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x445db1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x445db1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x464ff0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xaea480]
xor edx, edx
cmp eax, edx
jne 0x465016
xor eax, eax
mov byte [eax + 0xaea380], al
inc eax
cmp eax, 0x100
jl 0x464ffe
mov dword [0xaea480], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xaea380
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4650a7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46507a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x465048
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x465120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x465173
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46515a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46bb20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x497f5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0046c440
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xa96d54
call fcn.00489e3b
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x46bbb3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00489e3b
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x46bbac
push 0
mov ecx, eax
call fcn.00462c30
mov dword [esi + 0xc], eax
jmp 0x46bbb5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x46bbb5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x48c484
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48c4bc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048a555
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048a52d
jmp 0x48c4c8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48db75
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48dbb7
call fcn.004934fc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48dbb7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48dbae
xor eax, eax
jmp 0x48dbbf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048dbc5
pop edi
pop esi
pop ebx
ret 4
Function at 0x493a2c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x493a5a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x493a78
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00493992
jmp 0x493a78
mov eax, dword [esi + 0x14]
test eax, eax
je 0x493a78
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00493992
test edi, edi
mov eax, edi
jne 0x493a62
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4026a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x33c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], bl
mov word [esp + 0x14c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x14e]
mov word [esp + 0x24], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, 9
mov dword [esp + 0x11], eax
lea edi, [esp + 0x26]
mov dword [esp + 0x15], eax
push 0x100
mov dword [esp + 0x1d], eax
mov byte [esp + 0x14], bl
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
push ecx
stosw word es:[edi], ax
call fcn.00402890
mov edi, str.ConfiguregdScan.ini
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x4c]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov dl, byte [esp + ecx + 0x4c]
cmp dl, bl
je 0x40277c
cmp dl, 0x5c
jne 0x402769
mov word [eax], 0x5c
add eax, 2
movsx dx, dl
mov word [eax], dx
inc ecx
add eax, 2
cmp ecx, 0x100
jl 0x402754
lea eax, [esp + 0x14c]
lea ecx, [esp + 0x24]
push eax
push 0x14
push ecx
push str.A081001598
push str.BoxNumber
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.00402400
xor ecx, ecx
lea edi, [esp + 0x18]
mov dword [0x472800], ecx
xor eax, eax
mov dword [0x472804], ecx
xor edx, edx
mov dword [0x472808], ecx
mov dword [0x43247c], edx
mov dword [0x47280c], ecx
mov dword [0x432480], edx
mov dword [0x472810], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov dword [0x432484], edx
push 2
not ecx
mov dword [0x432488], edx
sub edi, ecx
mov dword [0x43248c], edx
mov esi, edi
mov edx, ecx
mov edi, 0x43247c
or ecx, 0xffffffff
push 0xffff0144
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x70085
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x472800
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [0x472f68]
add esp, 0x14
cmp ax, 1
pop edi
pop esi
pop ebp
pop ebx
je 0x402869
call fcn.0042ce00
xor eax, eax
add esp, 0x33c
ret
Function at 0x4038d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3c
xor eax, eax
mov edi, 0x433a80
push 0x4319f8
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0x10]
push eax
push str._s._s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x1c]
push 0x4319ec
push edx
call dword [0x472ec4]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x40394c
push str._r_n_001_MenuTreeDispose_Read_Fail
call fcn.00402880
add esp, 4
mov eax, 0xfffffc17
pop edi
pop esi
add esp, 0x108
ret
mov ecx, 0x3c
xor eax, eax
mov edi, 0x433a80
push ebx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.MSVCRT.dll_fgetc]
push ebp
push esi
mov dword [0x4727f4], eax
mov byte [0x433a78], al
call edi
mov ebx, eax
push esi
and ebx, 0xff
call edi
push esi
mov dword [esp + 0x1c], eax
call edi
xor ecx, ecx
and eax, 0xff
mov ch, bl
add esp, 0xc
mov cl, byte [esp + 0x10]
shl ecx, 8
or eax, ecx
cmp eax, 0xfffeff
jne 0x403a78
push esi
call edi
add esp, 4
cmp al, 1
jne 0x403a7f
push esi
call edi
mov ebp, eax
push esi
and ebp, 0xff
call edi
xor edx, edx
push esi
mov dh, al
or ebp, edx
call edi
and eax, 0xff
push esi
shl eax, 0x10
or ebp, eax
call edi
shl eax, 0x18
or ebp, eax
add esp, 0x10
cmp ebp, 0x23
jl 0x403a86
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403a8d
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 2]
push eax
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add ebp, 0xfffffffe
add esp, 0x10
cmp eax, ebp
jne 0x403a94
mov cl, byte [0x4339b8]
and cl, 0x7f
cmp cl, 1
jne 0x403a52
push 4
push 4
call fcn.00404c30
add esp, 8
test eax, eax
mov al, byte [0x4339b8]
je 0x403a4b
or al, 0x80
jmp 0x403a4d
and al, 0x7f
mov byte [0x4339b8], al
push ebx
call fcn.004045b0
add esp, 4
test eax, eax
jne 0x403a9b
mov edx, dword [esp + 0x11c]
push edx
push 0xffffffffffffffff
push 4
push esi
call fcn.00403b60
add esp, 0x10
mov edi, eax
jmp 0x403aa0
mov edi, 0xfffffc04
jmp 0x403aae
mov edi, 0xfffffc03
jmp 0x403aae
mov edi, 0xfffffc10
jmp 0x403aae
mov edi, 0xfffffc0f
jmp 0x403aa0
mov edi, 0xfffffc16
jmp 0x403aa0
mov edi, 0x80
test ebx, ebx
je 0x403aae
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push str._r_n_006__MenuTreeDispose_End_
call fcn.00402880
add esp, 8
mov eax, edi
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x108
ret
Function at 0x404090
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push 0
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [sym.imp.MSVCRT.dll_fgetc]
push ebx
call edi
mov esi, eax
push ebx
and esi, 0xff
call edi
xor ecx, ecx
push ebx
mov ch, al
or esi, ecx
call edi
and eax, 0xff
push ebx
shl eax, 0x10
or esi, eax
call edi
shl eax, 0x18
or esi, eax
add esp, 0x1c
cmp esi, 0x23
jge 0x4040f4
push str._r_n_SearchDownTaskID_MENU_ITEM_SIZE_ERR
call fcn.00402880
add esp, 4
mov eax, 0xfffffc10
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40410e
pop edi
pop esi
pop ebp
mov eax, 0xfffffc0f
pop ebx
ret
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esi - 2]
push eax
push 1
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esi, 0xfffffffe
add esp, 0x10
cmp eax, esi
je 0x404158
push ebp
call dword [sym.imp.MSVCRT.dll_free]
push str._r_n_002_SearchDownTaskID__fread_Fail
call fcn.00402880
add esp, 8
mov eax, 0xfffffc16
pop edi
pop esi
pop ebp
pop ebx
ret
xor eax, eax
mov ah, byte [ebp + 0x21]
mov al, byte [ebp + 0x20]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x40419a
mov eax, dword [0x433a74]
cmp eax, 0x400
jb 0x40417e
pop edi
pop esi
pop ebp
mov eax, 0xfffffc0e
pop ebx
ret
xor ecx, ecx
inc eax
mov ch, byte [ebp + 0x1f]
pop edi
mov cl, byte [ebp + 0x1e]
pop esi
mov dword [eax*4 + 0x433b6c], ecx
mov dword [0x433a74], eax
pop ebp
xor eax, eax
pop ebx
ret
xor edi, edi
test eax, eax
jle 0x4041e9
lea esi, [ebp + 0x24]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x4041b2
lea edx, [edi + 1]
cmp ebp, edx
je 0x4041e1
xor eax, eax
xor ecx, ecx
mov ah, byte [esi + 1]
mov cl, byte [esi - 1]
mov al, byte [esi]
xor edx, edx
mov dl, byte [esi - 2]
push 0
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
push eax
push ebx
call fcn.00404090
add esp, 0xc
test eax, eax
jne 0x4041eb
mov eax, dword [esp + 0x18]
inc edi
add esi, 4
cmp edi, eax
jl 0x4041a7
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x404460
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
xor edx, edx
movsx esi, byte [eax + ecx*4 + 0x25]
mov dl, byte [eax + ecx*4 + 0x24]
xor ebx, ebx
mov bl, byte [eax + ecx*4 + 0x23]
push edi
shl esi, 8
or edx, esi
push 0
shl edx, 8
or edx, ebx
xor ebx, ebx
mov bl, byte [eax + ecx*4 + 0x22]
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x20]
push edx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [sym.imp.MSVCRT.dll_fgetc]
push ebx
call edi
mov esi, eax
push ebx
and esi, 0xff
call edi
xor ecx, ecx
push ebx
mov ch, al
or esi, ecx
call edi
and eax, 0xff
push ebx
shl eax, 0x10
or esi, eax
call edi
shl eax, 0x18
or esi, eax
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
add esp, 0x20
test ebp, ebp
jne 0x4044e9
pop edi
pop esi
pop ebp
mov eax, 0xfffffc0f
pop ebx
ret
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esi, 0xfffffffe
push ebx
and ecx, 3
push esi
push 1
rep stosb byte es:[edi], al
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, esi
push ebp
je 0x404530
call dword [sym.imp.MSVCRT.dll_free]
push str._r_n_009_GetMenuID
call fcn.00402880
add esp, 8
mov eax, 0xfffffc16
pop edi
pop esi
pop ebp
pop ebx
ret
call fcn.004045b0
add esp, 4
test eax, eax
jne 0x404582
movsx ecx, byte [ebp + 7]
mov al, byte [ebp + 6]
mov dl, byte [ebp + 5]
and eax, 0xff
and edx, 0xff
shl ecx, 8
or eax, ecx
mov cl, byte [ebp + 4]
shl eax, 8
or eax, edx
mov edx, dword [esp + 0x20]
shl eax, 8
and ecx, 0xff
push ebp
or eax, ecx
xor esi, esi
mov dword [edx], eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x20]
push ebp
mov esi, 0xfffffc11
mov dword [eax], 0
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret