joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52a850
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x64738b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
push edi
mov ebp, ecx
call fcn.00528740
xor ebx, ebx
cmp eax, ebx
je 0x52a897
mov eax, dword [eax + 0x1290]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
push 0x15ec
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x52a8bb
mov ecx, eax
call fcn.005342d0
mov esi, eax
jmp 0x52a8bd
xor esi, esi
mov edx, dword [esp + 0x28]
mov dword [esi + 0x1288], edi
mov al, byte [0x64f55f]
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
mov byte [esi + 0x1298], al
mov eax, dword [esp + 0x2c]
lea ecx, [esi + 0x1278]
mov dword [ecx], edx
mov edx, dword [esp + 0x30]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov dword [esi + 0x1284], ebx
mov eax, dword [ebp + 0x30]
inc eax
mov dword [ebp + 0x30], eax
mov dword [esi + 0x1290], eax
mov al, byte [0x64f55f]
mov byte [esi + 0x10], al
mov cl, byte [0x64f55f]
mov byte [esi + 0x114], cl
mov dl, byte [0x64f55f]
mov dword [esp + 0x1c], 0xffffffff
mov byte [esi + 0x218], dl
mov dword [esi + 0xc], ebx
call edi
mov dword [esi + 4], eax
mov dword [esi + 0x13b4], ebx
call edi
mov dword [esi + 0x140c], eax
mov dword [esi + 0x1408], eax
mov dword [esi + 0x1404], eax
mov dword [esi + 0x1400], eax
mov dword [esi + 0x13fc], eax
mov dword [esi + 0x13f8], eax
lea eax, [esi + 0x33a]
mov ecx, 0xf
jmp 0x52a970
mov dl, byte [0x64f55f]
mov byte [eax], dl
add eax, 0x100
dec ecx
jne 0x52a970
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
cmp ecx, eax
lea edi, [ebp + 0x14]
jne 0x52a9a2
cmp eax, ebx
je 0x52a995
add eax, eax
jmp 0x52a99a
mov eax, 0x10
push eax
mov ecx, edi
call fcn.00596a90
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], esi
inc dword [edi + 4]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x52aa51
push ebx
sub esp, 0xc
xor ecx, ecx
mov ebx, esp
mov dword [ebx], ecx
xor edx, edx
mov dword [ebx + 4], edx
xor edi, edi
push eax
mov dword [ebx + 8], edi
call fcn.00578ae0
mov ecx, dword [esi + 0xc]
add esp, 0x14
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], edi
call fcn.0058fcb0
test eax, eax
mov dword [esp + 0x10], eax
jle 0x52aa51
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x52aa51
xor ecx, ecx
test eax, eax
mov dword [esp + 0x28], ecx
jle 0x52aa51
mov eax, dword [esp + 0x24]
mov edi, dword [eax + ecx*4]
mov eax, dword [ebp + 0x18]
lea ecx, [eax - 1]
test ecx, ecx
jl 0x52aa40
cmp ecx, eax
jge 0x52aa40
test edi, edi
je 0x52aa40
mov eax, edi
lea ebx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x52aa20
sub eax, ebx
cmp eax, 1
jbe 0x52aa40
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + ecx*4]
push 1
push 1
push 0
push edi
call fcn.005349d0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
inc ecx
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x52aa00
mov eax, dword [esi + 0x1290]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0x10
Function at 0x531880
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6475a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x68e698]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x1560]
xor esi, esi
cmp eax, esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x118], esi
je 0x531ae5
cmp dword [ebx + 0x1564], esi
je 0x531ae5
cmp dword [ebx + 0x139c], esi
jne 0x531ae5
cmp dword [ebx + 0x1568], esi
je 0x5319e1
mov ecx, dword [ebx + 0xc]
call fcn.0058fc90
cmp eax, esi
je 0x53198f
mov edi, str.CLASS_ROGUE
mov esi, eax
mov ecx, 0xc
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x531940
mov edi, str.WEAPON_SHADOW_OFF
mov esi, eax
mov ecx, 0x12
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x531940
mov edi, str.WEAPON_2CLAW
mov esi, eax
mov ecx, 0xd
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x531940
mov esi, eax
mov edi, str.WEAPON_2DA
mov ecx, 0xb
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x53198f
mov esi, dword [sym.imp.user32.dll_GetAsyncKeyState]
push 0x57
call esi
shr eax, 8
test al, al
je 0x53196f
push 0x24
push 0x24
mov ecx, ebx
call fcn.00530670
xor esi, esi
mov dword [ebp - 0x118], eax
mov dword [ebx + 0x1564], esi
jmp 0x531a00
push 0x53
call esi
shr eax, 8
test al, al
jne 0x531985
push 0x15
mov ecx, ebx
push 0x15
call fcn.00530670
xor esi, esi
mov dword [ebx + 0x1564], esi
jmp 0x531a00
mov esi, dword [sym.imp.user32.dll_GetAsyncKeyState]
push 0x57
call esi
shr eax, 8
test al, al
je 0x5319bb
push 0x26
push 0x26
mov ecx, ebx
call fcn.00530670
xor esi, esi
mov dword [ebp - 0x118], eax
mov dword [ebx + 0x1564], esi
jmp 0x531a00
push 0x53
call esi
shr eax, 8
test al, al
je 0x53197a
push 0x28
push 0x28
mov ecx, ebx
call fcn.00530670
xor esi, esi
mov dword [ebp - 0x118], eax
mov dword [ebx + 0x1564], esi
jmp 0x531a00
push 0x15
push 0x15
mov ecx, ebx
call fcn.00530670
xor eax, eax
lea edi, [ebx + 0x13b8]
xor ecx, ecx
mov dword [edi], eax
xor edx, edx
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
push str.jump.wav
push 0x68ba38
lea ecx, [ebp - 0x114]
push 0x655430
push ecx
mov dword [ebx + 0x13a4], 1
call fcn.0061660d
add esp, 0x10
mov dword [ebp - 4], esi
call fcn.0058f890
push 1
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, eax
call fcn.0058f060
test al, al
je 0x531aaf
mov edx, dword [ebp - 0x11c]
mov ecx, dword [edx + 4]
call fcn.005956b0
mov eax, dword [ebx + 0x1278]
mov ecx, dword [ebx + 0x127c]
mov edx, dword [ebx + 0x1280]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x124], ecx
mov ecx, dword [ebp - 0x11c]
push eax
mov dword [ebp - 0x120], edx
call fcn.005a4740
mov ecx, dword [ebp - 0x11c]
push 0x447a0000
call fcn.005a4720
mov ecx, dword [ebp - 0x11c]
push 0x44fa0000
call fcn.005a4700
mov eax, dword [ebp - 0x118]
jmp 0x531ae7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.006162c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x542f70
Capabilities:
Get disk information

Disassembly:
sub esp, 0x14
mov eax, dword [0x68e698]
movsx ecx, byte [esp + 0x18]
mov dword [esp + 0x10], eax
xor eax, eax
push ecx
mov dword [esp + 9], eax
lea edx, [esp + 8]
mov dword [esp + 0xd], eax
push str._c:_
push edx
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
mov byte [esp + 0x19], al
call fcn.0061660d
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
mov ecx, dword [esp]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x10]
call fcn.006162c0
add esp, 0x14
ret

Function at 0x543260
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x6477eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x65f344
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.ws2_32.dll_WSACreateEvent]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], 0
mov eax, 0x14
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x30], 0
xor edx, edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
lea ecx, [esi + 0x34]
mov dword [esi + 0x2c], edx
call fcn.005b6100
push 0xffff
lea ecx, [esi + 0x40]
mov dword [esp + 0x14], 0
call fcn.00558d00
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x543c00
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push 0x1c
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
jne 0x543c1f
pop ebx
add esp, 0x20
ret
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x543c30
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
je 0x543c28
mov ecx, dword [esi + 0x3c]
movzx eax, word [ecx + esi + 0x14]
add ecx, esi
push ebp
push edi
lea edi, [eax + ecx + 0x18]
movzx ecx, word [ecx + 6]
mov eax, esi
cdq
mov esi, eax
mov ebp, edx
mov eax, ebx
cdq
sub eax, esi
sbb edx, ebp
xor ebp, ebp
test ecx, ecx
mov dword [esp + 0x10], ecx
jbe 0x543ca9
lea ebx, [edi + 0x10]
mov ecx, dword [ebx]
mov esi, dword [ebx - 8]
cmp ecx, esi
mov edi, dword [ebx - 4]
ja 0x543c82
mov ecx, esi
xor esi, esi
cmp edx, esi
jb 0x543c9d
ja 0x543c8e
cmp eax, edi
jb 0x543c9d
lea esi, [ecx + edi]
xor ecx, ecx
cmp edx, ecx
jb 0x543cb3
ja 0x543c9d
cmp eax, esi
jbe 0x543cb3
mov ecx, dword [esp + 0x10]
inc ebp
add ebx, 0x28
cmp ebp, ecx
jb 0x543c74
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
inc ebp
sub eax, edi
pop edi
mov dword [ecx], ebp
pop ebp
pop esi
mov dword [edx], eax
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x5441c0
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0xa3c
mov eax, dword [0x68e698]
push esi
mov esi, dword [sym.imp.kernel32.dll_GetModuleFileNameA]
mov dword [esp + 0xa3c], eax
push 0x104
lea eax, [esp + 0x18]
push eax
push 0
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call esi
lea ecx, [esp + 0x14]
push 0x2e
push ecx
call fcn.00616d50
add esp, 8
test eax, eax
je 0x54421d
mov byte [eax], 0
lea edx, [esp + 0x938]
push edx
lea eax, [esp + 0x630]
push eax
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x430]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00616dbb
push 0x104
lea ecx, [esp + 0x644]
push ecx
lea edx, [esp + 0x74c]
push edx
call fcn.00616cbd
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x448]
push ecx
lea edx, [esp + 0x3c]
push 0x655430
push edx
call fcn.0061660d
add esp, 0x30
push 0x104
lea eax, [esp + 0x52c]
push eax
push 0
call esi
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x324]
push edx
call dword [sym.imp.advapi32.dll_GetUserNameA]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.kernel32.dll_GetComputerNameA]
mov esi, dword [esp + 0xa4c]
lea edx, [esp + 4]
push edx
mov edx, dword [esi + 0xc]
lea eax, [esp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x840]
push ecx
push edx
call fcn.00543c00
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0xc]
add esp, 0x14
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call fcn.00543970
mov ecx, dword [esi]
add esp, 4
push eax
push ecx
lea edx, [esp + 0x848]
push edx
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x33c]
push ecx
mov ecx, dword [esp + 0xa68]
lea edx, [esp + 0x548]
push edx
mov edx, dword [esp + 0xa68]
lea eax, [esp + 0x754]
push eax
push str._______________________________________________________________________________r_n____Basic_Information_r_n_______________________________________________________________________________r_n_r_nProgram_Name_:__s_r_nEXE__________:__s_r_nUser_________:__s_r_nComputer_____:__s_r_n_r_nProgram______:__s_r_nException____:__08x___s__r_nFault_Address:__08x__02X:_08x_r_n_r_n_r_n
push ecx
push edx
call fcn.0061769f
mov ecx, dword [esp + 0xa70]
add esp, 0x34
pop esi
call fcn.006162c0
add esp, 0xa3c
ret
Function at 0x545740
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x68e698]
push ebx
push esi
push edi
mov dword [esp + 0x10c], eax
push 0xff
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ws2_32.dll_gethostname]
test eax, eax
jne 0x5457f7
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.ws2_32.dll_gethostbyname]
test eax, eax
je 0x5457f7
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
xor esi, esi
test edx, edx
je 0x5457f7
mov bl, byte [esp + 0x118]
mov edx, dword [esp + 0x114]
test bl, bl
mov ecx, dword [ecx + esi*4]
mov ecx, dword [ecx]
mov dword [edx], ecx
jne 0x5457c4
cmp cl, 0xa
je 0x5457cf
cmp cl, 0xac
jne 0x5457b9
mov cl, byte [edx + 1]
cmp cl, 0x10
jb 0x5457c4
cmp cl, 0x1f
jbe 0x5457cf
jmp 0x5457c4
cmp cl, 0xc0
jne 0x5457c4
cmp byte [edx + 1], 0xa8
je 0x5457cf
mov cl, byte [edx]
cmp cl, 0xa9
je 0x5457cf
test cl, cl
jne 0x5457df
mov ecx, dword [eax + 0xc]
mov edi, dword [ecx + esi*4 + 4]
inc esi
test edi, edi
jne 0x545795
test esi, esi
je 0x5457f7
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x100]
call fcn.006162c0
add esp, 0x104
ret
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor al, al
pop ebx
call fcn.006162c0
add esp, 0x104
ret

Function at 0x545810
Capabilities:
Get hostname
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
sub esp, 0x108
mov eax, dword [0x68e698]
mov ecx, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x114]
mov dword [esp + 0x108], eax
lea eax, [esp + 4]
push eax
push esi
push ecx
mov dword [esp + 0x10], 0x10
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x54590c
push ebx
push edi
push 0xff
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.ws2_32.dll_gethostname]
test eax, eax
jne 0x5458f4
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ws2_32.dll_gethostbyname]
test eax, eax
je 0x5458f4
mov ecx, dword [eax + 0xc]
mov ebx, dword [ecx]
xor edx, edx
test ebx, ebx
je 0x5458f4
mov bl, byte [esp + 0x120]
lea ebx, [ebx]
test bl, bl
mov ecx, dword [ecx + edx*4]
mov ecx, dword [ecx]
mov dword [esi + 4], ecx
jne 0x5458c0
cmp cl, 0xa
je 0x5458cc
cmp cl, 0xac
jne 0x5458b5
mov cl, byte [esi + 5]
cmp cl, 0x10
jb 0x5458c0
cmp cl, 0x1f
jbe 0x5458cc
jmp 0x5458c0
cmp cl, 0xc0
jne 0x5458c0
cmp byte [esi + 5], 0xa8
je 0x5458cc
mov cl, byte [esi + 4]
cmp cl, 0xa9
je 0x5458cc
test cl, cl
jne 0x5458dc
mov ecx, dword [eax + 0xc]
mov edi, dword [ecx + edx*4 + 4]
inc edx
test edi, edi
jne 0x545890
test edx, edx
je 0x5458f4
pop edi
pop ebx
mov al, 1
pop esi
mov ecx, dword [esp + 0x104]
call fcn.006162c0
add esp, 0x108
ret
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [esp + 0x104]
call fcn.006162c0
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
xor al, al
pop esi
call fcn.006162c0
add esp, 0x108
ret
Function at 0x547170
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x64796b
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
mov esi, ecx
jne 0x54719c
mov eax, dword [str.._Script_Game_SkillScript.txt]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x1c], ebx
jne 0x5471d4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
push ebp
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
push edi
mov dword [esp + 0x28], edi
call fcn.00614c96
mov ebp, eax
add esp, 4
mov dword [esp + 0x2c], ebp
test ebp, ebp
mov byte [esp + 0x38], 1
je 0x54722c
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x54724e
push ebp
call fcn.00616a81
add esp, 4
test ebx, ebx
je 0x547237
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebp
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov ebx, dword [ebp]
add ebx, 8
mov edx, dword [ebx + ebp - 4]
lea eax, [ebx + ebp]
mov dword [esp + 0x28], eax
mov eax, dword [esi]
test eax, eax
mov dword [esp + 0x40], edx
je 0x547278
push eax
call fcn.00616a81
add esp, 4
mov dword [esi], 0
mov eax, 0xcccccccd
mul dword [esp + 0x40]
mov edi, edx
shr edi, 0xb
lea eax, [edi + edi*4]
shl eax, 9
push eax
mov dword [esi + 4], edi
call fcn.00614c96
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x38], 2
je 0x5472bc
push 0x546f90
push edi
push 0xa00
push eax
call fcn.00401000
mov eax, dword [esp + 0x1c]
jmp 0x5472be
xor eax, eax
test eax, eax
mov byte [esp + 0x38], 1
mov dword [esi], eax
jne 0x5472f8
push ebp
call fcn.00616a81
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x5472e1
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebp
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x40]
push ecx
push eax
mov eax, dword [esp + 0x2c]
sub eax, ebx
push eax
push edx
call fcn.00558ca0
mov eax, dword [esp + 0x50]
mov ecx, dword [esi]
add esp, 0x10
push 1
push 0
push eax
push ecx
mov ecx, dword [0x8b481c]
call fcn.00558c10
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esi + 8]
lea eax, [eax + eax*4]
push edx
shl eax, 9
push eax
push ecx
call fcn.00554240
add esp, 0xc
test eax, eax
push ebp
je 0x54736f
call fcn.00616a81
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004f0ec0
pop ebp
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
call fcn.00616a81
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004f0ec0
mov ecx, dword [esp + 0x30]
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x547610
Capabilities:
Access peb ldr_data
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x64799b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
push esi
push edi
xor esi, esi
cmp eax, esi
mov edi, ecx
mov dword [esp + 0xc], edi
jne 0x547640
mov eax, dword [str.ItemScript.txt]
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jne 0x547678
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
push ebp
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, eax
push ebp
call fcn.00614c96
mov esi, eax
add esp, 4
mov dword [esp + 0x2c], esi
push 0
lea ecx, [esp + 0x20]
push ecx
push ebp
push esi
push ebx
mov byte [esp + 0x4c], 1
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x5476ee
test esi, esi
je 0x5476cc
push esi
call fcn.00616a81
add esp, 4
test ebx, ebx
je 0x5476d7
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebp
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov ebx, dword [esi]
add ebx, 8
mov edx, dword [ebx + esi - 4]
lea eax, [ebx + esi]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 4]
test eax, eax
mov dword [esp + 0x40], edx
je 0x547719
push eax
call fcn.00616a81
add esp, 4
mov dword [edi + 4], 0
mov eax, 0xcb8727c1
mul dword [esp + 0x40]
mov eax, dword [esp + 0x10]
mov edi, edx
shr edi, 9
mov ecx, edi
imul ecx, ecx, 0x284
push ecx
mov dword [eax], edi
call fcn.00614c96
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x38], 2
je 0x547762
push fcn.00547c80
push edi
push 0x284
push eax
call fcn.00401000
mov eax, dword [esp + 0x20]
jmp 0x547764
xor eax, eax
test eax, eax
mov edi, dword [esp + 0x10]
mov byte [esp + 0x38], 1
mov dword [edi + 4], eax
jne 0x5477a3
push esi
call fcn.00616a81
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x54778c
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebp
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [esp + 0x2c]
sub ebp, ebx
push ebp
push eax
call fcn.00558ca0
mov ecx, dword [esp + 0x50]
mov edx, dword [edi + 4]
add esp, 0x10
push 2
push 0
push ecx
mov ecx, dword [0x8b481c]
push edx
call fcn.00558c10
push esi
call fcn.00616a81
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x5477e9
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esp + 0x30]
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x547800
Capabilities:
Access peb ldr_data
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x64799b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
mov esi, ecx
mov dword [esp + 0xc], esi
jne 0x547830
mov eax, dword [str.Chemical.txt]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jne 0x547868
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
push ebp
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, eax
push ebp
call fcn.00614c96
mov edi, eax
add esp, 4
mov dword [esp + 0x2c], edi
push 0
lea ecx, [esp + 0x20]
push ecx
push ebp
push edi
push ebx
mov byte [esp + 0x4c], 1
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x5478de
test edi, edi
je 0x5478bc
push edi
call fcn.00616a81
add esp, 4
test ebx, ebx
je 0x5478c7
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebp
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov ebx, dword [edi]
add ebx, 8
mov edx, dword [ebx + edi - 4]
lea eax, [ebx + edi]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esp + 0x40], edx
je 0x547909
push eax
call fcn.00616a81
add esp, 4
mov dword [esi + 0xc], 0
mov eax, 0xcccccccd
mul dword [esp + 0x40]
mov eax, dword [esp + 0x10]
mov esi, edx
shr esi, 3
lea ecx, [esi + esi*4]
shl ecx, 1
push ecx
mov dword [eax + 8], esi
call fcn.00614c96
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x38], 2
je 0x54794d
push fcn.00547ab0
push esi
push 0xa
push eax
call fcn.00401000
mov eax, dword [esp + 0x20]
jmp 0x54794f
xor eax, eax
test eax, eax
mov esi, dword [esp + 0x10]
mov byte [esp + 0x38], 1
mov dword [esi + 0xc], eax
jne 0x54798e
push edi
call fcn.00616a81
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x547977
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebp
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [esp + 0x2c]
sub ebp, ebx
push ebp
push eax
call fcn.00558ca0
mov ecx, dword [esp + 0x50]
mov edx, dword [esi + 0xc]
add esp, 0x10
push 2
push 0
push ecx
mov ecx, dword [0x8b481c]
push edx
call fcn.00558c10
push edi
call fcn.00616a81
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x5479d4
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esp + 0x30]
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4