joyce8/EMBER2024-capa huggingface dataset:
Function at 0x500740
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x110
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x120]
push esi
mov dword [esp + 4], ecx
push edi
mov edi, dword [esp + 0x11c]
mov dword [0x60a28c], eax
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 8]
push ecx
mov esi, 0x5aeae8
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
call sym.convertifd.exe_CV_SetOptions
call sym.convertifd.exe_JfLockInit
push edi
call sym.convertifd.exe_CV_SetTranslationINIFilename
add esp, 8
push edi
push pe_nt_image_headers32
lea edx, [esp + 0x1c]
push edx
push 0x580cbb
push str.SymbolSetOrder
push str.Preferences
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x14]
push 0x581984
push eax
call fcn.00517062
add esp, 8
test eax, eax
je 0x50081e
push eax
call fcn.00511d40
push 0x581984
push 0
mov dword [0x5aeae8], eax
mov esi, 0x5aeaec
call fcn.00517062
add esp, 0xc
test eax, eax
je 0x50081e
push eax
call fcn.00511d40
push 0x581984
mov dword [esi], eax
push 0
add esi, 4
call fcn.00517062
add esp, 0xc
test eax, eax
jne 0x500800
push 0x24000
push 0
push 0x60a2a0
mov dword [esi], 0xffffffff
call fcn.00511e90
add esp, 0xc
pop edi
mov eax, 0x5aeee8
mov ecx, 0x38
pop esi
jmp 0x500850
mov edx, dword [eax]
mov dword [edx*4 + 0x60a2a0], eax
add eax, 0x240
sub ecx, 1
jne 0x500850
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00511a80
add esp, 0x110
ret
Function at 0x501da0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x8188
call fcn.00516c30
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x8184], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00500280
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
lea edx, [esp + 0x60]
push str.Translate__d_to__d
push edx
call fcn.005135ca
add esp, 0x10
cmp dword [esi + 8], 2
je 0x501e80
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
call fcn.005004e0
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x501e80
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0x14]
push edx
push eax
push ecx
mov edi, ebx
call fcn.00501330
add esp, 0xc
test eax, eax
jne 0x501e2d
push ebx
call fcn.00513a0e
add esp, 4
xor eax, eax
jmp 0x501f96
mov ebp, dword [esp + 0x14]
xor edi, edi
cmp dword [ebp], edi
jle 0x501e70
jmp 0x501e40
mov edx, dword [ebp + 4]
movzx esi, word [edx + edi*4]
lea eax, [edx + edi*4]
movzx eax, word [eax + 2]
push eax
mov eax, dword [esp + 0x14]
push 1
push esi
xor ebx, ebx
call fcn.005002a0
add edi, 1
add esp, 0xc
cmp edi, dword [ebp]
jl 0x501e40
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov edi, ebp
call fcn.004ff820
push ebx
call fcn.00513a0e
add esp, 4
mov ecx, dword [0x60a288]
push ecx
push 0x8000
lea edx, [esp + 0x19c]
push edx
push 0x580cbb
push 0
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x194], 0
je 0x501edd
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
lea eax, [esp + 0x9c]
push str.JETKEYS:_Loading__d_to__d_overrides.
push eax
call fcn.005135ca
push 0
lea ecx, [esp + 0xa8]
push ecx
push 0x64
call sym.convertifd.exe_CV_Message
add esp, 0x1c
cmp byte [esp + 0x194], 0
lea edi, [esp + 0x194]
je 0x501f91
mov eax, edi
call fcn.004ff7c0
mov ebp, eax
mov eax, edi
call fcn.004ff7d0
mov ebx, eax
mov al, byte [edi]
cmp al, 0x44
je 0x501f73
cmp al, 0x54
je 0x501f73
mov edx, dword [0x60a288]
push edx
push 0x3c
lea eax, [esp + 0x24]
push eax
push 0x580cbb
push edi
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x1c]
call fcn.004ff6e0
movsx edx, byte [esp + 0x1c]
push edx
mov esi, eax
call fcn.00516e4b
add esp, 4
test eax, eax
je 0x501f52
push esi
push 1
push ebx
xor ebx, ebx
jmp 0x501f65
mov al, byte [esp + 0x1c]
cmp al, 0x2d
je 0x501f5e
cmp al, 0x2b
jne 0x501f73
push 0
push 0
push ebx
mov ebx, esi
mov eax, dword [esp + 0x1c]
mov esi, ebp
call fcn.005002a0
add esp, 0xc
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x501f78
sub eax, edx
cmp byte [edi + eax + 1], cl
lea edi, [edi + eax + 1]
jne 0x501ef2
mov eax, 1
mov ecx, dword [esp + 0x8194]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511a80
add esp, 0x8188
ret
Function at 0x503580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push ebx
push eax
push ebp
push edi
call fcn.00515cb6
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x5035b0
mov edx, dword [esp + 0x10]
mov ecx, esi
imul ecx, ebp
push ecx
push edi
push edi
push edx
push ebx
call sym.convertifd.exe_Utdcrypt
add esp, 0x14
mov eax, esi
pop esi
pop ebp
ret

Function at 0x5037c0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
xor eax, eax
test ebx, ebx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 8], eax
jle 0x503817
push ebp
mov ebp, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x1c]
nop
push ebp
push 1
push edi
push esi
call fcn.00515cb6
add esp, 0x10
cmp eax, 1
jne 0x503811
mov eax, dword [esp + 0x28]
push edi
push esi
push esi
push eax
push ebp
call sym.convertifd.exe_Utdcrypt
add dword [esp + 0x24], 1
sub ebx, 1
add esp, 0x14
add esi, edi
test ebx, ebx
jg 0x5037e0
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x506140
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push edi
push eax
call fcn.0051600c
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
sub eax, ebp
add esp, 4
test edi, edi
mov ebx, eax
je 0x50625e
cmp edi, 0x28
push esi
jl 0x50616f
cmp edi, 0x64
jl 0x50617a
lea ecx, [edi - 0x8c]
cmp ecx, 0x3b
ja 0x5061d3
test ebp, ebp
jle 0x5061ce
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub eax, esi
mov dword [esp + 0x24], eax
jmp 0x506194
mov eax, dword [esp + 0x24]
mov al, byte [eax + esi]
cmp al, 0xff
jne 0x50619f
xor ecx, ecx
jmp 0x5061a5
movzx ecx, al
add ecx, 1
mov eax, ebx
cdq
idiv edi
add ebx, 1
mov byte [esi], cl
and al, 1
test al, al
je 0x5061c6
cmp cl, 0xff
jne 0x5061be
xor eax, eax
jmp 0x5061c4
movzx eax, cl
add eax, 1
mov byte [esi], al
add esi, 1
sub ebp, 1
jne 0x506190
pop esi
pop edi
pop ebp
pop ebx
ret
mov ecx, edi
sub ecx, 1
je 0x506221
sub ecx, 1
je 0x506212
sub ecx, 1
je 0x506203
mov edx, edi
and edx, 0xf
movzx ebx, byte [edx + 0x5b6f80]
sar edi, 4
and edi, 0xf
movzx ecx, byte [edi + 0x5b6f90]
mov dword [esp + 0x24], ecx
jmp 0x50622e
mov dword [esp + 0x24], 0xe3
mov ebx, 0x99
jmp 0x50622e
mov dword [esp + 0x24], 0xdf
mov ebx, 0x55
jmp 0x50622e
mov dword [esp + 0x24], 0xdd
mov ebx, 0xaa
test ebp, ebp
jle 0x5061ce
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov esi, eax
sub esi, ecx
sub edi, ecx
lea eax, [esi + ecx]
cdq
idiv dword [esp + 0x24]
add ecx, 1
xor dl, bl
xor dl, byte [ecx - 1]
sub ebp, 1
mov byte [edi + ecx - 1], dl
jne 0x506240
pop esi
pop edi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x5061cf
push ebp
push ecx
push eax
call fcn.005154f0
add esp, 0xc
pop edi
pop ebp
pop ebx
ret

Function at 0x5068e0
Capabilities:
Parse credit card information

Disassembly:
mov eax, dword [esp + 8]
add eax, 0xfffffc5c
cmp eax, 0x12
push esi
push edi
ja case.0x5068f7.933
movzx eax, byte [eax + 0x506998]
jmp dword [eax*4 + 0x506984]
mov esi, dword [esp + 0xc]
mov edi, 0x5b7fb0
call fcn.00506860
pop edi
pop esi
ret
mov esi, dword [esp + 0xc]
mov edi, str.___.:___
call fcn.00506860
pop edi
pop esi
ret
mov esi, dword [esp + 0xc]
mov edi, str.____.__
call fcn.00506860
pop edi
pop esi
ret
mov esi, dword [esp + 0xc]
mov edi, str.____.:___
call fcn.00506860
pop edi
pop esi
ret
mov ecx, dword [esp + 0xc]
mov al, byte [ecx]
cmp al, 0x2e
je 0x506979
cmp al, 0x2c
je 0x506979
cmp al, 0x21
je 0x506979
cmp al, 0x3a
je 0x506979
cmp al, 0x3b
je 0x506979
cmp al, 0x3f
je 0x506979
cmp al, 0x29
je 0x506979
cmp al, 0x5d
je 0x506979
cmp al, 0x7d
je 0x506979
cmp al, 0x25
je 0x506979
cmp al, 0x3e
je 0x506979
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x506b10
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x68
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x64], eax
push edi
mov edi, ecx
test edi, edi
jne 0x506b38
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00511a80
add esp, 0x68
ret
push esi
xor esi, esi
jmp 0x506b40
mov eax, dword [esi*8 + sym.convertifd.exe_AliasTable]
push eax
push edi
call fcn.0051e073
add esp, 8
test eax, eax
je 0x506bbb
add esi, 1
cmp esi, 0x52
jb 0x506b40
push 0
push 0x64
lea ecx, [esp + 0x10]
push ecx
push 0x5868fc
push edi
push str.Encoding
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x5868fc
lea esi, [esp + 8]
mov ecx, 7
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x506bd3
movsx eax, byte [esp + 8]
push eax
call fcn.00516e4b
add esp, 4
test eax, eax
je 0x506bd3
lea ecx, [esp + 8]
push ecx
call fcn.00511d40
add esp, 4
pop esi
pop edi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00511a80
add esp, 0x68
ret
mov eax, dword [esi*8 + 0x5b9eac]
pop esi
pop edi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00511a80
add esp, 0x68
ret
mov ecx, dword [esp + 0x6c]
pop esi
pop edi
xor ecx, esp
or eax, 0xffffffff
call fcn.00511a80
add esp, 0x68
ret
Function at 0x50a430
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x204], eax
mov ecx, dword [esp + 0x210]
mov eax, dword [esp + 0x20c]
push ebx
mov ebx, ecx
imul ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x220]
push edi
xor edi, edi
test ebx, ebx
mov dword [esp + 0xc], eax
jle 0x50a4c1
push esi
mov esi, ebx
sub esi, edi
cmp esi, 0x200
jle 0x50a482
mov esi, 0x200
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x22c]
push esi
lea ecx, [esp + 0x18]
push ecx
add edx, edi
push edx
push eax
push ebp
call sym.convertifd.exe_Utcrypt
push ebp
push 1
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.0051646d
add esp, 0x24
cmp eax, 1
jne 0x50a4b9
add edi, esi
cmp edi, ebx
jl 0x50a471
mov ecx, dword [esp + 0x220]
pop esi
test ecx, ecx
jle 0x50a4e2
mov eax, edi
pop edi
cdq
pop ebp
idiv ecx
pop ebx
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00511a80
add esp, 0x208
ret
mov ecx, dword [esp + 0x210]
mov eax, dword [esp + 0x220]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511a80
add esp, 0x208
ret

Function at 0x50ab40
Capabilities:
Hash data with crc32
Read file on windows

Disassembly:
sub esp, 0x37c
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x378], eax
push ebx
push ebp
mov ebp, dword [esp + 0x38c]
push esi
mov esi, dword [esp + 0x38c]
push edi
push esi
mov dword [esp + 0x18], ebp
call fcn.0051600c
mov edi, eax
push esi
mov dword [esp + 0x18], edi
or ebx, 0xffffffff
mov dword [ebp], 0
call fcn.00519b2f
push esi
push 1
lea eax, [esp + 0x28]
push 0xf8
push eax
call fcn.00515cb6
add esp, 0x18
cmp eax, 1
je 0x50abb6
push 0
push edi
push esi
call fcn.00515def
add esp, 0xc
mov eax, 0xfffffffe
jmp 0x50aca7
cmp byte [esp + 0x108], 0
movsx ebp, byte [esp + 0x2f]
jne 0x50abdb
push 0
push edi
push esi
call fcn.00515def
add esp, 0xc
mov eax, 1
jmp 0x50aca7
lea ecx, [esp + 0x108]
push ecx
call fcn.00511d2f
mov edi, eax
push 0
push edi
push esi
call fcn.00515def
push esi
push 0x278
lea edx, [esp + 0x128]
push 1
push edx
call fcn.00515cb6
add esp, 0x20
cmp eax, 0x278
je 0x50ac29
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00515def
add esp, 0xc
mov eax, 0xfffffffe
jmp 0x50aca7
push 0x278
lea ecx, [esp + 0x114]
push ecx
mov edx, ecx
push edx
push ebp
push esi
call sym.convertifd.exe_Utdcrypt
push esi
lea ebp, [edi + 0xd0]
call fcn.00519b2f
push esi
xor edi, edi
call fcn.00516626
add esp, 0x1c
cmp eax, 0xffffffff
je 0x50ac8d
lea esp, [esp]
lea ecx, [ebp + 0xc]
cmp edi, ecx
jge 0x50ac6b
cmp edi, ebp
jge 0x50ac7c
xor eax, ebx
and eax, 0xff
shr ebx, 8
xor ebx, dword [eax*4 + 0x5ba218]
push esi
add edi, 1
call fcn.00516626
add esp, 4
cmp eax, 0xffffffff
jne 0x50ac60
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push ecx
not ebx
push esi
mov dword [eax], ebx
call fcn.00515def
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x388]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00511a80
add esp, 0x37c
ret
Function at 0x50acc0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x37c
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x378], eax
push esi
mov esi, dword [esp + 0x384]
push edi
push esi
mov dword [esp + 0xc], 0
call fcn.0051600c
push esi
mov edi, eax
call fcn.00519b2f
push esi
push 1
lea eax, [esp + 0x20]
push 0xf8
push eax
call fcn.00515cb6
add esp, 0x18
cmp eax, 1
je 0x50ad35
push 0
push edi
push esi
call fcn.00515def
add esp, 0xc
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.00511a80
add esp, 0x37c
ret
cmp byte [esp + 0x100], 0
push ebx
movsx ebx, byte [esp + 0x2b]
mov dword [esp + 0x10], ebx
jne 0x50ad72
push 0
push edi
push esi
call fcn.00515def
add esp, 0xc
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.00511a80
add esp, 0x37c
ret
lea ecx, [esp + 0x104]
push ebp
push ecx
call fcn.00511d2f
mov ebp, eax
push 0
push ebp
push esi
call fcn.00515def
push esi
push 0x278
lea edx, [esp + 0x128]
push 1
push edx
call fcn.00515cb6
add esp, 0x20
cmp eax, 0x278
je 0x50adc0
push 0
push edi
push esi
call fcn.00515def
add esp, 0xc
mov eax, 0xfffffffe
jmp 0x50ae72
push 0x278
lea eax, [esp + 0x114]
push eax
mov ecx, eax
push ecx
push ebx
push esi
call sym.convertifd.exe_Utdcrypt
lea edx, [esp + 0x24]
push edx
push esi
call sym.convertifd.exe_MdfCalcChecksum
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x50adfb
push 0
push edi
push esi
call fcn.00515def
add esp, 0xc
mov eax, ebx
jmp 0x50ae72
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1e4]
push 0x586b20
push ecx
call fcn.005135ca
push 0
push ebp
push esi
call fcn.00515def
mov ecx, dword [esp + 0x2c]
push 0x278
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push ecx
push esi
call sym.convertifd.exe_Utcrypt
push esi
push 0x278
lea edx, [esp + 0x144]
push 1
push edx
call fcn.0051646d
add esp, 0x3c
cmp eax, 0x278
push 0
push edi
push esi
je 0x50ae68
call fcn.00515def
add esp, 0xc
mov eax, 0xfffffffc
jmp 0x50ae72
call fcn.00515def
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x388]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.00511a80
add esp, 0x37c
ret
Function at 0x50ae90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x37c
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x378], eax
push esi
mov esi, dword [esp + 0x384]
push edi
push esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call fcn.0051600c
push esi
mov edi, eax
call fcn.00519b2f
push esi
push 1
lea eax, [esp + 0x20]
push 0xf8
push eax
call fcn.00515cb6
add esp, 0x18
cmp eax, 1
je 0x50af0d
push 0
push edi
push esi
call fcn.00515def
add esp, 0xc
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.00511a80
add esp, 0x37c
ret
cmp byte [esp + 0x100], 0
push ebp
movsx ebp, byte [esp + 0x2b]
je 0x50afa3
lea ecx, [esp + 0x104]
push ecx
call fcn.00511d2f
push 0
push eax
push esi
call fcn.00515def
push esi
push 0x278
lea edx, [esp + 0x124]
push 1
push edx
call fcn.00515cb6
add esp, 0x20
cmp eax, 0x278
je 0x50af7f
push 0
push edi
push esi
call fcn.00515def
add esp, 0xc
pop ebp
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.00511a80
add esp, 0x37c
ret
push 0x278
lea eax, [esp + 0x110]
push eax
mov ecx, eax
push ecx
push ebp
push esi
call sym.convertifd.exe_Utdcrypt
add esp, 0x14
cmp byte [esp + 0x1dc], 0
jne 0x50afcc
push 0
push edi
push esi
call fcn.00515def
add esp, 0xc
pop ebp
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.00511a80
add esp, 0x37c
ret
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1e0]
push 0x586b20
push eax
call fcn.00511af7
lea ecx, [esp + 0x1c]
push ecx
push esi
call sym.convertifd.exe_MdfCalcChecksum
add esp, 0x14
push 0
mov ebp, eax
test ebp, ebp
push edi
push esi
je 0x50b01d
call fcn.00515def
add esp, 0xc
mov eax, ebp
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.00511a80
add esp, 0x37c
ret
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x18]
je 0x50b04a
call fcn.00515def
add esp, 0xc
pop ebp
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x378]
xor ecx, esp
call fcn.00511a80
add esp, 0x37c
ret
call fcn.00515def
mov ecx, dword [esp + 0x390]
add esp, 0xc
pop ebp
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00511a80
add esp, 0x37c
ret
Function at 0x50b3b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
push ebp
mov dword [esp + 4], eax
call sym.convertifd.exe_feyefpk
mov ebp, eax
test ebp, ebp
jne 0x50b3e2
pop ebp
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00511a80
add esp, 0x44
ret
push ebx
push esi
push edi
push 0
call fcn.00512572
mov esi, eax
mov dword [esp + 0x1c], edx
call fcn.00519a57
add eax, esi
or eax, 1
push eax
call fcn.00517d53
add esp, 8
xor esi, esi
call fcn.00517d60
and eax, 0x800000ff
jns 0x50b41a
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + esi + 0x1c], al
add esi, 1
cmp esi, 0x32
jb 0x50b407
call fcn.00517d60
cdq
mov ecx, 0x29
idiv ecx
mov ecx, 0xf7
lea edi, [esp + 0x1e]
mov ebx, 4
mov esi, edx
add esi, 0xa
mov dl, 0x79
sub edi, ecx
lea ebx, [ebx]
movzx eax, byte [edi + ecx]
movzx edx, dl
add eax, edx
cdq
idiv ecx
add ecx, 2
sub ebx, 1
jne 0x50b450
movzx eax, dl
mov ecx, esi
sub ecx, eax
add ecx, 0x149
and ecx, 0x800000ff
jns 0x50b481
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x1d], cl
mov ecx, 3
cmp esi, ecx
mov dl, 0xd4
jle 0x50b4b7
mov edi, 0xff
sub edi, esi
jmp 0x50b4a0
movzx eax, byte [esp + ecx + 0x1c]
movzx edx, dl
add eax, edx
lea ebx, [edi + ecx]
cdq
add ecx, 2
idiv ebx
cmp ecx, esi
jl 0x50b4a0
movzx eax, dl
mov ecx, ebp
sub ecx, eax
add ecx, 0xff
and ecx, 0x800000ff
jns 0x50b4d4
dec ecx
or ecx, 0xffffff00
inc ecx
mov edi, dword [esp + 0x10]
push edi
push esi
lea edx, [esp + 0x24]
push 1
push edx
mov byte [esp + 0x2c], cl
call fcn.0051646d
push edi
call fcn.00517c64
mov ecx, dword [esp + 0x64]
add esp, 0x14
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00511a80
add esp, 0x44
ret

Function at 0x50b680
Capabilities:
Set current directory

Disassembly:
mov al, byte [esp + 4]
lea ecx, [esp + 4]
add al, 0x41
push ecx
mov byte [esp + 8], al
mov byte [esp + 9], 0x3a
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, 1
ret

Function at 0x50b6b0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x50b6e0
cmp byte [eax + esi - 1], 0
lea ecx, [eax + esi - 1]
je 0x50b6e0
cmp byte [ecx], 0x20
jne 0x50b6e0
mov byte [ecx], 0
sub ecx, 1
cmp byte [ecx], 0
jne 0x50b6d0
pop esi
ret
Function at 0x50b790
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [str.xxxxxxxx]
mov ecx, dword [0x586b40]
mov dl, byte [0x586b44]
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
push 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 8
push eax
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x20], dl
call fcn.00515cb6
mov al, byte [esp + 0x18]
add esp, 0x10
cmp al, 0xff
lea edi, [esp + 8]
jne 0x50b81b
cmp byte [esp + 9], 0xfe
je 0x50b826
push 0
push 0
push esi
call fcn.00515def
add esp, 0xc
push 5
push str.__xml
push edi
call fcn.0052a9bf
mov ecx, dword [esp + 0x20]
add esp, 0xc
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, esp
add eax, 1
call fcn.00511a80
add esp, 0x10
ret
cmp al, 0xfe
jne 0x50b830
cmp byte [esp + 9], 0xff
jne 0x50b7e6
push 0
lea edi, [esp + 0xe]
push 2
jmp 0x50b7ea
cmp al, 0xef
jne 0x50b7e6
cmp byte [esp + 9], 0xbb
jne 0x50b7e6
cmp byte [esp + 0xa], 0xbf
jne 0x50b7e6
push 0
lea edi, [esp + 0xf]
push 3
jmp 0x50b7ea

Function at 0x50b900
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
mov ebx, dword [esp + 0x48]
test ebx, ebx
jne 0x50b92a
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00511a80
add esp, 0x40
ret
push esi
push 0
push 0
push ebx
call fcn.00515def
push ebx
push 0x3c
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.00515cb6
movzx eax, byte [esp + 0x24]
add esp, 0x1c
sub eax, 1
je 0x50ba18
sub eax, 1
je 0x50b963
xor esi, esi
push esi
push esi
jmp 0x50ba20
mov ecx, 0xf7
lea esi, [esp + 0xb]
push edi
mov dl, 0x79
sub esi, ecx
mov edi, 4
movzx eax, byte [esi + ecx]
movzx edx, dl
add eax, edx
cdq
idiv ecx
add ecx, 2
sub edi, 1
jne 0x50b976
movzx esi, byte [esp + 0xe]
movzx eax, dl
add esi, eax
and esi, 0x800000ff
jns 0x50b9a4
dec esi
or esi, 0xffffff00
inc esi
sub esi, 0x49
push 0
lea ecx, [esi + 1]
push ecx
push ebx
call fcn.00515def
mov ecx, 3
add esp, 0xc
cmp esi, ecx
mov dl, 0xd4
jle 0x50b9e7
mov edi, 0xff
sub edi, esi
jmp 0x50b9d0
movzx eax, byte [esp + ecx + 0xd]
movzx edx, dl
add eax, edx
lea ebx, [edi + ecx]
cdq
add ecx, 2
idiv ebx
cmp ecx, esi
jl 0x50b9d0
movzx esi, byte [esp + 0xd]
movzx eax, dl
add esi, eax
and esi, 0x800000ff
jns 0x50ba01
dec esi
or esi, 0xffffff00
inc esi
add esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00511a80
add esp, 0x40
ret
mov esi, 1
push 0
push esi
push ebx
call fcn.00515def
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00511a80
add esp, 0x40
ret