joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4299f4
Capabilities:
Get common file path

Disassembly:
mov eax, 0x44113c
call fcn.0043b810
sub esp, 0x38
mov eax, dword [edx]
push ebx
xor ebx, ebx
push esi
mov dword [edx + 4], ebx
mov word [eax], bx
mov si, word [ecx]
push edi
xor edi, edi
cmp si, bx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
je 0x429a28
mov eax, ecx
inc edi
inc eax
inc eax
cmp word [eax], bx
jne 0x429a20
cmp edi, 1
jl 0x429b5d
cmp si, 0x5c
je 0x429b5d
cmp si, 0x2e
jne 0x429a59
cmp edi, 1
je 0x429b5d
cmp edi, 2
jne 0x429a59
cmp word [ecx + 2], si
je 0x429b5d
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004034f8
cmp edi, 3
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], ebx
jle 0x429a9d
cmp word [edi + 2], 0x3a
jne 0x429a9d
cmp word [edi + 4], 0x5c
jne 0x429a9d
cmp si, 0x61
jb 0x429a91
cmp si, 0x7a
jbe 0x429af8
cmp si, 0x41
jb 0x429a9d
cmp si, 0x5a
jbe 0x429af8
mov esi, 0x105
cmp dword [ebp - 0x18], esi
jg 0x429ab0
push esi
lea ecx, [ebp - 0x20]
call fcn.004034f8
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [ebp - 0x20]
xor ecx, ecx
cmp word [esi], bx
je 0x429ace
mov edx, esi
inc ecx
inc edx
inc edx
cmp word [edx], bx
jne 0x429ac6
lea edx, [ecx + ecx]
cmp eax, ebx
mov word [edx + esi], bx
mov dword [ebp - 0x1c], ecx
je 0x429b50
cmp eax, 0x104
ja 0x429b50
mov eax, dword [ebp - 0x20]
cmp word [edx + eax - 2], 0x5c
je 0x429af8
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.004032cc
push 0x454afc
lea ecx, [ebp - 0x44]
call fcn.004031f3
lea ecx, [ebp - 0x20]
mov edx, eax
push ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004036cc
push edi
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040a82f
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.0040328e
push dword [ebp - 0x2c]
call fcn.0042690e
push dword [ebp - 0x38]
call fcn.0042690e
push dword [ebp - 0x44]
call fcn.0042690e
add esp, 0xc
mov bl, 1
push dword [ebp - 0x20]
call fcn.0042690e
pop ecx
mov al, bl
jmp 0x429b5f
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x429ce4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x429d0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x429d0a
xor al, al
jmp 0x429d2a
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.0043bad0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x42bbd8
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4413ec
call fcn.0043b810
sub esp, 0x11c
push esi
xor esi, esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
push 0x2001f
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ecx]
lea ecx, [ebp - 0x10]
call fcn.0042bb7d
cmp eax, esi
jne 0x42bc79
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x14], 0x105
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x42bc66
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042bbd8
cmp eax, esi
jne 0x42bc79
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x105
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x128]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x42bc2e
lea ecx, [ebp - 0x10]
call fcn.0042bbb2
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
call fcn.0042bbc9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0042bb21
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42bcc9
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8

Function at 0x42bcf0
Capabilities:
Set registry value

Disassembly:
mov eax, 0x44143d
call fcn.0043b810
sub esp, 0x34
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp byte [0x45577c], bl
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
je 0x42bd36
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x42bde3
cmp dword [ebp + 0xc], esi
je 0x42bd66
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.004031f3
push 1
pop esi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.00403109
push 3
pop ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], esi
mov esi, dword [eax]
xor eax, eax
cmp dword [ebp + 8], eax
je 0x42bd95
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.004031f3
or ebx, 4
mov dword [ebp - 0x10], ebx
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 2
call fcn.00403109
mov eax, dword [eax]
or ebx, 8
push esi
push eax
mov ecx, edi
call fcn.0042bcc9
test bl, 8
mov esi, eax
je 0x42bdb1
push dword [ebp - 0x34]
and ebx, 0xfffffff7
call fcn.0042690e
pop ecx
test bl, 4
je 0x42bdc2
push dword [ebp - 0x1c]
and ebx, 0xfffffffb
call fcn.0042690e
pop ecx
test bl, 2
je 0x42bdd3
push dword [ebp - 0x40]
and ebx, 0xfffffffd
call fcn.0042690e
pop ecx
test bl, 1
je 0x42bde1
push dword [ebp - 0x28]
call fcn.0042690e
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42bdf4
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc

Function at 0x42bef7
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x441486
call fcn.0043b810
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, ecx
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov dword [ebp - 0x10], ebx
mov word [eax], bx
cmp byte [0x45577c], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0xc], ebx
je 0x42bf8d
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x42bf4b
cmp eax, 0xea
jne 0x42c03b
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 8]
jl 0x42bf5b
push eax
mov ecx, esi
call fcn.004034f8
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0042bed4
mov edi, eax
mov eax, dword [esi]
xor ecx, ecx
cmp word [eax], bx
je 0x42bf81
mov edx, eax
inc ecx
inc edx
inc edx
cmp word [edx], bx
jne 0x42bf79
mov word [eax + ecx*2], bx
mov dword [esi + 4], ecx
jmp 0x42c039
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00403645
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
jne 0x42bfac
xor eax, eax
jmp 0x42bfdd
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.004031f3
mov dword [ebp - 0x10], 1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00403109
mov dword [ebp - 0x10], 3
mov eax, dword [eax]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x20]
push ecx
push eax
mov ecx, edi
call fcn.0042be66
test byte [ebp - 0x10], 2
mov edi, eax
je 0x42bffe
push dword [ebp - 0x38]
and dword [ebp - 0x10], 0xfffffffd
call fcn.0042690e
pop ecx
test byte [ebp - 0x10], 1
mov dword [ebp - 4], ebx
je 0x42c010
push dword [ebp - 0x2c]
call fcn.0042690e
pop ecx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.004136b4
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040328e
push dword [ebp - 0x38]
call fcn.0042690e
push dword [ebp - 0x20]
call fcn.0042690e
pop ecx
pop ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42c30f
Capabilities:
Get session user name

Disassembly:
mov eax, 0x4414ec
call fcn.0043b810
sub esp, 0x24c
push ebx
push esi
xor ebx, ebx
push str.Advapi32.dll
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x14], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
je 0x42c41f
push str.LsaOpenPolicy
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x42c41f
lea ecx, [ebp - 0x18]
call fcn.0042c440
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push 0xf0fff
push eax
push ebx
call esi
cmp eax, ebx
jne 0x42c41f
push str.SeLockMemoryPrivilege
lea ecx, [ebp - 0x48]
call fcn.0041f404
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004136b4
push dword [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.0042690e
pop ecx
lea edx, [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
call fcn.0042c4a6
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x42c416
lea ecx, [ebp - 0x258]
call fcn.0042c4c8
mov esi, eax
cmp esi, ebx
je 0x42c416
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push eax
push esi
mov byte [ebp - 0xd], bl
call fcn.0042c473
cmp eax, ebx
jne 0x42c404
mov byte [ebp - 0xd], 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov bl, byte [ebp - 0xd]
push dword [ebp - 0x54]
call fcn.0042690e
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0042c440
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42ceb9
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
push edi
mov eax, dword [esi]
and dword [esi + 4], 0
and byte [eax], 0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
test edi, edi
jne 0x42cee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x42cf1d
cmp edi, dword [esi + 8]
jl 0x42cef3
push edi
mov ecx, esi
call fcn.00403645
mov eax, dword [esi]
inc edi
push edi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, esi
mov edi, eax
call fcn.00427121
test edi, edi
jne 0x42cf1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
neg eax
jmp 0x42cf1d
mov al, 1
pop edi
pop esi
pop ebx
ret 4
Function at 0x42cf23
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x441668
call fcn.0043b810
sub esp, 0x18
cmp byte [0x45577c], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x42cfa4
mov esi, dword [ebp + 8]
mov eax, dword [esi]
and dword [esi + 4], 0
and word [eax], 0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test edi, edi
je 0x42cf93
cmp edi, dword [esi + 8]
jl 0x42cf66
push edi
mov ecx, esi
call fcn.004034f8
mov eax, dword [esi]
inc edi
push edi
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi]
xor ebx, ebx
xor edx, edx
cmp word [ecx], bx
je 0x42cf88
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x42cf80
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
jne 0x42cfa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x42cff5
mov al, 1
jmp 0x42cff5
xor esi, esi
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.00403645
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
mov dword [ebp - 4], esi
call fcn.0042ceb9
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.004136b4
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.0040328e
push dword [ebp - 0x24]
call fcn.0042690e
push dword [ebp - 0x18]
call fcn.0042690e
pop ecx
mov al, bl
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42fa4c
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x441a3b
call fcn.0043b810
sub esp, 0x84
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
push edi
lea ecx, [ebp - 0x90]
call fcn.00403254
xor ebx, ebx
cmp byte [0x45577c], bl
mov dword [ebp - 4], ebx
jne 0x42fb35
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x84], 0x44
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x52], bx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00403645
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x42faf8
push esi
lea ecx, [ebp - 0x40]
call fcn.004031f3
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00403109
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004033a6
push dword [ebp - 0x34]
call fcn.0042690e
push dword [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0042690e
mov esi, dword [ebp - 0x18]
pop ecx
pop ecx
jmp 0x42fafa
xor esi, esi
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.00403109
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
push dword [ebp - 0x34]
call fcn.0042690e
push dword [ebp - 0x18]
call fcn.0042690e
pop ecx
pop ecx
jmp 0x42fb6f
lea ecx, [ebp - 0x28]
mov eax, dword [edi]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
mov dword [ebp - 0x84], 0x44
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x52], bx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
cmp esi, ebx
jne 0x42fb7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x42fbc0
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp byte [ebp + 8], bl
je 0x42fb9a
push 0xffffffffffffffff
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x42fbbb
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x42fbbb
mov eax, dword [eax]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push ebx
push eax
push 2
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x90]
call fcn.0042690e
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x43415d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4422fe
call fcn.0043b810
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x445530
mov dword [esi + 4], 0x4451a4
mov dword [esi + 8], 0x4450b0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 8
mov dword [esi + 0x10], 0x445320
lea ecx, [esi + 0x24]
push 3
mov dword [ebp - 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.004034f8
lea ecx, [esi + 0x30]
push 3
mov byte [ebp - 4], 1
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.004034f8
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x40], bl
mov byte [esi + 0x41], bl
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi], 0x445504
mov dword [esi + 4], 0x4454f4
mov dword [esi + 8], 0x4454e4
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x434169
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4422fe
call fcn.0043b810
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x445530
mov dword [esi + 4], 0x4451a4
mov dword [esi + 8], 0x4450b0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 8
mov dword [esi + 0x10], 0x445320
lea ecx, [esi + 0x24]
push 3
mov dword [ebp - 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.004034f8
lea ecx, [esi + 0x30]
push 3
mov byte [ebp - 4], 1
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.004034f8
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x40], bl
mov byte [esi + 0x41], bl
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi], 0x445504
mov dword [esi + 4], 0x4454f4
mov dword [esi + 8], 0x4454e4
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x435058
Capabilities:
Get disk information

Disassembly:
mov eax, 0x442488
call fcn.0043b810
sub esp, 0x20
push ebx
push esi
mov esi, edx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ecx
cmp byte [esi + 0x10], bl
mov edi, dword [esi]
mov dword [ebp - 0x14], ebx
je 0x4350e4
mov ecx, dword [ebp + 8]
push 1
pop edi
lea eax, [ebp - 0x2c]
push 3
push eax
call fcn.0040338a
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], ebx
cmp word [eax + 2], 0x3a
jne 0x4350d7
cmp word [eax + 4], 0x5c
jne 0x4350d7
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
lea edx, [ebp - 0x2c]
inc eax
lea ecx, [ebp - 0x20]
push eax
call fcn.0043518b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
call fcn.0042690e
cmp dword [ebp - 0x14], 5
pop ecx
je 0x4350d5
cmp dword [ebp - 0x14], 2
jne 0x4350d7
mov edi, dword [esi]
push dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
call fcn.0042690e
pop ecx
dec edi
je 0x43516c
dec edi
je 0x43513a
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004034f8
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.00428c64
test al, al
jne 0x435129
lea eax, [ebp + 8]
push 0x445d98
push eax
mov dword [ebp + 8], 0x22995
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.00403254
push dword [ebp - 0x20]
jmp 0x435164
add esi, 4
lea ecx, [ebp - 0x2c]
push esi
call fcn.00403254
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00429f92
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00403254
push dword [ebp - 0x2c]
call fcn.0042690e
pop ecx
jmp 0x435177
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
call fcn.00427256
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x43b560
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push 0
push ecx
push edx
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.0043b530
pop esi
ret 4

Function at 0x43b6d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43b726
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x4458ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43b719
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x43b728
xor eax, eax
pop esi
leave
ret 4
Function at 0x43bd60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov eax, ecx
mov esi, edx
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
test edi, edi
je 0x43bd8f
test esi, 7
je 0x43bd8f
movzx edx, byte [esi]
inc esi
movzx ebx, al
xor edx, ebx
shr eax, 8
xor eax, dword [ebp + edx*4]
dec edi
jne 0x43bd74
cmp edi, 0x10
jb 0x43be18
mov dword [esp + 0x14], edi
sub edi, 8
and edi, 0xfffffff8
sub dword [esp + 0x14], edi
add edi, esi
xor eax, dword [esi]
mov ebx, dword [esi + 4]
movzx ecx, bl
mov edx, dword [ebp + ecx*4 + 0xc00]
movzx ecx, bh
xor edx, dword [ebp + ecx*4 + 0x800]
shr ebx, 0x10
movzx ecx, bl
xor edx, dword [ebp + ecx*4 + 0x400]
xor edx, dword [esi + 8]
movzx ecx, al
movzx ebx, bh
xor edx, dword [ebp + ebx*4]
mov ebx, dword [esi + 0xc]
xor edx, dword [ebp + ecx*4 + 0x1c00]
movzx ecx, ah
add esi, 8
shr eax, 0x10
xor edx, dword [ebp + ecx*4 + 0x1800]
movzx ecx, al
xor edx, dword [ebp + ecx*4 + 0x1400]
movzx ecx, ah
mov eax, dword [ebp + ecx*4 + 0x1000]
movzx ecx, bl
xor eax, edx
cmp esi, edi
jne 0x43bdb0
xor eax, dword [esi]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x43be2f
movzx edx, byte [esi]
inc esi
movzx ebx, al
xor edx, ebx
shr eax, 8
xor eax, dword [ebp + edx*4]
dec edi
jne 0x43be1c
pop ebp
pop edi
pop esi
pop ebx
ret 8
Function at 0x417aa0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48040b
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.00474759
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x417b22
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00471e1a
mov eax, dword [eax]
push 0x4bd1f0
push eax
call fcn.004633d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004749e4
test bl, bl
je 0x417b22
push 0x4bd1f0
lea ecx, [esp + 0xc]
call fcn.00474d74
push 0x4c0d6c
lea ecx, [esp + 0xc]
call fcn.00474d74
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 0x417b5e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004749e4
jmp 0x417c29
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 0x417be2
lea edx, [esp + 0x7c]
push 0x4c0d68
push edx
call fcn.004633d4
add esp, 8
test eax, eax
je 0x417be2
lea eax, [esp + 0x7c]
push 0x4c0d64
push eax
call fcn.004633d4
add esp, 8
test eax, eax
je 0x417be2
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 0x417b72
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.004749e4
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 0x418420
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 0x418482
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