joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f102
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
push edi
mov edi, ecx
test esi, esi
jns 0x40f130
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffe
and esi, 0x7fffffff
push eax
add esi, edx
push esi
call fcn.0040f1b1
add esp, 0xc
jmp 0x40f1ad
push ebx
mov ecx, 0x7fffffff
and esi, ecx
add esi, edx
lea eax, [ebp + 8]
mov ebx, dword [esi]
and dword [ebp + 8], 0
push eax
push 4
push dword [esi + 4]
and ebx, ecx
add ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40f1ac
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
mov ecx, dword [eax + 0x1c]
push 0
sub ecx, edi
test byte [ebp + 0xc], 0x40
pop eax
setne al
lea eax, [eax*2 - 1]
push eax
mov eax, dword [0x630104]
imul eax, dword [esi]
push eax
mov eax, dword [0x63010c]
imul eax, dword [esi]
push eax
mov eax, dword [0x630100]
mov edx, dword [esi + 4]
xor eax, ecx
push eax
mov ecx, ebx
call fcn.0040f64b
add esp, 0x14
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x40f6f8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41b949
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
mov esi, ecx
push edi
mov ebx, edx
test esi, esi
je 0x40f7c0
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi + 0x7c], 0
je 0x40f7c0
mov eax, dword [edi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x24]
add ecx, esi
add edx, esi
cmp byte [ebx], 0xff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
je 0x40f77b
push ebx
call fcn.00401566
push eax
push ebx
call fcn.00411c33
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
jmp 0x40f785
mov ecx, dword [ebx + 1]
xor ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
xor ebx, ebx
cmp dword [eax + 0x18], ebx
jbe 0x40f7c0
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x40f7b6
add eax, esi
push eax
mov dword [esp + 0x20], eax
call fcn.00401566
push eax
push dword [esp + 0x24]
call fcn.00411c33
add esp, 0xc
cmp dword [esp + 0x10], eax
je 0x40f7d4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, dword [eax + 0x18]
jb 0x40f78c
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [edi + 0x78]
jb 0x40f8cb
mov eax, dword [edi + 0x7c]
add eax, dword [edi + 0x78]
cmp ecx, eax
jae 0x40f8cb
lea eax, [ecx + esi]
push eax
lea ecx, [esp + 0x2c]
call fcn.00404792
xor ebx, ebx
mov dword [esp + 0x64], ebx
push 1
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x18], 0x2e
call fcn.004114a6
mov esi, eax
cmp esi, 0xffffffff
je 0x40f862
push esi
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.004111be
mov byte [esp + 0x64], 1
cmp dword [eax + 0x14], 0x10
jb 0x40f847
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.004047bf
test edi, edi
jne 0x40f875
int3
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004047bf
jmp 0x40f7c0
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.004111be
mov byte [esp + 0x64], 2
cmp dword [eax + 0x14], 0x10
jb 0x40f896
mov eax, dword [eax]
push dword [ebp + 0xc]
mov edx, eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040f6f8
pop ecx
pop ecx
mov esi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.004047bf
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004047bf
mov eax, esi
jmp 0x40f7c2
lea eax, [ecx + esi]
jmp 0x40f7c2
Function at 0x40f909
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x41b862
call fcn.00403df8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
and eax, 0xf
or dword [edi + 4], 0xffffffff
mov dword [edi], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [ebp - 4], ebx
push 0x40
lea eax, [edi + 0x30]
push ebx
push eax
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x168], ebx
call fcn.00401287
add esp, 0xc
lea eax, [edi + 0x70]
push 0xf8
push ebx
push eax
call fcn.00401287
mov eax, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, edi
mov dword [ebp - 0x14], esi
call fcn.0040fa02
mov dword [edi + 4], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14

Function at 0x40fc21
Capabilities:
Parse pe header

Disassembly:
push 8
push 0x422660
call fcn.00403e28
mov esi, ecx
and dword [ebp - 4], 0
lea edi, [esi + 0x30]
push dword [ebp + 0xc]
push 0x40
push 0
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40fd14
or dword [ebp - 4], 0xffffffff
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40fd03
cmp dword [esi + 0x6c], 0
je 0x40fd03
mov dword [ebp - 4], 1
lea edi, [esi + 0x70]
push dword [ebp + 0xc]
push 0xf8
push dword [esi + 0x6c]
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40fd14
or dword [ebp - 4], 0xffffffff
cmp dword [edi], 0x4550
jne 0x40fd03
mov eax, 0x10b
cmp word [esi + 0x88], ax
jne 0x40fd03
movzx eax, word [esi + 0x76]
test ax, ax
je 0x40fd03
mov edi, eax
imul edi, edi, 0x28
movzx ecx, word [esi + 0x84]
mov ebx, dword [esi + 0x6c]
add ecx, 0x18
add ebx, ecx
push edi
call fcn.00401b43
pop ecx
mov dword [esi + 0x168], eax
test eax, eax
jne 0x40fcd8
push 8
jmp 0x40fd1a
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push edi
push ebx
push eax
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40fd14
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + edi]
mov dword [esi + 0x18], eax
xor eax, eax
jmp 0x40fd1b
push 0xb
jmp 0x40fd1a
or dword [ebp - 4], 0xffffffff
push 0x1e
pop eax
call fcn.00403e17
ret 8
Function at 0x411c33
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ecx, 0x621e7fa5
test edi, edi
je 0x411c6c
movzx eax, byte [ebx]
cdq
push 0
xor esi, edx
push 0x1000193
xor ecx, eax
push esi
push ecx
inc ebx
call fcn.0041afe0
xor esi, esi
mov ecx, eax
dec edi
jne 0x411c4e
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411c75
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x632678]
or eax, dword [0x63267c]
push ebx
push esi
mov ebx, edx
push edi
mov dword [esp + 0xc], ebx
mov edi, ecx
jne 0x411cd5
xor esi, esi
mov eax, esi
push 8
cdq
pop ebx
mov ecx, eax
shrd eax, edx, 1
and ecx, 1
shr edx, 1
or ecx, 0
je 0x411cb7
xor eax, 0xd7870f42
xor edx, 0xc96c5795
dec ebx
jne 0x411c9c
mov dword [esi*8 + 0x631e80], eax
mov dword [esi*8 + 0x631e84], edx
inc esi
cmp esi, 0x100
jl 0x411c96
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not ecx
not edx
test edi, edi
je 0x411d06
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
shr edx, 8
xor ecx, dword [eax*8 + 0x631e80]
xor edx, dword [eax*8 + 0x631e84]
inc edi
dec ebx
jne 0x411ce3
pop edi
not ecx
pop esi
not edx
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4159e8
Capabilities:
Get common file path

Disassembly:
push 0x318
push 0x422c48
call fcn.00403e28
or dword [ebp - 0x1c], 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00414d9a
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
jmp 0x415a1b
cmp byte [0x62bb1d], 0
je 0x415bd7
mov byte [ebp - 0x224], bl
cmp dword [0x630d90], 0
je 0x415a85
mov eax, dword [0x630ee0]
test eax, eax
je 0x415a45
push ebx
call eax
jmp 0x415a70
cmp dword [0x6303c8], 0
je 0x415a6e
push 0x18
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x62bcbc
call fcn.0040f4b6
push eax
call dword [0x6303c8]
add esp, 0xc
mov eax, ebx
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push eax
call dword [0x630d90]
jmp 0x415aa6
cmp dword [0x6303c8], 0
je 0x415aa4
push 0x1c
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x62bcd4
jmp 0x415bc8
mov eax, ebx
test eax, eax
je 0x415bd7
mov byte [ebp - 0x328], bl
mov byte [ebp - 0x120], bl
lea eax, [ebp - 0x328]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x415bd7
cmp eax, 0xf2
ja 0x415bd7
lea eax, [ebp - 0x120]
push eax
push ebx
push 0x62bcf0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x415bd7
push 0x62bcf4
lea eax, [ebp - 0x120]
push eax
call fcn.0040144d
pop ecx
pop ecx
mov eax, dword [0x630bb0]
test eax, eax
je 0x415b28
lea ecx, [ebp - 0x224]
push ecx
call eax
jmp 0x415b51
cmp dword [0x6303c8], 0
je 0x415b51
push 0x14
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x62bb44
call fcn.0040f4b6
push eax
call dword [0x6303c8]
add esp, 0xc
mov eax, dword [0x630e7c]
test eax, eax
je 0x415b6e
push 1
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x224]
push ecx
call eax
jmp 0x415b97
cmp dword [0x6303c8], 0
je 0x415b9c
push 0x14
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x62bb64
call fcn.0040f4b6
push eax
call dword [0x6303c8]
add esp, 0xc
mov eax, dword [0x630e7c]
test eax, eax
je 0x415bae
push 4
push ebx
lea ecx, [ebp - 0x120]
push ecx
call eax
jmp 0x415bd7
cmp dword [0x6303c8], 0
je 0x415bd7
push 0x14
pop eax
call fcn.0040171b
mov dword [ebp - 0x18], esp
push esp
push 0x62bb64
call fcn.0040f4b6
push eax
call dword [0x6303c8]
add esp, 0xc
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x334]
call fcn.00403e17
ret

Function at 0x415ca4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
mov esi, ecx
call fcn.00403e63
push eax
call fcn.00401be9
pop ecx
pop ecx
push 0x10
pop edx
mov ecx, esi
call fcn.00415c36
mov eax, dword [0x631bac]
test eax, eax
je 0x415cd5
push 0x415be6
call eax
jmp 0x415cfb
cmp dword [0x6303c8], 0
je 0x415cfb
push 0x24
pop eax
call fcn.0040171b
push esp
push 0x4217e8
call fcn.0040f4b6
push eax
call dword [0x6303c8]
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.004159e8
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 8
Function at 0x4170df
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41b927
push eax
mov dword fs:[0], esp
sub esp, 0x38
cmp dword [0x631e58], 0
push esi
je 0x41717e
mov esi, 0x631e48
push ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00419315
mov ecx, eax
call fcn.0041953e
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x41712f
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push dword [eax + ecx*4]
lea ecx, [esp + 0x24]
call fcn.0041265a
and dword [esp + 0x44], 0
mov ecx, esi
call fcn.004191ca
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x417160
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004047bf
cmp dword [0x631e58], 0
jne 0x41710c
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, 0x41b6a1
call fcn.00403df8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0x10
mov edi, edx
jb 0x4171ac
mov eax, dword [esi]
jmp 0x4171ae
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41725c
push ecx
push ecx
mov ecx, esi
call fcn.00418812
cmp eax, 0xffffffff
je 0x417201
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004111be
and dword [ebp - 4], 0
mov edx, edi
mov ecx, eax
call fcn.0041718e
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004047bf
inc bl
je 0x417201
xor al, al
jmp 0x417268
mov ecx, dword [0x63139c]
test ecx, ecx
je 0x41721e
cmp dword [esi + 0x14], 0x10
jb 0x417215
mov eax, dword [esi]
jmp 0x417217
mov eax, esi
push 0
push eax
call ecx
jmp 0x417248
cmp dword [0x6303c8], 0
je 0x417246
push 0x18
pop eax
call fcn.0040171b
push esp
push 0x4218ac
call fcn.0040f4b6
push eax
call dword [0x6303c8]
add esp, 0xc
jmp 0x4171fd
xor eax, eax
test eax, eax
je 0x4171fd
push esi
mov ecx, 0x631e48
call fcn.00419147
mov byte [edi], 0
jmp 0x417266
test eax, 0x410
je 0x4171fd
mov byte [edi], 1
mov al, 1
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417ec6
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x41c3f3
call fcn.00403df8
mov eax, 0x1030
call fcn.00401720
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1048], ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push 0x62be98
push 0x80000001
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xf
pop edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [esp + 0x1048], ebx
xor ebp, ebp
inc ebp
mov dword [esp + 0x1c], ebp
test eax, eax
jne 0x417fbc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push dword [esp + 0x1068]
mov dword [esp + 0x24], 0x1000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x3c], bl
test eax, eax
jne 0x417fb2
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 2
ja 0x417fb2
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00404934
mov dword [esp + 0x1048], ebp
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00411157
mov byte [esp + 0x1048], bl
lea ecx, [esp + 0x20]
call fcn.004047bf
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1040]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41a6db
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
shr ecx, 2
push esi
shr edx, 2
lea esi, [eax + ecx*4]
mov eax, dword [ebp + 0x14]
test ecx, ecx
je 0x41a706
add eax, 0x5b00b610
xor eax, dword [0x62b570]
dec ecx
jne 0x41a6f8
test edx, edx
je 0x41a71d
xor dword [esi], eax
add eax, 0x5b00b610
xor eax, dword [0x62b570]
lea esi, [esi + 4]
dec edx
jne 0x41a70a
pop esi
pop ebp
ret
Function at 0x401bc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov cl, 0x64
mov al, 0x6c
push esi
mov byte [ebp - 0xe], cl
mov byte [ebp - 0xa], cl
mov byte [ebp - 0x23], cl
mov cl, 0x69
push edi
mov byte [ebp - 0xd], al
mov byte [ebp - 0xc], al
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov byte [ebp - 0x1b], al
lea eax, [ebp - 0x24]
mov dl, 0x6e
mov byte [ebp - 0x1f], cl
mov byte [ebp - 0x1d], cl
mov byte [ebp - 0x1a], cl
push eax
lea ecx, [ebp - 0x10]
mov bl, 0x74
push ecx
mov byte [ebp - 0x10], dl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xb], 0x2e
mov byte [ebp - 7], 0
mov byte [ebp - 0x24], 0x4c
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x49
mov byte [ebp - 0x20], dl
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1c], 0x61
mov byte [ebp - 0x19], 0x7a
mov byte [ebp - 0x18], 0x65
mov byte [ebp - 0x17], 0x54
mov byte [ebp - 0x16], 0x68
mov byte [ebp - 0x15], 0x75
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x13], 0x6b
mov byte [ebp - 0x12], 0
call fcn.00486d10
mov ebx, eax
xor esi, esi
lea edi, [esi + ebx]
push edi
lea edx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
call fcn.00405c20
mov edx, dword [ebp - 0x28]
mov cl, byte [edx]
cmp cl, 0xe8
je 0x401c91
cmp cl, 0xe9
je 0x401c91
add esi, eax
cmp esi, 0x1000
jb 0x401c52
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 1]
mov ecx, dword [ebp - 4]
lea eax, [eax + edi + 5]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e186
mov esp, ebp
pop ebp
ret

Function at 0x402018
Capabilities:
Authenticate hmac
Encode data using base64
Execute anti-debugging instructions
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0xff9f5ee0
call fcn.00617abf
mov byte [esp + 0x1bf8], 0x3d
jmp fcn.006e646d
Function at 0x411972
Capabilities:
Authenticate hmac
Encode data using base64
Execute anti-debugging instructions
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0xff9f5ee0
call fcn.00617abf
shr ebx, 0x1f
add ebx, edx
stc
mov dword [esp + 0x14], 0
test ebx, ebx
jmp loc.006c4f14

Function at 0x427c7b
Capabilities:
Execute anti-debugging instructions
Get graphical window text
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0x7ed2bbe3
call fcn.005ff12d
jne 0x559892
cmp eax, ebx
jmp loc.006605b6
lea ecx, [esp + 0xd14]
cmovns eax, eax
bswap dx
push ecx
movzx ax, bh
push 0x200
lea edx, [esp + 0x1024]
sete cl
mov ax, bx
lahf
push edx
not cx
mov ecx, 0x67211aee
movzx eax, dx
push 0x50f493
not al
lea eax, [esp + 0x50]
movsx cx, ah
push eax
lea ecx, [esp + 0x2e8]
jmp loc.0042260f

Function at 0x42b050
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push esi
mov dword [edi], 0
call fcn.0042afe0
mov ebx, eax
test ebx, ebx
jne 0x42b083
mov dword [edi], 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 0x20]
mov edx, dword [esi + 0x78]
push 0
push ecx
push edx
call fcn.00470fbd
mov eax, dword [esi + 0x78]
mov ecx, dword [ebx + 0x28]
mov edx, dword [0x52a944]
push eax
push 1
push ecx
push edx
call fcn.004714ed
mov ecx, dword [0x52ab50]
push 0
lea eax, [esp + 0x2c]
push eax
mov eax, dword [0x52a944]
mov dword [esp + 0x30], 0
mov edx, dword [ebx + 0x28]
push ecx
push edx
push eax
call fcn.004e2be0
add esp, 0x30
test eax, eax
jne 0x42b1da
mov ecx, dword [esp + 0xc]
cmp ecx, dword [ebx + 0x24]
jne 0x42b1da
mov eax, dword [0x52ab50]
movzx esi, word [eax]
movzx edi, word [eax + 2]
xor eax, eax
push 0x2c
push eax
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.00473d40
add esp, 0xc
push 0
push 0
lea edx, [esp + 0x18]
push edx
mov eax, 0x18
mov word [esp + 0x2e], ax
push 0
mov ecx, 1
lea eax, [esp + 0x4c]
mov word [esp + 0x30], cx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
push eax
mov ecx, 0xa
lea esi, [esp + 0x28]
lea edi, [esp + 0x50]
mov dword [esp + 0x28], 0x28
mov dword [esp + 0x38], 0
push 0
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42b1a2
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 0x24]
mov edx, dword [0x52ab50]
sub ecx, 4
add edx, 4
push eax
call fcn.004471d0
mov edi, dword [ebp + 8]
add esp, 4
mov ecx, edi
call fcn.00466074
push esi
mov ecx, edi
call fcn.00466048
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x447140
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5195a0
push 0x4740a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x520628]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0x40
push esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
push esi
mov ecx, dword [ebp + 8]
push ecx
push edi
call fcn.004760f0
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push esi
push edi
call ebx
jmp 0x4471b3
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44a710
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x44a73f
push ebx
push edi
jmp 0x44a720
movzx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x522a38]
inc ecx
cmp ecx, edx
jb 0x44a720
pop edi
pop ebx
not eax
ret
Function at 0x46e186
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x520628]
jne 0x46e190
repz ret
jmp fcn.00475fe2

Function at 0x48178c
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.00475945
and dword [ebp - 4], 0
cmp dword [0x5285b0], 0
mov ebx, eax
jne 0x48183d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4818ee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ebca0
push edi
call esi
test eax, eax
je 0x4818ee
push eax
call fcn.004758d3
mov dword [esp], 0x4ebc90
push edi
mov dword [0x5285b0], eax
call esi
push eax
call fcn.004758d3
mov dword [esp], 0x4ebc7c
push edi
mov dword [0x5285b4], eax
call esi
push eax
call fcn.004758d3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5285b8], eax
call esi
push eax
call fcn.004758d3
pop ecx
mov dword [0x5285c0], eax
test eax, eax
je 0x48183d
push 0x4ebc48
push edi
call esi
push eax
call fcn.004758d3
pop ecx
mov dword [0x5285bc], eax
mov eax, dword [0x5285bc]
cmp eax, ebx
je 0x481895
cmp dword [0x5285c0], ebx
je 0x481895
push eax
call fcn.0047594e
push dword [0x5285c0]
mov esi, eax
call fcn.0047594e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x481895
test edi, edi
je 0x481895
call esi
test eax, eax
je 0x48188c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48188c
test byte [ebp - 0xc], 1
jne 0x481895
or dword [ebp + 0x10], 0x200000
jmp 0x4818ce
mov eax, dword [0x5285b4]
cmp eax, ebx
je 0x4818ce
push eax
call fcn.0047594e
pop ecx
test eax, eax
je 0x4818ce
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4818ce
mov eax, dword [0x5285b8]
cmp eax, ebx
je 0x4818ce
push eax
call fcn.0047594e
pop ecx
test eax, eax
je 0x4818ce
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5285b0]
call fcn.0047594e
pop ecx
test eax, eax
je 0x4818ee
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4818f0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret