joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4784a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c4cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4f2fb0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ebx
lea ecx, [esp + 0x28]
call fcn.00476f00
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0
call fcn.00477020
mov dword [esp + 0x10], 0x64
mov eax, dword [ebx + 4]
push eax
lea ecx, [esp + 0x20]
call fcn.00476ed0
mov ecx, dword [ebx + 4]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00476ed0
xor esi, esi
mov byte [esp + 0x38], 2
cmp dword [esp + 0x18], esi
jbe 0x478540
call fcn.00499e1d
mov edi, eax
shl edi, 8
call fcn.00499e1d
mov edx, dword [esp + 0x14]
or eax, edi
mov word [edx + esi*2], ax
inc esi
cmp esi, dword [esp + 0x18]
jb 0x478520
push ebx
lea ecx, [esp + 0x18]
call fcn.00477370
push 0
lea ecx, [esp + 0x18]
call fcn.004771d0
test eax, eax
je 0x478580
lea eax, [esp + 0x1c]
push eax
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00477400
add esp, 0x10
push 1
lea ecx, [esp + 0x20]
call fcn.004771d0
test eax, eax
jne 0x4785cd
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.00476f50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.00476f50
sub dword [esp + 0x10], 1
jne 0x4784f4
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.00476f50
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 1
call fcn.00476f50
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.00476f50
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.00476f50
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478f20
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4c4e00
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x4f2fb0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
call fcn.004835e8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x478f68
push 0x80004005
call fcn.00401260
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
push 0x4c7663
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0
call fcn.00404d90
mov byte [esp + 0x28], 1
xor edi, edi
lea ecx, [edi + 0x43]
push ecx
lea edx, [esp + 0x14]
push 0x4cc724
push edx
call fcn.00404880
lea eax, [edi + 3]
push eax
call fcn.0049ca8e
add esp, 0x10
cmp eax, 0xffffffff
je 0x478ff5
push 8
push str.AUMENU_
lea ecx, [esp + 0x18]
call fcn.00404550
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00401540
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00469280
add esp, 4
test eax, eax
jne 0x47908b
inc edi
cmp edi, 0x18
jle 0x478f95
lea edx, [esp + 0x10]
push 0x4cc714
push edx
call fcn.00404880
add esp, 8
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x479052
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479076
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
add edi, 0x43
push edi
lea ecx, [esp + 0x14]
push str._c:_
push ecx
call fcn.00404880
add esp, 0xc
jmp 0x47900d
Function at 0x47cce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x47cd04
cmp dword [edi + 0x54], 0
jne 0x47cd04
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0047b924
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0047cca1
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4822c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x482309
call fcn.0047b924
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x482309
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x482325
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00481e3c
mov esi, eax
test edi, edi
je 0x482323
test ebx, ebx
je 0x482323
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x48317d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4c516c
call fcn.0049ce8b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4831a2
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4831e8
lea ecx, [ebp - 0x10]
call fcn.00404300
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047ba43
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401280
mov eax, esi
call fcn.0049cf63
ret 8
Function at 0x486fca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x487012
call fcn.0047b924
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x487012
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x487055
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x48703e
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x48703e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x487052
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4982db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f2fb0]
jne 0x4982e5
repz ret
jmp fcn.004a20df

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x49beca
call fcn.0049c062
mov dword [eax], esi
call fcn.0049c04f
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004a13c4
add esp, 0x14
push 0x16
pop eax
jmp 0x49bf1f
test dword [ebp + 0xc], 0xfffffff9
jne 0x49bea6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x49bef7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049c075
pop ecx
call fcn.0049c04f
mov eax, dword [eax]
jmp 0x49bf1f
test al, 0x10
jne 0x49bf1d
test al, 1
je 0x49bf1d
test byte [ebp + 0xc], 2
je 0x49bf1d
call fcn.0049c062
mov dword [eax], 5
call fcn.0049c04f
mov dword [eax], 0xd
jmp 0x49beee
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4b2df6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004a3b77
and dword [ebp - 4], 0
cmp dword [0xc577c4], 0
mov ebx, eax
jne 0x4b2ea7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b2f58
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4dd44c
push edi
call esi
test eax, eax
je 0x4b2f58
push eax
call fcn.004a3b05
mov dword [esp], 0x4dd43c
push edi
mov dword [0xc577c4], eax
call esi
push eax
call fcn.004a3b05
mov dword [esp], 0x4dd428
push edi
mov dword [0xc577c8], eax
call esi
push eax
call fcn.004a3b05
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0xc577cc], eax
call esi
push eax
call fcn.004a3b05
pop ecx
mov dword [0xc577d4], eax
test eax, eax
je 0x4b2ea7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a3b05
pop ecx
mov dword [0xc577d0], eax
mov eax, dword [0xc577d0]
cmp eax, ebx
je 0x4b2eff
cmp dword [0xc577d4], ebx
je 0x4b2eff
push eax
call fcn.004a3b80
push dword [0xc577d4]
mov esi, eax
call fcn.004a3b80
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b2eff
test edi, edi
je 0x4b2eff
call esi
test eax, eax
je 0x4b2ef6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b2ef6
test byte [ebp - 0xc], 1
jne 0x4b2eff
or dword [ebp + 0x10], 0x200000
jmp 0x4b2f38
mov eax, dword [0xc577c8]
cmp eax, ebx
je 0x4b2f38
push eax
call fcn.004a3b80
pop ecx
test eax, eax
je 0x4b2f38
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b2f38
mov eax, dword [0xc577cc]
cmp eax, ebx
je 0x4b2f38
push eax
call fcn.004a3b80
pop ecx
test eax, eax
je 0x4b2f38
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0xc577c4]
call fcn.004a3b80
pop ecx
test eax, eax
je 0x4b2f58
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b2f5a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b6360
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x4b6383
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.004b5fc0
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.004b6020
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.004b60e0
lea eax, [esp + 0x18]
push eax
call fcn.004b59c0
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x4b6350
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x4b6434
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.004b6330
or ax, ax
je 0x4b63fc
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x4b6420
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x4b6420
lea eax, [esp + 0xa]
push esi
push eax
call fcn.004b5ad0
or al, al
jne 0x4b6434
jmp 0x4b642f
lea eax, [esp + 8]
push esi
push eax
call fcn.004b5a20
or al, al
jne 0x4b6434
mov word [esi], 0
mov ax, word [esi]
or ax, ax
je 0x4b644c
cmp ax, 0xffff
je 0x4b644c
mov al, 1
pop esi
pop ebx
add esp, 0x40
ret 8
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8

Function at 0x4b6470
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
mov esi, dword [esp + 0x50]
mov bx, word [esp + 0x4c]
cmp bx, 4
mov word [esi], 0
jbe 0x4b6493
sub al, al
pop esi
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.004b5fc0
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.004b6020
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.004b60e0
lea eax, [esp + 0x18]
push eax
call fcn.004b59c0
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xc]
push 0x10
push eax
lea eax, [esp + 0x24]
push 0x4b6460
push eax
lea eax, [esp + 0x3c]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x4b6544
lea eax, [esp + 8]
push 0x2c
push eax
call fcn.004b6330
or ax, ax
je 0x4b6544
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x4b6544
cmp byte [esp + eax + 0xa], 0x3a
jne 0x4b6544
push esi
lea eax, [esp + eax + 0xf]
push eax
call fcn.004b5a20
or al, al
jne 0x4b6530
jmp 0x4b653f
mov ax, word [esi]
cmp ax, 1
jl 0x4b653f
cmp ax, 6
jle 0x4b6544
mov word [esi], 0
cmp word [esi], 1
sbb al, al
inc al
pop esi
pop ebx
add esp, 0x40
ret 8
Function at 0x4b6570
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
push esi
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.004b5fc0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004b6020
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.004b61d0
lea eax, [esp + 4]
push 0x10
push eax
call fcn.004b6180
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push 0x10
push eax
lea eax, [esp + 0x40]
push 0x4b6560
push eax
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov esi, eax
or esi, esi
je 0x4b65df
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.004b5840
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
cmp esi, 1
sbb al, al
inc al
pop esi
add esp, 0x50
ret 8

Function at 0x4b65f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.004b5fc0
lea eax, [esp]
push 0x10
push eax
call fcn.004b6020
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.004b6130
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push 0
push eax
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
mov ecx, dword [esp + 0x34]
cmp eax, 1
mov word [ecx], ax
sbb cl, cl
inc cl
mov al, cl
add esp, 0x30
ret 4

Function at 0x4b6660
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
push esi
mov esi, dword [esp + 0x78]
push 0x10
mov word [esi], 0
lea eax, [esp + 8]
push 0
push eax
call fcn.004b59e0
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.004b5fc0
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.004b6020
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.004b6080
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.004b6230
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004b62e0
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.004b6290
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 8]
push 0x10
push eax
lea eax, [esp + 0x60]
push 0x4b6650
push eax
lea eax, [esp + 0x58]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x4b6733
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 8]
push eax
call fcn.004b5840
or al, al
je 0x4b6701
mov word [esi], 2
jmp 0x4b6733
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 8]
push eax
call fcn.004b5840
or al, al
je 0x4b671b
mov word [esi], 3
jmp 0x4b6733
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.004b5840
or al, al
je 0x4b6733
mov word [esi], 1
cmp word [esi], 1
sbb al, al
inc al
pop esi
add esp, 0x70
ret 4
Function at 0x4b6920
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
mov esi, dword [esp + 0x18]
mov byte [esp + 0x13], 0
lea eax, [esi + 4]
mov edi, dword [esp + 0x1c]
mov dword [esi], eax
mov ax, word [edi + 4]
mov word [esi + 4], ax
mov ax, word [edi + 0xa]
mov word [esi + 6], ax
mov ax, word [edi + 0x14]
mov word [esi + 0x16], ax
mov ax, word [edi + 8]
mov word [esi + 8], ax
mov ax, word [edi + 6]
mov word [esi + 0xa], ax
lea eax, [esi + 0x24]
mov dword [esi + 0x10], eax
lea eax, [esi + 4]
push eax
call fcn.004b6820
or al, al
jne 0x4b6aaa
test byte [edi + 0x1c], 4
je 0x4b6983
mov byte [esp + 0x13], 1
sub cx, cx
sub dx, dx
lea esp, [esp]
mov ebp, ecx
and ebp, 0xffff
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
lea eax, [eax + eax*4]
lea ebx, [esi + eax]
lea eax, [ebp*4]
mov word [ebx + 0x36], cx
lea eax, [eax + eax*8]
lea ebp, [edi + eax]
mov ax, word [ebp + 0xe]
mov word [ebx + 0x9c], ax
mov ax, word [ebp + 0x12]
mov word [ebx + 0x8e], ax
mov ax, word [ebp + 0x16]
mov word [ebx + 0x34], ax
mov ax, word [ebp + 0x18]
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x2c], eax
cmp cx, 3
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [esi + 4]
mov dword [ebx + 0xa4], eax
jne 0x4b6a10
mov dword [ebx + 0xa8], 0
jmp 0x4b6a1c
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
or cx, cx
jne 0x4b6a30
mov dword [ebx + 0xac], 0
jmp 0x4b6a39
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x4b6a50
cmp word [ebp + 0xe], 0xffff
jne 0x4b6a50
or dword [ebx + 0x2c], 8
jmp 0x4b6a56
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x4b6990
push esi
call fcn.004b6890
push esi
call fcn.004b67d0
push esi
call fcn.004b6790
mov eax, dword [esi + 0x10]
push eax
call fcn.004b7c50
mov word [esi + 0xc], ax
or ax, ax
je 0x4b6aa0
lea eax, [esi + 4]
push eax
call fcn.004b7aa0
sub ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.004b6760
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x4b8ba0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.004b6ac0
mov eax, dword [esp + 0xc]
push 0xd
mov ax, word [eax + 4]
push eax
call fcn.004b86d0
or al, al
jne 0x4b8c2a
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.004b94c0
or al, al
jne 0x4b8c2a
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x10]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.004b9380
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.004b9510
or di, di
je 0x4b8c2a
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x4b8cd0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x28]
push eax
mov esi, dword [esp + 0x28]
push edi
push esi
call fcn.004b6ac0
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.004b6ac0
mov eax, dword [esp + 0x10]
push 0xe
mov ax, word [eax + 4]
push eax
call fcn.004b86d0
or al, al
jne 0x4b8db3
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004b94c0
mov bx, ax
or bl, bl
jne 0x4b8d82
mov eax, dword [esp + 0x10]
mov ax, word [eax + 0xe]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x1c]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x20]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x24]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.004b93d0
mov bx, ax
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004b9510
push esi
call fcn.004b6bd0
cmp ax, 0xd
jne 0x4b8d92
mov bx, 0xd
cmp bl, 0xd
je 0x4b8d9d
cmp bx, 3
jne 0x4b8db0
mov ax, word [esp + 0xe]
dec word [esp + 0xe]
or ax, ax
jne 0x4b8d22
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x4baa10
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push esi
mov byte [esp + 4], 0x52
mov byte [esp + 5], 0x4e
mov byte [esp + 6], 0x42
mov byte [esp + 7], 0x4f
mov byte [esp + 8], 0x44
mov byte [esp + 9], 0x52
mov byte [esp + 0xa], 0x56
mov ax, word [esp + 0x18]
add al, 0x30
mov byte [esp + 0xb], al
mov esi, dword [esp + 0x14]
mov byte [esp + 0xc], 0
mov dword [esi], 0
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4baaa6
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x4baa83
cmp eax, 3
jbe 0x4baa9b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4baa90
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x80b
pop esi
add esp, 0xc
ret 8
mov ax, 0x80c
pop esi
add esp, 0xc
ret 8
mov ax, 0x800
pop esi
add esp, 0xc
ret 8

Function at 0x4baac0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov esi, dword [esp + 0x18]
push esi
mov word [esi + 6], 0xffff
call fcn.004ba9b0
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov edi, dword [esp + 0x20]
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
or ebx, ebx
je 0x4bab10
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
push esi
call fcn.004ba970
or ebx, ebx
je 0x4bab22
cmp word [esi + 6], 0xffff
jne 0x4bab28
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8