joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fcc98
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4fce6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 4]
mov ecx, 0x200
xor edx, edx
call fcn.00406584
push 0
movzx eax, byte [ebp + 8]
mov eax, dword [eax*4 + 0x538908]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004064d4
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.0048b00c
test eax, eax
jne 0x4fce4f
xor eax, eax
push ebp
push 0x4fce44
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [edi + 4]
mov eax, dword [edi]
xor ecx, ecx
call fcn.0049c028
xor ebx, ebx
mov esi, dword [ebp - 4]
test esi, esi
je 0x4fcd29
sub esi, 4
mov esi, dword [esi]
mov dword [ebp - 0x18], esi
cmp byte [ebp + 8], 0
je 0x4fcd56
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00406eb8
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov dword [ebp - 0x1c], eax
jmp 0x4fcd78
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00406eb8
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumValueW
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
sub eax, 1
jb 0x4fcdee
sub eax, 0xe9
je 0x4fcd92
sub eax, 0x19
je 0x4fce2d
jmp 0x4fcde7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4fcda9
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10000
jl 0x4fcdbc
call fcn.00404b68
jmp 0x4fce4f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4fcdd3
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406584
jmp 0x4fcd1d
call fcn.00404b68
jmp 0x4fce4f
lea ecx, [ebx + 1]
mov edx, dword [edi + 4]
mov eax, dword [edi]
call fcn.0049c028
lea eax, [ebp - 4]
call fcn.00406eb8
mov edx, eax
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x18]
call fcn.00406584
lea ecx, [ebp - 0x30]
mov eax, edi
mov edx, ebx
call fcn.004ad1b8
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.0049a1c0
inc ebx
jmp 0x4fcd1d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fce4b
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fce71
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406440
ret
Function at 0x50288c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x502910
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x5028f8
mov ebx, esi
test ebx, ebx
je 0x5028be
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.004064d4
push eax
push 1
push 0
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x50292c
call fcn.00406914
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete al
mov ebx, eax
jmp 0x5028fa
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502917
lea eax, [ebp - 8]
call fcn.00406438
ret

Function at 0x506a58
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x506b9b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
mov ecx, 0x506bb4
mov edx, ebx
call fcn.00406914
mov eax, dword [ebp - 0x25c]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x506b75
xor eax, eax
push ebp
push 0x506b6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x506bd0
lea eax, [ebp - 0x22c]
mov ecx, 5
call fcn.00418290
test eax, eax
jne 0x506b3f
test byte [ebp - 0x258], 0x10
jne 0x506b3f
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00406640
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406914
mov esi, dword [ebp - 0x258]
test esi, 1
je 0x506b31
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x506ac9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506b75
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506ba2
lea eax, [ebp - 0x260]
mov edx, 2
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x506bdc
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x506cdc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00406448
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00489b10
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x506cf8
call fcn.00418564
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406914
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x506c7c
test esi, 0x10
jne 0x506cac
test esi, 1
je 0x506c7c
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
call sub.kernel32.dll_SetFileAttributesW
push 1
mov eax, dword [ebp - 8]
call fcn.004064d4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x506ca6
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00406448
jmp 0x506cb9
inc edi
cmp edi, 0xa
je 0x506cb9
inc ebx
cmp ebx, 0x3e8
jne 0x506c1d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x506ce3
lea eax, [ebp - 0x14]
call fcn.00406438
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406440
ret
Function at 0x507b9c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x507c44
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x507c60
push ebx
push 0x507c70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004069f8
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403540
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x507c22
mov eax, dword [0x538e7c]
mov eax, dword [eax + 0x1a8]
call fcn.00507af4
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x507c4b
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x5085e4
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5087d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0048abb4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0048f51c
test al, al
jne 0x508651
xor eax, eax
push ebp
push 0x508647
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.0048fa0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x508651
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [0x54016c]
call fcn.004064d4
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x508680
mov eax, dword [0x538e7c]
mov eax, dword [eax + 0x1a4]
call fcn.00507af4
push 0x80
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_SetFileAttributesW
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x53cb50]
push eax
push 0
mov ecx, 0x5087e0
mov edx, 0x5087e4
xor eax, eax
call fcn.0040a124
mov dword [ebp - 8], eax
push 0x507cb4
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowLongW
mov dword [0x540198], eax
xor eax, eax
push ebp
push 0x50879b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x538e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.0048a588
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x508800
call fcn.00418564
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
call fcn.0048a468
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00406854
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00507b9c
mov dword [ebp - 0xc], eax
call fcn.00507c78
test al, al
jne 0x50877b
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x508759
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5087a2
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DestroyWindow
ret
Function at 0x509b20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x509dda
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x538e6c]
mov eax, dword [eax]
mov edx, 0x509df4
call fcn.00487214
push 5
mov eax, dword [0x538e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x509da1
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004ebd94
lea eax, [ebp - 0x10]
call fcn.0048aa2c
mov eax, dword [ebp - 0x10]
call fcn.00418010
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0048a588
mov edx, dword [ebp - 0x14]
mov eax, 0x54016c
call fcn.00406448
call fcn.00507eac
lea ecx, [ebp - 0x18]
mov edx, 0x509e14
mov eax, dword [0x54016c]
call fcn.0048966c
mov edx, dword [ebp - 0x18]
mov eax, 0x540170
call fcn.00406448
lea ecx, [ebp - 0x1c]
mov edx, 0x509e2c
mov eax, dword [0x54016c]
call fcn.0048966c
mov edx, dword [ebp - 0x1c]
mov eax, 0x540174
call fcn.00406448
push 2
push 0
push 1
mov ecx, dword [0x54016c]
mov dl, 1
mov eax, dword [0x48c660]
call fcn.0048c9a0
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x509c78
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x24]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.0048c960
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.0048c938
cmp dword [ebp - 0xc], 0x67734d49
je 0x509c53
mov cl, 1
xor edx, edx
mov eax, dword [0x540174]
call fcn.0048dc24
jmp 0x509c62
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x54016c]
call fcn.0048dc24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509c7f
mov eax, dword [ebp - 4]
call fcn.00404098
ret
Function at 0x10005a7a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10005a89
pop dword [ebp - 0x44]
mov eax, 0xfa05ab27
sub eax, 0xea05509e
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x239baccc
add dword [ebp - 0x54], 0x2ab6987f
mov dword [ebp - 0x50], 0x5c7605fd
add dword [ebp - 0x50], 0xd5bd4648
mov dword [ebp - 0x4c], 0xf3177afa
add dword [ebp - 0x4c], 0x5934c934
mov dword [ebp - 0x48], 0xa0f4d5e8
sub dword [ebp - 0x48], 0xa0f4d5e8
lea eax, [ebp - 0x54]
push eax
mov eax, 0x9155fc6b
sub eax, 0x81553c47
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x5bbe3958
add dword [ebp - 0x54], 0x18b42ffe
mov dword [ebp - 0x50], 0x6c8a7d7d
sub dword [ebp - 0x50], 0x2b1e1c08
mov dword [ebp - 0x4c], 0xea692d5d
add dword [ebp - 0x4c], 0x79063f0f
mov dword [ebp - 0x48], 0xecff17d9
sub dword [ebp - 0x48], 0xecff17d9
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x227ca64c
sub eax, 0x127be620
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x35992
push 0
call eax
mov ecx, 0x8f366c7f
add ecx, 0x70c9d1d9
mov edi, eax
mov edx, 0x10047400
add edx, dword [ebp - 0x44]
mov esi, 0xf716d6c1
add esi, 0x804a8634
sub dword [ebp - 0x38], ebx
mov ebx, dword [edx]
sub ebx, esi
mov dword [edi], ebx
xor dword [ebp - 0x38], ecx
add edi, 4
add edx, 4
loop 0x10005ba5
add eax, 0xddb00d7e
sub eax, 0xddaf214b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x47f7e68f
add ecx, 0xc8081971
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x421c70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00417fea
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x421ca8
xor eax, eax
jmp 0x421cd4
cmp esi, dword [ebp - 4]
je 0x421cd1
cmp dword [ebp + 0xc], 0
je 0x421cd1
push dword [edi + 0x9c]
call fcn.0042187e
push dword [edi + 0x9c]
mov esi, eax
call fcn.004126f6
pop ecx
pop ecx
cmp esi, eax
je 0x421ca4
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x438c7b
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ebx
sub edx, 1
and edx, edx
push 0x893b535b
pop edi
call fcn.00438cbf
add edi, 0x5f51127d
or edi, edi
xor dword [esi], ebx
and edx, edx
inc edx
inc esi
add edx, 0x2ead73eb
cmp esi, ecx
jne fcn.00438c7b
sub edx, 0x48b75e
mov edi, 0xa7ec60f3
and edi, edx
ret
Function at 0x1002ea50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100d6970
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.100c990d
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10032210
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1002eaa4
jmp dword [ecx*4 + 0x1002ec0c]
mov al, byte [esi]
test al, al
je 0x1002ead2
cmp al, 0x20
je 0x1002eabe
cmp al, 0xa1
jne 0x1002ead2
cmp byte [esi + 1], al
jne 0x1002ead2
test al, 0x80
je 0x1002eaca
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1002ead2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002eab1
test ecx, ecx
je case.default.0x1002eaa4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1002eaa4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1002eb18
cmp dl, 0xa1
jne 0x1002eb0c
cmp byte [eax + 1], 0xa1
jne 0x1002eb0c
test ecx, ecx
jne 0x1002eb04
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1002eb2c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1002eb46
jmp 0x1002eb2c
cmp dl, 0x20
jne 0x1002eb2a
test ecx, ecx
jne 0x1002eb23
mov edi, eax
mov ecx, 1
jmp 0x1002eb2c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1002eaec
cmp ecx, 1
jne case.default.0x1002eaa4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1002eaa4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1002eaa4
mov al, byte [esi]
test al, al
je 0x1002eb9e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1002eb84
mov cl, byte [esi + 1]
test cl, cl
je 0x1002eb9e
cmp al, 0xa1
jne 0x1002eb74
cmp cl, al
je 0x1002eb81
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.100324a0
inc esi
jmp 0x1002eb96
cmp al, 0x20
je 0x1002eb96
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.100324e0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1002eb5d
push 0
lea ecx, [esp + 0x14]
call fcn.100324e0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10040730
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1002ebd1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x110f9828
call fcn.10032410
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100c989f
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1002fe40
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x100d69f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x11128d70]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.1002f910
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1002fee2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1002ff9b
mov edx, dword [esi + 8]
push edx
call fcn.1003f360
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x1002ff32
cmp eax, 0x80000301
jne 0x1002ff00
mov eax, dword [esi]
jmp 0x1002ff0d
push 0
push esi
push 0x7d1
call fcn.10044b80
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1002ff90
jmp 0x1002ff8a
cmp eax, reloc.WS2_32.dll_connect
jne 0x1002ff61
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1002ff90
jmp 0x1002ff8a
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x1002ff90
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1002ff90
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.100c989f
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10039d40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100d727b
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.100c9614
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10039dc2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100c6fc6
mov eax, dword [eax]
push 0x11116d14
push eax
call fcn.100b8304
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100c989f
test bl, bl
je 0x10039dc2
push 0x11116d14
lea ecx, [esp + 0xc]
call fcn.100c9c7b
push 0x11116d20
lea ecx, [esp + 0xc]
call fcn.100c9c7b
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 0x10039dfe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100c989f
jmp 0x10039ec9
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 0x10039e82
lea edx, [esp + 0x7c]
push 0x11116d1c
push edx
call fcn.100b8304
add esp, 8
test eax, eax
je 0x10039e82
lea eax, [esp + 0x7c]
push 0x11116d18
push eax
call fcn.100b8304
add esp, 8
test eax, eax
je 0x10039e82
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 0x10039e12
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.100c989f
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 0x1003a6d0
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 0x1003a732
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