joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005ced6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1005cf20
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1005cec7
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1005ced6
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10462b79
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1005cf27
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10043d9d
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1005cfc6
add edi, 4
add eax, 2
dec ecx
jne 0x1005cf0c
call 0x1005cf73
loope 0x1005cf69
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1005cfc3
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1005cfd4
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1005cf87
cmp eax, ecx
ja 0x1005cf87
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1005d011
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1005d007
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1004427c
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x26e322ba
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6f1d694a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40251d
Capabilities:
Terminate process

Disassembly:
jmp 0x43d547
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x43d558
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004038b4
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4025ae
Capabilities:
Query environment variable

Disassembly:
jmp 0x446442
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x446453
pop esi
ret
push ebx
push edi
push esi
call fcn.00446329
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402aa9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44647b
push ebx
push esi
push edi
call fcn.00403783
add esp, 0xc
push 0
call fcn.00403d91
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4037f1
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x472018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x444374
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004448ea
test al, al
jne 0x44436e
sub edx, 2
cmp edx, edi
jne 0x444354
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x444396
lea eax, [edi + 2]
cmp edx, eax
je 0x444396
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00443f22
add esp, 0x10
jmp 0x444490
push esi
lea ecx, [ebp - 0x255]
call fcn.004448ea
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4443d9
push dword [ebp - 0x25c]
jmp 0x444386
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x444416
cmp word [ebp - 0x226], 0
je 0x444437
cmp word [ebp - 0x226], ax
jne 0x444416
cmp word [ebp - 0x224], 0
je 0x444437
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00443f22
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x444483
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4443f0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44446b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x444490
push 0x443808
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403693
add esp, 0x10
jmp 0x444460
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040221b
leave
ret
Function at 0x4572d9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x474078]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x457319
cmp byte [ebx], 0xa
jne 0x457319
or byte [eax + edi + 0x28], 4
jmp 0x45731e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x45741c
mov al, byte [edx]
cmp al, 0x1a
je 0x4573fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x45734d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x457372
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x45737c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x45732f
jmp 0x45741c
push 0
lea eax, [ebp - 0xc]
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 0x4573f9
cmp dword [ebp - 0xc], 0
je 0x4573f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x474078]
test byte [eax + edi + 0x28], 0x48
je 0x4573d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4573be
mov byte [esi], dl
jmp 0x4573cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x474078]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45741c
cmp byte [ebp - 1], 0xa
jne 0x4573e2
cmp esi, ebx
jne 0x4573e2
mov byte [esi], 0xa
jmp 0x45741b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401500
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45741c
mov byte [esi], 0xd
jmp 0x45741b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x474078]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x457418
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45741c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x457478
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x474078]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4574bb
cmp word [esi], dx
jne 0x4574bb
or byte [edi + eax + 0x28], 4
jmp 0x4574c0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x457613
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4575f3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x457502
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x457538
cmp eax, edx
jae 0x457544
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4574da
jmp 0x457613
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4575ef
cmp dword [ebp - 0x14], 0
je 0x4575ef
mov eax, dword [ebx*4 + 0x474078]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4575c7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x457590
mov word [esi], cx
jmp 0x4575c3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x474078]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x474078]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x474078]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x457613
pop ebx
cmp word [ebp - 4], bx
jne 0x4575d8
cmp esi, dword [ebp + 0xc]
jne 0x4575d8
mov word [esi], bx
jmp 0x457610
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401500
add esp, 0x10
cmp word [ebp - 4], bx
je 0x457613
push 0xd
jmp 0x45760c
mov ecx, dword [ebx*4 + 0x474078]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45760a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x457613
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x406726
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40674a
xor eax, eax
test eax, eax
je 0x40675c
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40675c
xor ecx, ecx
jmp 0x40675f
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40684b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43f2e4], 0
push esi
jne 0x406882
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40685c
mov dword [ecx*4 + 0x43f2e0], eax
inc ecx
cmp ecx, 0x100
jl 0x406857
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4068b3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43f2e0]
xor eax, esi
inc ecx
dec edx
jne 0x406895
pop edi
not eax
pop esi
ret 0xc

Function at 0x431006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401440
Capabilities:
Check mutex on windows
Download url
Receive data

Disassembly:
mov eax, dword [0x40fe84]
push esi
xor esi, esi
mov dword [0x40fe94], esi
mov ecx, dword [eax + 4]
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, ebx
call fcn.00401520
push edi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
test byte [0x40a49c], 1
jne 0x401499
or dword [0x40a49c], 1
push esi
push esi
push esi
mov dword [0x40a498], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x406770
mov dword [0x40a494], eax
call fcn.004058cd
add esp, 4
push edi
push str.Iniciando_download_de:__s
mov esi, 0x40a494
call fcn.004010a0
add esp, 8
push 0x40fe88
push 0
push ebx
push edi
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
jne 0x4014c5
mov al, 1
pop esi
ret
test byte [0x40a49c], 1
jne 0x4014fd
or dword [0x40a49c], 1
push 0
push 0
push 0
mov dword [0x40a498], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x406770
mov dword [0x40a494], eax
call fcn.004058cd
add esp, 4
push edi
push str.ERRO_ao_baixar_:__s
mov esi, 0x40a494
call fcn.004010a0
add esp, 8
xor al, al
pop esi
ret
Function at 0x4017b0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406598
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x40a018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x4017f8
sub ecx, edx
mov eax, esi
mov edi, ecx
lea esi, [ebp - 0x48]
call fcn.00402040
push 0x4074b0
mov ecx, esi
mov dword [ebp - 4], ebx
push ecx
mov ebx, 2
call fcn.00401de0
mov edx, esi
push eax
push edx
lea esi, [ebp - 0x64]
call fcn.00401cd0
mov edi, 0x10
cmp dword [eax + 0x14], edi
jb 0x40183a
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 4
mov esi, eax
mov dword [ebp - 0x70], esi
cmp dword [ebp - 0x50], edi
jb 0x40185b
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
jb 0x401885
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4018a0
sub eax, edx
mov edi, eax
mov eax, esi
lea esi, [ebp - 0x2c]
call fcn.00402040
mov eax, dword [ebp - 0x2c]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jae 0x4018c5
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4018d5
xor al, al
jmp 0x4018da
shr al, 4
and al, 1
cmp al, bl
sete byte [ebp - 0x65]
cmp dword [ebp - 0x18], esi
jb 0x4018f2
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp byte [ebp - 0x65], bl
je 0x401910
mov eax, dword [ebp - 0x70]
push eax
call fcn.00401b90
add esp, 4
mov ecx, dword [ebp - 0x74]
push 0x4074b4
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x401947
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x6c]
push esi
push 1
push edx
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
mov al, 1
jmp 0x401949
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004057d1
mov esp, ebp
pop ebp
ret
Function at 0x401b90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406518
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x40a018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401bd2
sub ecx, esi
mov edi, ecx
lea esi, [ebp - 0x2c]
call fcn.00402040
mov dword [ebp - 4], ebx
xor edi, edi
lea ebx, [ebx]
mov edx, dword [ebp - 0x1c]
lea esi, [edi + 1]
cmp esi, edx
jae 0x401c3d
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
mov eax, ebx
cmp ecx, 0x10
jae 0x401c0a
lea eax, [ebp - 0x2c]
lea edi, [eax + edx]
mov eax, ebx
cmp ecx, 0x10
jae 0x401c17
lea eax, [ebp - 0x2c]
add esi, eax
cmp esi, edi
jae 0x401c3d
lea ecx, [ecx]
movsx eax, byte [esi]
push 2
push eax
push 0x4074bc
call dword [sym.imp.MSVCR100.dll_memchr]
add esp, 0xc
test eax, eax
jne 0x401cb0
inc esi
cmp esi, edi
jb 0x401c20
or edi, 0xffffffff
push edi
lea ecx, [ebp - 0x2c]
push ecx
lea esi, [ebp - 0x48]
call fcn.00401cd0
mov esi, 0x10
cmp dword [eax + 0x14], esi
jb 0x401c59
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp - 0x34], esi
jb 0x401c74
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp edi, 0xffffffff
jne 0x401bf0
cmp dword [ebp - 0x18], esi
jb 0x401c8f
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004057d1
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x401cbc
lea eax, [ebp - 0x2c]
sub esi, eax
mov edi, esi
jmp 0x401c40
Function at 0x402480
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28dc
call fcn.004063d0
mov eax, dword [0x40a018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x9c
lea eax, [ebp - 0x28dc]
push 0
push eax
mov esi, ecx
call sub.MSVCR100.dll_memset
push 0x283c
lea ecx, [ebp - 0x2840]
push 0
push ecx
call sub.MSVCR100.dll_memset
push esi
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 0x1c
lea edx, [ebp - 0x28dc]
push edx
mov dword [ebp - 0x28dc], eax
mov dword [ebp - 0x28d4], 1
call dword [sym.imp.unrar.dll_RAROpenArchiveEx]
cmp dword [ebp - 0x28d0], 0
mov esi, eax
je 0x402511
push str.Falha_ao_extrair._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004057d1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2840]
push eax
push esi
call dword [sym.imp.unrar.dll_RARReadHeaderEx]
test eax, eax
jne 0x4025be
push edi
mov edi, dword [sym.imp.unrar.dll_RARProcessFile]
mov edi, edi
mov al, byte [ebp - 0x1040]
test al, 0x20
je 0x40254a
test al, 0x40
je 0x40254a
test al, al
jns 0x40254a
push 0
push 0
push 0
jmp 0x4025a4
lea ecx, [ebp - 0x1c40]
push 0x407548
push ecx
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
test eax, eax
je 0x40258f
lea edx, [ebp - 0x1c3c]
push 0
push edx
call dword [sym.imp.MSVCR100.dll__access]
add esp, 8
test eax, eax
jne 0x402586
lea eax, [ebp - 0x1c3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1c3c]
push ecx
jmp 0x40259d
test ebx, ebx
je 0x402596
push ebx
jmp 0x40259d
lea edx, [ebp - 0x1c40]
push edx
push 0x407475
push 2
push esi
call edi
lea eax, [ebp - 0x2840]
push eax
push esi
call dword [sym.imp.unrar.dll_RARReadHeaderEx]
test eax, eax
je 0x402530
pop edi
push esi
call dword [sym.imp.unrar.dll_RARCloseArchive]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.004057d1
mov esp, ebp
pop ebp
ret
Function at 0x402630
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40663d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x40a018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x10], 0x40fe88
mov dword [0x40fe88], 0x4072e4
mov dword [0x40fe8c], ebx
mov dword [0x40fe90], 0x40fe88
mov dword [0x40fe94], ebx
mov dword [ebp - 4], ebx
mov eax, 0xf
xor ecx, ecx
mov dword [0x40feac], eax
mov dword [0x40fea8], ebx
mov byte [0x40fe98], bl
mov dword [0x40fec8], eax
mov dword [0x40fec4], ebx
mov byte [0x40feb4], bl
mov dword [0x40fef4], eax
mov dword [0x40fef0], ebx
mov byte [0x40fee0], bl
mov dword [0x40fed8], ecx
mov dword [0x40fedc], ebx
mov byte [0x40fefc], bl
mov dword [0x40ff00], ebx
mov dword [0x40fed0], ebx
mov dword [0x40ff18], eax
mov dword [0x40ff14], ebx
mov byte [0x40ff04], bl
mov dword [0x40ff20], ebx
mov dword [0x40ff24], ebx
mov dword [0x40ff28], ebx
mov dword [0x40ff30], ebx
mov dword [0x40ff2c], ebx
mov byte [ebp - 4], 2
call fcn.00402370
push 0x407c50
push ebx
push str.LANGUAGE
push str.PLAY
mov dword [0x40ff38], ebx
mov word [0x40ff3c], bx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [0x40fe79], al
mov eax, 0x40fe88
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403650
Capabilities:
Create thread

Disassembly:
push edi
mov edi, str.WAIT_START
call fcn.004011c0
push eax
push 0x400
push 0x40f638
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0xc
mov eax, 1
push eax
push 0
mov dword [0x40a5bc], eax
mov dword [0x40a62c], eax
mov eax, dword [0x40a5b8]
push 0
push eax
mov dword [0x40a120], 0x23edfc
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0
push 0
push 0
push 0x404410
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
ret