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

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
test ebx, ebx
je 0x402be1
test ecx, ecx
je 0x402be1
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x402be1
mov eax, dword [ebx + 0x3c]
cmp dword [eax + ebx], 0x4550
jne 0x402be1
mov eax, dword [eax + ebx + 0x78]
test eax, eax
je 0x402be1
mov ebp, dword [eax + ebx + 0x18]
lea edx, [eax + ebx]
mov eax, dword [edx + 0x20]
xor edi, edi
add eax, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x402be1
mov eax, dword [eax + edi*4]
mov esi, ecx
add eax, ebx
sub esi, eax
nop word [eax + eax]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
mov dl, byte [eax - 1]
test cl, cl
je 0x402bcb
cmp cl, dl
je 0x402bb0
movzx eax, dl
movzx ecx, cl
sub ecx, eax
jmp 0x402bd0
movzx ecx, dl
neg ecx
test ecx, ecx
je 0x402be9
mov ecx, dword [esp + 0x1c]
inc edi
mov eax, dword [esp + 0x18]
cmp edi, ebp
jb 0x402ba1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
pop edi
pop esi
pop ebp
lea eax, [eax + ecx*4]
mov eax, dword [eax + ebx]
add eax, ebx
pop ebx
pop ecx
ret
Function at 0x404050
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 0xc], 0x6d
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x76
mov byte [ebp - 9], 0x63
mov byte [ebp - 8], 0x72
mov byte [ebp - 7], 0x74
mov byte [ebp - 6], 0x2e
mov byte [ebp - 5], 0x64
mov byte [ebp - 4], 0x6c
mov byte [ebp - 3], 0x6c
mov byte [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
call fcn.00404d00
call eax
mov dword [0x405f14], eax
mov esp, ebp
pop ebp
ret

Function at 0x404d00
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
push ecx
push 0x53b2070f
call fcn.00404d20
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x4054c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0x2e
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x6c
mov byte [ebp - 5], 0x6c
mov byte [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00404d00
call eax
mov dword [0x405f18], eax
mov esp, ebp
pop ebp
ret

Function at 0x405800
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.00404e20
mov dword [ebp - 4], 0
jmp 0x405824
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0xc]
call fcn.00404f30
push eax
call fcn.00404dd0
add esp, 4
cmp eax, 0x2fa62ca8
jne 0x40584e
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00404e90
jmp 0x405850
jmp 0x40581b
mov esp, ebp
pop ebp
ret

Function at 0x405e00
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.00404e20
mov dword [ebp - 4], 0
jmp 0x405e24
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0xc]
call fcn.00404f30
push eax
call fcn.00404dd0
add esp, 4
cmp eax, 0xf8f45725
jne 0x405e4e
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00404e90
jmp 0x405e50
jmp 0x405e1b
mov esp, ebp
pop ebp
ret
Function at 0xa9e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a9e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa9e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9e06a
add dl, dl
jne 0xa9e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9e0dc
xor eax, eax
add dl, dl
jne 0xa9e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9e17d
add dl, dl
jne 0xa9e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa9e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa9e075
mov eax, 1
add dl, dl
jne 0xa9e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9e0e1
sub eax, ebx
mov ebx, 1
jne 0xa9e128
mov ecx, 1
add dl, dl
jne 0xa9e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa9e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa9e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa9e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9e136
cmp eax, 0x7d00
jae 0xa9e16d
cmp eax, 0x500
jb 0xa9e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9e075
cmp eax, 0x7f
ja 0xa9e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa9e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa9e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40b346
Capabilities:
Copy file
Persist via run registry key
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.0040d5b0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x400
push esi
lea eax, [ebp - 0x800]
push eax
xor ebx, ebx
push ebx
call edi
push str.opeqmc.exe
lea eax, [ebp - 0x800]
call fcn.00405493
test eax, eax
pop ecx
je 0x40b3e0
lea eax, [ebp - 0x1800]
push eax
call fcn.0040ac20
test eax, eax
pop ecx
jne 0x40b3e0
push esi
lea eax, [ebp - 0x800]
push eax
push ebx
call edi
push 1
lea eax, [ebp - 0x800]
push eax
push str.IueiOod
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call fcn.004069fd
add esp, 0x14
test eax, eax
push 4
je 0x40b3ca
push ebx
push 3
jmp 0x40b3d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 6
call fcn.0040a786
add esp, 0xc
call fcn.0040b2ce
call fcn.0040aafd
test eax, eax
jne 0x40b3db
call fcn.0040ab7c
test eax, eax
je 0x40b453
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 4
push ebx
push 9
call fcn.0040a786
add esp, 0xc
push esi
lea eax, [ebp - 0x1800]
push eax
push ebx
call edi
lea eax, [ebp - 0x800]
push eax
call fcn.0040ac20
test eax, eax
pop ecx
je 0x40b453
push ebx
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1800]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40b453
lea eax, [ebp - 0x800]
push eax
call fcn.004077f0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.0040abd9
test eax, eax
je 0x40b4ad
lea eax, [ebp - 0x800]
push eax
call fcn.0040ac20
lea eax, [ebp - 0x800]
push eax
call fcn.00407727
test eax, eax
pop ecx
pop ecx
je 0x40b498
lea eax, [ebp - 0x800]
push eax
call fcn.004077f0
test eax, eax
pop ecx
jne 0x40b44c
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
jmp 0x40b4a3
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
call fcn.0040a786
add esp, 0xc
jmp 0x40b44c
push ebx
call fcn.00407727
cmp eax, ebx
pop ecx
push esi
je 0x40b4cf
lea ecx, [ebp - 0x1000]
push ecx
push dword [eax*4 + 0x411040]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40b4e9
lea eax, [ebp - 0x1000]
push eax
push ebx
call edi
mov ecx, str.__nomove
lea eax, [ebp - 0x1000]
call fcn.004054ed
lea eax, [ebp - 0x1000]
push eax
call fcn.004077f0
test eax, eax
pop ecx
jne 0x40b44c
push 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb
call fcn.0040a786
add esp, 0xc
mov dword [0x411058], ebx
jmp 0x40b3db

Function at 0x40cd66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x40cd70
repz ret
jmp fcn.0040d00b

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x46ede0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
cmp ecx, dword [eax + 0x130]
jge 0x46ee17
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x81
jmp 0x46eecf
mov eax, dword [ebp + 8]
cmp dword [eax + 0x130], 0
jle 0x46eeb6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
sub edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dx, word [ecx + edx*4]
mov word [ebp - 4], dx
movzx eax, word [ebp - 4]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x98]
cmp eax, edx
jb 0x46ee78
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x231]
test ecx, ecx
je 0x46ee76
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x86
jmp 0x46eecf
jmp 0x46ee9c
movzx eax, word [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa8]
movzx eax, byte [edx + eax]
xor eax, 1
movzx ecx, word [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xa8]
mov byte [ecx + edx], al
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x130]
sub ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x130], ecx
jmp 0x46ee17
mov eax, dword [ebp + 8]
mov dword [eax + 0x130], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov dword [ecx + 0x20], eax
mov esp, ebp
pop ebp
ret

Function at 0x47a6f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48443c]
jne 0x47a6fa
repz ret
jmp fcn.0047b520
Function at 0x4014c0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x2ee8
call fcn.00405840
mov eax, dword [0x492fe0]
xor eax, esp
mov dword [esp + 0x2ee4], eax
mov ecx, dword [esp + 0x2ef0]
push ebx
mov ebx, dword [esp + 0x2ef0]
push edi
lea eax, [esp + 0x2efc]
push eax
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00405817
lea eax, [esp + 0x18]
add esp, 0xc
xor edi, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401507
sub eax, edx
test eax, eax
jle 0x401573
push esi
lea esi, [esp + 0x10]
jmp 0x401520
cmp byte [esi], 0xa
jne 0x401556
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401530
sub eax, edx
add eax, 1
push eax
lea eax, [esp + edi + 0x15]
push esi
push eax
call fcn.004058f0
add esp, 0xc
mov byte [esi], 0xd
add edi, 1
add esi, 1
lea eax, [esp + 0x10]
add edi, 1
add esi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401563
sub eax, edx
cmp edi, eax
jl 0x401520
pop esi
lea eax, [esp + 0xc]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401580
push 0
lea ecx, [esp + 0xc]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x2eec]
mov eax, dword [esp + 8]
pop edi
pop ebx
xor ecx, esp
call fcn.0040578c
add esp, 0x2ee8
ret

Function at 0x4015c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
mov eax, ebx
push edi
xor edi, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4015d0
sub eax, edx
test eax, eax
jle 0x401631
push esi
mov esi, ebx
cmp byte [esi], 0xa
jne 0x401616
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4015f0
sub eax, edx
add eax, 1
push eax
lea eax, [edi + ebx + 1]
push esi
push eax
call fcn.004058f0
add esp, 0xc
mov byte [esi], 0xd
add edi, 1
add esi, 1
mov eax, ebx
add edi, 1
add esi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401621
sub eax, edx
cmp edi, eax
jl 0x4015e2
pop esi
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401636
push 0
lea ecx, [esp + 0xc]
push ecx
sub eax, edx
mov edx, dword [esp + 0x18]
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop ebx
pop ecx
ret

Function at 0x401660
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401689
or eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x4016a6
mov eax, edi
pop edi
pop esi
ret
pop edi
or eax, 0xffffffff
pop esi
ret
Function at 0x4016b0
Capabilities:
Move file

Disassembly:
sub esp, 0x804
mov eax, dword [0x492fe0]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
mov esi, dword [esp + 0x80c]
push edi
mov edi, dword [esp + 0x814]
push 0x20
push esi
call fcn.00405e20
add esp, 8
test eax, eax
je 0x4016fb
push esi
lea eax, [esp + 0x40c]
push 0x4172b0
push eax
call fcn.0040586b
add esp, 0xc
jmp 0x401712
lea edx, [esp + 0x408]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401706
push 0x20
push edi
call fcn.00405e20
add esp, 8
test eax, eax
je 0x401736
push edi
lea ecx, [esp + 0xc]
push 0x4172b0
push ecx
call fcn.0040586b
add esp, 0xc
jmp 0x40174c
lea edx, [esp + 8]
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401740
push 1
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [esp + 0x808]
pop edi
pop esi
xor ecx, esp
call fcn.0040578c
add esp, 0x804
ret
Function at 0x404c90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0x30
mov byte [esp + 0xf], 0
call fcn.004064dc
mov esi, eax
xor edi, edi
add esp, 4
cmp esi, edi
jne 0x404cc7
mov eax, dword [0x4944c8]
push 0x30
push str.Error_de_memoria_reservando__d_bytes_para_bzlib_n
push 1
push eax
call fcn.004010b0
add esp, 0x10
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [0x492fd0]
push ebx
push ecx
call fcn.004064dc
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x404d06
mov edx, dword [0x492fd0]
mov eax, dword [0x4944c8]
push edx
push str.Error_de_memoria_reservando_buffer_de_salida_de__d_bytes_para_bzlib_n
push 1
push eax
call fcn.004010b0
push esi
call fcn.004063ff
add esp, 0x14
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret
push edi
push edi
push esi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.004017e0
cmp eax, edi
je 0x404d45
mov ecx, dword [0x4944c8]
push eax
push str.Error__d_en_BZ2_bzDecompressInit_n
push 1
push ecx
call fcn.004010b0
push ebx
call fcn.004063ff
push esi
call fcn.004063ff
add esp, 0x18
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov dword [esi], str.BZh91AYSY
mov dword [esi + 4], 0x77371
mov dword [esi + 0x10], ebx
mov edx, dword [0x492fd0]
push esi
mov dword [esi + 0x14], edx
call fcn.004024c0
cmp eax, 4
je 0x404d84
push eax
mov eax, dword [0x4944c8]
push str.Proceso_BZ2_bzDecompress_termina_con_error__d_n
push 1
push eax
call fcn.004010b0
add esp, 0x10
jmp 0x404e14
mov edi, dword [esp + 0x14]
push ebp
push 0x417390
push edi
call fcn.00405779
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x404df5
mov ecx, dword [0x492fd0]
push ebp
push 1
push ecx
push ebx
call fcn.0040744c
add esp, 0x10
cmp eax, 1
jne 0x404dc4
push ebp
mov byte [esp + 0x17], al
call fcn.00405639
add esp, 4
jmp 0x404e13
call fcn.004072a9
mov edx, dword [0x492fd0]
mov eax, dword [eax]
mov ecx, dword [0x4944c8]
push edi
push edx
push eax
push str.Error__d_grabando__d_bytes_en_fichero___s__n
push 1
push ecx
call fcn.004010b0
add esp, 0x18
push ebp
call fcn.00405639
add esp, 4
jmp 0x404e13
call fcn.004072a9
mov edx, dword [eax]
mov eax, dword [0x4944c8]
push edi
push edx
push str.Error__d_creando_fichero___s__n
push 1
push eax
call fcn.004010b0
add esp, 0x14
pop ebp
push esi
call fcn.004025b0
test eax, eax
je 0x404e35
mov ecx, dword [0x4944c8]
push eax
push str.Llamada_a_BZ2_bzDecompressEnd_devuelve_codigo_de_error__d_n
push 1
push ecx
call fcn.004010b0
add esp, 0x10
cmp byte [esp + 0xf], 0
jne 0x404e45
push ebx
call fcn.004063ff
add esp, 4
push esi
call fcn.004063ff
movsx eax, byte [esp + 0x13]
add esp, 4
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x40578c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x492fe0]
jne 0x405796
repz ret
jmp fcn.00408f53
Function at 0x40d042
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x493d40]
je 0x40d05d
inc edi
cmp edi, 0x17
jb 0x40d04e
cmp edi, 0x17
jae 0x40d1dd
push ebp
push 3
call fcn.0040e136
cmp eax, 1
pop ecx
je 0x40d1a9
push 3
call fcn.0040e136
test eax, eax
pop ecx
jne 0x40d091
cmp dword [0x4931fc], 1
je 0x40d1a9
cmp ebx, 0xfc
je 0x40d1dc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x494ac8
push ebp
call fcn.0040e7d8
add esp, 0xc
test eax, eax
je 0x40d0c7
push esi
push esi
push esi
push esi
push esi
call fcn.00408318
add esp, 0x14
push 0x104
mov esi, 0x494ae1
push esi
push 0
mov byte [0x494be5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d10b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040e7d8
add esp, 0xc
test eax, eax
je 0x40d10b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00408318
add esp, 0x14
push esi
call fcn.0040bf40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40d150
push esi
call fcn.0040bf40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x494ddc
push 0x417298
sub ecx, eax
push ecx
push eax
call fcn.00412901
add esp, 0x14
test eax, eax
je 0x40d150
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00408318
add esp, 0x14
jmp 0x40d152
xor esi, esi
push 0x418210
push ebx
push ebp
call fcn.0040e83d
add esp, 0xc
test eax, eax
je 0x40d172
push esi
push esi
push esi
push esi
push esi
call fcn.00408318
add esp, 0x14
push dword [edi*8 + 0x493d44]
push ebx
push ebp
call fcn.0040e83d
add esp, 0xc
test eax, eax
je 0x40d194
push esi
push esi
push esi
push esi
push esi
call fcn.00408318
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041371e
add esp, 0xc
jmp 0x40d1dc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40d1dc
cmp ebp, 0xffffffff
je 0x40d1dc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x493d44]
push dword [esi]
call fcn.0040bf40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40dbba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040b1f5
xor ebx, ebx
cmp dword [0x494dfc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40dc90
push 0x4182ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x40dd70
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x40dd70
push eax
call fcn.0040b187
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x494dfc], eax
call esi
push eax
call fcn.0040b187
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x494e00], eax
call esi
push eax
call fcn.0040b187
mov dword [0x494e04], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040cdcf
test eax, eax
pop ecx
pop ecx
je 0x40dc5e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408318
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40dc90
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.0040b187
cmp eax, ebx
pop ecx
mov dword [0x494e0c], eax
je 0x40dc90
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b187
pop ecx
mov dword [0x494e08], eax
mov eax, dword [0x494e08]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40dd15
cmp dword [0x494e0c], ecx
je 0x40dd15
push eax
call fcn.0040b1fe
push dword [0x494e0c]
mov esi, eax
call fcn.0040b1fe
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40dd15
cmp edi, ebx
je 0x40dd15
call esi
cmp eax, ebx
je 0x40dce2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40dce2
test byte [ebp - 0x18], 1
jne 0x40dd15
lea eax, [ebp - 0x10]
push eax
call fcn.0040ce06
test eax, eax
pop ecx
je 0x40dcfd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00408318
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40dd0c
or dword [ebp + 0x10], 0x200000
jmp 0x40dd50
or dword [ebp + 0x10], 0x40000
jmp 0x40dd50
mov eax, dword [0x494e00]
cmp eax, dword [ebp - 8]
je 0x40dd50
push eax
call fcn.0040b1fe
cmp eax, ebx
pop ecx
je 0x40dd50
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40dd50
mov eax, dword [0x494e04]
cmp eax, dword [ebp - 8]
je 0x40dd50
push eax
call fcn.0040b1fe
cmp eax, ebx
pop ecx
je 0x40dd50
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x494dfc]
call fcn.0040b1fe
cmp eax, ebx
pop ecx
je 0x40dd70
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40dd72
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret