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

Disassembly:
mov eax, 0x447744
call fcn.00441b80
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 0x42bc18
mov eax, ecx
inc edi
inc eax
inc eax
cmp word [eax], bx
jne 0x42bc10
cmp edi, 1
jl 0x42bd4d
cmp si, 0x5c
je 0x42bd4d
cmp si, 0x2e
jne 0x42bc49
cmp edi, 1
je 0x42bd4d
cmp edi, 2
jne 0x42bc49
cmp word [ecx + 2], si
je 0x42bd4d
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00403396
cmp edi, 3
mov edi, dword [ebp - 0x10]
mov dword [ebp - 4], ebx
jle 0x42bc8d
cmp word [edi + 2], 0x3a
jne 0x42bc8d
cmp word [edi + 4], 0x5c
jne 0x42bc8d
cmp si, 0x61
jb 0x42bc81
cmp si, 0x7a
jbe 0x42bce8
cmp si, 0x41
jb 0x42bc8d
cmp si, 0x5a
jbe 0x42bce8
mov esi, 0x105
cmp dword [ebp - 0x18], esi
jg 0x42bca0
push esi
lea ecx, [ebp - 0x20]
call fcn.00403396
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 0x42bcbe
mov edx, esi
inc ecx
inc edx
inc edx
cmp word [edx], bx
jne 0x42bcb6
lea edx, [ecx + ecx]
cmp eax, ebx
mov word [edx + esi], bx
mov dword [ebp - 0x1c], ecx
je 0x42bd40
cmp eax, 0x104
ja 0x42bd40
mov eax, dword [ebp - 0x20]
cmp word [edx + eax - 2], 0x5c
je 0x42bce8
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.0040316a
push str.__
lea ecx, [ebp - 0x44]
call fcn.00403091
lea ecx, [ebp - 0x20]
mov edx, eax
push ecx
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040356a
push edi
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00409948
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.0040312c
push dword [ebp - 0x2c]
call fcn.004284d8
push dword [ebp - 0x38]
call fcn.004284d8
push dword [ebp - 0x44]
call fcn.004284d8
add esp, 0xc
mov bl, 1
push dword [ebp - 0x20]
call fcn.004284d8
pop ecx
mov al, bl
jmp 0x42bd4f
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x42bedb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 4], 0
push esi
je 0x42befc
cmp byte [ecx + 5], 0
je 0x42befc
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 4], ecx
jmp 0x42bf3b
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42bf1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42bf1d
xor al, al
jmp 0x42bf3d
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00441e40
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 0x42c9bf
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x447833
call fcn.00441b80
sub esp, 0x90
push ebx
push edi
mov edi, ecx
xor ebx, ebx
mov eax, dword [edi]
cmp eax, ebx
je 0x42c9e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42c9e8
mov dword [edi], ebx
push esi
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call fcn.00403091
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.0042cb93
push 0x20
mov edx, eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.00409999
push dword [ebp + 0xc]
mov edx, eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0040356a
push dword [ebp - 0x9c]
call fcn.004284d8
push dword [ebp - 0x30]
call fcn.004284d8
push dword [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.004284d8
add esp, 0xc
cmp byte [0x45d8b4], bl
jne 0x42cb16
push 3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x90], 0x44
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x64], ebx
mov word [ebp - 0x5e], bx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.004034e3
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 4], 7
je 0x42cad8
push dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
call fcn.00403091
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.0043a785
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.00403244
push dword [ebp - 0x30]
call fcn.004284d8
push dword [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.004284d8
mov esi, dword [ebp - 0x18]
pop ecx
pop ecx
jmp 0x42cada
xor esi, esi
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x30]
call fcn.0043a785
lea ecx, [ebp - 0x4c]
mov eax, dword [eax]
push ecx
lea ecx, [ebp - 0x90]
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]
push dword [ebp - 0x30]
mov esi, eax
call fcn.004284d8
push dword [ebp - 0x18]
call fcn.004284d8
pop ecx
pop ecx
jmp 0x42cb5b
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x90], 0x44
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x8c], ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x64], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov word [ebp - 0x5e], bx
push dword [ebp - 0x3c]
mov dword [ebp - 0x5c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
cmp esi, ebx
pop esi
jne 0x42cb6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x42cb78
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c]
mov dword [edi], eax
push dword [ebp - 0x3c]
call fcn.004284d8
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x42d3b6
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x447894
call fcn.00441b80
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.0042d35b
cmp eax, esi
jne 0x42d457
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 0x42d444
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x10]
push eax
call fcn.0042d3b6
cmp eax, esi
jne 0x42d457
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 0x42d40c
lea ecx, [ebp - 0x10]
call fcn.0042d390
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
call fcn.0042d3a7
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0042d390
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42d4a3
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 0x42d4ca
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4478e5
call fcn.00441b80
sub esp, 0x34
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp byte [0x45d8b4], bl
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
je 0x42d510
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 0x42d5bd
cmp dword [ebp + 0xc], esi
je 0x42d540
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.00403091
push 1
pop esi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0043a785
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 0x42d56f
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00403091
or ebx, 4
mov dword [ebp - 0x10], ebx
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 2
call fcn.0043a785
mov eax, dword [eax]
or ebx, 8
push esi
push eax
mov ecx, edi
call fcn.0042d4a3
test bl, 8
mov esi, eax
je 0x42d58b
push dword [ebp - 0x34]
and ebx, 0xfffffff7
call fcn.004284d8
pop ecx
test bl, 4
je 0x42d59c
push dword [ebp - 0x1c]
and ebx, 0xfffffffb
call fcn.004284d8
pop ecx
test bl, 2
je 0x42d5ad
push dword [ebp - 0x40]
and ebx, 0xfffffffd
call fcn.004284d8
pop ecx
test bl, 1
je 0x42d5bb
push dword [ebp - 0x28]
call fcn.004284d8
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 0x42d5ce
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 0x42d70f
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x44792e
call fcn.00441b80
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 [0x45d8b4], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0xc], ebx
je 0x42d7a5
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 0x42d763
cmp eax, 0xea
jne 0x42d853
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 8]
jl 0x42d773
push eax
mov ecx, esi
call fcn.00403396
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0042d6ec
mov edi, eax
mov eax, dword [esi]
xor ecx, ecx
cmp word [eax], bx
je 0x42d799
mov edx, eax
inc ecx
inc edx
inc edx
cmp word [edx], bx
jne 0x42d791
mov word [eax + ecx*2], bx
mov dword [esi + 4], ecx
jmp 0x42d851
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004034e3
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
jne 0x42d7c4
xor eax, eax
jmp 0x42d7f5
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00403091
mov dword [ebp - 0x10], 1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0043a785
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.0042d67e
test byte [ebp - 0x10], 2
mov edi, eax
je 0x42d816
push dword [ebp - 0x38]
and dword [ebp - 0x10], 0xfffffffd
call fcn.004284d8
pop ecx
test byte [ebp - 0x10], 1
mov dword [ebp - 4], ebx
je 0x42d828
push dword [ebp - 0x2c]
call fcn.004284d8
pop ecx
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x38]
call fcn.0041242c
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040312c
push dword [ebp - 0x38]
call fcn.004284d8
push dword [ebp - 0x20]
call fcn.004284d8
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 0x42e72f
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 0x42e75c
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x42e793
cmp edi, dword [esi + 8]
jl 0x42e769
push edi
mov ecx, esi
call fcn.004034e3
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.00428d27
test edi, edi
jne 0x42e791
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
neg eax
jmp 0x42e793
mov al, 1
pop edi
pop esi
pop ebx
ret 4
Function at 0x42e799
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x447b40
call fcn.00441b80
sub esp, 0x18
cmp byte [0x45d8b4], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x42e81a
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 0x42e809
cmp edi, dword [esi + 8]
jl 0x42e7dc
push edi
mov ecx, esi
call fcn.00403396
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 0x42e7fe
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x42e7f6
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
jne 0x42e816
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
jmp 0x42e86b
mov al, 1
jmp 0x42e86b
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.004034e3
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
mov dword [ebp - 4], esi
call fcn.0042e72f
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x24]
mov bl, al
call fcn.0041242c
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.0040312c
push dword [ebp - 0x24]
call fcn.004284d8
push dword [ebp - 0x18]
call fcn.004284d8
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 0x42f751
Capabilities:
Get session user name

Disassembly:
mov eax, 0x447d34
call fcn.00441b80
sub esp, 0x334
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 0x42f851
push str.LsaOpenPolicy
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x42f851
lea ecx, [ebp - 0x18]
call fcn.0042f872
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push 0xf0fff
push eax
push ebx
call esi
cmp eax, ebx
jne 0x42f851
push edi
push 0xb
pop ecx
mov esi, str.SeLockMemoryPrivilege
lea edi, [ebp - 0x13c]
push 0x35
rep movsd dword es:[edi], dword [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0x110]
lea edx, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x13c]
call fcn.0042f8d8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
push eax
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
pop edi
je 0x42f851
lea ecx, [ebp - 0x340]
call fcn.0042f8fa
mov esi, eax
cmp esi, ebx
je 0x42f851
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push eax
push esi
mov byte [ebp - 0xd], bl
call fcn.0042f8a5
cmp eax, ebx
jne 0x42f83f
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]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0042f872
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4384a8
Capabilities:
Get disk information

Disassembly:
mov eax, 0x448c8c
call fcn.00441b80
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 0x438534
mov ecx, dword [ebp + 8]
push 1
pop edi
lea eax, [ebp - 0x2c]
push 3
push eax
call fcn.00403228
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], ebx
cmp word [eax + 2], 0x3a
jne 0x438527
cmp word [eax + 4], 0x5c
jne 0x438527
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.004385db
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
call fcn.004284d8
cmp dword [ebp - 0x14], 5
pop ecx
je 0x438525
cmp dword [ebp - 0x14], 2
jne 0x438527
mov edi, dword [esi]
push dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
call fcn.004284d8
pop ecx
dec edi
je 0x4385bc
dec edi
je 0x43858a
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00403396
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.0042ab81
test al, al
jne 0x438579
lea eax, [ebp + 8]
push 0x44d120
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.004030f2
push dword [ebp - 0x20]
jmp 0x4385b4
add esi, 4
lea ecx, [ebp - 0x2c]
push esi
call fcn.004030f2
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.0042c33b
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.004030f2
push dword [ebp - 0x2c]
call fcn.004284d8
pop ecx
jmp 0x4385c7
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
call fcn.00428e5c
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 0x4389b8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x448d5f
call fcn.00441b80
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 4
xor edi, edi
pop ebx
mov dword [esi + 8], edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0xc], 0x44b510
lea ecx, [esi + 0x24]
push 3
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.00403396
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], ebx
mov dword [esi + 0x30], 0x44c7ac
push 0x45d91c
mov dword [esi], 0x44c794
mov dword [esi + 4], 0x44c784
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x438af0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x448d92
call fcn.00441b80
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x44c794
mov dword [esi + 4], 0x44c784
and dword [ebp - 4], 0
push 0x45d91c
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edi, [esi + 0x30]
mov dword [ebp - 0x14], edi
mov dword [edi], 0x44c7ac
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00428327
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004282fe
push dword [esi + 0x24]
call fcn.004284d8
add esi, 0xc
pop ecx
mov dword [ebp - 0x14], esi
mov dword [esi], 0x44b510
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.00428327
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004282fe
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4413a0
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx], 0x6a09e667
mov dword [ecx + 0x20], eax
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
mov dword [ecx + 0x24], eax
ret

Function at 0x441890
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.00441820
pop esi
ret 4

Function at 0x441a40
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 0x441a96
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x44cc64
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x441a89
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x441a98
xor eax, eax
pop esi
leave
ret 4
Function at 0x409a30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47e24b
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.00472e5c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409ab2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00470c77
mov eax, dword [eax]
push 0x1110c78
push eax
call fcn.00462fd4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004730e7
test bl, bl
je 0x409ab2
push 0x1110c78
lea ecx, [esp + 0xc]
call fcn.00473477
push 0x1110c84
lea ecx, [esp + 0xc]
call fcn.00473477
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 0x409aee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004730e7
jmp 0x409bb9
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 0x409b72
lea edx, [esp + 0x7c]
push 0x1110c80
push edx
call fcn.00462fd4
add esp, 8
test eax, eax
je 0x409b72
lea eax, [esp + 0x7c]
push 0x1110c7c
push eax
call fcn.00462fd4
add esp, 8
test eax, eax
je 0x409b72
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 0x409b02
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.004730e7
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 0x40a3c0
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 0x40a422
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