joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018fd2
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 + 0x100bf9e8]
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 0x10019014
cmp byte [ebx], 0xa
jne 0x10019014
or byte [edi + eax + 0x28], 4
jmp 0x10019019
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1001911c
mov cl, byte [eax]
cmp cl, 0x1a
je 0x100190f7
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x10019048
mov eax, dword [ebp - 8]
jmp 0x10019068
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x10019084
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x10019062
add eax, 2
mov cl, 0xa
jmp 0x10019065
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 0x1001902a
jmp 0x1001911c
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 0x100190f2
cmp dword [ebp - 0x10], 0
je 0x100190f2
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x100bf9e8]
test byte [eax + edi + 0x28], 0x48
je 0x100190d1
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x100190c1
mov byte [esi], 0xa
jmp 0x1001911b
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x100bf9e8]
mov byte [eax + edi + 0x2a], cl
jmp 0x1001911b
cmp byte [ebp - 1], 0xa
jne 0x100190db
cmp esi, ebx
je 0x100190bc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10019b64
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001911c
mov byte [esi], 0xd
jmp 0x1001911b
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x100bf9e8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x10019119
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x1001911c
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10019125
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 + 0x100bf9e8]
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 0x10019169
push 0xa
pop esi
cmp word [ebx], si
jne 0x10019169
or byte [eax + edi + 0x28], 4
jmp 0x1001916e
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 0x100192d9
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 0x100192b1
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x100191bb
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x100191e5
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x10019204
push 0xa
pop ebx
cmp word [edx], bx
jne 0x100191d2
push ebx
add eax, 4
pop edx
jmp 0x100191da
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 0x10019180
jmp 0x100192d9
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 0x100192ac
cmp dword [ebp - 0x14], 0
je 0x100192ac
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x100bf9e8]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x10019288
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x10019250
mov word [esi], ax
jmp 0x100192d6
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 + 0x100bf9e8]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100bf9e8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100bf9e8]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x100192d6
cmp word [ebp - 4], ax
jne 0x10019292
cmp esi, ebx
je 0x10019248
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10019b64
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100192d9
push 0xd
pop eax
jmp 0x10019248
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x100bf9e8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x100192d3
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x100192d9
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 0x1001f69e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001341c
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 0x1001f70d
cmp esi, dword [ebp - 4]
je 0x1001f708
cmp dword [ebp + 0xc], 0
je 0x1001f708
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001f6e5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001f1f3
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001f70f
xor eax, eax
inc eax
jmp 0x1001f70f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001f77a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100be014]
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.1001341c
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.1001341c
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 0x1001f7f1
cmp word [ecx], dx
je 0x1001f7f1
mov eax, dword [0x1002b7d4]
push edi
dec eax
push eax
push 0x1002b6c0
call fcn.1001f713
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001f864
cmp word [eax], dx
je 0x1001f864
mov eax, dword [edi]
test eax, eax
je 0x1001f815
cmp word [eax], dx
je 0x1001f815
lea eax, [ebp - 0x10]
push eax
call fcn.1001f0f9
jmp 0x1001f81e
lea eax, [ebp - 0x10]
push eax
call fcn.1001f194
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001f88e
mov eax, dword [0x1002b6bc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002b3b0
call fcn.1001f713
add esp, 0xc
test al, al
je 0x1001f88e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001f859
cmp word [eax], di
je 0x1001f859
lea eax, [ebp - 0x10]
push eax
call fcn.1001f0f9
pop ecx
jmp 0x1001f890
lea eax, [ebp - 0x10]
push eax
call fcn.1001f194
jmp 0x1001f856
mov eax, dword [edi]
test eax, eax
je 0x1001f87b
cmp word [eax], dx
je 0x1001f87b
lea eax, [ebp - 0x10]
push eax
call fcn.1001f0ae
pop ecx
jmp 0x1001f88e
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 0x1001f959
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001f598
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001f959
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001f959
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001f959
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001f8e6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100166b6
test ebx, ebx
je 0x1001f954
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100166b6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001f959
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 0x1001f959
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100227c1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001f95b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005873
leave
ret
Function at 0xacb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00acb1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xacb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xacb06a
add dl, dl
jne 0xacb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xacb0dc
xor eax, eax
add dl, dl
jne 0xacb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xacb17d
add dl, dl
jne 0xacb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xacb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xacb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xacb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xacb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xacb075
mov eax, 1
add dl, dl
jne 0xacb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xacb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xacb0e1
sub eax, ebx
mov ebx, 1
jne 0xacb128
mov ecx, 1
add dl, dl
jne 0xacb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xacb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xacb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xacb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xacb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xacb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xacb136
cmp eax, 0x7d00
jae 0xacb16d
cmp eax, 0x500
jb 0xacb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xacb075
cmp eax, 0x7f
ja 0xacb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xacb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xacb19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xacb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401458
Capabilities:
Parse pe header

Disassembly:
lea eax, [ebp + 0x401086]
push eax
call dword [ebp + 0x401190]
test eax, eax
jne 0x4013cd
lea edx, [ebp + 0x4011f1]
push edx
push eax
mov eax, dword [ebp + 0x40118c]
call eax
mov dword [ebp + 0x4011fd], eax
push 0x10040
call fcn.004013f8
ret
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0xc0000000
lea eax, [ebp + 0x4011b8]
push eax
call dword [ebp + 0x401194]
inc eax
je 0x401643
dec eax
mov dword [ebp + 0x4011c5], eax
push eax
sub ebx, ebx
push ebx
push eax
call dword [ebp + 0x4011a8]
inc eax
je 0x401637
dec eax
mov dword [ebp + 0x4011c1], eax
xchg ecx, eax
add ecx, 0x1000
pop eax
xor ebx, ebx
push ebx
push ecx
push ebx
push 4
push ebx
push eax
call dword [ebp + 0x401198]
test eax, eax
je 0x401637
mov dword [ebp + 0x4011c9], eax
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
push eax
call dword [ebp + 0x40119c]
test eax, eax
je 0x40162b
mov dword [ebp + 0x4011cd], eax
xchg esi, eax
cmp word [esi], 0x5a4d
jne 0x4013bc
add esi, dword [esi + 0x3c]
cmp word [esi], 0x4550
jne 0x4013bc
cmp dword [esi + 8], 0x6461726b
je 0x4013bc
mov dword [ebp + 0x4011d1], esi
push edi
push eax
xor eax, eax
lea edi, [esi + 0xd0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
pop edi
mov ecx, dword [esi + 0x74]
imul ecx, ecx, 8
lea eax, [esi + ecx + 0x78]
movzx ecx, word [esi + 6]
imul ecx, ecx, 0x28
add eax, ecx
xchg esi, eax
mov dword [esi], 0x6d75682e
mov dword [esi + 8], 0x642
mov ebx, dword [eax + 0x38]
mov dword [ebp + 0x4011d5], ebx
mov edi, dword [eax + 0x3c]
mov dword [ebp + 0x4011d9], edi
mov ecx, dword [esi - 0x1c]
mov eax, dword [esi - 0x20]
xor edx, edx
div ebx
test edx, edx
je 0x401557
inc eax
mul ebx
add eax, ecx
mov dword [esi + 0xc], eax
add eax, 0x2dc
mov dword [ebp + 0x4011dd], eax
mov dword [esi + 0x24], 0xe0000020
mov eax, 0x642
cdq
div edi
je 0x40157b
inc eax
mul edi
mov dword [esi + 0x10], eax
mov eax, dword [esi - 0x14]
add eax, dword [esi - 0x18]
mov dword [esi + 0x14], eax
mov dword [ebp + 0x4011ed], eax
mov eax, dword [ebp + 0x4011d1]
inc word [eax + 6]
mov ebx, dword [eax + 0x28]
mov dword [ebp + 0x4011e5], ebx
mov ebx, dword [ebp + 0x4011dd]
mov dword [eax + 0x28], ebx
mov ebx, dword [eax + 0x50]
add ebx, 0x642
mov ecx, dword [ebp + 0x4011d5]
xor edx, edx
xchg ebx, eax
cdq
div ecx
test edx, edx
je 0x4015c5
inc eax
mul ecx
xchg ebx, eax
mov dword [eax + 0x50], ebx
mov dword [eax + 8], 0x6461726b
cld
mov ecx, 0x642
mov edi, dword [ebp + 0x4011ed]
add edi, dword [ebp + 0x4011cd]
lea esi, [ebp + fcn.0040100a]
rep movsb byte es:[edi], byte [esi]
push edi
lea esi, [ebp + 0x4011e5]
lea edi, [edi - 0x46b]
movsd dword es:[edi], dword [esi]
pop edi
xor eax, eax
sub edi, dword [ebp + 0x4011cd]
push 0
push eax
push edi
push dword [ebp + 0x4011c5]
call dword [ebp + 0x4011ac]
push dword [ebp + 0x4011c5]
call dword [ebp + 0x4011b0]
push dword [ebp + 0x4011cd]
call dword [ebp + 0x4011a0]
push dword [ebp + 0x4011c9]
call dword [ebp + 0x4011a4]
push dword [ebp + 0x4011c5]
call dword [ebp + 0x4011a4]
ret
Function at 0x41efe0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
jmp 0x41effa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f001
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41eff0
mov eax, 1
add ebx, ebx
jne 0x41f013
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f008
jne 0x41f024
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f008
xor ecx, ecx
sub eax, 3
jb 0x41f038
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f0aa
mov ebp, eax
add ebx, ebx
jne 0x41f043
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f050
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f074
inc ecx
add ebx, ebx
jne 0x41f060
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f055
jne 0x41f071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f055
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f094
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f085
jmp 0x41eff6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f094
add edi, ecx
jmp 0x41eff6
pop esi
mov edi, esi
mov ecx, 0x8cf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f0b2
cmp byte [edi], 9
jne 0x41f0b2
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 0x41f0b7
lea edi, [esi + 0x1c000]
mov eax, dword [edi]
or eax, eax
je 0x41f12f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21350]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21404]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f0e4
mov ecx, edi
jns 0x41f113
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 + 0x21408]
or eax, eax
je 0x41f129
mov dword [ebx], eax
add ebx, 4
jmp 0x41f101
call dword [esi + 0x21418]
mov ebp, dword [esi + 0x2140c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x41f163
sub esp, 0xffffff80
jmp 0x411def
Function at 0x4023aa
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov al, byte [ebx + 0x5ab]
lea esi, [ebx + 0x5a4]
lea edi, [ebp - 0x18]
push 9
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [ebp - 0x12], al
mov al, byte [ebx + 0x5ac]
mov byte [ebp - 0x11], al
mov al, byte [ebx + 0x4fb]
mov byte [ebp - 0x10], al
pop esi
lea eax, [ebx + 0x399]
mov cl, byte [eax]
sub eax, 0xb1
mov byte [ebp + esi - 0x18], cl
inc esi
cmp esi, 0xe
jle 0x4023e5
xor ecx, ecx
xor eax, eax
inc eax
shl eax, cl
test ax, 0x5412
setne al
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 0xf
jl 0x4023f8
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, dword [eax*4 + 0x45f378]
movzx eax, byte [ebp + ecx - 0x18]
mov edx, esi
push 2
sar edx, cl
pop edi
xor eax, edx
cdq
idiv edi
cmp edx, 1
jne 0x40243a
inc dword [ebp - 8]
inc ecx
cmp ecx, 0xf
jl 0x402421
cmp dword [ebp - 8], 3
jle 0x4024da
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x20
jl 0x402412
mov eax, dword [ebx + 4]
xor edi, edi
mov ecx, eax
imul ecx, ecx, 0xb1
lea esi, [ecx + ebx - 0x8d]
mov cl, byte [esi]
sub esi, 0xb1
mov byte [ebp + edi - 0x18], cl
inc edi
cmp edi, 7
jle 0x402467
lea esi, [eax + ebx + 0x59d]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor ecx, ecx
xor eax, eax
inc eax
shl eax, cl
test ax, 0x5412
setne al
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 0xf
jl 0x402489
xor edi, edi
mov esi, dword [edi*4 + 0x45f378]
xor ecx, ecx
mov dword [ebp - 8], ecx
movzx eax, byte [ebp + ecx - 0x18]
mov edx, esi
push 2
sar edx, cl
pop ebx
xor eax, edx
cdq
idiv ebx
cmp edx, 1
jne 0x4024c6
inc dword [ebp - 8]
inc ecx
cmp ecx, 0xf
jl 0x4024ad
cmp dword [ebp - 8], 3
jle 0x4024e2
inc edi
cmp edi, 0x20
jl 0x4024a1
jmp 0x4024e6
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov eax, edi
jmp 0x4024dd
xor esi, esi
push esi
push esi
push 0x40c074
call sub.MFC42.DLL_AfxMessageBox
push esi
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x4052b3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and byte [ebp - 0x14], 0
and byte [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 0x20], 0x4b
push eax
mov byte [ebp - 0x1f], 0x45
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x4e
mov byte [ebp - 0x1c], 0x45
mov byte [ebp - 0x1b], 0x4c
mov byte [ebp - 0x1a], 0x33
mov byte [ebp - 0x19], 0x32
mov byte [ebp - 0x18], 0x2e
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x10], 0x4c
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0xd], 0x64
mov byte [ebp - 0xc], 0x4c
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x62
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x61
mov byte [ebp - 7], 0x72
mov byte [ebp - 6], 0x79
mov byte [ebp - 5], 0x41
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
cmp dword [ebp + 8], 0
mov ebx, eax
je 0x40534f
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
jmp 0x405369
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x405361
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x405367
push dword [ebp + 0x10]
push eax
jmp 0x40534b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40536e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
lea eax, [ebp - 0x3c]
push edi
push eax
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
push ebx
mov byte [ebp - 0x2c], 0x4b
mov byte [ebp - 0x2b], 0x45
mov byte [ebp - 0x2a], 0x52
mov byte [ebp - 0x29], 0x4e
mov byte [ebp - 0x28], 0x45
mov byte [ebp - 0x27], 0x4c
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], 0x6c
mov byte [ebp - 0x21], 0x6c
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x3c], 0x47
mov byte [ebp - 0x3b], 0x65
mov byte [ebp - 0x3a], 0x74
mov byte [ebp - 0x39], 0x50
mov byte [ebp - 0x38], 0x72
mov byte [ebp - 0x37], 0x6f
mov byte [ebp - 0x36], 0x63
mov byte [ebp - 0x35], 0x65
mov byte [ebp - 0x34], 0x73
mov byte [ebp - 0x33], 0x73
mov byte [ebp - 0x32], 0x48
mov byte [ebp - 0x31], 0x65
mov byte [ebp - 0x30], 0x61
mov byte [ebp - 0x2f], 0x70
mov byte [ebp - 0x2e], bl
call fcn.004052b3
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
mov byte [ebp - 0x1c], 0x48
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x1a], 0x61
mov byte [ebp - 0x19], 0x70
mov byte [ebp - 0x18], 0x52
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x41
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x6f
mov byte [ebp - 0x12], 0x63
mov byte [ebp - 0x11], bl
call fcn.004052b3
mov edi, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
mov byte [ebp - 0x10], 0x48
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0xd], 0x70
mov byte [ebp - 0xc], 0x41
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6f
mov byte [ebp - 8], 0x63
mov byte [ebp - 7], bl
call fcn.004052b3
add esp, 0x24
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
je 0x405484
push dword [ebp + 8]
push ebx
call esi
push eax
call edi
jmp 0x40548b
push ebx
call esi
push eax
call dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405490
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
push ebx
mov byte [ebp - 0x1c], 0x4b
mov byte [ebp - 0x1b], 0x45
mov byte [ebp - 0x1a], 0x52
mov byte [ebp - 0x19], 0x4e
mov byte [ebp - 0x18], 0x45
mov byte [ebp - 0x17], 0x4c
mov byte [ebp - 0x16], 0x33
mov byte [ebp - 0x15], 0x32
mov byte [ebp - 0x14], 0x2e
mov byte [ebp - 0x13], 0x64
mov byte [ebp - 0x12], 0x6c
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], bl
mov byte [ebp - 0x2c], 0x47
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x74
mov byte [ebp - 0x29], 0x50
mov byte [ebp - 0x28], 0x72
mov byte [ebp - 0x27], 0x6f
mov byte [ebp - 0x26], 0x63
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], 0x73
mov byte [ebp - 0x23], 0x73
mov byte [ebp - 0x22], 0x48
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x61
mov byte [ebp - 0x1f], 0x70
mov byte [ebp - 0x1e], bl
call fcn.004052b3
mov esi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
mov byte [ebp - 0xc], 0x48
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x70
mov byte [ebp - 8], 0x46
mov byte [ebp - 7], 0x72
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], bl
call fcn.004052b3
add esp, 0x18
mov edi, eax
push dword [ebp + 8]
push ebx
call esi
push eax
call edi
pop edi
pop esi
pop ebx
leave
ret