joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b1f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e4458
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x46b246
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x46b249
mov esi, dword [ebp + 8]
test esi, esi
je 0x46b32f
call fcn.0059e730
test eax, eax
je 0x46b2ca
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x46b265
xor ebx, ebx
jmp 0x46b295
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00442300
mov eax, dword [ebp + 0x10]
mov ebx, esp
push edi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [ebx], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [ebp + 0x18]
push edi
call fcn.00441d20
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46b323
cmp esi, dword [ebp + 8]
je 0x46b2c3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x46b331
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.00455190
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x46b314
cmp esi, dword [ebp + 8]
je 0x46b2fe
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004559a0
mov eax, 1
jmp 0x46b331
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004559a0
cmp esi, dword [ebp + 8]
je 0x46b32f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b440
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x46b48c
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0x20]
neg esi
sbb esi, esi
not esi
and esi, eax
mov dword [esp + 0x10], esi
jmp 0x46b496
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov esi, eax
test esi, esi
je 0x46b5d8
mov ebp, dword [esp + 0x2c]
xor edi, edi
mov dword [esp + 0x20], 1
mov eax, dword [ebp + 8]
test eax, eax
jle 0x46b4e2
lea ecx, [esp + 0x28]
push edi
push ecx
mov ecx, ebp
call fcn.0046b5f0
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx - 8]
lea edx, [ecx + eax + 1]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edx
call fcn.005d0da7
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jl 0x46b4b3
mov eax, dword [esp + 0x20]
push eax
call fcn.005d1478
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x46b5d8
mov ecx, dword [esp + 0x20]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x28], 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
jle 0x46b583
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, ebp
call fcn.0046b5f0
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.005d0da7
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
not ecx
dec ecx
inc eax
mov dword [esp + 0x28], eax
lea ebx, [ebx + ecx + 1]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jl 0x46b522
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push eax
push ebx
push 7
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x46b5c0
cmp esi, dword [esp + 0x1c]
je 0x46b5aa
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.005d14a1
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebx
call fcn.005d14a1
mov eax, dword [esp + 0x20]
add esp, 4
cmp esi, eax
je 0x46b5d8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x46bc30
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x14]
push esi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
call fcn.005cf264
cmp ebp, ebx
je 0x46bd08
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push ebx
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push ebx
push ebx
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x46bd08
cmp dword [esp + 0x10], ebx
jbe 0x46bd08
mov eax, dword [esp + 0xc]
cmp eax, 0x104
jae 0x46bc96
mov eax, 0x104
mov dword [esp + 0xc], eax
inc eax
push eax
call fcn.005d1478
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x46bd08
cmp dword [esp + 0x10], ebx
jbe 0x46bcf1
push edi
mov edx, dword [esp + 0x10]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
inc eax
push eax
push esi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x46bce7
mov ecx, dword [esp + 0x1c]
push esi
mov edx, dword [ecx + 8]
push edx
call fcn.005cf47a
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x46bcad
pop edi
push esi
call fcn.005d14a1
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x46c040
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x46c1b8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46c197
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x46c096
mov eax, 0x104
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.005d1478
mov esi, eax
add esp, 4
test esi, esi
je 0x46c1b8
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x46c1af
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46c1af
mov edi, dword [esp + 0x20]
test edi, edi
je 0x46c1af
push ebp
push edi
call fcn.0046c040
add esp, 8
test eax, eax
je 0x46c1a4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x67310c]
test eax, eax
je 0x46c141
test ebp, ebp
je 0x46c141
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x46c1af
jmp 0x46c14d
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x46c1af
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x46c18e
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x46c1af
mov eax, dword [esp + 0x14]
jmp 0x46c0ea
push esi
call fcn.005d14a1
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x46c1af
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.005d14a1
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x46c1d0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
test esi, esi
je 0x46c239
mov eax, dword [esp + 0xc]
test eax, eax
je 0x46c1f9
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x46c239
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.0046c040
add esp, 8
test eax, eax
je 0x46c239
mov eax, dword [0x67310c]
test eax, eax
je 0x46c226
test edi, edi
je 0x46c226
push 0
push edi
push 0
push esi
call eax
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x46c3b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x46c3e6
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x46c3e8
mov esi, dword [ebx]
test esi, esi
je 0x46c473
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x46c418.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x46c418.2
jmp dword [eax*4 + 0x46c47c]
mov edi, 1
jmp case.0x46c418.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x46c418.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x46c418.0
cmp eax, 2
je case.0x46c418.0
cmp eax, 6
je case.0x46c418.0
cmp eax, 7
je case.0x46c418.0
xor edi, edi
jmp case.0x46c418.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x46c46b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x46c6c0
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5e4538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.00470cf0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.00471070
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.00470da0
mov edx, dword [esi + 4]
mov ecx, 0x654998
cmp edx, dword [ecx]
je 0x46c7ac
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00470d70
xor al, al
jmp 0x46c844
mov ecx, edi
call fcn.00471530
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.00470dd0
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x3c]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
test bp, bp
je 0x46c7fa
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.00470dd0
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x30]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x46c821
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.00470dd0
mov ecx, dword [edi + 0x1c]
mov esi, dword [esi + 0x48]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, edi
call fcn.00471530
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
call fcn.00470d70
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x46cd20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e4578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push 0
mov esi, dword [ebx + 0x40]
mov edi, dword [ebx + 0x34]
mov eax, edi
mov ebp, esi
and eax, 0xffff
and ebp, 0xffff
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
lea eax, [eax + ebp + 0x1e]
push eax
mov dword [esp + 0x1c], eax
call fcn.00470cf0
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x65499c]
push 1
mov dword [esp + 0x30], 0
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0xa]
mov word [eax + 4], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0xc]
mov word [edx + 6], cx
mov ecx, dword [esp + 0x20]
mov ax, word [ebx + 0xe]
mov word [ecx + 8], ax
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0x10]
mov word [eax + 0xa], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0x12]
mov word [edx + 0xc], cx
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0xe], eax
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x12], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x1c]
mov dword [edx + 0x16], ecx
mov eax, dword [esp + 0x20]
mov word [eax + 0x1a], si
mov ecx, dword [esp + 0x20]
mov word [ecx + 0x1c], di
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x3c]
mov ecx, ebp
mov eax, ecx
lea edi, [edx + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x30]
mov eax, ecx
lea edi, [edx + ebp + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
push edi
push ecx
mov ecx, esi
call fcn.00471fa0
lea ecx, [ebx + 0x2c]
call fcn.00470da0
mov ecx, esi
call fcn.00471530
mov ecx, esi
mov word [ebx + 0x20], ax
call fcn.004722b0
sub eax, edi
lea ecx, [esp + 0x18]
mov dword [ebx + 0x28], eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.00470d70
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x46d770
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, ecx
push edi
push ebp
lea edi, [esi + 0xec]
mov ecx, edi
call fcn.00472b30
test al, al
jne 0x46d791
pop edi
pop esi
pop ebp
ret 4
lea ecx, [esi + 0x78]
call fcn.00471280
cmp eax, 1
jne 0x46d7a6
pop edi
pop esi
xor al, al
pop ebp
ret 4
mov al, byte [esi + 0xe8]
test al, al
je 0x46d7b8
pop edi
pop esi
xor al, al
pop ebp
ret 4
lea ecx, [esi + 0x20]
call fcn.00472330
push ebp
mov ecx, edi
call fcn.00472b50
mov ecx, dword [esi + 0x114]
call fcn.0046cfa0
test al, al
je 0x46d86f
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x46d7ea
pop edi
pop esi
xor al, al
pop ebp
ret 4
mov dword [esi + 0x14], 0x12345678
mov dword [esi + 0x18], 0x23456789
mov dword [esi + 0x1c], 0x34567890
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
jbe 0x46d85b
mov eax, dword [esi + 0xc]
mov cl, byte [edi + eax]
mov eax, dword [esi + 0x14]
mov byte [esp + 0x10], cl
mov ecx, esi
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.004704a0
mov edx, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edx
mov edx, dword [esi + 0x1c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 0x10], al
mov ecx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004704a0
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
inc edi
cmp edi, eax
jb 0x46d808
mov ecx, esi
call fcn.00470220
test al, al
jne 0x46d86f
push 0xffffffffffffff94
mov ecx, esi
call fcn.0046d410
mov eax, dword [esi + 0x114]
mov di, word [eax + 0xe]
test di, di
je 0x46d88d
cmp di, 8
je 0x46d893
push 0xffffffffffffff9b
mov ecx, esi
call fcn.0046d410
cmp di, 8
jne 0x46d8ca
mov al, byte [esi + 4]
test al, al
je 0x46d8a2
lea eax, [esi + 0xcc]
jmp 0x46d8a4
xor eax, eax
push 0x38
push str.1.1.4
lea ecx, [esi + 0x28]
push 0xfffffffffffffff1
push ecx
mov dword [esi + 0x50], eax
call fcn.005a4890
test eax, eax
je 0x46d8ca
cmp eax, 2
je 0x46d8ca
push eax
mov ecx, esi
call fcn.0046d410
mov ecx, dword [esi + 0x114]
mov edx, dword [ecx + 0x18]
mov dword [esi + 0x64], edx
call fcn.0046cfa0
test al, al
je 0x46d8e3
add dword [esi + 0x64], 0xfffffff4
mov eax, dword [esi + 0x114]
pop edi
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x68], 0
mov dword [esi + 0x60], ecx
mov dword [esi + 0x3c], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0xe8], 0xff
pop esi
mov al, 1
pop ebp
ret 4
Function at 0x46e9e0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5e48fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov eax, dword [esp + 0x138]
push ebx
push edi
push eax
lea ecx, [esp + 0xc]
call fcn.005d0e15
push 0x6333c8
lea ecx, [esp + 0xc]
mov dword [esp + 0x13c], 0
call fcn.005ce79a
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.0046e560
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0x148], 1
call fcn.00443836
add esp, 0x10
or edi, 0xffffffff
test eax, eax
je 0x46eb19
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
call fcn.005a0b44
push 0
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 2
call fcn.005a0c07
test eax, eax
jne 0x46ead9
lea edx, [esp + 0x30]
push 0x104
push edx
call fcn.005a1b28
add esp, 8
test eax, eax
je 0x46eac4
push esi
call fcn.005a1aa2
add esp, 4
test eax, eax
jne 0x46eac4
lea eax, [esp + 0x30]
push eax
call fcn.005a1aa2
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 1
call fcn.005a0b81
mov eax, edi
jmp 0x46eb0b
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 1
call fcn.005a0b81
xor eax, eax
jmp 0x46eb0b
lea ecx, [esp + 0x14]
call fcn.005a0e27
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [edx + 0x38]
neg eax
sbb eax, eax
lea ecx, [esp + 0x14]
and al, 0xfe
mov byte [esp + 0x13c], 1
inc eax
mov esi, eax
call fcn.005a0b81
mov eax, esi
cmp eax, edi
pop esi
sete al
test al, al
jne 0x46eb19
xor bl, bl
jmp 0x46eb1b
mov bl, 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], 0
call fcn.005d0da7
test bl, bl
jne 0x46eba6
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.0046e560
mov eax, dword [eax]
mov byte [esp + 0x140], 3
push eax
call fcn.0046e9e0
add esp, 0xc
lea ecx, [esp + 0xc]
test al, al
sete bl
mov byte [esp + 0x138], 0
call fcn.005d0da7
test bl, bl
jne 0x46eb7d
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x46eba6
lea ecx, [esp + 8]
mov dword [esp + 0x138], edi
call fcn.005d0da7
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
add esp, 0x134
ret
lea ecx, [esp + 8]
mov dword [esp + 0x138], edi
call fcn.005d0da7
mov ecx, dword [esp + 0x130]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret
Function at 0x46f370
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
cmp byte [ebx + 0xe8], 1
je 0x46f382
xor al, al
pop ebx
ret 8
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
mov esi, dword [ebx + 0x114]
push ecx
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
push eax
mov eax, dword [esi + 0x14]
push eax
call fcn.005a4fb0
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
jbe 0x46f4cc
push ebp
push edi
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x46f42a
mov ecx, dword [ebx + 0x114]
call fcn.0046cfa0
test al, al
je 0x46f405
mov eax, dword [ebx + 0x64]
xor ebp, ebp
test eax, eax
jbe 0x46f405
mov esi, dword [ebx + 0x70]
mov edi, dword [ebx + 0x1c]
add esi, ebp
and edi, 0xfffd
or edi, 2
mov cl, byte [esi]
push ecx
mov ecx, ebx
call fcn.004701b0
mov edx, edi
mov al, byte [esi]
xor edx, 1
imul edx, edi
sar edx, 8
xor al, dl
inc ebp
mov byte [esi], al
mov eax, dword [ebx + 0x64]
cmp ebp, eax
jb 0x46f3d1
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x70]
push 0
push eax
push ecx
lea ecx, [ebx + 0x78]
call fcn.00471fa0
mov dword [ebx + 0x64], 0
mov edx, dword [ebx + 0x74]
mov dword [ebx + 0x38], edx
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x34], eax
mov ecx, dword [ebx + 0x114]
cmp word [ecx + 0xe], 8
jne 0x46f465
mov esi, dword [ebx + 0x3c]
lea eax, [ebx + 0x28]
push 0
push eax
call fcn.005a5570
test eax, eax
je 0x46f456
cmp eax, 2
je 0x46f456
push eax
mov ecx, ebx
call fcn.0046d410
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x64]
sub edx, esi
add eax, edx
mov dword [ebx + 0x64], eax
jmp 0x46f4bf
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x38]
cmp eax, ecx
jb 0x46f471
mov eax, ecx
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x34]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x38]
mov ebp, dword [ebx + 0x28]
mov edi, dword [ebx + 0x34]
mov esi, dword [ebx + 0x30]
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x2c], edx
mov edx, dword [ebx + 0x3c]
mov dword [ebx + 0x38], ecx
mov ecx, dword [ebx + 0x64]
add ebp, eax
add edi, eax
add esi, eax
add edx, eax
add ecx, eax
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x64], ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
ja 0x46f3b2
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
ret 8