joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4268a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470ed1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4958b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x18
push eax
lea ecx, [ebp - 0x14]
call fcn.004051f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
call fcn.004053b0
test eax, eax
je 0x426905
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405270
mov eax, dword [ebp - 0x18]
jmp 0x426964
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0x404eb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x14], 0
jne 0x42694b
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405270
mov eax, dword [ebp - 0x1c]
jmp 0x426964
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00405270
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4269e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470ef4
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4958b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x3c
push eax
lea ecx, [ebp - 0x18]
call fcn.004051f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0
je 0x426a2e
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0xffffffff
jne 0x426a4c
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00405270
mov eax, dword [ebp - 0x24]
jmp 0x426bab
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], 0
mov dword [ebp - 0x14], 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004203f0
mov edx, dword [ebp - 0x10]
sub eax, dword [edx + 0x20]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00427550
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x14], 0
jne 0x426acd
cmp dword [ebp - 0x20], 0xe9
jne 0x426acd
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00405270
mov eax, dword [ebp - 0x28]
jmp 0x426bab
cmp dword [ebp - 0x1c], 0
jne 0x426af1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00405270
mov eax, dword [ebp - 0x2c]
jmp 0x426bab
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], edx
cmp dword [ebp - 0x14], 0
jne 0x426b2d
cmp dword [ebp - 0x20], 0xea
jne 0x426b2d
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004203f0
add eax, 0x1000
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00427fb0
jmp 0x426b89
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00427550
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
cmp eax, dword [edx + 0x20]
jbe 0x426b68
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004203f0
add eax, 0x1000
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00427fb0
jmp 0x426b89
cmp dword [ebp - 0x14], 0
jne 0x426b89
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00405270
mov eax, dword [ebp - 0x34]
jmp 0x426bab
cmp dword [ebp - 0x14], 0
je 0x426a5d
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00405270
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42b160
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4958b0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x804], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x802]
push ecx
call fcn.0044e250
add esp, 0xc
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
push 0x3ff
lea ecx, [ebp - 0x804]
push ecx
call fcn.0045200b
add esp, 0x14
push 0x47fdd4
push 0x400
lea edx, [ebp - 0x804]
push edx
call fcn.0044db54
add esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x42b1de
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.0042c010
test eax, eax
je 0x42b1fa
lea edx, [ebp - 0x804]
push edx
call fcn.0042b450
mov ecx, eax
call fcn.0042c9b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c9f3
mov esp, ebp
pop ebp
ret

Function at 0x42b3d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push 0x47fd58
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42b43b
mov dword [ebp - 0x14], 4
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42b43b
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x42bf70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push 0x47fd58
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42bfdb
mov dword [ebp - 0x14], 4
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42bfdb
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x42ead0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471c28
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4958b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x40], 0
je 0x42eb10
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x46]
test edx, edx
jne 0x42eb1c
mov al, 1
jmp 0x42ecc4
mov dword [ebp - 0x54], 8
call fcn.00430d90
movzx eax, ax
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov word [ebp - 0x3c], ax
call fcn.00430d90
mov word [ebp - 0x3a], ax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x3a]
push edx
call fcn.00425b50
add esp, 8
movzx eax, al
test eax, eax
je 0x42eb64
xor al, al
jmp 0x42ecc4
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0042d460
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x28]
call fcn.0042fb90
mov ecx, eax
call fcn.00419540
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00432060
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042fb90
mov ecx, eax
call fcn.00419540
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x40]
call fcn.004325b0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x42ebdf
cmp dword [ebp - 0x38], 1
je 0x42ebe6
cmp dword [ebp - 0x38], 3
je 0x42ec80
jmp 0x42ec98
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x46], 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042fb90
mov ecx, eax
call fcn.00419540
mov edx, dword [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x42ec49
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042fb90
mov ecx, eax
call fcn.00419540
push eax
call fcn.004514b3
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x42ec49
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00427470
mov al, byte [ebp - 0x30]
jmp 0x42ecc4
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x46]
test edx, edx
jne 0x42ec6c
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00427470
mov al, byte [ebp - 0x2e]
jmp 0x42ecc4
cmp dword [ebp - 0x34], 0
jne 0x42ec7e
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0042f9f0
jmp 0x42ecb0
mov byte [ebp - 0x2d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00427470
mov al, byte [ebp - 0x2d]
jmp 0x42ecc4
mov byte [ebp - 0x2f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00427470
mov al, byte [ebp - 0x2f]
jmp 0x42ecc4
jmp 0x42eb77
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c9f3
mov esp, ebp
pop ebp
ret
Function at 0x461d47
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4958b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00454ae1
mov dword [ebp - 0x14], eax
cmp dword [0x498b14], edi
jne 0x461e38
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x461dc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x461f18
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x461f18
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x461f18
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x498b14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x498b18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x498b1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x498b24], eax
test eax, eax
je 0x461e35
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x498b20], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x461e5d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x461e50
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x461e72
push 4
pop eax
jmp 0x461f1a
cmp dword [ebp - 0x14], edi
je 0x461e72
push dword [0x498b14]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x461e57
mov eax, dword [0x498b20]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x461ed0
cmp dword [0x498b24], esi
je 0x461ed0
push eax
call ebx
push dword [0x498b24]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x461ed0
test eax, eax
je 0x461ed0
call ecx
test eax, eax
je 0x461ec5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x461ec5
test byte [ebp - 8], 1
jne 0x461ed0
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x461f00
mov eax, dword [0x498b18]
cmp eax, esi
je 0x461efd
push eax
call ebx
test eax, eax
je 0x461efd
call eax
mov edi, eax
test edi, edi
je 0x461efd
mov eax, dword [0x498b1c]
cmp eax, esi
je 0x461efd
push eax
call ebx
test eax, eax
je 0x461efd
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x498b14]
call ebx
test eax, eax
je 0x461f18
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x461f1a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c9f3
leave
ret
Function at 0x464197
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0045852d
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4641cf
xor eax, eax
jmp 0x4641fb
cmp esi, dword [ebp - 4]
je 0x4641f8
cmp dword [ebp + 0xc], 0
je 0x4641f8
push dword [edi + 0x9c]
call fcn.00463da5
push dword [edi + 0x9c]
mov esi, eax
call fcn.0044c94a
pop ecx
pop ecx
cmp esi, eax
je 0x4641cb
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x44ba10
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [esi], 0
mov al, byte [0x66104a]
mov cl, byte [0x66104d]
mov edx, dword [0x661030]
and cl, al
mov eax, dword [0x661034]
mov byte [0x66104d], cl
mov ecx, eax
shr ecx, 2
sub edx, ecx

Function at 0x5b59bd
Capabilities:
Encode data using xor

Disassembly:
stosd dword es:[edi], eax
push 0x1c
lcall 0xe150, 0x198d0f8b
ficom dword [esi + ecx - 0x40]
adc al, byte [ecx - 0x50]
invalid

Function at 0x5f1a02
Capabilities:
Encode data using xor

Disassembly:
sbb al, 0xac
cmp al, 0x50
aaa
xchg ebx, eax
pop eax
cdq
jo 0x5f1a08
je 0x5f1a65
and al, 0xcb
pop esp
push ss
or eax, 0x5456c77a
retf
mov ds, ebp
test byte [esp + ebp*4 + 0x6f5c93da], bh
inc edx
mov cl, 0x22
xchg byte [edx], cl
movsd dword es:[edi], dword [esi]
inc edi
lahf
xchg edx, eax
jno 0x5f1a83
invalid
add al, 0x25
xchg ebp, eax
add eax, 0xd841c21f
adc dword [ebp + 0x333089cf], esp
and al, 0xf3
xor eax, 0x31db9942
and ch, byte [ecx + 0x73da6ab2]
xlatb
jge 0x5f1ad8
and byte [edx], 0xc6
adc byte [ecx], ch
jle 0x5f1af2
outsb dx, byte [esi]
pop esp
and edx, dword [ebp - 0x5b66707d]
add eax, 0x9610aca9
rcr dword [esi], cl
pop ss
mov byte [edi], dh
out dx, al
sbb esi, eax
dec esp
pop ecx
and al, 0x3f
imul esp, dword [edi - 0x586f145a], 0x892b84fe
rcr dword [esi + 0x66d4d495], 1
xor eax, 0x9523aa
mov bh, byte [edx + 0x7f]
invalid
cmpsd dword [esi], dword es:[edi]
cmpsb byte [esi], byte es:[edi]
jmp 0x5f1a38
outsb dx, byte [esi]
pushal
cmp ch, byte es:[ebp + 0x31]
pop esi
add al, ch
mov edi, 0xa6f78247
int 0x12
push ss
push dword [eax - 0x66]
fisubr word [eax]
invalid
jmp 0x5f1b24
stc
jecxz 0x5f1aa4
mov bh, 0x27
daa
xor ah, 0x21
daa
mov dl, 0xa
push es
arpl word [eax], bp
mov byte [0x9f81ee2f], al
cmp al, 0xa6
cmp byte [eax], bh
push es
adc eax, 0x29736676
xor ebx, dword [edx - 0x9679bf9]
inc esp
mov byte [0xf667266f], al
push 0xc02d4e56
je 0x5f1b20
xlatb
inc eax
dec ecx
daa
mov eax, dword [0x95e563d3]
out dx, al
movsb byte es:[edi], byte [esi]
add eax, 0xe11b11b7
dec ebx
or byte [esi], cl
not dword [esi - 0x64d7ab7d]
invalid
Function at 0x65987d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x661398
cmp edx, dword [eax]
je 0x65989f
add eax, 8
inc ecx
cmp eax, 0x661428
jl 0x659890
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x661398]
jne 0x6599cd
mov eax, dword [0xa5dd74]
cmp eax, 1
je 0x6599a7
test eax, eax
jne 0x6598d0
cmp dword [0x6612c4], 1
je 0x6599a7
cmp edx, 0xfc
je 0x6599cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659907
lea eax, [ebp - 0x1a4]
push 0x65e9c0
push eax
call fcn.0065a260
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065a6f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x65994a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065a6f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65e9bc
push edi
call fcn.0065c5c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65e9a0
push eax
call fcn.0065a260
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a270
lea eax, [ebp - 0xa0]
push 0x65e99c
push eax
call fcn.0065a270
push dword [esi + 0x66139c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a270
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65e974
push eax
call fcn.0065c534
add esp, 0x2c
pop edi
jmp 0x6599cd
lea eax, [ebp + 8]
lea esi, [esi + 0x66139c]
push 0
push eax
push dword [esi]
call fcn.0065a6f0
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 0x40dd2b
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 0x40dd59
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffe
and esi, 0x7fffffff
push eax
add esi, edx
push esi
call fcn.0040ddda
add esp, 0xc
jmp 0x40ddd6
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 0x40ddd5
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 [0x64ed84]
imul eax, dword [esi]
push eax
mov eax, dword [0x64ed8c]
imul eax, dword [esi]
push eax
mov eax, dword [0x64ed80]
mov edx, dword [esi + 4]
xor eax, ecx
push eax
mov ecx, ebx
call fcn.0040e359
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 0x40e309
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
mov ebx, dword [ecx + 0x3c]
add ebx, ecx
push ebp
movzx eax, word [ebx + 0x14]
lea ebp, [ebx + 0x18]
add ebp, eax
push esi
xor eax, eax
xor esi, esi
push edi
mov dword [esp + 0x10], edx
cmp ax, word [ebx + 6]
jae 0x40e349
mov edi, ebp
push edi
push edx
call fcn.0041df86
pop ecx
pop ecx
test eax, eax
je 0x40e351
movzx eax, word [ebx + 6]
mov edx, dword [esp + 0x10]
inc esi
add edi, 0x28
cmp esi, eax
jb 0x40e32c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
imul esi, esi, 0x28
lea eax, [esi + ebp]
jmp 0x40e34b
Function at 0x40ee5b
Capabilities:
Parse pe header

Disassembly:
push 8
push 0x436948
call fcn.00428a60
mov esi, ecx
and dword [ebp - 4], 0
lea edi, [esi + 0x80]
push dword [ebp + 0xc]
push 0x40
push 0
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ef5c
or dword [ebp - 4], 0xffffffff
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40ef4b
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x40ef4b
mov dword [ebp - 4], 1
lea edi, [esi + 0xc0]
push dword [ebp + 0xc]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ef5c
or dword [ebp - 4], 0xffffffff
cmp dword [edi], 0x4550
jne 0x40ef4b
mov eax, 0x10b
cmp word [esi + 0xd8], ax
jne 0x40ef4b
movzx eax, word [esi + 0xc6]
test ax, ax
je 0x40ef4b
mov edi, eax
imul edi, edi, 0x28
movzx ecx, word [esi + 0xd4]
mov ebx, dword [esi + 0xbc]
add ecx, 0x18
add ebx, ecx
push edi
call fcn.0041e098
pop ecx
mov dword [esi + 0x1b8], eax
test eax, eax
jne 0x40ef20
push 8
jmp 0x40ef62
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 0x40ef5c
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + edi]
mov dword [esi + 0x18], eax
xor eax, eax
jmp 0x40ef63
push 0xb
jmp 0x40ef62
or dword [ebp - 4], 0xffffffff
push 0x1e
pop eax
call fcn.00428a9b
ret 8

Function at 0x411c49
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, 0xff077af4
test edi, edi
je 0x411c82
movzx eax, byte [ebx]
cdq
push 0
xor esi, edx
push 0x1000193
xor ecx, eax
push esi
push ecx
inc ebx
call fcn.00428430
xor esi, esi
mov ecx, eax
dec edi
jne 0x411c64
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411c8b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x6521e0]
or eax, dword [0x6521e4]
push ebx
push esi
mov ebx, edx
push edi
mov dword [esp + 0xc], ebx
mov edi, ecx
jne 0x411ceb
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 0x411ccd
xor eax, 0xd7870f42
xor edx, 0xc96c5795
dec ebx
jne 0x411cb2
mov dword [esi*8 + 0x6519e8], eax
mov dword [esi*8 + 0x6519ec], edx
inc esi
cmp esi, 0x100
jl 0x411cac
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not ecx
not edx
test edi, edi
je 0x411d1c
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
shr edx, 8
xor ecx, dword [eax*8 + 0x6519e8]
xor edx, dword [eax*8 + 0x6519ec]
inc edi
dec ebx
jne 0x411cf9
pop edi
not ecx
pop esi
not edx
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417232
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42a5be
push eax
mov dword fs:[0], esp
sub esp, 0x38
cmp dword [0x6519bc], 0
push esi
je 0x4172d1
mov esi, 0x6519ac
push ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0041945a
mov ecx, eax
call fcn.00419683
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x417282
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.00410f76
and dword [esp + 0x44], 0
mov ecx, esi
call fcn.0041930f
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x4172b3
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402161
cmp dword [0x6519bc], 0
jne 0x41725f
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov eax, 0x42955c
call fcn.0041e7dc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0x10
mov edi, edx
jb 0x4172ff
mov eax, dword [esi]
jmp 0x417301
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4173af
push ecx
push ecx
mov ecx, esi
call fcn.00418965
cmp eax, 0xffffffff
je 0x417354
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00410ce2
and dword [ebp - 4], 0
mov edx, edi
mov ecx, eax
call fcn.004172e1
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402161
inc bl
je 0x417354
xor al, al
jmp 0x4173bb
mov ecx, dword [0x650d90]
test ecx, ecx
je 0x417371
cmp dword [esi + 0x14], 0x10
jb 0x417368
mov eax, dword [esi]
jmp 0x41736a
mov eax, esi
push 0
push eax
call ecx
jmp 0x41739b
cmp dword [0x64fc48], 0
je 0x417399
push 0x18
pop eax
call fcn.0041ec00
push esp
push 0x435014
call fcn.0040e0df
push eax
call dword [0x64fc48]
add esp, 0xc
jmp 0x417350
xor eax, eax
test eax, eax
je 0x417350
push esi
mov ecx, 0x6519ac
call fcn.0041928c
mov byte [edi], 0
jmp 0x4173b9
test eax, 0x410
je 0x417350
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