joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1e40
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x4d1e5f
add edx, 3
sar edx, 2
test edx, edx
jle 0x4d1f6c
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x4d1e94
je 0x4d1ed7
sub ecx, 0x2b
je 0x4d1ecd
sub ecx, 4
je 0x4d1ed2
dec ecx
sub ecx, 0xa
jb 0x4d1ebf
jmp 0x4d1eda
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4d1ea6
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4d1eb1
jmp 0x4d1eda
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4d1eda
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4d1eda
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4d1eda
mov byte [eax], 0x3e
jmp 0x4d1eda
mov byte [eax], 0x3f
jmp 0x4d1eda
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4d1e77
movzx eax, byte [esp + 4]
shl eax, 2
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x4d1f2a
cmp byte [esp + 7], 0xff
jne 0x4d1f2a
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x4d1f61
cmp dl, 0xff
je 0x4d1f61
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x4d1e6e
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x4d47f4
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, eax
mov edi, edx
mov edx, ecx
dec edx
test edx, edx
jb 0x4d480f
inc edx
xor eax, eax
movzx ecx, byte [edi + eax]
xor byte [esi + eax], cl
inc eax
dec edx
jne 0x4d4804
pop edi
pop esi
ret

Function at 0x4d60a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
movzx ebx, dl
dec ebx
test ebx, ebx
jb 0x4d60e9
inc ebx
xor edx, edx
mov ecx, edx
shl ecx, 2
movzx esi, byte [eax + ecx]
mov esi, dword [esi*4 + 0x4e4e04]
movzx edi, byte [eax + ecx + 1]
xor esi, dword [edi*4 + 0x4e5204]
movzx edi, byte [eax + ecx + 2]
xor esi, dword [edi*4 + 0x4e5604]
movzx edi, byte [eax + ecx + 3]
xor esi, dword [edi*4 + 0x4e5a04]
mov dword [eax + ecx], esi
inc edx
dec ebx
jne 0x4d60ae
pop edi
pop esi
pop ebx
ret
Function at 0x401fd5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [0x48a690]
xor ebx, ebx
push edi
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x402045
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
add eax, esi
push eax
call fcn.004029da
lea ecx, [esp + 0x1c]
call fcn.00401e05
cmp eax, dword [esp + 0x10]
je 0x40205c
lea ecx, [esp + 0x1c]
add edi, 4
call fcn.00402a67
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x402015
xor edi, edi
mov ecx, dword [esp + 0x34]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406cb1
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00402da6
push eax
call fcn.00403028
mov edx, dword [esp + 0x1c]
pop ecx
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x1c]
call fcn.00402a67
jmp 0x402047

Function at 0x40208f
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x48a690], eax
pop edi
pop esi
ret

Function at 0x404c0b
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 0x404c2c
jl 0x404c23
test edi, edi
jne 0x404c2c
xor eax, eax
xor edx, edx
jmp 0x404ced
cmp dword [ebx + 0x38], 0
je 0x404c41
push eax
push edi
push dword [ebp + 8]
call fcn.00404cf3
jmp 0x404ced
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404c88
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x404c88
cmp eax, edi
jb 0x404c62
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407b20
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 0x404c8e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x404ce2
mov ecx, ebx
call fcn.0040445b
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x404ccd
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040c50c
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 0x404ce2
jmp 0x404ca0
test edx, edx
je 0x404ce2
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040c50c
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 0x4135d6
Capabilities:
Read file on windows

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

Function at 0x4135e1
Capabilities:
Read file on windows

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

Function at 0x4139db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407a70
mov eax, dword [0x428040]
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.0041246d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x413a1d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413b79
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041d110
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 + 0x48a358]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00414bab
mov ecx, dword [esi*4 + 0x48a358]
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 0x413b72
cmp eax, dword [edi + ecx + 0x24]
jne 0x413b72
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 0x413b72
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00414bab
add esp, 0x14
test edx, edx
jl 0x413b72
jg 0x413ae8
test eax, eax
jb 0x413b72
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x413b72
jl 0x413b02
cmp dword [ebp - 0x1008], eax
ja 0x413b72
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x413b20
test ebx, ebx
je 0x413b59
cmp ecx, edi
jae 0x413b59
mov al, byte [ecx]
cmp al, 0xd
jne 0x413b3a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413b46
cmp byte [ecx + 1], 0xa
jne 0x413b46
inc ecx
jmp 0x413b46
movzx eax, al
movsx eax, byte [eax + 0x4282f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x413b20
cmp edx, ebx
jne 0x413b20
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413b77
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406cb1
leave
ret
Function at 0x414049
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 + 0x48a358]
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 0x414089
cmp byte [ebx], 0xa
jne 0x414089
or byte [eax + edi + 0x28], 4
jmp 0x41408e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41418c
mov al, byte [edx]
cmp al, 0x1a
je 0x41416e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4140bd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4140e2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4140ec
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 0x41409f
jmp 0x41418c
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 0x414169
cmp dword [ebp - 0xc], 0
je 0x414169
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x48a358]
test byte [eax + edi + 0x28], 0x48
je 0x414143
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41412e
mov byte [esi], dl
jmp 0x41413f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x48a358]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41418c
cmp byte [ebp - 1], 0xa
jne 0x414152
cmp esi, ebx
jne 0x414152
mov byte [esi], 0xa
jmp 0x41418b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00414bc9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41418c
mov byte [esi], 0xd
jmp 0x41418b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x48a358]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414188
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41418c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x414195
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 + 0x48a358]
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 0x4141d8
cmp word [esi], dx
jne 0x4141d8
or byte [edi + eax + 0x28], 4
jmp 0x4141dd
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 0x414330
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 0x414310
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41421f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x414255
cmp eax, edx
jae 0x414261
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 0x4141f7
jmp 0x414330
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 0x41430c
cmp dword [ebp - 0x14], 0
je 0x41430c
mov eax, dword [ebx*4 + 0x48a358]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4142e4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4142ad
mov word [esi], cx
jmp 0x4142e0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x48a358]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x48a358]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x48a358]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x414330
pop ebx
cmp word [ebp - 4], bx
jne 0x4142f5
cmp esi, dword [ebp + 0xc]
jne 0x4142f5
mov word [esi], bx
jmp 0x41432d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00414bc9
add esp, 0x10
cmp word [ebp - 4], bx
je 0x414330
push 0xd
jmp 0x414329
mov ecx, dword [ebx*4 + 0x48a358]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x414327
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x414330
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 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 0xdb48e0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdb48ea
pushal
call 0xdb48f0
pop ebp
sub ebp, 0x10
sub ebp, 0x9b48e0
jmp 0xdb4906
mov eax, 0x9b48e0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bb
mov edx, 0xb575b241
xor byte [eax], dl
inc eax
dec ecx
jne 0xdb491d
jmp 0xdb4930
retf 0xca8c
Function at 0x401390
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404e40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x3d8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3e4]
push ecx
call fcn.00401770
add esp, 8
lea edx, [ebp - 0x3e4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x40141b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x40141b
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x40141b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40148d
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x401482
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0
lea edx, [ebp - 0x3e4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40146d
push 0
lea eax, [ebp - 0x3e4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40146b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40146b
xor al, al
jmp 0x4014ad
jmp 0x40147c
mov ecx, dword [ebp - 0x18]
and ecx, 0x10
cmp ecx, 0x10
je 0x40147c
xor al, al
jmp 0x4014ad
mov edx, dword [ebp - 0x14]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x40141b
jmp 0x4014a4
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4014c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
push 1
call dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 1
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [str.D________v]
mov dword [ebp - 0xc], eax
mov ecx, dword [str.D________v]
mov dl, byte [ecx + 0xf]
mov byte [ebp - 4], dl
jmp 0x401553
call fcn.004014f3
mov dword [ebp - 8], 0x5f8
jmp 0x401513
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x40153a
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp - 0xc]
mov byte [ecx], dl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x40150a
push 0x5f8
mov eax, dword [str.D________v]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_memmove
add esp, 0xc
jmp 0x401555
jmp 0x4014fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret
Function at 0x403770
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, dword [0x4a3b8c]
mov ecx, dword [0x4a0a94]
sub esp, 0xc2c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40387d
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_SearchPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x4a3b8c], 0x959
jne 0x403863
push 0
push 0
call edi
push 0
push 0
call ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x43c]
push ecx
push 0
push 0
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea edx, [esp + 0x1c]
push edx
push 0
call esi
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [esp + 0x83c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call esi
push 0
push 0x402e28
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push 0x402e68
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edx, dword [esp + 0x10]
push edx
call fcn.004035d0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x4037b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc2c
ret
Function at 0x4074ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436248]
jne 0x4074f4
repz ret
jmp fcn.0040cc78

Function at 0x40d76f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409c85
and dword [ebp - 4], 0
cmp dword [0x439918], 0
mov ebx, eax
jne 0x40d820
push 0x4024ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d8d1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024e0
push edi
call esi
test eax, eax
je 0x40d8d1
push eax
call fcn.00409c13
mov dword [esp], 0x4024d0
push edi
mov dword [0x439918], eax
call esi
push eax
call fcn.00409c13
mov dword [esp], 0x4024bc
push edi
mov dword [0x43991c], eax
call esi
push eax
call fcn.00409c13
mov dword [esp], 0x4024a0
push edi
mov dword [0x439920], eax
call esi
push eax
call fcn.00409c13
pop ecx
mov dword [0x439928], eax
test eax, eax
je 0x40d820
push 0x402488
push edi
call esi
push eax
call fcn.00409c13
pop ecx
mov dword [0x439924], eax
mov eax, dword [0x439924]
cmp eax, ebx
je 0x40d878
cmp dword [0x439928], ebx
je 0x40d878
push eax
call fcn.00409c8e
push dword [0x439928]
mov esi, eax
call fcn.00409c8e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d878
test edi, edi
je 0x40d878
call esi
test eax, eax
je 0x40d86f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d86f
test byte [ebp - 0xc], 1
jne 0x40d878
or dword [ebp + 0x10], 0x200000
jmp 0x40d8b1
mov eax, dword [0x43991c]
cmp eax, ebx
je 0x40d8b1
push eax
call fcn.00409c8e
pop ecx
test eax, eax
je 0x40d8b1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d8b1
mov eax, dword [0x439920]
cmp eax, ebx
je 0x40d8b1
push eax
call fcn.00409c8e
pop ecx
test eax, eax
je 0x40d8b1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x439918]
call fcn.00409c8e
pop ecx
test eax, eax
je 0x40d8d1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d8d3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret