joyce8/EMBER2024-capa huggingface dataset:
Function at 0x532a18
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push esi
push edi
push 4
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push eax
mov dword [ebp - 0xc], eax
call esi
push 5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
jmp 0x532b0d
xor eax, eax
cmp dword [ebp - 4], eax
je 0x532a96
jmp 0x532a68
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x532a94
push dword [ebp - 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
inc dword [ebp - 8]
test eax, eax
jne 0x532a8e
and dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x532a66
xor eax, eax
push eax
push eax
push eax
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x532b0d
test eax, eax
je 0x532b1a
cmp dword [edi + 0x28], 0x10
jne 0x532aca
mov eax, dword [ebp + 8]
cmp dword [edi + 0x24], eax
jne 0x532aca
push 1
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [edi]
lea eax, [edi + 0x24]
push eax
mov ecx, edi
call dword [edx]
test eax, eax
jne 0x532af2
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [edi + 0x28], 0x12
je 0x532b1a
lea eax, [edi + 0x24]
push eax
call fcn.00531fc0
add esp, 4
test eax, eax
je 0x532b0d
and dword [ebp - 8], 0
mov dword [ebp - 4], 1
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x532a5d
push 1
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [edi + 0x28], 0x12
jne 0x532b39
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [edi + 0x2c]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x54e946
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x602c60]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x60449c], 0xffffffff
jne 0x54e9af
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.004fc1f0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x54e9a8
cmp dword [ebp - 0x114], 6
jb 0x54e9a8
mov dword [0x60449c], 1
jmp 0x54e9af
and dword [0x60449c], 0
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x60449c], 1
sete al
xor ecx, ebp
call fcn.004fb958
leave
ret

Function at 0x54fab4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, esi
mov edx, eax
call fcn.0054ea19
test al, al
je 0x54fb06
cmp byte [ebp + 8], 0
je 0x54fb06
cmp byte [ebp + 0xc], 0
mov byte [esi + 0x11], 1
je 0x54fae8
push edx
call fcn.0054f7e7
jmp 0x54faec
mov byte [esi + 0x10], 1
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x54fb22
push 4
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x54fb22
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x54fb1e
push 0
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x11], 0
pop esi
pop ebp
ret 8
Function at 0x55c554
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x298], ebx
je 0x55c5bf
cmp dword [ebp + 8], 0x100
jne 0x55c5ae
cmp word [ebp + 0xc], 0xd
jne 0x55c5ae
cmp byte [esi + 0x29e], bl
je 0x55c592
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x55c5ae
cmp byte [esi + 0x29f], bl
jne 0x55c5ae
mov ecx, dword [esi + 0x4c]
cmp ecx, ebx
je 0x55c5aa
push ebx
push ebx
push ebx
lea eax, [esi + 8]
push 0x5bf114
push eax
call fcn.0052e998
xor eax, eax
jmp 0x55c5c2
mov eax, dword [esi + 0x298]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x562343
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x602c60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d8], 0
push edi
je 0x5623d0
cmp dword [esi + 0x2d0], 0
je 0x5623d0
mov eax, dword [esi]
call dword [eax + 0x44]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5623d0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00502600
mov ebx, esp
test ebx, ebx
je 0x5623d0
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x2d0]
push ebx
add ecx, 0xd8
call fcn.00433c70
mov ecx, dword [esi + 0x2d0]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x18]
mov ecx, eax
call fcn.0052e998
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb958
leave
ret 0x10
Function at 0x566ae5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x602c60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
push edi
je 0x566b11
mov ecx, dword [esi + 0x10]
add ecx, 8
mov eax, dword [ecx]
push 0
call dword [eax + 0x18]
mov ecx, eax
call fcn.0052ca8a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x566b63
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
lea eax, [esi + esi]
call fcn.00502600
mov eax, esp
test eax, eax
je 0x566b63
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 0
push 0
push 0x10
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb958
leave
ret 0x10
Function at 0x56c6fb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x602c60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x18], 0
push edi
je 0x56c7a5
cmp dword [esi + 0x10], 0
je 0x56c7a5
mov eax, dword [esi]
call dword [eax + 0x1c]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x56c7a5
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00502600
mov ebx, esp
test ebx, ebx
je 0x56c7a5
push edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
mov edi, 0xe0
push ebx
add ecx, edi
call fcn.00431ed3
test eax, eax
je 0x56c7a5
mov ecx, dword [esi + 0x10]
push ebx
add ecx, edi
call fcn.00433c70
mov eax, dword [esi + 0x10]
xor edx, edx
cmp eax, edx
je 0x56c788
add eax, 8
jmp 0x56c78a
xor eax, eax
mov ecx, dword [esi + 0x10]
push edx
push edx
push edx
push str.textchanged
add ecx, 8
push eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, eax
call fcn.0052e998
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb958
leave
ret 0x10

Function at 0x56e6a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x602c60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0xc]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x56e71c
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00502600
mov dword [ebp - 8], esp
test esp, esp
je 0x56e744
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 8]
test eax, eax
je 0x56e6ff
push dword [ebp - 8]
lea ecx, [eax + 0xd8]
call fcn.00433c70
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 0
push 0
push 0x10
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esi + 8], 0
je 0x56e744
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
push 0xffffffffffffffff
call dword [eax + 0x148]
mov ecx, dword [esi + 8]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.killfocus
call fcn.0053531d
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb958
leave
ret 0x10
Function at 0x56e75a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x602c60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 4], 0
je 0x56e7d4
mov eax, dword [edi]
call dword [eax + 0xc]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x56e7d4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
lea eax, [esi + esi]
call fcn.00502600
mov ebx, esp
test ebx, ebx
je 0x56e7d4
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 8]
test eax, eax
je 0x56e7d4
push ebx
lea ecx, [eax + 0xd8]
call fcn.00433c70
mov ecx, dword [edi + 8]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.textchanged
call fcn.0053531d
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fb958
leave
ret 0x10

Function at 0x571fb2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x571fd7
cmp eax, edi
jge 0x571fcf
mov eax, esi
call fcn.0057186b
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edi, dword [esi + 8]
xor ecx, ecx
test edi, edi
jle 0x572004
mov eax, dword [esi + 0xc]
push ebx
mov dl, byte [esi + 0xc]
sub edi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, edi
inc ecx
mov dword [esi + 0xc], eax
test ebx, ebx
jg 0x571fe4
mov dword [esi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x572023
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x572011
xor eax, eax
jmp 0x572019
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x572007
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x572057
mov dword [0x607e60], str.zlib_corrupt
xor eax, eax
jmp 0x572097
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x57206c
mov dword [0x607e60], str.read_past_buffer
jmp 0x572053
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x572081
mov ecx, edi
call fcn.0057199e
test eax, eax
je 0x572053
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004fbb10
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x40f8a0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x40fa64
pushal
mov esi, section.DATA
lea edi, [esi - 0xc000]
push edi
jmp 0x40f8ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f8d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f8c0
mov eax, 1
add ebx, ebx
jne 0x40f8e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f8d8
jne 0x40f8f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f8d8
xor ecx, ecx
sub eax, 3
jb 0x40f908
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f97a
mov ebp, eax
add ebx, ebx
jne 0x40f913
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f920
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f944
inc ecx
add ebx, ebx
jne 0x40f930
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f925
jne 0x40f941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f925
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f964
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f955
jmp 0x40f8c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f964
add edi, ecx
jmp 0x40f8c6
pop esi
mov edi, esi
mov ecx, 0x131
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f982
cmp byte [edi], 6
jne 0x40f982
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40f987
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f9f6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf3fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf454]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f9b4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf458]
or eax, eax
je 0x40f9f0
mov dword [ebx], eax
add ebx, 4
jmp 0x40f9d1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x40fa27
cmp al, 0xef
ja 0x40fa1a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x40f9fc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40fa09
mov ebp, dword [esi + 0xf45c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40fa5b
sub esp, 0xffffff80
jmp 0x4050d4
Function at 0x401f35
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [0x486140]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401f99
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040261a
lea ecx, [esp + 0x14]
call fcn.00401d65
cmp eax, 0x8aafdc01
je 0x401fb1
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402edf
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x401f68
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004069e9
add esp, 0x24
ret
mov edx, str.QwruxAA
call fcn.0040387f
push eax
call fcn.0040384d
mov eax, dword [ebx + 0x24]
pop ecx
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402edf
jmp 0x401f9b
Function at 0x41833a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407930
mov eax, dword [0x42c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414735
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41837c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184d8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421750
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x485d38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418760
mov ecx, dword [esi*4 + 0x485d38]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4184d1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184d1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4184d1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418760
add esp, 0x14
test edx, edx
jl 0x4184d1
jg 0x418447
test eax, eax
jb 0x4184d1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184d1
jl 0x418461
cmp dword [ebp - 0x1008], eax
ja 0x4184d1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41847f
test ebx, ebx
je 0x4184b8
cmp ecx, edi
jae 0x4184b8
mov al, byte [ecx]
cmp al, 0xd
jne 0x418499
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184a5
cmp byte [ecx + 1], 0xa
jne 0x4184a5
inc ecx
jmp 0x4184a5
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41847f
cmp edx, ebx
jne 0x41847f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184d6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069e9
leave
ret
Function at 0x41eace
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 + 0x485d38]
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 0x41eb0e
cmp byte [ebx], 0xa
jne 0x41eb0e
or byte [eax + edi + 0x28], 4
jmp 0x41eb13
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec11
mov al, byte [edx]
cmp al, 0x1a
je 0x41ebf3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb42
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41eb67
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41eb71
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 0x41eb24
jmp 0x41ec11
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 0x41ebee
cmp dword [ebp - 0xc], 0
je 0x41ebee
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x485d38]
test byte [eax + edi + 0x28], 0x48
je 0x41ebc8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebb3
mov byte [esi], dl
jmp 0x41ebc4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x485d38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec11
cmp byte [ebp - 1], 0xa
jne 0x41ebd7
cmp esi, ebx
jne 0x41ebd7
mov byte [esi], 0xa
jmp 0x41ec10
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041877e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec11
mov byte [esi], 0xd
jmp 0x41ec10
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x485d38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec0d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec11
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ec1a
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 + 0x485d38]
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 0x41ec5d
cmp word [esi], dx
jne 0x41ec5d
or byte [edi + eax + 0x28], 4
jmp 0x41ec62
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 0x41edb5
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 0x41ed95
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41eca4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ecda
cmp eax, edx
jae 0x41ece6
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 0x41ec7c
jmp 0x41edb5
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 0x41ed91
cmp dword [ebp - 0x14], 0
je 0x41ed91
mov eax, dword [ebx*4 + 0x485d38]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed69
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed32
mov word [esi], cx
jmp 0x41ed65
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x485d38]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x485d38]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x485d38]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edb5
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed7a
cmp esi, dword [ebp + 0xc]
jne 0x41ed7a
mov word [esi], bx
jmp 0x41edb2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041877e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edb5
push 0xd
jmp 0x41edae
mov ecx, dword [ebx*4 + 0x485d38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edac
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edb5
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 0x421550
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42157d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42157d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219