joyce8/EMBER2024-capa huggingface dataset:
Function at 0x554a20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5fad88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov ebx, dword [esp + 0x20]
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x18], edi
mov dword [esi], 0x1b68f5c
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 4], edi
je 0x554ab1
mov ecx, ebx
call fcn.00555380
cmp eax, edi
mov dword [esi + 0x2c], eax
jbe 0x554ab1
push edi
mov ecx, esi
call fcn.00555440
test eax, eax
je 0x554ab1
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebx + 0x28]
mov edx, dword [esi + 0x28]
push eax
push ecx
push edx
call fcn.004aeb10
mov eax, dword [esi + 8]
add esp, 0xc
cmp word [eax], 0x4d42
jne 0x554ab1
mov ecx, dword [eax + 0xa]
mov edx, dword [esi + 0xc]
add ecx, eax
xor eax, eax
mov dword [esi + 0x1c], ecx
mov ax, word [edx + 0xe]
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x555050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fae18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
call fcn.005c5975
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov ecx, edi
mov byte [ebp - 4], 1
mov eax, dword [edi]
call dword [eax + 0x30]
push 0
mov ecx, esi
mov dword [esi + 0x2c], eax
call fcn.00555440
test eax, eax
je 0x555104
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
mov edx, dword [edi]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x34]
mov ecx, dword [esi + 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp eax, ecx
jne 0x55510b
call fcn.005c59b3
mov eax, dword [esi + 8]
cmp word [eax], 0x4d42
jne 0x555110
mov ecx, dword [eax + 0xa]
mov edx, dword [esi + 0xc]
add ecx, eax
xor eax, eax
mov dword [esi + 0x1c], ecx
mov ax, word [edx + 0xe]
mov dword [esi + 0x30], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
call fcn.005c59b3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x556e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5fb14c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
mov dword [esp + 0x20], 0
call fcn.005c5029
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x44]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x38]
push edx
mov ecx, esi
call fcn.0052b290
mov eax, dword [0x1bbfe60]
lea ecx, [esi + 0x19c]
mov dword [ecx], eax
mov edx, dword [0x1bbfe60]
lea edi, [esi + 0x1a4]
mov dword [edi], edx
push 0x1b5bf78
mov byte [esp + 0x1c], 3
mov dword [esi], 0x1b697e8
call fcn.005c543d
push 0
call fcn.004b0e70
push eax
call fcn.004ae022
add esp, 8
call fcn.004ae02f
push 0x1b5bf78
mov ecx, edi
mov dword [esi + 0x1a0], eax
call fcn.005c543d
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], 0xffffffff
call fcn.005c52b4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 0x1c

Function at 0x566280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5fc190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push ecx
lea eax, [esp + 0x30]
mov ebx, 3
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
mov dword [esp + 0x24], ebx
call fcn.005c5029
push ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x28], 4
call fcn.005c5029
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x2c], 5
call fcn.005c5029
mov ecx, esi
mov byte [esp + 0x28], bl
call fcn.005663c0
test al, al
jne 0x566341
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.005c52b4
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 1
call fcn.005c52b4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call fcn.005c52b4
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005c52b4
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x18
ret 0x10
mov eax, dword [esi + 0x24]
mov edx, dword [esp + 0x30]
xor ecx, ecx
push edx
test eax, eax
setne cl
mov dword [esi + 0x30], ecx
mov ecx, esi
mov dword [esi + 0x28], 0
call fcn.00564a30
lea ecx, [esp + 0x24]
mov bl, al
mov byte [esp + 0x1c], 2
call fcn.005c52b4
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 1
call fcn.005c52b4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call fcn.005c52b4
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
call fcn.005c52b4
mov ecx, dword [esp + 0x14]
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 0x10
Function at 0x57baeb
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fe428
push eax
mov al, byte [0x1c1d988]
mov dword fs:[0], esp
sub esp, 0x14
test al, 1
push ebp
push esi
push edi
mov esi, ecx
jne 0x57b97e
mov dl, al
push 0x57bbb0
or dl, 1
mov byte [0x1c1d988], dl
call fcn.004af6da
add esp, 4
mov al, byte [0x1c1d988]
test al, 2
jne 0x57b99f
mov dl, al
push 0x57bba0
or dl, 2
mov byte [0x1c1d988], dl
call fcn.004af6da
add esp, 4
mov eax, dword [0x1bbfe60]
mov dword [esp + 0xc], eax
mov ecx, dword [0x1c1d978]
mov eax, dword [0x1c1d980]
test ecx, ecx
mov dword [esp + 0x28], 0
jne 0x57ba39
test eax, eax
jne 0x57ba39
mov edx, dword [0x1c1d97c]
test edx, edx
jne 0x57ba39
mov edx, dword [0x1c1d984]
test edx, edx
jne 0x57ba39
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, esi
call fcn.005ca16c
mov edx, dword [esi + 0x1c]
mov ebp, dword [0x605880]
push 0x1c1d978
push edx
mov edi, eax
call ebp
mov ecx, dword [edi + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
call ebp
mov edx, dword [0x1c1d97c]
mov ecx, dword [0x1c1d978]
mov eax, dword [0x1c1d980]
mov dword [0x1c1d96c], edx
mov edx, dword [0x1c1d984]
mov dword [0x1c1d968], ecx
mov dword [0x1c1d974], edx
mov edx, dword [esp + 0x14]
mov dword [0x1c1d970], eax
mov dword [0x1c1d974], edx
mov edx, dword [esp + 0x34]
push 6
test edx, edx
je 0x57bacb
mov edx, dword [0x1c1d984]
mov ebp, dword [0x1c1d97c]
sub edx, ebp
sub eax, ecx
push edx
push eax
push 0
push 0
push 0x1c1cd70
mov ecx, esi
call fcn.005ca44d
push 0xa240
lea ecx, [esp + 0x10]
call fcn.005cbdac
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push 0x1bc6ff8
push ecx
call fcn.005c55bd
push 0x1bc6ff4
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x34], 1
call fcn.005c5549
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.005c53ed
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.005c52b4
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
jmp 0x57bb54
mov eax, dword [0x1c1d974]
mov edi, dword [0x1c1d96c]
mov ecx, dword [0x1c1d968]
sub eax, edi
push eax
mov eax, dword [0x1c1d970]
sub eax, ecx
mov ecx, esi
push eax
push 0
push 0
push 0x1c1cd70
call fcn.005ca44d
push 0xa240
lea ecx, [esp + 0x10]
call fcn.005cbdac
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push 0x1bc6ff8
push ecx
call fcn.005c55bd
push 0x1bc6ff0
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x34], 3
call fcn.005c5549
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
call fcn.005c53ed
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 3
call fcn.005c52b4
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x34]
call fcn.005c52b4
mov ecx, esi
call fcn.005a87e0
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
push 3
call fcn.005ca22b
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c52b4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x582d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5feb58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esi], 0x1b6c3e4
mov dword [0x1c1d990], ebx
call fcn.005cd329
mov eax, dword [edi + 0x1a4]
push ebx
mov dword [esi + 4], eax
mov edi, dword [edi + 0x1a0]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0x30], 0
mov dword [esi + 8], edi
call fcn.00582eb0
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005cd39b
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x583670
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5fec38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x14]
push edi
mov eax, dword [esi]
lea edx, [esp + 0x14]
xor ebx, ebx
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x20], ebx
call dword [eax + 0x14c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x34], ebx
call fcn.005c5029
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], 1
cmp byte [eax], 0x40
jne 0x5836fe
mov eax, dword [eax - 8]
lea ecx, [esp + 0x1c]
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.005c10d7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.005c53ed
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 1
call fcn.005c52b4
mov eax, dword [esp + 0x10]
mov al, byte [eax]
cmp al, 0x20
jle 0x583708
mov byte [esp + 0x3c], al
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x130]
mov ebp, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x134]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x24], eax
call dword [edx + 0x164]
test eax, eax
mov eax, dword [esi]
mov ecx, esi
setne byte [esp + 0x3c]
call dword [eax + 0x148]
mov edx, dword [esp + 0x38]
mov cl, byte [esp + 0x3c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov byte [edx + 0x14], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
mov byte [edx + 0x15], bl
mov byte [edx + 0x16], bl
mov byte [edx + 0x17], 1
mov byte [edx + 0x18], bl
mov byte [edx + 0x19], bl
mov byte [edx + 0x1a], bl
mov byte [edx + 0x1b], bl
repne scasb al, byte es:[edi]
not ecx
lea esi, [edx + 0x1c]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x3c], esi
mov esi, edi
mov edi, dword [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x24]
and ecx, 3
mov byte [esp + 0x30], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x20]
mov dword [edx], ebp
mov dword [edx + 4], ecx
lea ecx, [esp + 0x10]
mov dword [edx + 0x10], eax
call fcn.005c52b4
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.005c52b4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x5a5440
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x601338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea edi, [esi + 0xc]
mov dword [esp + 0x24], 0
mov ecx, edi
call fcn.004e23b0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], eax
lea edx, [esp + 0x34]
lea eax, [esp + 0xc]
mov dword [esi + 8], ecx
push edx
push eax
mov ecx, edi
mov dword [esi], 0x1b6f030
call fcn.004e23d0
mov ecx, dword [esp + 0x40]
mov eax, esi
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18
Function at 0x5ab350
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x601c20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebx
call fcn.005c59e1
mov eax, dword [esp + 0x30]
push ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.005c5b93
test eax, eax
jne 0x5ab3be
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005c5ad6
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c52b4
mov eax, 0x65
jmp 0x5ab46e
lea ecx, [esp + 0x10]
call fcn.005c5e8d
mov edi, eax
cmp edi, ebx
jne 0x5ab3f2
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005c5ad6
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c52b4
mov eax, 0x66
jmp 0x5ab46e
push edi
call fcn.005c4ff5
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x5ab426
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005c5ad6
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c52b4
mov eax, 0x64
jmp 0x5ab46e
push edi
push esi
lea ecx, [esp + 0x18]
call fcn.005c5cb0
lea ecx, [esp + 0x10]
call fcn.005c5dae
push edi
push esi
mov ecx, ebp
call fcn.005ab140
push esi
mov edi, eax
call fcn.005c501e
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.005c5ad6
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c52b4
mov eax, edi
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 0x5da6e8
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x602d67
call fcn.004b18b8
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.005cc336
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x1bbfe60]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], 0x1b73a1c
call fcn.005c543d
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.005c543d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x401290
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x401110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esi]
xor eax, eax
and ebp, 7
cmp edx, 5
mov dword [esp + 0xc], ecx
jae 0x401131
pop esi
pop ebp
add esp, 0xc
ret 0xc
mov esi, dword [esp + 0x18]
add esi, 5
lea edx, [ecx + edx - 4]
push ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
push edi
mov edi, edi
mov ecx, dword [esp + 0x14]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x40116f
jmp 0x401160
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40116f
add edi, 1
cmp edi, edx
jb 0x401160
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x10]
cmp edi, edx
jae 0x401285
cmp ecx, 3
jbe 0x4011a5
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x10], eax
je 0x4011e3
cmp cl, 0xff
je 0x4011e3
and ebp, 3
add ebp, ebp
or ebp, 1
add eax, 1
jmp 0x401150
add ecx, 0xffffffff
shl ebp, cl
and ebp, 7
je 0x401188
movzx ecx, byte [ebp + 0x4ca9b8]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x4ca9b0], 0
mov cl, byte [ebx + 4]
je 0x4011cf
test cl, cl
je 0x4011cf
cmp cl, 0xff
jne 0x401188
and ebp, 3
add ebp, ebp
mov dword [esp + 0x10], eax
or ebp, 1
add eax, 1
jmp 0x401150
xor edx, edx
mov dh, cl
movzx ecx, byte [edi + 2]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40120e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x401214
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x401256
movzx esi, byte [ebp + 0x4ca9b8]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x401239
cmp dl, 0xff
jne 0x401252
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, ebx
jmp 0x401200
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
sub dl, 1
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x18]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x401150
cmp ecx, 3
pop edi
pop ebx
jbe 0x40129c
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
pop esi
mov dword [ecx], ebp
pop ebp
add esp, 0xc
ret 0xc
add ecx, 0xffffffff
shl ebp, cl
mov ecx, dword [esp + 0x1c]
pop esi
and ebp, 7
mov dword [ecx], ebp
pop ebp
add esp, 0xc
ret 0xc
Function at 0x4200b9
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x240
mov eax, 0x4b5213
call fcn.00469c08
mov byte [ebp - 0x249], dl
mov edx, ecx
xor ebx, ebx
lea ecx, [ebp - 0x230]
call fcn.00420229
push ecx
lea edx, [ebp - 0x230]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x248]
call 0x421147
pop ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040c768
lea ecx, [ebp - 0x248]
call fcn.004123b1
lea ecx, [ebp - 0x230]
call fcn.00412374
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x420168
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0046d6f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x230]
call fcn.00412374
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
test eax, eax
jne 0x420216
lea ecx, [ebp - 0x230]
call fcn.00412374
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4201da
lea ecx, [ebp - 0x230]
call fcn.00412374
mov edx, eax
lea ecx, [ebp - 0x248]
call fcn.0042003c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.0040c5b7
test al, al
je 0x4201b6
lea ecx, [ebp - 0x248]
call fcn.004123b1
jmp 0x420216
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040c704
lea ecx, [ebp - 0x248]
mov byte [ebp - 0x249], 1
call fcn.004123b1
cmp byte [ebp - 0x249], 0
push ebx
push 0x2000000
push 3
push ebx
push 7
push 2
pop eax
push 4
pop ecx
cmovne eax, ecx
lea ecx, [ebp - 0x230]
push eax
call fcn.00412374
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x420216
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [ebp - 0x230]
call fcn.004123b1
mov al, bl
call fcn.00469bb2
ret
Function at 0x4205e7
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x4b4c5e
call fcn.00469c08
mov esi, ecx
call fcn.0041fc64
test al, al
je 0x420605
mov al, 1
jmp 0x420713
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00420229
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040c5e0
push 2
pop esi
cmp eax, esi
jb 0x420707
push 0
lea ecx, [ebp - 0x28]
call fcn.00412b23
xor ebx, ebx
push 0x5c
pop edi
inc ebx
cmp word [eax], di
jne 0x420649
push ebx
lea ecx, [ebp - 0x28]
call fcn.00412b23
cmp word [eax], di
je 0x42068c
push esi
push 0x4d2abc
lea ecx, [ebp - 0x28]
call fcn.00412374
add eax, esi
push eax
call fcn.00472046
add esp, 0xc
test eax, eax
jne 0x42068a
push eax
lea ecx, [ebp - 0x28]
call fcn.00412b23
movzx eax, word [eax]
cmp eax, 0x41
jb 0x42067c
cmp eax, 0x5a
jbe 0x420685
add eax, 0xffffff9f
cmp ax, 0x19
ja 0x42068a
push 3
pop esi
jmp 0x42068c
xor esi, esi
push esi
push edi
lea ecx, [ebp - 0x28]
call fcn.0040c545
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4206e2
push esi
call fcn.00412b23
xor ecx, ecx
push ecx
mov word [eax], cx
lea ecx, [ebp - 0x28]
call fcn.00412374
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4206c6
call edi
cmp eax, 0xb7
jne 0x420707
push esi
lea ecx, [ebp - 0x28]
call fcn.00412b23
push 0x5c
pop ecx
mov word [eax], cx
lea eax, [esi + 1]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040c545
mov esi, eax
lea ecx, [ebp - 0x28]
cmp esi, 0xffffffff
jne 0x42069e
push 0
call fcn.00412374
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x420709
call edi
cmp eax, 0xb7
je 0x420709
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.004123b1
mov al, bl
call fcn.00469bb2
ret
Function at 0x422427
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x82c
mov eax, 0x4b5555
call fcn.00469c08
mov edi, ecx
mov dword [ebp - 0x834], edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x830]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push eax
push 1
push esi
push ecx
push edx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x830], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x830], esi
jne 0x422478
mov ecx, edi
call fcn.00412607
jmp 0x422573
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0046d6f0
add esp, 0xc
lea ecx, [ebp - 0x828]
call fcn.00412607
xor ecx, ecx
lea eax, [ebp - 0x834]
push eax
push ecx
lea eax, [ebp - 0x82c]
mov dword [ebp - 4], ecx
push eax
push ecx
push ebx
push dword [ebp - 0x830]
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x834], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422536
cmp dword [ebp - 0x82c], 1
je 0x4224e6
cmp dword [ebp - 0x82c], 2
je 0x4224e6
cmp dword [ebp - 0x82c], 7
jne 0x422536
cmp dword [ebp - 0x834], 0x800
jae 0x4224fa
lea esi, [ebp - 0x810]
jmp 0x422508
push dword [ebp - 0x834]
call fcn.0046949c
pop ecx
mov esi, eax
lea eax, [ebp - 0x834]
push eax
push esi
lea eax, [ebp - 0x82c]
push eax
push 0
push ebx
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422536
push esi
lea ecx, [ebp - 0x828]
call fcn.00416cc5
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x42255a
lea eax, [ebp - 0x810]
cmp esi, eax
je 0x42255a
push 2
push esi
call fcn.004690db
pop ecx
pop ecx
lea eax, [ebp - 0x828]
mov ecx, edi
push eax
call fcn.0041119a
lea ecx, [ebp - 0x828]
call fcn.004123b1
mov eax, edi
call fcn.00469bb2
ret