joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100185c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024408
push 0x10019b10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1001864a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp word [eax], 0x5a4d
jne 0x10018643
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
cmp dword [ecx], 0x4550
jne 0x10018643
cmp word [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
je 0x1001864a
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018cb0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x3c]
mov edi, dword [esp + 0x14]
add eax, ecx
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ecx + eax + 0x24]
lea ecx, [ecx + eax + 0x18]
cmp edi, edx
jae 0x10018cd8
mov eax, edi
pop edi
pop esi
pop ebx
ret
xor edx, edx
xor esi, esi
mov dx, word [eax + 6]
test edx, edx
jbe 0x10018cfc
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x10018cf4
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edi, ebx
jb 0x10018d03
add ecx, 0x28
inc esi
cmp esi, edx
jb 0x10018ce4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
sub eax, edx
add eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10018e00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe0
mov eax, dword [esp + 0xe4]
push ebx
push ebp
push esi
mov ecx, dword [eax + 0x3c]
push edi
add ecx, eax
xor ebx, ebx
mov ebp, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x10], ecx
mov edi, dword [eax + ebp + 0x24]
mov esi, dword [eax + ebp + 0x1c]
mov edx, dword [eax + ebp + 0x20]
mov ecx, dword [eax + ebp + 0x10]
add edi, eax
add esi, eax
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0xf8]
add edx, eax
mov dword [esp + 0x20], esi
test edi, 0xffff0000
jne 0x10018e76
cmp edi, ecx
jb 0x10018e69
mov edx, dword [eax + ebp + 0x14]
lea edx, [edx + ecx - 1]
cmp edi, edx
ja 0x10018e69
sub edi, ecx
mov ebx, dword [esi + edi*4]
jmp 0x10018ef7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xe0
ret
mov ecx, dword [eax + ebp + 0x18]
mov dword [esp + 0x18], 0
test ecx, ecx
jle 0x10018ef9
mov dword [esp + 0x1c], edx
jmp 0x10018e93
mov edi, dword [esp + 0xf8]
mov esi, dword [edx]
add esi, eax
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [edi]
jne 0x10018ebb
test cl, cl
je 0x10018eb7
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x10018ebb
add esi, 2
add edi, 2
test cl, cl
jne 0x10018e97
xor ecx, ecx
jmp 0x10018ec0
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x10018ee2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov esi, dword [eax + ebp + 0x18]
inc ecx
add edx, 4
cmp ecx, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jl 0x10018e8c
jmp 0x10018ef9
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov cx, word [edx + esi*2]
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + ecx*4]
add ebx, eax
lea ecx, [eax + ebp]
cmp ebx, ecx
jb 0x10018fc8
mov edx, dword [esp + 0x10]
add edx, ebp
add edx, eax
cmp ebx, edx
ja 0x10018fc8
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x8d]
mov byte [esp + 0x8c], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push eax
call esi
lea ecx, [esp + 0x28]
push 0x2e
push ecx
call fcn.1001a530
add esp, 8
test eax, eax
je 0x10018fc8
mov byte [eax], 0
inc eax
lea edx, [esp + 0x8c]
push eax
push edx
call esi
mov al, 0x6c
lea ecx, [esp + 0x28]
mov byte [esp + 0x12], al
mov byte [esp + 0x13], al
lea eax, [esp + 0x10]
mov byte [esp + 0x10], 0x2e
push eax
push ecx
mov byte [esp + 0x19], 0x64
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10018fc8
lea ecx, [esp + 0x8c]
push ecx
push eax
call fcn.10018e00
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xe0
ret
Function at 0x4013d4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x413ff0
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x414237
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
nop dword [eax]
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
sub byte [edi + ebp], 0x62
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xc
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x57
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xb0
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x3d
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x9f
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xd2
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xe5
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x4f
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x89
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xb5
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x83
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xc1
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x33
push str.Aristo_Halloween_Beats
push 0x56c560
call fcn.00402e32
push eax
call fcn.00406325
add esp, 0xc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x9b
inc edi
cmp edi, ebx
jb 0x414010
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x4036ed
Capabilities:
Terminate process

Disassembly:
jmp 0x454699
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4546aa
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405aec
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 0x4946d3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401df2
mov eax, dword [0x569d00]
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.00406069
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x494715
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x494871
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004061cc
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 + 0x56db78]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403341
mov ecx, dword [esi*4 + 0x56db78]
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 0x49486a
cmp eax, dword [edi + ecx + 0x24]
jne 0x49486a
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 0x49486a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403341
add esp, 0x14
test edx, edx
jl 0x49486a
jg 0x4947e0
test eax, eax
jb 0x49486a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49486a
jl 0x4947fa
cmp dword [ebp - 0x1008], eax
ja 0x49486a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x494818
test ebx, ebx
je 0x494851
cmp ecx, edi
jae 0x494851
mov al, byte [ecx]
cmp al, 0xd
jne 0x494832
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49483e
cmp byte [ecx + 1], 0xa
jne 0x49483e
inc ecx
jmp 0x49483e
movzx eax, al
movsx eax, byte [eax + 0x56a028]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x494818
cmp edx, ebx
jne 0x494818
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49486f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403116
leave
ret
Function at 0x494fb0
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 + 0x56db78]
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 0x494ff0
cmp byte [ebx], 0xa
jne 0x494ff0
or byte [eax + edi + 0x28], 4
jmp 0x494ff5
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4950f3
mov al, byte [edx]
cmp al, 0x1a
je 0x4950d5
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x495024
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x495049
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x495053
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 0x495006
jmp 0x4950f3
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 0x4950d0
cmp dword [ebp - 0xc], 0
je 0x4950d0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x56db78]
test byte [eax + edi + 0x28], 0x48
je 0x4950aa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x495095
mov byte [esi], dl
jmp 0x4950a6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x56db78]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4950f3
cmp byte [ebp - 1], 0xa
jne 0x4950b9
cmp esi, ebx
jne 0x4950b9
mov byte [esi], 0xa
jmp 0x4950f2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040197e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4950f3
mov byte [esi], 0xd
jmp 0x4950f2
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x56db78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4950ef
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4950f3
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49514f
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 + 0x56db78]
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 0x495192
cmp word [esi], dx
jne 0x495192
or byte [edi + eax + 0x28], 4
jmp 0x495197
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 0x4952ea
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 0x4952ca
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4951d9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49520f
cmp eax, edx
jae 0x49521b
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 0x4951b1
jmp 0x4952ea
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 0x4952c6
cmp dword [ebp - 0x14], 0
je 0x4952c6
mov eax, dword [ebx*4 + 0x56db78]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49529e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x495267
mov word [esi], cx
jmp 0x49529a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x56db78]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x56db78]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x56db78]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4952ea
pop ebx
cmp word [ebp - 4], bx
jne 0x4952af
cmp esi, dword [ebp + 0xc]
jne 0x4952af
mov word [esi], bx
jmp 0x4952e7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040197e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4952ea
push 0xd
jmp 0x4952e3
mov ecx, dword [ebx*4 + 0x56db78]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4952e1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4952ea
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 0x49c6d1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x569d00]
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 0x49c71c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049cb93
test al, al
jne 0x49c716
sub edx, 2
cmp edx, edi
jne 0x49c6fc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49c73e
lea eax, [edi + 2]
cmp edx, eax
je 0x49c73e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049c2ca
add esp, 0x10
jmp 0x49c838
push esi
lea ecx, [ebp - 0x255]
call fcn.0049cb93
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 0x49c781
push dword [ebp - 0x25c]
jmp 0x49c72e
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 0x49c7be
cmp word [ebp - 0x226], 0
je 0x49c7df
cmp word [ebp - 0x226], ax
jne 0x49c7be
cmp word [ebp - 0x224], 0
je 0x49c7df
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049c2ca
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49c82b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49c798
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49c813
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49c838
push 0x49bcb2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056f5
add esp, 0x10
jmp 0x49c808
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.00403116
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407290
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407290
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407290
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407290
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407290
mov dword [0x41203c], eax
call fcn.00407290
test eax, eax
jge 0x402550
push 8
call fcn.00407290
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407290
pop ecx
push 1
call fcn.00407290
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407290
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407290
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407290
jmp 0x402495

Function at 0x407290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40729f
pop dword [ebp - 0x20]
mov eax, 0x40729f
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3ccc8
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x5611
xor edx, edx
add edx, eax
mov esi, 0xd12d92ed
add esi, 0x2f13a8d7
add esi, dword [ebp - 0x20]
mov ebx, 0x4e1801c9
sub ebx, 0x5c47de4b
add dword [ebp - 0xc], 0xe5747ea3
mov edi, dword [esi]
sub dword [ebp - 8], 0xa3ac4516
xor edi, ebx
mov dword [edx], edi
add dword [ebp - 0x18], esi
add edx, 4
add esi, 0xbe20a581
add esi, 0x41df5a83
loop 0x4072f0
add eax, 0x14b17
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x166d25be
sub ecx, 0x162d25be
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4036c0
Capabilities:
Terminate process

Disassembly:
jmp 0x454c79
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x454c8a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405a8d
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 0x4037f1
Capabilities:
Query environment variable

Disassembly:
jmp 0x49e7d2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49e7e3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049e6b9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004040cf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49e80b
push ebx
push esi
push edi
call fcn.0040586c
add esp, 0xc
push 0
call fcn.00406410
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405939
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dde
mov eax, dword [0x4d2034]
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.00406005
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4962f1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49644d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406163
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 + 0x4d5ea8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403314
mov ecx, dword [esi*4 + 0x4d5ea8]
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 0x496446
cmp eax, dword [edi + ecx + 0x24]
jne 0x496446
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 0x496446
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403314
add esp, 0x14
test edx, edx
jl 0x496446
jg 0x4963bc
test eax, eax
jb 0x496446
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x496446
jl 0x4963d6
cmp dword [ebp - 0x1008], eax
ja 0x496446
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4963f4
test ebx, ebx
je 0x49642d
cmp ecx, edi
jae 0x49642d
mov al, byte [ecx]
cmp al, 0xd
jne 0x49640e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49641a
cmp byte [ecx + 1], 0xa
jne 0x49641a
inc ecx
jmp 0x49641a
movzx eax, al
movsx eax, byte [eax + 0x4d2370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4963f4
cmp edx, ebx
jne 0x4963f4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49644b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030f3
leave
ret