joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478834
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x47888e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00478824
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00467e78
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00467a78
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478895
lea eax, [ebp - 4]
call fcn.00404138
ret

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x433b87
Capabilities:
Parse pe header

Disassembly:
ret
jmp 0x433766
jne 0x433734
jmp 0x43352f
pop esi
jmp 0x4334ba
lea eax, [eax + eax*8 + 0x1040200]
jmp 0x433a4b
push esi
jmp 0x4335a1
jne 0x433a25
jmp 0x43369b
pop ebp
jmp 0x433ce1
add eax, dword [eax + 0x3c]
jmp 0x4336f3
mov dword [0xa9e9500e], eax
add al, 0
add bl, dh
push ebx
push eax
jmp 0x4339f1
add eax, ebp
jmp 0x43390d
push edi
jmp 0x4335b2
call 0x4335b8
jb 0x433540
adc al, 0x24
lea edx, [edx + 0x57f]
xchg dword [esp], edx
jmp 0x433b81
call 0x4335d3
cdq
out 0x87, eax
xor al, 0x24
lea esi, [esi + 0x6d7]
xchg dword [esp], esi
jmp 0x4338f9
mov bl, 2
jmp 0x43387c
add eax, 0x10000
jmp 0x433734
shr eax, 0x10
jmp 0x433cc2
mov dword [0x43324c], 1
jmp 0x433aca
cmp dword [eax], 0x4550
jmp 0x433bdc
shr eax, 0x10
jmp 0x433ae7
call 0x43376d
insb byte es:[edi], dx
push 0xffffffffffffff87
adc al, 0x24
lea edx, [edx + 0xf5]
xchg dword [esp], edx
jmp 0x433860
ret 4
adc dl, dl
jmp 0x433400
push ebx
jmp 0x4338ac
push edx
jmp 0x433afc
pop edi
jmp 0x43343a
pop eax
jmp 0x433605
pushal
jmp 0x433c5f
movsb byte es:[edi], byte [esi]
jmp 0x4335fb
call 0x433882
push eax
xchg dword [esp], esi
lea esi, [esi + 0x117]
xchg dword [esp], esi
jmp 0x433a86
push ebp
jmp 0x433485
sub esp, 0xc
jmp 0x433974
push ecx
jmp 0x4337f6
call eax
jmp 0x433827
cmp dword [0x43324c], 0
jmp 0x4334a5
add esp, 0xc
jmp 0x4337dc
call dword [0x433250]
jmp 0x4337ee
mov eax, dword [esp + 0x10]
jmp 0x433542
cmp word [eax], 0x5a4d
jmp 0x43342f
xor eax, eax
jmp 0x43342a
inc esi
jmp 0x4337e4
mov dl, byte [esi]
jl 0x433a56
jge 0x433a56
lodsb al, byte [esi]
xlatb
adc eax, 0x1c24548b
jmp 0x433904
add dl, dl
jmp 0x433b69
sub eax, 0x10000
jmp 0x433a3f
jmp 0x4337ee
shl eax, 0x10
jmp 0x433abc
push ebx
jmp 0x43354a
xor ebx, ebx
jmp 0x433868
jne 0x433400
jmp 0x433a5d
call 0x433b87
loope 0x433b0f
xor al, 0x24
lea esi, [esi - 0x34c]
xchg dword [esp], esi
jmp 0x43383a
jne 0x433734
jmp 0x43368f
push esp
jmp 0x4335cc
ret
shl eax, 0x10
je 0x433c7a
jne 0x433c7a
jo 0x433cd7
push eax
jmp 0x433766
add byte [eax - 0x17], dl
in eax, 0xf9
invalid
pop ebx
jmp 0x4339a3
Function at 0x404700
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
mov eax, dword [0x43501c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x3c]
push edi
mov dword [esp + 0x18], 0
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ecx + ebx + 0x20]
add ecx, ebx
mov dword [esp + 0x20], ecx
add eax, ebx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x40489b
mov edi, dword [esp + 0x48]
nop
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x34], 0
mov eax, edx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x24], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404771
sub eax, esi
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.00401350
test ebx, ebx
je 0x40484b
cmp edi, 3
jbe 0x40484b
mov edi, dword [esp + 0x34]
lea ebx, [esp + 0x24]
mov esi, edi
xor esi, 0x14d
cmp dword [esp + 0x38], 0x10
cmovae ebx, dword [esp + 0x24]
push ebx
shr edi, 2
push edi
push str._x_and__p
call fcn.00406e30
add esp, 0xc
xor edx, edx
test edi, edi
je 0x4047f1
nop dword [eax + eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e991
inc edx
imul esi, esi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor esi, ecx
cmp edx, edi
jl 0x4047d0
mov eax, dword [esp + 0x34]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x40481b
sub eax, 1
je 0x404811
sub eax, 1
jne 0x404829
movsx ecx, byte [ebx + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebx + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebx + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor esi, eax
mov edi, dword [esp + 0x48]
mov eax, esi
shr eax, 0xd
xor eax, esi
imul eax, eax, 0x5bd1e991
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
je 0x404847
cmp ecx, edi
je 0x4048b4
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 0x10
jb 0x404890
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404882
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404907
push ecx
push edx
call fcn.004092f5
mov eax, dword [esp + 0x18]
add esp, 8
inc ebp
cmp ebp, dword [esp + 0x1c]
jb 0x404750
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409308
add esp, 0x30
ret
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 0x10
jb 0x40489b
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4048fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404907
push ecx
push edx
call fcn.004092f5
add esp, 8
jmp 0x40489b
call fcn.0040daef
int3
Function at 0x408825
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408846
jl 0x40883d
test edi, edi
jne 0x408846
xor eax, eax
xor edx, edx
jmp 0x408907
cmp dword [ebx + 0x38], 0
je 0x40885b
push eax
push edi
push dword [ebp + 8]
call fcn.0040890d
jmp 0x408907
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4088a2
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4088a2
cmp eax, edi
jb 0x40887c
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a320
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4088a8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4088fc
mov ecx, ebx
call fcn.0040808d
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4088e7
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00411c36
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4088fc
jmp 0x4088ba
test edx, edx
je 0x4088fc
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00411c36
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x409aaa
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409ae9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409ae9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409ae9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409ae9
cmp dword [ecx + 0x74], 0xe
jbe 0x409ae9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41794a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b3ac
push 0x42b3a4
push str.FlsAlloc
push 0x1e
call fcn.00417777
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41797e
push dword [ebp + 8]
mov ecx, esi
call dword [0x427154]
call esi
jmp 0x417984
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4179c8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b3bc
push 0x42b3b4
push str.FlsGetValue
push 0x20
call fcn.00417777
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4179ff
push dword [ebp + 8]
mov ecx, esi
call dword [0x427154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41b0d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041af48

Function at 0x41b4d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409e20
mov eax, dword [0x43501c]
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.00418ed7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b513
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41b66f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425ff0
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 + 0x436b90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c4c8
mov ecx, dword [esi*4 + 0x436b90]
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 0x41b668
cmp eax, dword [edi + ecx + 0x24]
jne 0x41b668
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 0x41b668
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c4c8
add esp, 0x14
test edx, edx
jl 0x41b668
jg 0x41b5de
test eax, eax
jb 0x41b668
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41b668
jl 0x41b5f8
cmp dword [ebp - 0x1008], eax
ja 0x41b668
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b616
test ebx, ebx
je 0x41b64f
cmp ecx, edi
jae 0x41b64f
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b630
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b63c
cmp byte [ecx + 1], 0xa
jne 0x41b63c
inc ecx
jmp 0x41b63c
movzx eax, al
movsx eax, byte [eax + 0x4352b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b616
cmp edx, ebx
jne 0x41b616
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41b66d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409308
leave
ret
Function at 0x41b966
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 + 0x436b90]
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 0x41b9a6
cmp byte [ebx], 0xa
jne 0x41b9a6
or byte [eax + edi + 0x28], 4
jmp 0x41b9ab
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41baa9
mov al, byte [edx]
cmp al, 0x1a
je 0x41ba8b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41b9da
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41b9ff
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ba09
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 0x41b9bc
jmp 0x41baa9
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 0x41ba86
cmp dword [ebp - 0xc], 0
je 0x41ba86
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x436b90]
test byte [eax + edi + 0x28], 0x48
je 0x41ba60
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ba4b
mov byte [esi], dl
jmp 0x41ba5c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x436b90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41baa9
cmp byte [ebp - 1], 0xa
jne 0x41ba6f
cmp esi, ebx
jne 0x41ba6f
mov byte [esi], 0xa
jmp 0x41baa8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c4e6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41baa9
mov byte [esi], 0xd
jmp 0x41baa8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x436b90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41baa5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41baa9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bab2
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 + 0x436b90]
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 0x41baf5
cmp word [esi], dx
jne 0x41baf5
or byte [edi + eax + 0x28], 4
jmp 0x41bafa
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 0x41bc4d
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 0x41bc2d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41bb3c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bb72
cmp eax, edx
jae 0x41bb7e
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 0x41bb14
jmp 0x41bc4d
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 0x41bc29
cmp dword [ebp - 0x14], 0
je 0x41bc29
mov eax, dword [ebx*4 + 0x436b90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41bc01
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41bbca
mov word [esi], cx
jmp 0x41bbfd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x436b90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x436b90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x436b90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41bc4d
pop ebx
cmp word [ebp - 4], bx
jne 0x41bc12
cmp esi, dword [ebp + 0xc]
jne 0x41bc12
mov word [esi], bx
jmp 0x41bc4a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c4e6
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bc4d
push 0xd
jmp 0x41bc46
mov ecx, dword [ebx*4 + 0x436b90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bc44
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bc4d
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 0x41ee7d
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 0x41ef1a
push ebx
push esi
call fcn.0041ee46
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.0041dacb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41eec7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ef19
push edi
push eax
call fcn.00417fe6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41eee7
call fcn.0041749c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ef18
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041dacb
add esp, 0x20
test eax, eax
jne 0x41ef06
push edi
call fcn.0041749c
jmp 0x41ef0e
push ebx
call fcn.0041749c
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 0x425df0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425e1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425e1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x4bc224
Capabilities:
Encode data using xor

Disassembly:
push esp
xchg dword [esp], ebp
sub ebp, 4
sub esp, 0x3c
adc dword [ebp - 0x24], 0xfffffffd
lea ebx, [0x4be0f8]
push ecx
mov ecx, esp
push ecx
push 0x40
mov eax, 0xa1c
push eax
push 0x4be218
mov edx, 0x65fd65b9
add edx, 0x9a4e6a67
push dword [edx]
mov edx, str.unipla_.dll
pop dword [edx]
call dword [edx]
add esp, 4
xor edi, edi
sub edi, 0x4be218
neg edi
mov dword [ebx - 0x28], edi
mov eax, edi
xor esi, esi
xor esi, 0x4bd5ed
mov edi, 0x61c
mov edx, dword [esi]
add esi, 4
push edx
pop dword [eax]
sub ecx, 0xce42be39
add dword [eax], 0x7ad3ea56
xor dword [eax], 0xc5da43d2
add eax, 4
sub edi, 4
cmp edi, 0
jne 0x4bc27e
mov ecx, 0
push ecx
call sub.KERNEL32.dll_CloseHandle
add esp, 0x3c
pop ebp
ret 8
Function at 0x411970
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x478efb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046d17a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4119f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046af9a
mov eax, dword [eax]
push 0x4ba200
push eax
call fcn.0045d2f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046d405
test bl, bl
je 0x4119f2
push 0x4ba200
lea ecx, [esp + 0xc]
call fcn.0046d795
push 0x4bdd7c
lea ecx, [esp + 0xc]
call fcn.0046d795
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x411a2e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046d405
jmp 0x411af9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x411ab2
lea edx, [esp + 0x7c]
push 0x4bdd78
push edx
call fcn.0045d2f4
add esp, 8
test eax, eax
je 0x411ab2
lea eax, [esp + 0x7c]
push 0x4bdd74
push eax
call fcn.0045d2f4
add esp, 8
test eax, eax
je 0x411ab2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x411a42
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046d405
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4122f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x412352
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc