joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c31f0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x39c
mov eax, dword [esp + 0x3a0]
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x378
je 0x4c335c
mov ecx, dword [esp + 0x3ac]
test ecx, ecx
je 0x4c335c
mov edx, dword [esp + 0x3b0]
test edx, edx
je 0x4c335c
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push ecx
push eax
call esi
test eax, eax
jne 0x4c335c
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c3340
cmp dword [esp + 0x10], 0x378
jne 0x4c3340
cmp dword [esp + 0x158], 1
jne 0x4c3369
cmp dword [esp + 0x17c], 2
jne 0x4c3369
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x14]
push eax
push 0x55e17c
push ecx
call fcn.004daac2
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4c3340
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.004c33a0
test eax, eax
je 0x4c3340
mov edx, dword [esp + 0x10]
push 3
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.004c2ea0
test eax, eax
je 0x4c3340
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
lea eax, [esp + 0x2c]
push edx
push eax
push 3
push 0
push str.PackedCatalogItem
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4c3369
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4c3351
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x4c335c
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x39c
ret 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4c337a
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x4c3385
push eax
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x39c
ret 0xc
Function at 0x4c33a0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x480
mov ecx, dword [esp + 0x484]
mov dword [esp], 0x378
test ecx, ecx
je 0x4c3461
mov eax, dword [esp + 0x488]
test eax, eax
je 0x4c3461
lea edx, [esp]
push edx
lea edx, [esp + 0x10c]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c3461
cmp dword [esp], 0x378
jne 0x4c3461
lea eax, [esp + 4]
push 0x104
lea ecx, [esp + 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4c3461
lea edx, [esp + 4]
push edx
call fcn.004c2e30
add esp, 4
test eax, eax
je 0x4c3461
cmp dword [esp + 0x234], 1
jne 0x4c3453
cmp dword [esp + 0x258], 2
jne 0x4c3453
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4c3461
push str.WSPStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c3461
mov eax, 1
add esp, 0x480
ret 8
xor eax, eax
add esp, 0x480
ret 8

Function at 0x4c3470
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x4c34cf
push esi
call fcn.004c2e30
add esp, 4
test eax, eax
je 0x4c34cf
lea eax, [esp + 4]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4c34cf
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4c34cf
push str.SetPara
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x104
ret 4
xor eax, eax
pop esi
add esp, 0x104
ret 4
Function at 0x4c3560
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jne 0x4c3594
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.004c3470
test eax, eax
jne 0x4c35ad
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.004c34e0
cmp eax, 1
je 0x4c373a
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4c35e6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x4c3662
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4c36e2
mov eax, dword [esp + 0x14]
push str.PackedCatalogItem
push eax
mov ecx, ebx
call fcn.004c33a0
mov ecx, dword [esp + 0x14]
test eax, eax
push ecx
je 0x4c36f9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
inc esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x4c3602
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
xor esi, esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x4c36b0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.004c3050
test eax, eax
je 0x4c36e2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
inc esi
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
je 0x4c367e
cmp dword [esp + 0x18], 1
jb 0x4c36e2
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
dec ecx
push reloc.OLEAUT32.dll_SysReAllocString
push ecx
push ebp
push str.FileName
mov ecx, ebx
call fcn.004c2f30
cmp eax, 1
je 0x4c372b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4c3709
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
jmp 0x4c36e2
push ebp
mov ecx, ebx
call fcn.004c3750
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c373a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 4
Function at 0x4c3750
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
jne 0x4c3782
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push esi
mov ecx, edi
call fcn.004c34e0
test eax, eax
jne 0x4c379f
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4c37c6
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x4c3814
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, edi
call fcn.004c31f0
test eax, eax
jne 0x4c37fd
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc esi
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
je 0x4c37e3
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
call fcn.004c2fc0
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x4c3837
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 4

Function at 0x4c9700
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4c97a3
test eax, eax
jbe 0x4c97a3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4c97a3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4c974e
xor esi, esi
jmp 0x4c9754
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4c977f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004cdcb0
add esi, eax
push esi
mov ebx, esi
call fcn.004cdcb0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4c9760
pop ebp
test edi, edi
pop edi
jne 0x4c97a3
test ebx, ebx
je 0x4c97a3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004d9e70
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4c98e5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4c99fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4c99fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004eb849
mov esi, eax
test esi, esi
je 0x4c99fd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4c99fd
mov ecx, esi
call fcn.004c9850
cmp edi, eax
jge 0x4c99fd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4c9983
mov dword [esp + 0x34], 1
jmp 0x4c99de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4c99fd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004c80d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4ec1ed
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ec225
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ea2a4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ea27c
jmp 0x4ec231
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ed8de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ed920
call fcn.004f35c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ed920
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ed917
xor eax, eax
jmp 0x4ed928
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ed92e
pop edi
pop esi
pop ebx
ret 4
Function at 0x4f3af9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f3b27
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f3b45
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f3a5f
jmp 0x4f3b45
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f3b45
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f3a5f
test edi, edi
mov eax, edi
jne 0x4f3b2f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4013dd
Capabilities:
Identify system language via api

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
mov ecx, 0x40d00c
xor eax, eax
movzx edi, dx
mov esi, ecx
cmp edi, dword [esi]
je 0x401401
inc eax
add esi, 0x10
cmp eax, 0x11
jb 0x4013f4
cmp eax, 0x11
jne 0x401427
mov esi, 0x3ff
xor eax, eax
and edx, esi
push ebx
mov di, word [ecx]
mov ebx, esi
and di, bx
cmp dx, di
je 0x401426
inc eax
add ecx, 0x10
cmp eax, 0x10
jb 0x401410
pop ebx
pop edi
pop esi
ret

Function at 0x40145c
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.SetDllDirectoryA
mov ebx, str.kernel32.dll
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x40148a
push 0x4091bc
call eax
cmp byte [ebp + 0x10], 0
je 0x401518
and dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp + 0x10], 3
mov dword [ebp - 4], eax
jl 0x401504
push dword [eax + 4]
push str._stdio
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x401504
push eax
push eax
push 4
push eax
push eax
mov eax, dword [ebp - 4]
push 0xc0000000
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4014ea
push 5
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edi, dword [sym.imp.KERNEL32.dll_SetStdHandle]
push ebx
push 0xfffffffffffffff6
call edi
test eax, eax
je 0x4014e2
push ebx
push 0xfffffffffffffff5
call edi
test eax, eax
jne 0x401518
jmp 0x4014e2
push str.AttachConsole
push ebx
call esi
push eax
call edi
test eax, eax
je 0x401518
push 0xffffffffffffffff
call eax
pop ecx
and dword [ebp - 4], 0
and dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040107e
mov ebx, eax
xor edi, edi
add esp, 0x10
cmp ebx, edi
je 0x401560
call fcn.004013dd
push edi
push 0x30
push str.Adobe_AIR
push edi
push eax
call fcn.0040142a
pop ecx
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxExW]
mov eax, ebx
jmp 0x40156a
push dword [ebp + 0x10]
push edi
call esi
push eax
call dword [ebp - 4]
push eax
jmp 0x4014e4
Function at 0x403723
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.004025d8
and dword [ebp - 4], 0
cmp dword [0x40e620], 0
mov ebx, eax
jne 0x4037d4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403885
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403885
push eax
call fcn.00402566
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e620], eax
call esi
push eax
call fcn.00402566
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e624], eax
call esi
push eax
call fcn.00402566
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e628], eax
call esi
push eax
call fcn.00402566
pop ecx
mov dword [0x40e630], eax
test eax, eax
je 0x4037d4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402566
pop ecx
mov dword [0x40e62c], eax
mov eax, dword [0x40e62c]
cmp eax, ebx
je 0x40382c
cmp dword [0x40e630], ebx
je 0x40382c
push eax
call fcn.004025e1
push dword [0x40e630]
mov esi, eax
call fcn.004025e1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40382c
test edi, edi
je 0x40382c
call esi
test eax, eax
je 0x403823
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403823
test byte [ebp - 0xc], 1
jne 0x40382c
or dword [ebp + 0x10], 0x200000
jmp 0x403865
mov eax, dword [0x40e624]
cmp eax, ebx
je 0x403865
push eax
call fcn.004025e1
pop ecx
test eax, eax
je 0x403865
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403865
mov eax, dword [0x40e628]
cmp eax, ebx
je 0x403865
push eax
call fcn.004025e1
pop ecx
test eax, eax
je 0x403865
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e620]
call fcn.004025e1
pop ecx
test eax, eax
je 0x403885
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403887
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40558e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40db08]
jne 0x405598
repz ret
jmp fcn.00406cb5

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40dc20
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x4014c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4014b0
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x94], edi
call fcn.004090dc
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ebx, eax
call esi
lea ecx, [ebp - 0x6c]
push ecx
push 0xf00ff
push ebx
call fcn.004091dc
call esi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x94]
push 0x40a2fc
push eax
call ebx
push eax
lea ecx, [ebp - 0x90]
push 0x408714
push ecx
call ebx
push eax
call fcn.00409140
call esi
lea edx, [ebp - 0x94]
lea eax, [ebp - 0x90]
push edx
push eax
push 2
call dword [fcn.0040120c]
add esp, 0xc
lea ecx, [ebp - 0x78]
lea edx, [ebp - 0x68]
mov dword [ebp - 0x50], 1
push ecx
push edx
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x68]
push 0x28
push edx
push edi
push eax
mov dword [ebp - 0x60], 2
call fcn.00409190
call esi
push 0x40dd56
jmp 0x40dd55
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40c750
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47dacb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046febd
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c7d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046d5e0
mov eax, dword [eax]
push 0x4b1204
push eax
call fcn.0045fe54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00470148
test bl, bl
je 0x40c7d2
push 0x4b1204
lea ecx, [esp + 0xc]
call fcn.00470524
push 0x4b4d7c
lea ecx, [esp + 0xc]
call fcn.00470524
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40c80e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00470148
jmp 0x40c8d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40c892
lea edx, [esp + 0x7c]
push 0x4b4d78
push edx
call fcn.0045fe54
add esp, 8
test eax, eax
je 0x40c892
lea eax, [esp + 0x7c]
push 0x4b4d74
push eax
call fcn.0045fe54
add esp, 8
test eax, eax
je 0x40c892
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40c822
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00470148
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40d0d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40d132
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc