joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d550
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4738
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
push edi
push edi
push eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
cmp ebx, edi
jne 0x41d5b1
push edi
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], edi
push 0x50f2bf
mov ecx, esi
mov byte [esi + 4], 0
call fcn.00406880
jmp 0x41d62d
push ebx
call fcn.00450241
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x30]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor ebx, ebx
mov eax, edi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d5e0
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00406880
push edi
mov dword [ebp - 4], ebx
call fcn.0045024c
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], 0
call fcn.004064a0
cmp dword [ebp - 0x14], 0x10
jb 0x41d62d
mov edx, dword [ebp - 0x28]
push edx
call fcn.0045024c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x41d650
Capabilities:
Contain obfuscated stackstrings
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e48d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, 0x5f
mov byte [ebp - 0x20], al
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x18], al
mov cl, 0x41
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 0x3c]
mov byte [ebp - 0x1e], 0x43
mov byte [ebp - 0x1d], 0x4f
mov byte [ebp - 0x1c], 0x4d
mov byte [ebp - 0x1b], 0x50
mov byte [ebp - 0x1a], cl
mov byte [ebp - 0x19], 0x54
mov byte [ebp - 0x17], 0x4c
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], 0x59
mov byte [ebp - 0x14], 0x45
mov byte [ebp - 0x13], 0x52
mov byte [ebp - 0x12], 0
call fcn.0041d550
add esp, 4
mov eax, edi
mov dword [ebp - 4], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d6d0
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x3c]
push ecx
xor eax, eax
call fcn.004411f0
cmp eax, 0xffffffff
jne 0x41d757
cmp dword [ebp - 0x28], 0
je 0x41d700
push 1
push 0x511994
lea eax, [ebp - 0x3c]
call fcn.00442130
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d705
sub eax, edx
push eax
push edi
lea eax, [ebp - 0x3c]
call fcn.00442130
mov eax, dword [ebp - 0x38]
mov esi, 0x10
cmp dword [ebp - 0x24], esi
jae 0x41d728
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x41d742
cmp dword [ebp - 0x24], esi
jb 0x41d769
mov eax, dword [ebp - 0x38]
push eax
jmp 0x41d761
cmp dword [ebp - 0x24], esi
jb 0x41d753
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0045024c
add esp, 4
xor al, al
jmp 0x41d76b
cmp dword [ebp - 0x24], 0x10
jb 0x41d769
mov edx, dword [ebp - 0x38]
push edx
call fcn.0045024c
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x42c750
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.0042c6e0
mov ebx, eax
test ebx, ebx
jne 0x42c783
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.004708fd
mov eax, dword [esi + 0x78]
mov ecx, dword [ebx + 0x28]
mov edx, dword [0x529924]
push eax
push 1
push ecx
push edx
call fcn.00470e2d
mov ecx, dword [0x529b30]
push 0
lea eax, [esp + 0x2c]
push eax
mov eax, dword [0x529924]
mov dword [esp + 0x30], 0
mov edx, dword [ebx + 0x28]
push ecx
push edx
push eax
call fcn.004e2020
add esp, 0x30
test eax, eax
jne 0x42c8da
mov ecx, dword [esp + 0xc]
cmp ecx, dword [ebx + 0x24]
jne 0x42c8da
mov eax, dword [0x529b30]
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.004737c0
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 0x42c8a2
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 [0x529b30]
sub ecx, 4
add edx, 4
push eax
call fcn.00446a20
mov edi, dword [ebp + 8]
add esp, 4
mov ecx, edi
call fcn.0046582a
push esi
mov ecx, edi
call fcn.004657fe
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 0x42eb90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, 0x65
mov cl, 0x6c
mov dl, 0x72
mov byte [ebp - 8], cl
mov byte [ebp - 7], cl
mov cl, 0x74
mov byte [ebp - 0xe], al
mov byte [ebp - 0x2f], al
mov byte [ebp - 0x2a], al
mov byte [ebp - 0x20], al
mov byte [ebp - 0x1e], al
mov byte [ebp - 0x17], al
lea eax, [ebp - 0x30]
mov byte [ebp - 0x2e], cl
mov byte [ebp - 0x18], cl
mov byte [ebp - 0x15], cl
mov byte [ebp - 0xd], dl
mov byte [ebp - 0x2b], dl
mov byte [ebp - 0x21], dl
mov dl, 0x6e
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 0x10], 0x75
mov byte [ebp - 0xf], 0x73
mov byte [ebp - 0xc], 0x33
mov byte [ebp - 0xb], 0x32
mov byte [ebp - 0xa], 0x2e
mov byte [ebp - 9], 0x64
mov byte [ebp - 6], 0
mov byte [ebp - 0x30], 0x53
mov byte [ebp - 0x2d], 0x54
mov byte [ebp - 0x2c], 0x68
mov byte [ebp - 0x29], 0x61
mov byte [ebp - 0x28], 0x64
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x70
mov byte [ebp - 0x25], 0x69
mov byte [ebp - 0x24], 0x41
mov byte [ebp - 0x23], 0x77
mov byte [ebp - 0x22], 0x61
mov byte [ebp - 0x1f], dl
mov byte [ebp - 0x1d], 0x73
mov byte [ebp - 0x1c], 0x73
mov byte [ebp - 0x1b], 0x43
mov byte [ebp - 0x1a], 0x6f
mov byte [ebp - 0x19], dl
mov byte [ebp - 0x16], 0x78
mov byte [ebp - 0x14], 0
call fcn.00486440
test eax, eax
je 0x42ec5c
push esi
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x430200
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov cl, 0x64
mov dl, 0x76
mov byte [ebp - 0x12], dl
mov byte [ebp - 0x29], dl
mov dl, 0x53
push esi
mov byte [ebp - 0x13], cl
mov byte [ebp - 0xb], cl
mov bl, 0x6c
mov byte [ebp - 0x23], cl
mov byte [ebp - 0x18], cl
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x25], dl
mov byte [ebp - 0x20], dl
mov byte [ebp - 0x1a], dl
mov dword [ebp - 0x38], eax
mov al, 0x69
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
push ecx
lea edx, [ebp - 0x14]
xor ebx, ebx
push edx
mov byte [ebp - 0x14], 0x41
mov byte [ebp - 0x11], 0x61
mov byte [ebp - 0x10], 0x70
mov byte [ebp - 0xf], al
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 8], bl
mov byte [ebp - 0x2c], 0x43
mov byte [ebp - 0x2b], 0x6f
mov byte [ebp - 0x2a], 0x6e
mov byte [ebp - 0x28], 0x65
mov byte [ebp - 0x27], 0x72
mov byte [ebp - 0x26], 0x74
mov byte [ebp - 0x24], al
mov byte [ebp - 0x22], 0x54
mov byte [ebp - 0x21], 0x6f
mov byte [ebp - 0x1f], 0x74
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], al
mov byte [ebp - 0x1c], 0x6e
mov byte [ebp - 0x1b], 0x67
mov byte [ebp - 0x19], al
mov byte [ebp - 0x17], 0x57
mov byte [ebp - 0x16], bl
call fcn.00486440
mov esi, eax
cmp esi, ebx
je 0x4302fb
lea eax, [ebp - 0x30]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4302fb
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
push ecx
push ebx
push ebx
push 1
push edx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x43030d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x43030d
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x34]
push edi
push ecx
call fcn.0046de61
mov edx, dword [ebp - 0x30]
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x43033d
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x34]
push eax
push ecx
push edi
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x430379
push edi
call fcn.0046dbc6
mov eax, dword [ebp - 0x30]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x38]
mov edx, dword [edi]
push ecx
push edx
call esi
push edi
test eax, eax
je 0x430354
call fcn.0046dbc6
mov ecx, dword [ebp - 0x30]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x430b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x364], 0x200
mov eax, 0x20019
cmp dword [ebp + 8], esi
je 0x430b8f
mov eax, 0x20119
mov ecx, 0x53
mov word [ebp - 0x5c], cx
mov ecx, 0x46
mov word [ebp - 0x58], cx
mov ecx, 0x57
mov word [ebp - 0x54], cx
mov ecx, 0x52
mov word [ebp - 0x50], cx
mov edx, 0x4f
mov word [ebp - 0x5a], dx
mov ecx, 0x5c
mov word [ebp - 0x4c], cx
mov edx, 0x54
mov word [ebp - 0x56], dx
mov ecx, 0x69
mov word [ebp - 0x48], cx
mov edx, 0x41
mov word [ebp - 0x52], dx
mov ecx, 0x72
mov word [ebp - 0x44], cx
mov edx, 0x45
mov word [ebp - 0x4e], dx
mov ecx, 0x73
mov word [ebp - 0x40], cx
mov edx, 0x4d
mov word [ebp - 0x4a], dx
mov ecx, 0x66
mov word [ebp - 0x3c], cx
mov edx, 0x63
mov word [ebp - 0x46], dx
mov edx, 0x6f
mov word [ebp - 0x42], dx
mov word [ebp - 0x3e], dx
mov ecx, 0x5c
mov word [ebp - 0x38], cx
mov ecx, 0x72
mov word [ebp - 0x34], cx
mov edx, 0x74
mov word [ebp - 0x3a], dx
mov ecx, 0x70
mov word [ebp - 0x30], cx
mov edx, 0x43
mov word [ebp - 0x36], dx
mov ecx, 0x6f
mov word [ebp - 0x2c], cx
mov edx, 0x79
mov word [ebp - 0x32], dx
mov ecx, 0x72
mov word [ebp - 0x28], cx
mov edx, 0x74
mov word [ebp - 0x2e], dx
mov ecx, 0x70
mov edx, 0x67
mov word [ebp - 0x2a], dx
mov word [ebp - 0x24], cx
mov ecx, 0x79
mov edx, 0x61
mov word [ebp - 0x26], dx
mov word [ebp - 0x20], cx
lea ecx, [ebp - 0x360]
push ecx
mov edx, 0x68
mov word [ebp - 0x22], dx
xor edx, edx
push eax
push edx
mov word [ebp - 0x1e], dx
lea edx, [ebp - 0x5c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x430dc8
mov eax, 0x4d
mov word [ebp - 0x1c], ax
mov ecx, 0x61
mov word [ebp - 0x1a], cx
mov eax, 0x68
mov word [ebp - 0x16], ax
mov ecx, 0x69
mov word [ebp - 0x14], cx
mov eax, 0x65
mov word [ebp - 0x10], ax
mov edx, 0x63
mov word [ebp - 0x18], dx
mov ecx, 0x47
mov word [ebp - 0xe], cx
mov eax, 0x69
mov edx, 0x6e
mov word [ebp - 0x12], dx
mov word [ebp - 0xa], ax
mov ecx, 0x64
lea eax, [ebp - 0x364]
push eax
mov eax, dword [ebp - 0x360]
mov edx, 0x75
mov word [ebp - 8], cx
mov word [ebp - 0xc], dx
xor edx, edx
lea ecx, [ebp - 0x35c]
push ecx
push edx
push edx
mov word [ebp - 6], dx
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x430dbb
push 0xff
push eax
lea ecx, [ebp - 0x15b]
push ecx
mov byte [ebp - 0x15c], al
call fcn.004737c0
add esp, 0xc
push 0
push 0
push 0x100
lea edx, [ebp - 0x15c]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x35c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x15c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x430da0
lea ecx, [ebp - 0x15c]
push ecx
sub eax, edx
push edi
call fcn.00408a60
mov esi, 1
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x430de0
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push 0x104
lea ecx, [ebp - 0x43c]
push ecx
mov dword [ebp - 0x44c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x430e26
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov edx, 0x5c
mov eax, edx
mov ecx, 0x2e
mov word [ebp - 0x10], cx
mov word [ebp - 0x12], ax
mov ecx, 0x43
push ebx
mov word [ebp - 0x14], dx
mov word [ebp - 0xe], dx
mov word [ebp - 0xa], cx
movzx ecx, word [ebp - 0x43c]
mov eax, 0x25
push edi
mov word [ebp - 0xc], ax
mov edx, 0x3a
mov word [ebp - 8], dx
xor eax, eax
push ecx
lea edx, [ebp - 0x14]
mov word [ebp - 6], ax
push edx
lea eax, [ebp - 0x34]
push eax
mov edx, 0x10
call fcn.004072d0
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x430f6f
push ebx
xor eax, eax
lea edx, [ebp - 0x450]
push edx
push 0x200
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x234]
push eax
push 0xc
lea ecx, [ebp - 0x448]
push ecx
push 0x2d1400
push edi
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x430f68
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x430f1b
push 0x1ff
lea edx, [ebp + eax - 0x234]
push edx
push esi
call fcn.0046e050
add esp, 0xc
or dword [0x529e0c], 0x20
mov byte [esi + 0x1ff], bl
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x430f4e
mov esi, dword [ebp - 0x44c]
push 0x1ff
lea eax, [ebp + eax - 0x234]
push eax
push esi
call fcn.0046e050
add esp, 0xc
or dword [0x529e0c], 0x40
mov byte [esi + 0x1ff], bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
xor al, al
pop esi
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x43e1d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, edx
mov edx, dword [0x52afa0]
push 0
push edx
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x284], ecx
call edi
test eax, eax
je 0x43e421
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.004737c0
add esp, 0xc
push 0x140
lea ecx, [ebp - 0x274]
push 0
push ecx
call fcn.004737c0
add esp, 0xc
push esi
lea edx, [ebp - 0x114]
push 0x104
push edx
call fcn.004711fb
add esp, 0xc
push str..
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00472cc8
add esp, 0xc
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x278], esi
cmp esi, 0xffffffff
je 0x43e421
mov ecx, dword [0x52afb8]
sub ecx, dword [0x52afb4]
xor eax, eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x280], eax
mov eax, 0x92492493
imul ecx
mov eax, dword [0x52afa0]
add edx, ecx
sar edx, 4
mov ebx, edx
push 0
shr ebx, 0x1f
push eax
add ebx, edx
call edi
test eax, eax
je 0x43e41a
lea esp, [esp]
cmp byte [ebp - 0x248], 0x2e
je 0x43e3f1
test byte [ebp - 0x274], 0x10
jne 0x43e3f1
lea eax, [ebp - 0x248]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e323
sub eax, edx
cmp eax, 0x14
jae 0x43e3f1
mov edx, dword [ebp - 0x254]
mov esi, dword [ebp - 0x258]
xor edi, edi
xor eax, eax
or edi, edx
or esi, eax
add edi, 0xfffffffc
adc esi, 0xffffffff
jne 0x43e359
cmp edi, 0xa00000
jbe 0x43e378
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x274]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, dword [ebp - 0x278]
jmp 0x43e3ff
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x288]
push ecx
lea edx, [ebp - 0x248]
push edx
mov edx, ebx
call fcn.0043e0f0
add esp, 0xc
test eax, eax
je 0x43e3ba
mov eax, dword [eax + 0x18]
xor ecx, ecx
cmp esi, ecx
jb 0x43e3ba
ja 0x43e3aa
cmp edi, eax
jbe 0x43e3ba
mov eax, dword [ebp - 0x284]
cmp dword [eax], ecx
jne 0x43e3ba
mov dword [eax], 1
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x12c]
push 0x14
push ecx
mov dword [ebp - 0x118], edi
call fcn.004711fb
mov eax, dword [ebp - 0x27c]
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
push eax
call fcn.00440750
mov esi, dword [ebp - 0x278]
lea ecx, [ebp - 0x274]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x43e41a
mov edx, dword [0x52afa0]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43e300
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x43fc80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x51f620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push 0x40d8a0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
call fcn.00440ad0
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x2c]
push eax
push 0x28
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x48], 0x10
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x43fd10
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x78
sete cl
mov eax, ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov edx, 0x53
mov word [ebp - 0x28], dx
mov eax, 0x65
mov edx, eax
mov word [ebp - 0x26], ax
mov word [ebp - 0x22], dx
mov ecx, 0x44
mov word [ebp - 0x24], cx
mov eax, 0x62
mov word [ebp - 0x20], ax
mov ecx, 0x75
mov word [ebp - 0x1e], cx
mov edx, 0x67
mov word [ebp - 0x1c], dx
mov eax, 0x50
mov word [ebp - 0x1a], ax
mov ecx, 0x72
mov word [ebp - 0x18], cx
mov edx, 0x69
mov ecx, edx
mov word [ebp - 0x16], dx
mov eax, 0x76
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], cx
mov edx, 0x6c
mov eax, 0x65
mov word [ebp - 0x10], dx
mov ecx, 0x67
mov edx, eax
mov word [ebp - 0xc], cx
lea ecx, [ebp - 0x34]
mov word [ebp - 0xa], dx
push ecx
lea edx, [ebp - 0x28]
mov word [ebp - 0xe], ax
push edx
xor eax, eax
push esi
mov word [ebp - 8], ax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x43fdcc
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x5c]
push ecx
push 0x10
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x44]
push edx
push esi
push eax
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x38], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x43fe1f
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0046d9d8
mov esp, ebp
pop ebp
ret
Function at 0x446990
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x519350
push 0x473a90
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x51f620]
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.00475820
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push esi
push edi
call ebx
jmp 0x446a03
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 0x448670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
push edi
mov edi, ecx
test esi, esi
je 0x448686
cmp esi, 0x18
jbe 0x44868b
mov esi, 0x18
push 0xd0
call fcn.00449e10
add esp, 4
mov eax, ebx
cmp ebx, esi
jae 0x4486b2
lea ecx, [edi + ebx*4 + 0x180]
mov dl, byte [ecx]
xor byte [eax + edi], dl
inc eax
add ecx, 4
cmp eax, esi
jb 0x4486a5
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4486c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4486d2
cmp edi, 0x18
jbe 0x4486d7
mov edi, 0x18
cmp ecx, edi
jae 0x4486ef
lea esi, [eax + ecx*4 + 0x180]
mov dl, byte [esi]
xor byte [ecx + eax], dl
inc ecx
add esi, 4
cmp ecx, edi
jb 0x4486e2
mov ecx, 0xcf
xor edi, edi
mov esi, eax
cmp ecx, edi
je 0x44870e
mov bl, byte [esi]
mov dl, byte [ecx + eax]
mov byte [ecx + eax], bl
mov byte [esi], dl
inc edi
dec ecx
inc esi
cmp edi, 0x68
jl 0x4486f8
pop edi
pop esi
pop ebx
pop ebp
ret