joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59070bf0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x59157528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
cmp edi, esi
jne 0x59070c25
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push str.SELECT_Key_FROM_AccountConfig_WHERE_Key___1_OR_Key___2_limit_1
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], esi
call fcn.590a6ec0
mov ecx, dword [esp + 8]
lea eax, [esp + 0x1c]
push esi
push eax
push 0xffffffffffffffff
push ecx
push edi
mov ecx, 0x591ae0e8
mov dword [esp + 0x28], esi
call fcn.59002350
cmp eax, esi
jne 0x59070cb1
mov edx, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push str.SMTPServerConfig
push 1
push edx
mov ecx, 0x591ae0e8
call fcn.590023b0
mov eax, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push str.ActiveSyncServerConfig
push 2
push eax
mov ecx, 0x591ae0e8
call fcn.590023b0
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, 0x591ae0e8
call fcn.590023e0
xor edx, edx
cmp eax, 0x64
mov eax, dword [esp + 0x1c]
mov ecx, 0x591ae0e8
setne dl
push eax
mov esi, edx
call fcn.59002590
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.590a7660
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x59070d40
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x591575ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x591638c0]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 0x28], eax
mov ecx, dword [0x591638c0]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x2c], ecx
mov edx, dword [0x591638c0]
mov byte [esp + 0x14], 1
mov dword [esi + 0x30], edx
mov eax, dword [0x591638c0]
mov byte [esp + 0x14], 2
mov dword [esi + 0x34], eax
mov ecx, dword [0x591638c0]
mov byte [esp + 0x14], 3
mov dword [esi + 0x38], ecx
mov edx, dword [0x591638c0]
mov byte [esp + 0x14], 4
mov dword [esi + 0x3c], edx
mov eax, dword [0x591638c0]
mov byte [esp + 0x14], 5
mov dword [esi + 0x40], eax
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 6
call fcn.590acfe0
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 7
call fcn.590acfe0
lea ecx, [esi + 0x64]
mov byte [esp + 0x14], 8
call fcn.590b4e60
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x14], 9
mov dword [esi + 0x18], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esi], 0x5915ea54
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x74], 1
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x59070e50
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5915762e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x5915ea54
lea edi, [esi + 0x44]
push 0xffffffffffffffff
push 0
mov ecx, edi
mov dword [esp + 0x24], 9
call fcn.590ad050
lea ebx, [esi + 0x54]
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.590ad050
lea ebp, [esi + 0x64]
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.590b4e80
mov ecx, ebp
mov byte [esp + 0x1c], 8
call fcn.590b4e70
mov ecx, ebx
mov byte [esp + 0x1c], 7
call fcn.590acff0
mov ecx, edi
mov byte [esp + 0x1c], 6
call fcn.590acff0
lea ecx, [esi + 0x40]
mov byte [esp + 0x1c], 5
call fcn.590a7660
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], 4
call fcn.590a7660
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 3
call fcn.590a7660
lea ecx, [esi + 0x34]
mov byte [esp + 0x1c], 2
call fcn.590a7660
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 1
call fcn.590a7660
lea ecx, [esi + 0x2c]
mov byte [esp + 0x1c], 0
call fcn.590a7660
lea ecx, [esi + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.590a7660
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x59072e30
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
cmp dword [esi], 0
jne 0x59072e40
pop edi
xor eax, eax
pop esi
ret
cmp dword [esi + 0xc], 0xffffffff
je 0x59072e9f
mov eax, dword [esi + 8]
test eax, eax
je 0x59072e56
push eax
call fcn.59088ea6
add esp, 4
mov eax, dword [esi]
push eax
call fcn.59088f8f
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi + 8], edi
jne 0x59072e6d
pop edi
pop esi
ret
mov ecx, dword [esi]
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
push eax
call fcn.5908aad6
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
call fcn.5908ae5b
add esp, 0x18
mov eax, dword [esi + 8]
pop edi
pop esi
ret
Function at 0x5907cd90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
cmp dword [edx + 4], 1
jne 0x5907cf38
cmp word [edx + 0x18], 0x14
jae 0x5907cdad
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x14]
lea ebx, [eax + 0x10]
mov eax, dword [eax + 0x10]
test eax, eax
mov dword [esp + 4], eax
jne 0x5907cdc5
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov al, byte [ebx + 4]
add ebx, 4
test al, al
mov dword [esp + 0x14], ebx
je 0x5907cf3d
mov ecx, dword [0x591af6dc]
push ebp
mov ebp, dword [esp + 0x14]
xor eax, eax
push esi
push edi
test ecx, ecx
jbe 0x5907ce4f
mov esi, dword [0x591af6d8]
mov edi, dword [edx + 8]
cmp edi, dword [esi]
jne 0x5907ce0f
mov edi, dword [edx + 0x10]
cmp edi, dword [esi + 8]
jne 0x5907ce0f
mov edi, dword [edx + 0x14]
cmp edi, dword [esi + 0xc]
jne 0x5907ce0f
mov edi, dword [edx + 0x1c]
cmp edi, dword [esi + 0x10]
je 0x5907ce1c
inc eax
add esi, 0x220
cmp eax, ecx
jb 0x5907cdf0
jmp 0x5907ce4f
lea edi, [esi + 0x14]
push 0x103
lea ecx, [ebp + 0x2c]
push edi
push ecx
call fcn.5908873d
push 0x103
lea edx, [ebp + 0x234]
push edi
push edx
call fcn.5908873d
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x21c], eax
mov edx, dword [0x591af6cc]
xor eax, eax
test edx, edx
jbe 0x5907ced7
mov ebx, dword [0x591af6c8]
lea esi, [ebp + 8]
mov ecx, 4
mov edi, ebx
xor ebp, ebp
repe cmpsd dword [esi], dword es:[edi]
jne 0x5907ce93
mov ecx, dword [esp + 0x18]
mov edi, dword [ebx + 0x10]
mov esi, dword [ecx + 0x10]
cmp esi, edi
jne 0x5907ce93
mov esi, dword [ecx + 0x14]
mov edi, dword [ebx + 0x14]
cmp esi, edi
jne 0x5907ce93
mov ecx, dword [ecx + 0x1c]
mov esi, dword [ebx + 0x18]
cmp ecx, esi
je 0x5907cea4
mov ebp, dword [esp + 0x1c]
inc eax
add ebx, 0x230
cmp eax, edx
jb 0x5907ce61
jmp 0x5907ced3
mov ebp, dword [esp + 0x1c]
lea edx, [ebx + 0x1c]
push 0x103
push edx
lea eax, [ebp + 0x2c]
push eax
call fcn.5908873d
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x224], eax
mov dword [ebp + 0x43c], 5
mov ebx, dword [esp + 0x20]
lea edi, [ebp + 0x234]
push edi
call fcn.5908992e
mov edx, dword [esp + 0x14]
xor cx, cx
mov cl, al
mov esi, 0x102
push edx
push ebx
sub esi, ecx
call fcn.5907cf50
add esp, 0xc
cmp ax, si
ja 0x5907cf04
mov esi, eax
push 0x59191164
call fcn.5908992e
push eax
push 0x59191164
push edi
call fcn.5908c191
and esi, 0xffff
push esi
push ebx
push edi
call fcn.5908c191
add esp, 0x1c
mov dword [ebp + 0x43c], 9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, 0xfffffffe
pop ebx
pop ecx
ret
Function at 0x5907da00
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x220
push ebx
push esi
mov esi, dword [esp + 0x22c]
push edi
mov ax, word [esi + 0x18]
cmp ax, 8
jae 0x5907da27
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x220
ret
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x238]
add eax, 0xfffffffc
cmp ecx, 1
mov word [esi + 0x18], ax
jne 0x5907db28
cmp ax, 5
jae 0x5907da54
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x220
ret
mov cx, word [edi + 4]
add eax, 0xfffffffe
cmp ax, 3
mov word [esi + 0x18], ax
jb 0x5907db44
cmp cx, 0x48
jb 0x5907db44
mov dx, word [edi + 6]
add eax, 0xfffffffe
and ecx, 0xffff
mov word [esi + 0x18], ax
and edx, 0xffff
and eax, 0xffff
lea esi, [ecx + edi - 0x40]
add eax, 8
lea ecx, [edx + ecx - 0x40]
cmp eax, ecx
jge 0x5907daad
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x220
ret
cmp byte [esi], 0
je 0x5907db58
mov eax, dword [esp + 0x23c]
mov ebx, dword [esp + 0x234]
test eax, eax
je 0x5907db12
push edx
push esi
call fcn.5907cf50
mov edi, eax
push 0x59197e10
lea edx, [edi + edi]
push edx
push esi
call fcn.5907d660
add esp, 0x14
cmp eax, 0xffffffff
je 0x5907daf7
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 0x220
ret
cmp edi, 0x103
jbe 0x5907db04
mov edi, 0x103
push edi
lea eax, [ebx + 0x2c]
push esi
push eax
call fcn.5908873d
add esp, 0xc
pop edi
mov dword [ebx + 0x43c], 0xa
pop esi
xor eax, eax
pop ebx
add esp, 0x220
ret
cmp ecx, 2
jne 0x5907dbaa
mov ecx, dword [esp + 0x234]
lea ebx, [ecx + 0x2c]
push ebx
call fcn.5908992e
add esp, 4
test eax, eax
jne 0x5907db51
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x220
ret
mov edx, dword [esi + 8]
test edx, edx
jne 0x5907db67
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
add esp, 0x220
ret
mov ecx, 0x86
xor eax, eax
lea edi, [esp + 0x14]
push 0x103
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x24]
push ebx
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call fcn.5908873d
lea eax, [esp + 0x18]
push eax
call fcn.5907c6d0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x220
ret
Function at 0x5909deb0
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov ax, word [ebp]
push eax
call fcn.5909d7e6
mov cx, word [ebp + 2]
mov word [esp + 0x10], ax
push ecx
call fcn.5909d7e6
sub esp, 0xc
mov word [esp + 0x1e], ax
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov edx, esp
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [edx], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
call fcn.5909d920
mov ecx, dword [0x591b1de0]
mov edx, eax
mov eax, dword [0x591b1dec]
add esp, 0xc
cmp eax, ecx
mov dword [esp + 0x20], edx
jle 0x5909df5a
mov ecx, dword [0x591b1df4]
mov byte [ecx + 0xc], 5
mov edx, dword [0x591b1df4]
mov esi, dword [edx + 0x10]
test esi, esi
je 0x5909df47
mov ecx, dword [0x591b1df4]
lea eax, [esi + 4]
push eax
push ecx
call dword [esi]
mov esi, dword [esi + 0xc]
add esp, 8
test esi, esi
jne 0x5909df30
mov edx, dword [0x591b1df4]
push edx
call fcn.5909dd50
mov edx, dword [esp + 0x24]
add esp, 4
mov esi, dword [0x591b1ddc]
test esi, esi
jne 0x5909df7d
push str.gdb_me_..._n
push 0x5919b9c0
call fcn.59131f3f
add esp, 8
push 0xffffffffffffffff
call fcn.5908cf46
mov edi, dword [0x591b1dec]
mov eax, dword [esi + 0xb4]
mov ecx, dword [0x591b1dd8]
inc edi
mov dword [0x591b1ddc], eax
mov dword [0x591b1dec], edi
mov ebx, dword [ecx + edx*4]
mov ecx, 0x2e
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xa4], edx
mov edx, esi
mov byte [esi + 0x14], 2
mov dword [edx], eax
mov eax, dword [esp + 0x18]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov ecx, dword [ebp + 4]
push ecx
call fcn.5909d7d4
inc eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x40], eax
mov dx, word [ebp + 0xe]
push edx
call fcn.5909d7e6
xor ecx, ecx
mov word [esi + 0x4c], ax
cmp ebx, ecx
mov byte [esi + 0x58], 7
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ecx
je 0x5909e003
mov dword [ebx + 0xa0], esi
mov eax, dword [0x591b1dd8]
mov edx, dword [esp + 0x20]
mov dword [eax + edx*4], esi
mov eax, dword [0x591b1df0]
mov dword [esi + 0xa8], eax
mov dword [esi + 0xac], ecx
cmp dword [0x591b1df4], ecx
jne 0x5909e02e
mov dword [0x591b1df4], esi
mov eax, dword [0x591b1df0]
cmp eax, ecx
je 0x5909e03d
mov dword [eax + 0xac], esi
mov dword [0x591b1df0], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x5909faa0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x5909faad
xor eax, eax
pop esi
ret
mov al, byte [esi + 0x6c]
test al, al
jne 0x5909fab8
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x5909face
push esi
call fcn.5909fb40
add esp, 4
test eax, eax
jne 0x5909face
pop esi
ret
lea eax, [esi + 0x64]
mov dword [esi + 0x68], 0
push eax
push 0
push esi
push 0x5909fb00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0x60], eax
test eax, eax
setne cl
mov eax, ecx
pop esi
ret
Function at 0x5909ff20
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push 0
push str._dev_urandom
call fcn.5908a6ad
mov esi, eax
add esp, 8
test esi, esi
jle 0x5909ff61
push 0xc
push 0x591b2d28
push esi
call fcn.5908ae5b
push 0xc
push 0x591b2d34
push esi
call fcn.5908ae5b
push esi
call fcn.5908a3dd
add esp, 0x1c
pop esi
add esp, 8
ret
lea eax, [esp + 4]
push 0
push eax
call fcn.590a0fc0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.590a14b0
add esp, 0xc
call fcn.590a1410
mov dword [0x591b2d28], eax
call fcn.590a1410
mov dword [0x591b2d2c], eax
call fcn.590a1410
mov dword [0x591b2d30], eax
call fcn.590a1410
mov dword [0x591b2d34], eax
call fcn.590a1410
mov dword [0x591b2d38], eax
call fcn.590a1410
mov dword [0x591b2d3c], eax
pop esi
add esp, 8
ret

Function at 0x5909ffc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dx, word [esp + 0x14]
mov dword [esp], eax
mov ax, word [esp + 0x1c]
push esi
xor esi, esi
mov dword [esp + 8], ecx
mov word [esp + 0xc], dx
mov word [esp + 0xe], ax
xor ecx, ecx
xor edx, edx
xor eax, eax
mov dl, byte [ecx + 0x591b2d34]
shl esi, 8
mov al, byte [esp + edx + 4]
xor edx, edx
mov dl, byte [ecx + 0x591b2d28]
xor eax, edx
xor edx, edx
add eax, esi
mov esi, 0xff100f
div esi
inc ecx
cmp ecx, 0xb
mov esi, edx
jl 0x5909ffec
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x590a0be0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0x59198870
push 0x5919b9c0
call fcn.59131f3f
add esp, 0xc
push 1
call fcn.5908cf46
nop
nop
Function at 0x590a5d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x590a5d6e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x590a5d6e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x590a5d73
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x590a5d59
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x590a5d83
test esi, esi
jne 0x590a5da1
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x590a5d9f
mov byte [eax + esi - 1], 0
jne 0x590a5da8
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x590ab500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x590ab550
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x590ab550
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x590ab555
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x590ab53b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x590ab562
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x590b6260
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x590b62a1
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x590b62a3
mov esi, edi
test esi, esi
je 0x590b6318
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x590b630d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x590b630d
cmp dword [esp + 0x1c], eax
jbe 0x590b62de
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x590b630d
cmp esi, edi
je 0x590b62ff
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x590b6318
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x590b6330
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x590b6395
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x590b6395
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x590b6395
cmp dword [esp + 0x18], eax
jbe 0x590b637b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x590b6399
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x590b6470
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x590b64cf
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x590b64cf
cmp dword [esp + 0xc], 3
jne 0x590b64cf
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x590b64cf
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x590b64cf
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x590b65b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
test esi, esi
push edi
je 0x590b6624
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x590b6624
cmp dword [esp + 0x10], 3
jne 0x590b6624
mov edx, dword [esp + 0x18]
push edx
call fcn.5913e1e0
mov edi, eax
add esp, 4
test edi, edi
je 0x590b6624
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x590b661b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret 8
push edi
call fcn.5913e209
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x590b6630
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x591593df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x591638bc]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x590b669b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x590b669d
mov esi, edi
test esi, esi
je 0x590b6767
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x590b675c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x590b66df
cmp eax, 2
je 0x590b66df
cmp eax, 6
je 0x590b66df
cmp eax, 7
jne 0x590b675c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.5913e1e0
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x590b6742
lea ecx, [esp + 0x14]
call fcn.590a2540
cmp esi, dword [esp + 0x14]
je 0x590b6737
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.5913e209
add esp, 4
jmp 0x590b6779
call fcn.5913e209
add esp, 4
lea ecx, [esp + 0x10]
push 0x591ae140
call fcn.590a2540
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x590b6767
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x590b6779
push eax
lea ecx, [esp + 0x14]
call fcn.590a2540
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.590a18b0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.590a22e0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x590b7220
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [ecx]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x590b7268
lea edx, [esp + 0x10]
or eax, 0x20006
push edx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push 0
push 0
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x590b726a
mov esi, edi
test esi, esi
je 0x590b72aa
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x590b729f
cmp esi, edi
je 0x590b7294
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc
cmp esi, edi
je 0x590b72aa
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x590b7390
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x590b73bc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x590b73bc
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc

Function at 0x590b7470
Capabilities:
Set registry value

Disassembly:
mov edx, dword [ecx]
test edx, edx
je 0x590b74a6
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
test eax, eax
jne 0x590b74a6
mov eax, 1
ret 8
xor eax, eax
ret 8