joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a2e4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0041c3d0
mov eax, dword [0x443180]
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.00427d57
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42a326
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42a49d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004339b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4457f8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042b0c8
mov ecx, dword [esi*4 + 0x4457f8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x42a496
cmp eax, dword [edi + ecx + 0x24]
jne 0x42a496
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x42a496
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042b0c8
add esp, 0x14
cmp edx, esi
jl 0x42a496
jg 0x42a3f1
cmp eax, esi
jb 0x42a496
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x42a496
jl 0x42a413
cmp dword [ebp - 0x1008], eax
ja 0x42a496
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x42a438
cmp ebx, esi
je 0x42a47d
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x42a47d
mov al, byte [ecx]
cmp al, 0xd
jne 0x42a45e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42a46a
cmp byte [ecx + 1], 0xa
jne 0x42a46a
inc ecx
jmp 0x42a46a
movzx eax, al
movsx eax, byte [eax + 0x443440]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42a444
cmp edx, ebx
jne 0x42a444
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x42a49b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041b5fa
leave
ret
Function at 0x42a554
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4457f8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42a596
cmp byte [ebx], 0xa
jne 0x42a596
or byte [edi + eax + 0x28], 4
jmp 0x42a59b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42a69e
mov cl, byte [eax]
cmp cl, 0x1a
je 0x42a679
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x42a5ca
mov eax, dword [ebp - 8]
jmp 0x42a5ea
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x42a606
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x42a5e4
add eax, 2
mov cl, 0xa
jmp 0x42a5e7
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x42a5ac
jmp 0x42a69e
push 0
lea eax, [ebp - 0x10]
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 0x42a674
cmp dword [ebp - 0x10], 0
je 0x42a674
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x4457f8]
test byte [eax + edi + 0x28], 0x48
je 0x42a653
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x42a643
mov byte [esi], 0xa
jmp 0x42a69d
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x4457f8]
mov byte [eax + edi + 0x2a], cl
jmp 0x42a69d
cmp byte [ebp - 1], 0xa
jne 0x42a65d
cmp esi, ebx
je 0x42a63e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042b0e6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42a69e
mov byte [esi], 0xd
jmp 0x42a69d
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x4457f8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x42a69b
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x42a69e
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42a6a7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x4457f8]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x42a6eb
push 0xa
pop esi
cmp word [ebx], si
jne 0x42a6eb
or byte [eax + edi + 0x28], 4
jmp 0x42a6f0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x42a85b
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x42a833
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x42a73d
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x42a767
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x42a786
push 0xa
pop ebx
cmp word [edx], bx
jne 0x42a754
push ebx
add eax, 4
pop edx
jmp 0x42a75c
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x42a702
jmp 0x42a85b
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 0x42a82e
cmp dword [ebp - 0x14], 0
je 0x42a82e
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x4457f8]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x42a80a
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x42a7d2
mov word [esi], ax
jmp 0x42a858
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x4457f8]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4457f8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4457f8]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x42a858
cmp word [ebp - 4], ax
jne 0x42a814
cmp esi, ebx
je 0x42a7ca
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042b0e6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42a85b
push 0xd
pop eax
jmp 0x42a7ca
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x4457f8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x42a855
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x42a85b
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42d5b7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42d654
push ebx
push esi
call fcn.0042d580
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042c3a8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42d601
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42d653
push edi
push eax
call fcn.004279c0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42d621
call fcn.004262e0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42d652
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042c3a8
add esp, 0x20
test eax, eax
jne 0x42d640
push edi
call fcn.004262e0
jmp 0x42d648
push ebx
call fcn.004262e0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42fec6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00426168
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42ff35
cmp esi, dword [ebp - 4]
je 0x42ff30
cmp dword [ebp + 0xc], 0
je 0x42ff30
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42ff0d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0042fa1b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42ff37
xor eax, eax
inc eax
jmp 0x42ff37
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x42ffa2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x443180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00426168
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00426168
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x430019
cmp word [ecx], dx
je 0x430019
mov eax, dword [0x43a32c]
push edi
dec eax
push eax
push 0x43a218
call fcn.0042ff3b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x43008c
cmp word [eax], dx
je 0x43008c
mov eax, dword [edi]
test eax, eax
je 0x43003d
cmp word [eax], dx
je 0x43003d
lea eax, [ebp - 0x10]
push eax
call fcn.0042f921
jmp 0x430046
lea eax, [ebp - 0x10]
push eax
call fcn.0042f9bc
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4300b6
mov eax, dword [0x43a214]
push dword [ebp - 0x14]
dec eax
push eax
push 0x439f08
call fcn.0042ff3b
add esp, 0xc
test al, al
je 0x4300b6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x430081
cmp word [eax], di
je 0x430081
lea eax, [ebp - 0x10]
push eax
call fcn.0042f921
pop ecx
jmp 0x4300b8
lea eax, [ebp - 0x10]
push eax
call fcn.0042f9bc
jmp 0x43007e
mov eax, dword [edi]
test eax, eax
je 0x4300a3
cmp word [eax], dx
je 0x4300a3
lea eax, [ebp - 0x10]
push eax
call fcn.0042f8d6
pop ecx
jmp 0x4300b6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x430181
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042fdc0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x430181
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x430181
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x430181
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43010e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00427824
test ebx, ebx
je 0x43017c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00427824
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x430181
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x430181
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00431c7f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x430183
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b5fa
leave
ret
Function at 0x433970
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x52f7431c
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x1a0422b3
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x403c10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
add esp, 0x104
ret

Function at 0x4236ff
Capabilities:
Encode data using xor

Disassembly:
push 8
call dword [esp + 0x58]
not al
inc dword [ebp - 0x30e]
call dword [esp + 0x58]
mov al, 0xdd
sete ch
not ecx
push esp
call dword [esp + 0x5c]
mov dl, bl
inc edx
call dword [esp + 0x5c]
call dword [esp + 0x58]
inc eax
inc edx
adc eax, ebx
lea edx, [ebp + 0x16]
cmc
sete al
xor cl, bl
call edi
cmp esi, eax
je fcn.004236ff
not ecx
inc dh
push eax
not dl
add ecx, ebp
rdtsc
pop esi
ret
Function at 0x404f60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xlatb
mov ebp, esp
mov edx, edx
or bh, al
add byte [eax], al
inc ebx
add byte [eax], al
mov esp, dword [ecx + 0x75c0430c]
or ecx, dword [ebx + 0x4102dc0d]
add byte [ecx - 0x3e748bb3], cl
mov ecx, dword [ebp - 0x3d]
test ecx, ecx
pop ds
or al, byte [ebp - 0x74f98bde]
push eax
and byte [ecx - 0x74acef35], cl
pop ebp
adc al, 0x56
push edi
test dword [edi + 0x75], esp
add edi, dword [eax]
pop eax
sbb byte [ebx + 0x17bf03], cl
add byte [eax], al
cmp ecx, dword [eax + 0x72]
push edi
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x404fb4
push eax
call 0x61406dd0
mov esi, dword [ebx + 0x18]
mov edi, dword [ebx]
lea eax, [ebx - 0x30]
mov edx, edi
test esi, esi
jne 0x404fd1
cmp ecx, dword [edx + 0x73]
or ecx, dword [ebx + 0x4083045d]
scasb al, byte es:[edi]
inc edx
imul esi, esi, 0x74
int1
mov esi, dword [eax]
test ecx, edx
je 0x40502a
mov edi, dword [esi]
test edi, edi
mov esi, edi
jne 0x3840506d
xor byte [ecx + 0x828228], 0
add byte [esi - 0x177c03b0], bh
mov esi, 0xe883fc50
add al, 0x49
test edx, edx
jne 0x404ffa
test ecx, ecx
ja 0x404feb
arpl word [ebx], cx
jmp 0x40506d
mov eax, dword [ebx + 0xc]
cld
sal byte [esi + eax + 0x50], 0xe8
push 0x68800053
add byte [eax], ah
add byte [eax], al
call dword [0x2940c15c]
mov esi, eax
add esp, 4
dec esp
test byte [edi], 0x84
xor al, byte [eax]
add byte [eax], al
lea edi, [eax + ebx]
lea eax, [esi + 0x2000]
mov dword [esi], 0
mov dword [ecx + 8], eax
pop ecx
movsd dword es:[edi], dword [esi]
outsb dx, byte [esi]
mov dword [esi + 0x14], eax
jmp 0x40509d
dec esi
jnp 0x405078
mov edi, dword [ebp + 8]
mov al, byte [0xd6435af8]
mov ecx, edi
mov esp, edi
in al, dx

Function at 0x8ccbcb
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x8cc92e
add ecx, eax
or ecx, eax
call fcn.008ccc00
inc ecx
mov eax, eax
xor dword [ebx], edx
dec ecx
dec ecx
dec eax
inc ebx
inc eax
or eax, eax
mov ecx, 0x16de51e0
cmp ebx, edi
jne fcn.008ccbcb
mov eax, 0x22ef4cc6
sub ecx, 0xfe606eff
ret
Function at 0x41c998
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push ebx
call sub.ADVAPI32.DLL_CryptAcquireContextA
add esp, 0xc
test eax, eax
je 0x41c9d4
sub esp, 0xc
lea eax, [ebx + 4]
push eax
push 0
push 0
push 0x8003
push dword [ebx]
call sub.ADVAPI32.DLL_CryptCreateHash
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x402bff
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a8b30]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402c93
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402c50
cmp dword [ebp + 0x10], ebx
jne 0x402c87
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402bff
test eax, eax
jne 0x402c62
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402c37
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040655b
cmp eax, ebx
je 0x402c9a
push ebx
push dword [0x7a8b30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c93
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7a8b30], ebx
jne 0x402c90
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402c90
jmp 0x402c93
Function at 0x4030ea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403115
mov ecx, dword [0x7a8ad8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x797714], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004031f2
cmp eax, esi
jl 0x4031ec
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405dd9
test eax, eax
je 0x4031dc
push dword [ebp + 8]
add dword [0x797714], 4
call fcn.004031f2
mov ebx, eax
cmp ebx, esi
jl 0x4031ea
cmp dword [ebp + 0x10], esi
jne 0x4031b8
cmp dword [ebp + 8], esi
jle 0x4031ea
mov esi, 0x793710
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40317a
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405dd9
test eax, eax
je 0x4031dc
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405e08
test eax, eax
je 0x4031b4
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x797714], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403169
jmp 0x4031ea
push 0xfffffffffffffffe
jmp 0x4031de
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031c3
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4031e1
push 0xfffffffffffffffd
pop eax
jmp 0x4031ec
mov ebx, dword [ebp - 4]
add dword [0x797714], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x4057af
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405800
xor eax, eax
jmp 0x405827
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405827
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4057fc
call esi
pop esi
leave
ret 4

Function at 0x405861
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a4f70], 0x44
push eax
xor eax, eax
push 0x7a4f70
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4058a0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40592a
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d31
mov edi, eax
cmp edi, 0xffffffff
je 0x40596b
test byte [esp + 0x10], 1
push esi
je 0x40594d
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405953
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40595c
xor eax, eax
inc eax
jmp 0x40596d
test byte [esp + 0x10], 4
jne 0x40596b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8