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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x806553
mov eax, 1
jmp 0x80665e
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x806569
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x806573
mov eax, 2
jmp 0x80665e
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x80659e
mov eax, 1
jmp 0x80665e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x8065c4
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x8065c4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x8065ce
mov eax, 2
jmp 0x80665e
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.00818a10
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x80660f
mov eax, 3
jmp 0x80665e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x80665c
mov eax, 1
jmp 0x80665e
xor eax, eax
pop ebp
ret

Function at 0x807000
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x807016
xor eax, eax
jmp 0x807056
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x80703b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x80703f
xor eax, eax
jmp 0x807056
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.00807060
add esp, 0xc
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x819780
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x819793
xor eax, eax
jmp 0x819851
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x8197ae
xor eax, eax
jmp 0x819851
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x8197cc
xor eax, eax
jmp 0x819851
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x81980e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x81984f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00818a30
add esp, 8
test eax, eax
jne 0x81984d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x819851
jmp 0x819805
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4395f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x27000]
push edi
or ebp, 0xffffffff
jmp 0x439612
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x439619
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x439608
mov eax, 1
add ebx, ebx
jne 0x43962b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x439620
jne 0x43963c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x439620
xor ecx, ecx
sub eax, 3
jb 0x439650
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4396c2
mov ebp, eax
add ebx, ebx
jne 0x43965b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x439668
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43968c
inc ecx
add ebx, ebx
jne 0x439678
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43966d
jne 0x439689
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43966d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4396ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43969d
jmp 0x43960e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4396ac
add edi, ecx
jmp 0x43960e
pop esi
mov edi, esi
mov ecx, 0x38
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4396ca
cmp byte [edi], 5
jne 0x4396ca
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 0x4396cf
lea edi, [esi + 0x37000]
mov eax, dword [edi]
or eax, eax
je 0x439747
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x398ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x398e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4396fc
mov ecx, edi
jns 0x43972b
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 + 0x398ec]
or eax, eax
je 0x439741
mov dword [ebx], eax
add ebx, 4
jmp 0x439719
call dword [esi + 0x398f0]
popal
jmp 0x401344
Function at 0x418a6e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45499f
call fcn.0043e177
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x418a93
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x418ad9
lea ecx, [ebp - 0x10]
call fcn.004024a1
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407e53
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040121c
mov eax, esi
call fcn.0043e24f
ret 8

Function at 0x4197f9
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41980e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x41982c
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x41988a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x419871
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x41987a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x419884
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x419866
inc dword [ebp + 0xc]
invalid
invalid
invalid

Function at 0x41a59d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49

Function at 0x41b186
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x41b1cd
lea eax, [ebp - 0x714]
push eax
call fcn.00419147
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.004190fc
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x41b1d8
jmp 0x41b1dd
jmp fcn.0041aad9
Function at 0x41f8cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41f913
call fcn.00417a90
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f913
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41f92f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041f444
mov esi, eax
test edi, edi
je 0x41f92d
test ebx, ebx
je 0x41f92d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42a442
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42a48a
call fcn.00417a90
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42a48a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42a4cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42a4b6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42a4b6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42a4ca
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43e168
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x477930]
jne 0x43e172
repz ret
jmp fcn.0044503c
Function at 0x416323
Capabilities:
Encode data using xor

Disassembly:
pop ds
jo 0x4163a0
mov bx, 0x35fc
add bh, 0x78
sub byte [ecx + 0x43799438], dh
jmp 0xd6f53682
jge 0x4163c6
cmpsd dword [esi], dword es:[edi]
mov dl, 0xf9
pop ds
pushfd
mov byte [0xe19e6205], al
aas
push es
dec esi
shl dword gs:[ecx], cl
scasd eax, dword es:[edi]
and eax, 0x726edf26
adc al, 0x1a
xchg ebx, eax
xor eax, dword [0xeb94f06a]
or al, 0xbc
fimul dword [ecx - 0x64]
push ebx
cmp ecx, dword fs:[edx + 0xab6d42f]
je 0x416404
invalid
mov bl, 0xe2
inc ebp
stc
mov eax, 0x41cc2249
shl dword [ebx], cl
pop ecx
invalid

Function at 0x629d65
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x632418
cmp edx, dword [eax]
je 0x629d87
add eax, 8
inc ecx
cmp eax, 0x6324a8
jl 0x629d78
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x632418]
jne 0x629eb5
mov eax, dword [0x63ada4]
cmp eax, 1
je 0x629e8f
test eax, eax
jne 0x629db8
cmp dword [0x632340], 1
je 0x629e8f
cmp edx, 0xfc
je 0x629eb5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x629def
lea eax, [ebp - 0x1a4]
push 0x62f9c8
push eax
call fcn.0062a750
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062abe0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x629e32
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062abe0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62f9c4
push edi
call fcn.0062cab0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x62f9a8
push eax
call fcn.0062a750
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062a760
lea eax, [ebp - 0xa0]
push 0x62f9a4
push eax
call fcn.0062a760
push dword [esi + 0x63241c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062a760
push 0x12010
lea eax, [ebp - 0xa0]
push 0x62f97c
push eax
call fcn.0062ca24
add esp, 0x2c
pop edi
jmp 0x629eb5
lea eax, [ebp + 8]
lea esi, [esi + 0x63241c]
push 0
push eax
push dword [esi]
call fcn.0062abe0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401118
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40112f
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401164
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401160
cmp edi, eax
jae 0x401164
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401152
cmp edi, eax
jb 0x401168
xor eax, eax
jmp 0x401171
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x40127c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40128f
push 0x80004005
call fcn.0040107e
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401296
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4012c6
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x487010]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x21c]
push edx
xor edi, edi
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x224], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x21c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
cmp esi, edi
jne 0x4013ec
xor eax, eax
cmp dword [ebp - 0x218], edi
je 0x401340
push dword [ebp - 0x218]
call ebx
mov ecx, dword [ebp - 0x21c]
mov esi, eax
mov dword [ebp - 0x218], ecx
cmp eax, edi
jne 0x4013ec
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x230]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push ecx
jmp 0x4013b3
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004012c6
mov dword [ebp - 0x21c], eax
cmp eax, edi
jne 0x40140f
lea eax, [ebp - 0x230]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x218]
mov dword [ebp - 0x220], 0x100
call esi
test eax, eax
je 0x401378
cmp dword [ebp - 0x218], edi
je 0x4013d9
push dword [ebp - 0x218]
call ebx
mov dword [ebp - 0x218], edi
push dword [ebp - 0x228]
mov esi, dword [ebp - 0x224]
call fcn.00401203
mov esi, eax
cmp dword [ebp - 0x218], edi
je 0x4013fc
push dword [ebp - 0x218]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045b700
leave
ret 4
cmp dword [ebp - 0x218], edi
je 0x40141f
push dword [ebp - 0x218]
call ebx
mov eax, dword [ebp - 0x21c]
jmp 0x4013fe
Function at 0x4050ec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [ebp], eax
mov dword [esp], 0x2e35c998
call fcn.009cf645
jmp loc.00977c62

Function at 0x405c58
Capabilities:
Check if file exists
Delete file

Disassembly:
xor eax, ebx
shl cx, 0x68
call fcn.00748796

Function at 0x40fecf
Capabilities:
Read .ini file

Disassembly:
lea esi, [eax + esi - 0x231b]
setb al
adc ax, word [esp + eax*2 - 0x45fd]
mov word [esi + eax*2 - 0xa624], dx
pop edx
pop ecx
jp fcn.00557a43
call fcn.009cfa73
leave
ret

Function at 0x414982
Capabilities:
Check if file exists

Disassembly:
push ecx
mov ecx, 0x31b2f73c
pushfd
sub ecx, ecx
test cl, 0x2d
movsx cx, cl
call fcn.005afd82

Function at 0x41ef28
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
test eax, eax
jle 0x41efab
push esi
lea edx, [eax + ebx - 1]
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov al, byte [edi]
test al, al
je 0x41ef99
movzx eax, al
mov al, byte [eax + 0x48a268]
xor ecx, ecx
test ebx, ebx
jle 0x41ef8d
movzx eax, al
mov dword [ebp - 8], eax
mov eax, dword [ebx*4 + 0x48a840]
movzx eax, byte [eax + ecx]
add eax, dword [ebp - 8]
mov esi, 0xff
cdq
idiv esi
add edi, ecx
movzx eax, dl
mov al, byte [eax + 0x48a168]
xor al, byte [edi + 1]
inc ecx
cmp ecx, ebx
mov byte [edi], al
mov edi, dword [ebp + 8]
jl 0x41ef5c
mov edx, dword [ebp - 0xc]
cmp ebx, edx
jge 0x41efa4
mov ecx, edx
add edi, ebx
sub ecx, ebx
jmp 0x41ef9f
test edx, edx
jle 0x41efa4
mov ecx, edx
lea esi, [edi + 1]
rep movsb byte es:[edi], byte [esi]
dec dword [ebp - 4]
jne 0x41ef3e
pop edi
pop esi
leave
ret 4
Function at 0x422bb6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ecx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, 0xffff
cmp word [edi + 2], ax
sete cl
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
call sub.MFC42u.dll_CDialogTemplate::HasFont
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 4], eax
setne al
lea eax, [eax + eax + 1]
add eax, eax
cmp dword [ebp - 4], 0
mov esi, eax
mov dword [ebp - 0xc], esi
je 0x422c1d
lea eax, [ebp - 0x10]
push eax
push 4
push 4
lea ebx, [edi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
or dword [ebx], 0x40
lea eax, [ebp - 0x14]
push eax
push 4
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x422c3c
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 4
push 4
push edi
call ebx
or dword [edi], 0x40
lea eax, [ebp - 0x10]
push eax
push 4
push 4
push edi
call ebx
push str.MS_SHELL_Dlg
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ebx, [esi + eax*2 + 2]
call sub.MFC42u.dll_CDialogTemplate::GetFontSizeField
pop ecx
xor ecx, ecx
mov edi, eax
cmp dword [ebp - 8], ecx
je 0x422c73
lea eax, [edi + esi]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x422c61
sub eax, ecx
sar eax, 1
lea ecx, [esi + eax*2 + 2]
mov edx, dword [ebp + 0xc]
lea eax, [ecx + edi + 3]
lea esi, [edi + ebx + 3]
and eax, 0xfffffffc
and esi, 0xfffffffc
cmp dword [ebp - 4], 0
mov dword [ebp - 8], eax
je 0x422c93
movzx edx, word [edx + 0x10]
jmp 0x422c97
movzx edx, word [edx + 8]
cmp ebx, ecx
je 0x422cb7
test dx, dx
jbe 0x422cb7
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
sub ecx, eax
add ecx, dword [ebp + 0xc]
push ecx
push eax
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
mov ax, word [ebp + 0x10]
mov word [edi], ax
mov eax, dword [ebp - 0xc]
sub ebx, eax
push ebx
add edi, eax
push str.MS_SHELL_Dlg
push edi
call dword [sym.imp.msvcrt.dll_memmove]
sub esi, dword [ebp - 8]
mov eax, dword [ebp + 8]
add dword [eax + 4], esi
and dword [eax + 8], 0
add esp, 0xc
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0xc
Function at 0x42422a
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x465d85
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x487010]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, 0x4904a0
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
call fcn.00408ee8
xor ebx, ebx
inc ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], esi
mov eax, dword [0x48c4a8]
mov ecx, 0x48c4a8
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
mov byte [esp + 0x30], bl
cmp word [0x48b288], si
jne 0x42432d
push esi
call sub.msvcrt.dll_time
pop ecx
push eax
call dword [sym.imp.msvcrt.dll_srand]
mov ebx, dword [sym.imp.msvcrt.dll_rand]
pop ecx
call ebx
push 0x1a
cdq
pop ecx
idiv ecx
mov esi, 0x48b28e
add edx, 0x61
mov word [0x48b288], dx
call ebx
cdq
push 0x1a
pop ecx
idiv ecx
add edx, 0x61
mov word [esi], dx
call ebx
and eax, 0x80000001
jns 0x4242e2
dec eax
or eax, 0xfffffffe
inc eax
je 0x4242ec
mov eax, 0xffe0
add word [esi], ax
inc esi
inc esi
cmp esi, 0x48b29e
jl 0x4242c6
push 0x2e
pop eax
push 0x64
mov word [0x48b29e], ax
pop eax
push 0x63
mov word [0x48b2a0], ax
pop eax
mov word [0x48b2a2], ax
push 0x78
pop eax
mov word [0x48b2a4], ax
xor eax, eax
mov word [0x48b2a6], ax
xor esi, esi
jmp 0x424336
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp word [0x48b2a4], si
je 0x424326
call sub.MFC42u.dll_AfxGetModuleState
mov ebx, dword [eax + 8]
push 0xa
push 0x151
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, esi
je 0x424402
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040767e
add esp, 0xc
cmp eax, esi
je 0x424402
mov ebx, dword [esp + 0x14]
push 0x48b288
mov ecx, eax
call fcn.00417a62
pop ecx
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x424402
push str.HtmlTidy
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x424402
push dword [ebp + 0x10]
lea ecx, [esp + 0x18]
push dword [ebp + 0xc]
push ecx
call eax
add esp, 0xc
mov byte [esp + 0x30], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [edi - 0x10]
cmp eax, ebx
je 0x4243e8
cmp dword [ebx + 0xc], esi
jl 0x4243d7
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x4243d7
call fcn.004286b9
mov esi, eax
mov eax, ebx
call fcn.004030c0
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
jmp 0x4243e8
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x14]
call fcn.0042861e
mov edi, dword [esp + 0x10]
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
call fcn.004030c0
mov ebx, dword [esp + 0x18]
call fcn.0043c3a1
lea esi, [edi - 0x10]
mov eax, esi
call fcn.004286b9
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.004030c0
lea esi, [esp + 0x1c]
call fcn.00408e4c
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret