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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov dword [esp + 4], 0
push str.O_que_voce_deseja_executar___n_n
call fcn.00401ad0
add esp, 4
push str.1___Gerar_config_do_MainInfo.ini__n_n
call fcn.00401ad0
add esp, 4
push str.2___Gerar_config_da_pasta_CommonManager__n_n
call fcn.00401ad0
add esp, 4
push str.3___Gerar_config_da_pasta_CustomManager__n_n
call fcn.00401ad0
add esp, 4
push str.4___Gerar_config_da_pasta_EffectManager__n_n
call fcn.00401ad0
add esp, 4
push str.5___Gerar_config_da_pasta_ItemManager__n_n
call fcn.00401ad0
add esp, 4
push str.6___Gerar_config_da_pasta_PetManager__n_n
call fcn.00401ad0
add esp, 4
push str.7___Encriptar_arquivos_.Lua__n_n
call fcn.00401ad0
add esp, 4
push str.8___Encriptar_arquivos__n_n
call fcn.00401ad0
add esp, 4
push str.Escolha_uma_opcao__1_8_:
call fcn.00401ad0
add esp, 4
lea eax, [esp + 4]
push eax
push 0x42ceb8
call fcn.004081d0
add esp, 8
cmp eax, 1
je 0x405fc2
push str.Entrada_invalida._Digite_um_numero_de_1_a_8._n
call fcn.00401ad0
add esp, 4
call fcn.00414f6f
cmp eax, 0xa
jne 0x405fb6
jmp 0x405fea
mov ecx, dword [esp + 4]
cmp ecx, 1
jl 0x405fd0
cmp ecx, 8
jle 0x405fee
push str.Opcao_invalida._Digite_um_numero_de_1_a_8._n
call fcn.00401ad0
add esp, 4
nop dword [eax]
call fcn.00414f6f
cmp eax, 0xa
jne 0x405fe0
mov ecx, dword [esp + 4]
lea eax, [ecx - 1]
cmp eax, 7
ja 0x405f10
cmp ecx, 1
jne 0x406009
call fcn.00406140
jmp 0x406118
cmp ecx, 2
jne 0x406018
call fcn.00407490
jmp 0x406118
cmp ecx, 3
jne 0x406027
call fcn.00407970
jmp 0x406118
cmp ecx, 4
jne 0x406036
call fcn.00407bc0
jmp 0x406118
cmp ecx, 5
jne 0x406045
call fcn.00407e50
jmp 0x406118
cmp ecx, 6
jne 0x406054
call fcn.00407260
jmp 0x406118
cmp ecx, 7
jne 0x4060b7
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..MainInfo.ini
push 0x20
push 0x64ffd4
push 0x42e0df
push str.IpAddress
push str.MainInfo
call esi
push str..MainInfo.ini
push 0x20
push 0x64fff4
push 0x42e0df
push str.ClientSerial
push str.MainInfo
call esi
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.ScriptManagerEncrypted_
push str.ScriptManagerDecrypted_
mov ecx, 0x64fec8
call fcn.00408a90
jmp 0x406118
cmp ecx, 8
jne 0x406118
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..MainInfo.ini
push 0x20
push 0x508fec
push 0x42e0df
push str.IpAddress
push str.MainInfo
call esi
push str..MainInfo.ini
push 0x20
push 0x50900c
push 0x42e0df
push str.ClientSerial
push str.MainInfo
call esi
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.FilesManagerEncrypted_
push str.FilesManagerDecrypted_
mov ecx, 0x508ee0
call fcn.00405b10
push str.Arquivo_gerado_com_sucesso___n
call fcn.00401ad0
add esp, 4
push str.pause
call fcn.0041508f
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407260
Capabilities:
Check if file exists
Encode data using xor
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d1ec
call fcn.00425df0
mov eax, dword [0x431008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x40728c
jmp 0x40729e
lea eax, [ebp - 0x1e788]
push 0x1e780
push 0
push eax
call fcn.0040c210
add esp, 8
mov ecx, 0x4be820
call fcn.004045c0
test al, al
je 0x40746d
push ecx
mov ecx, 0x4cf4e8
call fcn.00404aa0
test al, al
je 0x40746d
push ecx
mov ecx, 0x6686c8
call fcn.004097e0
test al, al
je 0x40746d
push ecx
mov ecx, 0x65dae0
call fcn.00409530
test al, al
je 0x40746d
push 0xea60
lea eax, [ebp - 0x2d1e8]
push 0x4be824
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x1e788]
push 0x2260
push 0x4cd284
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x1c528]
push 0xabe0
push 0x65dae4
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x11948]
push 0xabe0
push 0x4cf4ec
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x6d68]
push 0x6d60
push 0x6686cc
push eax
call fcn.0040d790
add esp, 0xc
xor edx, edx
nop
mov al, byte [ebp + edx - 0x2d1e8]
mov ecx, edx
xor al, dl
shr ecx, 8
xor cl, 0x96
xor al, 0xdb
sub al, cl
mov byte [ebp + edx - 0x2d1e8], al
inc edx
cmp edx, 0x2d1e0
jb 0x407380
push str..DataLocal_
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4073b9
test al, 0x10
jne 0x4073c6
push str.mkdir__DataLocal_
call fcn.0041508f
add esp, 4
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str..DataLocalPets.bmd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40747a
push 0
lea eax, [ebp - 0x2d1ec]
mov dword [ebp - 0x2d1ec], 0
push eax
push 0x2d1e0
lea eax, [ebp - 0x2d1e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x40742d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040adff
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407445
jmp 0x40745c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040adff
mov esp, ebp
pop ebp
ret
push str.pause
call fcn.0041508f
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040adff
mov esp, ebp
pop ebp
ret
Function at 0x407970
Capabilities:
Check if file exists
Encode data using xor
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1cd1c
call fcn.00425df0
mov eax, dword [0x431008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x40799c
jmp 0x4079ae
lea eax, [ebp - 0x17d68]
push 0x178b0
push 0
push eax
call fcn.0040c210
add esp, 8
mov ecx, 0x6ae2e8
call fcn.00403ec0
test al, al
je 0x407ba0
push ecx
mov ecx, 0x4bd558
call fcn.00404350
test al, al
je 0x407ba0
push ecx
mov ecx, 0x43b9c0
call fcn.004022a0
test al, al
je 0x407ba0
push ecx
mov ecx, 0x4656b8
call fcn.004029f0
test al, al
je 0x407ba0
push ecx
mov ecx, 0x66f430
call fcn.00409bc0
test al, al
je 0x407ba0
push 0x4fb0
lea eax, [ebp - 0x1cd18]
push 0x6ae2e8
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x17d68]
push 0x109a0
push 0x6b3298
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x73c8]
push 0x12c0
push 0x4bd55c
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x6108]
push 0x4800
push 0x43b9c4
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x1908]
push 0x1450
push 0x4656bc
push eax
call fcn.0040d790
mov ecx, 0x12c
lea edi, [ebp - 0x4b8]
mov esi, 0x66f434
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
xor edx, edx
mov al, byte [ebp + edx - 0x1cd18]
mov ecx, edx
xor al, dl
shr ecx, 8
xor cl, 0x98
xor al, 0xdd
sub al, cl
mov byte [ebp + edx - 0x1cd18], al
inc edx
cmp edx, 0x1cd10
jb 0x407ab3
push str..DataLocal_
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407aec
test al, 0x10
jne 0x407af9
push str.mkdir__DataLocal_
call fcn.0041508f
add esp, 4
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str..DataLocalCustom.bmd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407bad
push 0
lea eax, [ebp - 0x1cd1c]
mov dword [ebp - 0x1cd1c], 0
push eax
push 0x1cd10
lea eax, [ebp - 0x1cd18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x407b60
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040adff
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407b78
jmp 0x407b8f
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040adff
mov esp, ebp
pop ebp
ret
push str.pause
call fcn.0041508f
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040adff
mov esp, ebp
pop ebp
ret
Function at 0x407bc0
Capabilities:
Check if file exists
Encode data using xor
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x54734
call fcn.00425df0
mov eax, dword [0x431008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x407bec
jmp 0x407bfe
lea eax, [ebp - 0x34390]
push 0x25990
push 0
push eax
call fcn.0040c210
add esp, 0xc
lea eax, [ebp - 0xde48]
push 0xdac0
push 0
push eax
call fcn.0040c210
add esp, 8
mov ecx, 0x4e8b38
call fcn.00405230
test al, al
je 0x407e2d
push ecx
mov ecx, 0x4401c8
call fcn.00402510
test al, al
je 0x407e2d
push ecx
mov ecx, 0x66fc68
call fcn.0040a680
test al, al
je 0x407e2d
push ecx
mov ecx, 0x509030
call fcn.00405cf0
test al, al
je 0x407e2d
push ecx
mov ecx, 0x650018
call fcn.00409240
test al, al
je 0x407e2d
push ecx
mov ecx, 0x66f8e8
call fcn.00409e10
test al, al
je 0x407e2d
push 0x203a0
lea eax, [ebp - 0x54730]
push 0x4e8b3c
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x34390]
push 0x23280
push 0x4401cc
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0x11110]
push 0x2710
push 0x66fc6c
push eax
call fcn.0040d790
add esp, 0xc
lea eax, [ebp - 0xde48]
mov ecx, 0x2ee
lea edi, [ebp - 0xea00]
mov esi, 0x509034
rep movsd dword es:[edi], dword [esi]
push 0xdac0
push 0x65001c
push eax
call fcn.0040d790
mov ecx, 0x36
lea edi, [ebp - 0x388]
mov esi, 0x66f8e8
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xaa
lea edi, [ebp - 0x2b0]
mov esi, 0x66f9c0
xor eax, eax
rep movsd dword es:[edi], dword [esi]
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x54730]
mov edx, eax
xor cl, al
shr edx, 8
xor dl, 0x99
xor cl, 0xde
sub cl, dl
mov byte [ebp + eax - 0x54730], cl
inc eax
cmp eax, 0x54728
jb 0x407d40
push str..DataLocal_
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407d79
test al, 0x10
jne 0x407d86
push str.mkdir__DataLocal_
call fcn.0041508f
add esp, 4
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str..DataLocalEffects.bmd
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407e3a
push 0
lea eax, [ebp - 0x54734]
mov dword [ebp - 0x54734], 0
push eax
push 0x54728
lea eax, [ebp - 0x54730]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x407ded
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040adff
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407e05
jmp 0x407e1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040adff
mov esp, ebp
pop ebp
ret
push str.pause
call fcn.0041508f
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040adff
mov esp, ebp
pop ebp
ret
Function at 0x4088d0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
mov esi, ecx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x40894e
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 0x40891d
push eax
call fcn.0040b0bf
add esp, 4
mov dword [esi + 4], 0
push dword [esi + 8]
call fcn.0040b0c4
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]
push edi
test eax, eax
jne 0x408959
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 8], 0x10
jb 0x40898e
mov ecx, dword [esi + 4]
mov edx, str.O9D
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40898e
add ecx, 4
add edx, 4
sub edi, 4
jae 0x408972
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 0xc]
call ebx
mov ebx, eax
mov dword [ebp + 0xc], ebx
cmp ebx, 0xffffffff
je 0x40894e
mov ecx, dword [esi + 8]
add ecx, 0x10
push ecx
call fcn.0040b0c4
movups xmm0, xmmword [str.O9D]
mov dword [ebp + 8], eax
movups xmmword [eax], xmm0
lea ecx, [eax + 0x10]
push dword [esi + 8]
push dword [esi + 4]
push ecx
call fcn.0040d790
mov eax, dword [esi + 8]
add esp, 0x10
xor edi, edi
test eax, eax
jle 0x408a4a
mov eax, 0xaaaaaaab
mul edi
mov eax, edi
shr edx, 4
lea ecx, [edx + edx*2]
shl ecx, 3
sub eax, ecx
mov ecx, dword [ebp + 8]
mov bl, byte [eax + 0x42cd10]
xor bl, byte [ecx + edi + 0x10]
mov byte [ecx + edi + 0x10], bl
lea ecx, [esi + 0x12c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408a10
sub ecx, edx
mov eax, edi
xor edx, edx
div ecx
mov ecx, 0x18
movsx eax, byte [edx + esi + 0x12c]
xor edx, edx
div ecx
mov al, byte [edx + 0x42cd10]
mov edx, dword [ebp + 8]
add al, bl
mov byte [edx + edi + 0x10], al
inc edi
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x4089e0
mov ebx, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
add eax, 0x10
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
jne 0x408a7c
call eax
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
call eax
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408a90
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x431008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, ecx
push ebx
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x308]
push 0x42ccb4
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x450], eax
cmp eax, 0xffffffff
je 0x408c46
nop
test byte [ebp - 0x448], 0x10
lea eax, [ebp - 0x41c]
jne 0x408b58
push eax
push ebx
lea eax, [ebp - 0x208]
push str._s_s
push eax
call edi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x44c]
lea eax, [ebp - 0x108]
push str._s_s
push eax
call edi
lea eax, [ebp - 0x108]
push eax
push str._s_encrypted__n
call fcn.00401ad0
add esp, 0x28
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004088d0
jmp 0x408c0a
mov ecx, 0x42ccd0
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408b80
test dl, dl
je 0x408b7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408b80
add eax, 2
add ecx, 2
test dl, dl
jne 0x408b60
xor eax, eax
jmp 0x408b85
sbb eax, eax
or eax, 1
test eax, eax
je 0x408c2b
mov eax, 0x42ccd4
lea ecx, [ebp - 0x41c]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x408bb8
test dl, dl
je 0x408bb4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x408bb8
add ecx, 2
add eax, 2
test dl, dl
jne 0x408b98
xor eax, eax
jmp 0x408bbd
sbb eax, eax
or eax, 1
test eax, eax
je 0x408c2b
lea eax, [ebp - 0x41c]
push eax
push ebx
lea eax, [ebp - 0x108]
push str._s_s_
push eax
call edi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x44c]
lea eax, [ebp - 0x208]
push str._s_s_
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x208]
mov ecx, esi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00408a90
push pe_nt_image_headers32
lea eax, [esi + 0xc]
mov dword [esi + 4], 0
push 0
push eax
mov dword [esi + 8], 0
call fcn.0040c210
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408af0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040adff
mov esp, ebp
pop ebp
ret 8
Function at 0x408cb0
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.004101a2
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x408d08
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_open_file_n
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 0x408d2b
push eax
call fcn.0040b0bf
add esp, 4
mov dword [esi + 4], 0
push dword [esi + 8]
call fcn.0040b0c4
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 0x408d7b
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_read_file_n
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

Function at 0x415db5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x415df4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x415df4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415df4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x415df4
cmp dword [ecx + 0x74], 0xe
jbe 0x415df4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4185e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6a8e60]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418629
cmp byte [ebx], 0xa
jne 0x418629
or byte [edi + eax + 0x28], 4
jmp 0x41862e
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41872d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x418710
inc eax
cmp dl, 0xd
je 0x41865a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x418680
cmp eax, ecx
jae 0x41868e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x418642
jmp 0x41872d
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41870b
cmp dword [ebp - 0x10], 0
je 0x41870b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x6a8e60]
test byte [eax + edi + 0x28], 0x48
je 0x4186e5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4186d0
mov byte [esi], dl
jmp 0x4186e1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6a8e60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41872d
cmp byte [ebp - 1], 0xa
jne 0x4186f4
cmp esi, ebx
jne 0x4186f4
mov byte [esi], 0xa
jmp 0x41872c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004200f6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41872d
mov byte [esi], 0xd
jmp 0x41872c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x6a8e60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41872a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41872d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418736
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x6a8e60]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41877c
cmp word [ebx], dx
jne 0x41877c
or byte [eax + edi + 0x28], 4
jmp 0x418781
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4188e4
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4188c4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4187c2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4187f8
cmp eax, edx
jae 0x418806
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41879d
jmp 0x4188e4
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4188bf
cmp dword [ebp - 0x18], 0
je 0x4188bf
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x6a8e60]
test byte [eax + edi + 0x28], 0x48
je 0x418895
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x418859
mov word [esi], cx
jmp 0x418890
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x6a8e60]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x6a8e60]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x6a8e60]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4188e4
pop eax
cmp word [ebp - 4], ax
jne 0x4188a5
cmp esi, ebx
jne 0x4188a5
mov word [esi], ax
jmp 0x4188e1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004200f6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4188e4
push 0xd
pop eax
jmp 0x4188a0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x6a8e60]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4188de
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4188e4
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4193d4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4297e8
push 0x4297e0
push str.FlsAlloc
push 0x1f
call fcn.00419293
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419408
push dword [ebp + 8]
mov ecx, esi
call dword [0x427158]
call esi
jmp 0x41940e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x419452
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4297f8
push 0x4297f0
push str.FlsGetValue
push 0x21
call fcn.00419293
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419489
push dword [ebp + 8]
mov ecx, esi
call dword [0x427158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x419491
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429800
push 0x4297f8
push str.FlsSetValue
push 0x22
call fcn.00419293
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4194cb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x427158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]