joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x200e233e
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..rsrc
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x24834ba4
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40115a
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push 0x400000
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
cmp eax, esi
mov dword [0x403010], eax
je 0x40119c
call fcn.004016fe
cmp eax, esi
jne 0x40118c
push ebx
call fcn.004015a6
push dword [0x403010]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
jmp 0x4011a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4014ca
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 6]
and dword [ebp - 8], 0
push ebx
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0x14]
push esi
push edi
lea esi, [eax + ecx + 0x18]
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0xc]
jb 0x401539
mov edi, dword [ecx + 0x38]
mov eax, dword [esi + 8]
mov edx, dword [ecx + 0x3c]
mov ebx, dword [esi + 0x10]
lea eax, [eax + edi - 1]
dec edi
not edi
and eax, edi
lea edi, [ebx + edx - 1]
dec edx
not edx
and edi, edx
cmp edi, eax
jbe 0x40151d
mov eax, dword [ecx + 0x3c]
lea edx, [eax + ebx - 1]
jmp 0x401527
mov eax, dword [ecx + 0x38]
mov edx, dword [esi + 8]
lea edx, [eax + edx - 1]
dec eax
not eax
and edx, eax
mov eax, dword [esi + 0xc]
add eax, edx
cmp dword [ebp + 8], eax
jae 0x401539
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
add esi, 0x28
dec dword [ebp - 4]
test eax, eax
jne 0x40154b
cmp dword [ebp - 4], eax
jne 0x4014ea
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4018e7
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov cl, byte [eax]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
mov byte [edi], cl
lea ecx, [edi + 1]
inc eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
call fcn.0040125f
test eax, eax
je 0x401a1c
call fcn.0040125f
test eax, eax
je 0x401996
call fcn.0040125f
xor esi, esi
test eax, eax
je 0x401960
push 4
pop edi
lea ecx, [ebp - 0x18]
call fcn.0040125f
dec edi
lea esi, [eax + esi*2]
jne 0x401932
test esi, esi
mov eax, dword [ebp - 0x14]
je 0x401952
mov ecx, dword [ebp - 0x14]
sub eax, esi
mov al, byte [eax]
mov byte [ecx], al
jmp 0x401955
mov byte [eax], 0
inc dword [ebp - 0x14]
mov edi, dword [ebp + 8]
jmp 0x401a2c
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
inc dword [ebp - 0x18]
inc esi
mov eax, ecx
and eax, esi
inc eax
inc eax
shr ecx, 1
je 0x40198c
test eax, eax
je 0x40198f
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x14]
sub edx, ecx
mov dl, byte [edx]
inc dword [ebp - 0x14]
dec eax
mov byte [ebx], dl
jne 0x401978
jmp 0x40198f
mov dword [ebp - 8], esi
mov ebx, ecx
jmp 0x401a2e
call fcn.004018ce
test esi, esi
jne 0x4019c9
cmp eax, 2
jne 0x4019c4
lea ecx, [ebp - 0x18]
call fcn.004018ce
test eax, eax
je 0x401a17
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
sub ecx, ebx
mov cl, byte [ecx]
inc dword [ebp - 0x14]
dec eax
mov byte [edx], cl
jne 0x4019b0
jmp 0x401a17
sub eax, 3
jmp 0x4019cb
dec eax
dec eax
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ecx]
shl eax, 8
add eax, ecx
inc dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.004018ce
cmp esi, 0x7d00
jb 0x4019ec
inc eax
cmp esi, 0x500
jb 0x4019f5
inc eax
cmp esi, 0x80
jae 0x4019ff
inc eax
inc eax
test eax, eax
je 0x401a15
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
sub ecx, esi
mov cl, byte [ecx]
inc dword [ebp - 0x14]
dec eax
mov byte [edx], cl
jne 0x401a03
mov ebx, esi
xor esi, esi
inc esi
jmp 0x401a2e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov al, byte [eax]
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov byte [ecx], al
xor esi, esi
cmp dword [ebp - 8], 0
je 0x40190b
mov eax, dword [ebp - 0x14]
sub eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401cf1
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x401d22
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x401d29
cmp ebx, dword [ebp + 8]
jae 0x401d29
xor eax, eax
jmp 0x401f0f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x401d3a
xor eax, eax
inc eax
jmp 0x401f0e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x401d4c
cmp ecx, edx
jae 0x401db0
cmp dword [eax + 4], 0
je 0x401d55
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x401d41
cmp dword [ebp + 8], 0
je 0x401d6f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x401db0
cmp eax, esi
jae 0x401db0
mov ecx, dword [0x403018]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x401d91
cmp dword [eax*4 + 0x403020], esi
je 0x401db7
inc eax
cmp eax, ecx
jl 0x401d83
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x401e27
mov eax, dword [ebp + 8]
jmp 0x401e29
xor eax, eax
jmp 0x401f0e
test eax, eax
jle 0x401d32
xor edx, edx
mov ebx, 0x403060
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x401d32
cmp dword [eax*4 + 0x403020], esi
je 0x401e06
lea eax, [ecx - 1]
test eax, eax
jl 0x401df3
cmp dword [eax*4 + 0x403020], esi
je 0x401def
dec eax
jns 0x401de3
test eax, eax
jge 0x401e04
cmp ecx, 0x10
jge 0x401dff
inc ecx
mov dword [0x403018], ecx
lea eax, [ecx - 1]
jmp 0x401e06
je 0x401e1e
xor edx, edx
test eax, eax
jl 0x401e1e
lea ecx, [edx*4 + 0x403020]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x401e0c
xor eax, eax
xchg dword [ebx], eax
jmp 0x401d32
xor eax, eax
test eax, eax
je 0x401f0c
cmp dword [ebp - 8], 0x1000000
jne 0x401f0c
test byte [ebp - 0xc], 0xcc
je 0x401e9e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x401f0c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401f0c
cmp word [eax + 0x18], 0x10b
jne 0x401f0c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x401f0c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x401e9e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x401e9e
test byte [ecx + 0x27], 0x80
jne 0x401db0
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x403060
xchg dword [edx], ecx
test ecx, ecx
jne 0x401f0e
mov ecx, dword [0x403018]
test ecx, ecx
mov edx, ecx
jle 0x401ecd
lea eax, [ecx*4 + 0x40301c]
cmp dword [eax], esi
je 0x401ecd
dec edx
sub eax, 4
test edx, edx
jg 0x401ec1
test edx, edx
jne 0x401efe
push 0xf
pop ebx
cmp ecx, ebx
jg 0x401eda
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x401ef2
lea eax, [edx*4 + 0x403020]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x401ee0
cmp ecx, 0x10
jge 0x401efe
inc ecx
mov dword [0x403018], ecx
xor eax, eax
mov ecx, 0x403060
xchg dword [ecx], eax
jmp 0x401d32
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10de420
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.010de570
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 0x10de446
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10de432
add dl, dl
jne 0x10de451
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10de4a4
xor eax, eax
add dl, dl
jne 0x10de45e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10de545
add dl, dl
jne 0x10de46d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10de478
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10de483
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10de48e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10de49a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10de43d
mov eax, 1
add dl, dl
jne 0x10de4b2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10de4bd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10de4a9
sub eax, ebx
mov ebx, 1
jne 0x10de4f0
mov ecx, 1
add dl, dl
jne 0x10de4d6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10de4e1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10de4cd
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10de43d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10de507
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10de512
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10de4fe
cmp eax, 0x7d00
jae 0x10de535
cmp eax, 0x500
jb 0x10de530
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10de43d
cmp eax, 0x7f
ja 0x10de538
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10de43d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10de566
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 0x10de43d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4010d4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x88], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x88], 0
jne 0x401104
xor al, al
jmp 0x401129
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x40112d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0
setne al
mov esp, ebp
pop ebp
ret

Function at 0x4011b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp + 0x10], eax
call fcn.004040cb
mov dword [ebp - 4], eax
mov eax, dword [0x40b878]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [ebp - 0x10]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0xc], eax
push 0x4071c0
mov edx, dword [ebp + 8]
push edx
push 0x40b880
mov ecx, 0x40b7e8
call fcn.00405960
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x40b86c], eax
mov ax, word [0x40b108]
mov word [ebp - 0x1c], ax
mov cl, byte [0x40b10a]
mov byte [ebp - 0x1a], cl
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401147
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4012d5
push str.UnregServer
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401280
push 0
push 0
push 0x64
push 0x40b7e8
call fcn.00405b60
push 0
push 1
mov ecx, 0x40b7e8
call fcn.00405b40
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x4012d5
push str.RegServer
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4012bd
push 0
push 1
push 0x64
push 0x40b7e8
call fcn.00405b60
push 0
push 1
mov ecx, 0x40b7e8
call fcn.00405b20
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x4012d5
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00401147
add esp, 8
mov dword [ebp - 0x18], eax
jmp 0x401239
cmp dword [ebp - 0x14], 0
je 0x40132b
mov ecx, 0x40b7e8
call fcn.004010d4
push 1
push 4
mov ecx, 0x40b7e8
call fcn.00405b90
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401316
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4012f6
mov ecx, 0x40b7e8
call fcn.00405bb0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x40b7e8
call fcn.00405ac0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401b00
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0x64
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x7c], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x7c], 0
je 0x401b38
mov eax, dword [ebp - 8]
add eax, 0x7c
mov dword [ebp - 8], eax
jmp 0x401bc0
push 0
push 0
push 4
push 0
push 0
push 2
push 0x40b1c0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401bab
push 0x80
call fcn.00405e43
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x401bab
push 0
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
jne 0x401bab
push 0
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 4]
add eax, 0x570
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.wing.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x7c]
mov dword [eax + 0x68], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x158], 0x408000
mov ecx, dword [ebp - 4]
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ecx + 0x14c], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x120], 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040414e
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x403da7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
xor eax, eax
mov ax, word [edx + 8]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x28], 0x4d42
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
lea edx, [edx + ecx*4 + 0xe]
mov eax, dword [ebp - 0x18]
add edx, dword [eax + 0x14]
mov dword [ebp - 0x26], edx
mov word [ebp - 0x22], 0
mov word [ebp - 0x20], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
lea edx, [edx + ecx*4 + 0xe]
mov dword [ebp - 0x1e], edx
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x20]
lea eax, [edx*4 + 0x28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403ec5
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x403ec5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esp, ebp
pop ebp
ret
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
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
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x73b3b18
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x15441e77
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x406a10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00406c70
call fcn.00406c00
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x406a48
jmp 0x406ae6
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x406a47
cmp cl, 0x22
je 0x406aa0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x406ac0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x406ac0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x406a80
jmp 0x406ac0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x406aa0
cmp cl, 0x22
je 0x406b22
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x406ae0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x406ad0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x406b04
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call fcn.004013b0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x406ac0

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x375742e5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section._RDATA
nop
mov ebx, 0x42cd70
mov ecx, 0x1787767d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219