joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006d41f
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x102619f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026e87c]
push esi
push edi
xor esi, esi
mov dword [esp + 8], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
test edi, edi
je 0x1006d406
lea ecx, [esp + 8]
push ecx
push edi
call fcn.1006cc40
add esp, 8
test eax, eax
je 0x1006d406
mov esi, 1
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1006d42e
mov edx, dword [esp + 8]
push edx
push esi
push str.COverlongPathApi::CreateDirectoryW_bChangeToLongPath__d__wstrLongPath__s_
push str.COverlongPathApi
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
add esp, 0x18
test esi, esi
jne 0x1006d43a
mov eax, dword [esp + 0x20]
push eax
push edi
jmp 0x1006d444
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
call fcn.10090bf0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1006d470
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x10261a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026e87c]
push esi
mov dword [esp + 4], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test esi, esi
je 0x1006d4b2
lea ecx, [esp + 4]
push ecx
push esi
call fcn.1006cc40
add esp, 8
test eax, eax
jne 0x1006d4b5
push esi
jmp 0x1006d4ba
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.10090bf0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1006d4f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x10261a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026e87c]
push esi
mov dword [esp + 4], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test esi, esi
je 0x1006d532
lea ecx, [esp + 4]
push ecx
push esi
call fcn.1006cc40
add esp, 8
test eax, eax
jne 0x1006d535
push esi
jmp 0x1006d53a
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.10090bf0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1006e000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10261b87
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [esp + 8], 0
call fcn.1004c780
push eax
lea ecx, [esp + 4]
call fcn.10090450
mov eax, dword [esp]
push 0
push eax
mov dword [esp + 0x2c], 1
call fcn.100b7570
add esp, 8
test eax, eax
jne 0x1006e058
mov ecx, dword [esp]
push eax
push ecx
call fcn.100b83a0
add esp, 8
xor edx, edx
lea eax, [esp + 0xc]
mov dword [esp + 0xe], edx
push eax
mov dword [esp + 0x16], edx
mov word [esp + 0x10], 0
mov dword [esp + 0x1a], edx
mov word [esp + 0x1e], dx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x1026e87c]
mov dword [esp + 4], ecx
mov byte [esp + 0x24], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [esp + 0x12]
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x12]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push str.TMailgateway
lea edx, [esp + 0x18]
push str._s__4d__02d__02d_P__d.txt
push edx
call fcn.10093b70
add esp, 0x1c
lea eax, [esp + 4]
lea ecx, [esp]
push eax
call fcn.100918a0
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1006e0ff
mov ecx, dword [esp]
push ecx
push str.CRunningLogMgr::GetCurLogPath___s_
push str.RunningLog
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
push esi
mov esi, dword [esp + 0x30]
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.100901f0
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.10090bf0
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.10090bf0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x1006e0f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10261b87
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [esp + 8], 0
call fcn.1004c780
push eax
lea ecx, [esp + 4]
call fcn.10090450
mov eax, dword [esp]
push 0
push eax
mov dword [esp + 0x2c], 1
call fcn.100b7570
add esp, 8
test eax, eax
jne 0x1006e058
mov ecx, dword [esp]
push eax
push ecx
call fcn.100b83a0
add esp, 8
xor edx, edx
lea eax, [esp + 0xc]
mov dword [esp + 0xe], edx
push eax
mov dword [esp + 0x16], edx
mov word [esp + 0x10], 0
mov dword [esp + 0x1a], edx
mov word [esp + 0x1e], dx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x1026e87c]
mov dword [esp + 4], ecx
mov byte [esp + 0x24], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [esp + 0x12]
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x12]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push str.TMailgateway
lea edx, [esp + 0x18]
push str._s__4d__02d__02d_P__d.txt
push edx
call fcn.10093b70
add esp, 0x1c
lea eax, [esp + 4]
lea ecx, [esp]
push eax
call fcn.100918a0
mov eax, dword [0x1030ceb0]
test eax, eax
je 0x1006e0ff
mov ecx, dword [esp]
push ecx
push str.CRunningLogMgr::GetCurLogPath___s_
push str.RunningLog
push 0xffffffffffffffff
push 0x1030c61c
call fcn.100a65e0
add esp, 0x14
push esi
mov esi, dword [esp + 0x30]
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.100901f0
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.10090bf0
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.10090bf0
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x100707e0
Capabilities:
Get common file path

Disassembly:
mov cl, byte [0x10309e54]
mov al, 1
sub esp, 0x208
test al, cl
jne 0x10070813
mov dl, cl
push 0x10070870
or dl, al
mov eax, dword [0x1026e87c]
mov byte [0x10309e54], dl
mov dword [0x10309e50], eax
call fcn.10078adb
add esp, 4
mov ecx, dword [0x10309e50]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10070863
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
push edx
push 0x104
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 4]
mov ecx, 0x10309e50
push eax
call fcn.10090e70
mov eax, 0x10309e50
pop edi
add esp, 0x208
ret
mov eax, 0x10309e50
add esp, 0x208
ret
Function at 0x10070b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10261e78
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov eax, dword [ebx]
xor edi, edi
cmp dword [eax - 8], edi
je 0x10070bfe
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x10070bfe
push eax
lea ecx, [esp + 0x24]
call fcn.10090450
mov esi, dword [esp + 0x24]
push ebx
mov ecx, esi
mov dword [esp + 0x1c], edi
call fcn.10090d80
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, edi
jne 0x10070bb2
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx]
push ecx
push edx
push 0x102b9dbc
push esi
call fcn.10093b70
add esp, 0x10
jmp 0x10070bc9
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx]
push eax
push edi
push ecx
push 0x102d1200
push esi
call fcn.10093b70
add esp, 0x14
mov eax, dword [esi]
push eax
call ebp
cmp eax, 0xffffffff
je 0x10070bdc
inc edi
cmp edi, 0x3e8
jb 0x10070b96
xor edx, edx
cmp edi, 0x3e8
setne dl
lea ecx, [esp + 0x20]
mov esi, edx
mov dword [esp + 0x18], 0xffffffff
call fcn.10090bf0
mov eax, esi
jmp 0x10070c00
xor eax, eax
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc

Function at 0x10071460
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov ecx, 0x10309eb0
jmp 0x10071470
push 0xffffffffffffffff
push 0x10261f4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov eax, 0x1e
mov dword [esp + 8], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
lea ecx, [esi + 0x64]
mov byte [esp + 0x14], 3
call fcn.1009e960
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], 0x11
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], 0xa
mov dword [esi + 0xa0], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x100755a0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x102621db
push eax
mov eax, dword [0x10309f64]
mov dword fs:[0], esp
sub esp, 0xe14
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x100757d9
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x61e]
mov word [esp + 0x61c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x416]
mov word [esp + 0x414], bx
rep stosd dword es:[edi], eax
push str.OAgent.ini
mov dword [0x10309f64], 1
mov dword [esp + 0xc], ebx
stosw word es:[edi], ax
call fcn.1004bc30
push eax
lea eax, [esp + 0x41c]
push 0x102ba7a8
push eax
call fcn.10079fd1
add esp, 0x10
lea ecx, [esp + 0x414]
lea edx, [esp + 0x61c]
push ecx
push 0x400
push edx
push 0x102f684c
push 0x1026c4b4
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x1007569a
cmp word [esp + 0xe1a], bx
jne 0x1007569a
lea eax, [esp + 0x14]
push 0x400
lea ecx, [esp + 0x620]
push eax
push ecx
call fcn.100aa930
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x1007569e
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x100757a3
lea ecx, [esp + 0xc]
call fcn.1009faa0
push 0x20019
push 0x1026c4bc
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x18]
mov dword [esp + 0xe30], ebx
call fcn.1009fc10
test eax, eax
je 0x1007571a
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x1026c548
call fcn.100a0030
cmp eax, ebx
je 0x1007571a
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x1007570d
mov edx, ecx
push esi
mov esi, eax
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10075711
mov dword [esp + 8], ebx
push eax
call fcn.1024cbfa
add esp, 4
lea ecx, [esp + 0xc]
call fcn.1009fc60
lea ecx, [esp + 0xc]
mov dword [esp + 0xe24], 0xffffffff
call fcn.1009fb90
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x100757a3
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x61c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x620]
push eax
push 0x102f684c
push 0x1026c548
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x1007579b
cmp word [esp + 0xe1a], bx
jne 0x1007579b
lea ecx, [esp + 0x14]
push 0x400
lea edx, [esp + 0x620]
push ecx
push edx
call fcn.100aa930
add esp, 0xc
jmp 0x1007579f
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x100757d9
cmp eax, 4
jbe 0x100757d9
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x100757d9
cmp dword [esp + 0x14], 1
je 0x100757d9
mov edx, dword [esp + 0x30]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x100757d9
add eax, 0xfffffffc
cmp ecx, eax
ja 0x100757d9
mov eax, dword [esp + 0x1c]
mov dword [0x10309f60], eax
mov ecx, dword [esp + 0xe1c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe20
ret
Function at 0x100763e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x102623db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
push 1
lea ecx, [esp + 0x1c]
lea eax, [esi + 0x2c]
push eax
call fcn.1009ee90
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.100a4db0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0xc], ecx
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.100a4f40
mov edi, dword [esi + 0x1c]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esi + 0x18]
mov dword [esp + 0x14], eax
test edi, edi
jne 0x1007647a
push 0x14
call fcn.1024cbd1
mov edi, eax
add esp, 4
mov dword [esp + 0x34], edi
test edi, edi
mov byte [esp + 0x2c], 2
je 0x1007646d
lea ecx, [edi + 8]
call fcn.10076520
jmp 0x1007646f
xor edi, edi
test edi, edi
mov byte [esp + 0x2c], 1
jne 0x10076486
jmp 0x100764a4
mov eax, dword [esi + 0x24]
mov ecx, dword [edi]
dec eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x24], eax
mov dword [edi + 4], ebp
mov dword [edi], 0
mov ebp, dword [esi + 0x20]
lea edx, [edi + 8]
inc ebp
push 1
push edx
mov dword [esi + 0x20], ebp
call fcn.100768d0
add esp, 8
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [edi + 0xc]
mov dword [edi + 8], eax
call fcn.100a4f40
mov edx, dword [esp + 0x14]
mov dword [edi + 0x10], edx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x100764ca
mov dword [eax], edi
jmp 0x100764cd
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x10]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.100a4f10
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1009eef0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x10076540
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x10262410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.100a4db0
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
call fcn.100a4db0
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.100a4db0
lea eax, [esi + 0x2c]
push 1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 2
call fcn.1009ee90
mov eax, dword [esi + 0x20]
mov byte [esp + 0x40], 3
test eax, eax
jg 0x100765ee
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call fcn.1009eef0
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 1
call fcn.100a4f10
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 0
call fcn.100a4f10
lea ecx, [esp + 4]
mov dword [esp + 0x40], 0xffffffff
call fcn.100a4f10
pop esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
push edi
lea edi, [esi + 0x14]
mov esi, dword [esi + 0x14]
add esi, 8
mov ecx, dword [esi]
lea edx, [esi + 4]
mov dword [esp + 0xc], ecx
push edx
lea ecx, [esp + 0x14]
call fcn.100a4f40
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
call fcn.100a4f40
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
mov ecx, edi
call fcn.10076780
lea ecx, [esp + 0x34]
call fcn.100a4f10
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 2
call fcn.1009eef0
lea eax, [esp + 8]
push esi
push eax
call dword [esp + 0x14]
add esp, 8
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.100a4f10
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 0
call fcn.100a4f10
lea ecx, [esp + 8]
mov dword [esp + 0x44], 0xffffffff
call fcn.100a4f10
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x1008f2c0
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_FindResourceExW]
test eax, eax
je 0x1008f30e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1008f30e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x1008f313
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x1008f2f9
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x1008f323
test esi, esi
jne 0x1008f341
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 0x1008f33f
mov byte [eax + esi - 1], 0
jne 0x1008f348
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret
Function at 0x10094a30
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_FindResourceExW]
test eax, eax
je 0x10094a80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10094a80
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x10094a85
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x10094a6b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x10094a92
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 0x1009fce0
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 0x1009fd21
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1009fd23
mov esi, edi
test esi, esi
je 0x1009fd98
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
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 0x1009fd8d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x1009fd8d
cmp dword [esp + 0x1c], eax
jbe 0x1009fd5e
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 0x1009fd8d
cmp esi, edi
je 0x1009fd7f
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 0x1009fd98
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 0x1009fdb0
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 0x1009fe15
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
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 0x1009fe15
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x1009fe15
cmp dword [esp + 0x18], eax
jbe 0x1009fdfb
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 0x1009fe19
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x1009fef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x1009ff4f
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
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 0x1009ff4f
cmp dword [esp + 0xc], 3
jne 0x1009ff4f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x1009ff4f
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 0x1009ff4f
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 0x100a0030
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 0x100a00a4
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
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 0x100a00a4
cmp dword [esp + 0x10], 3
jne 0x100a00a4
mov edx, dword [esp + 0x18]
push edx
call fcn.1024cbd1
mov edi, eax
add esp, 4
test edi, edi
je 0x100a00a4
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x100a009b
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.1024cbfa
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x100a00b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1026386f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x1026e87c]
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 0x100a011b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x100a011d
mov esi, edi
test esi, esi
je 0x100a01e7
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_RegQueryValueExW]
test eax, eax
jne 0x100a01dc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x100a015f
cmp eax, 2
je 0x100a015f
cmp eax, 6
je 0x100a015f
cmp eax, 7
jne 0x100a01dc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.1024cbd1
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_RegQueryValueExW]
test eax, eax
push ebp
jne 0x100a01c2
lea ecx, [esp + 0x14]
call fcn.10090e70
cmp esi, dword [esp + 0x14]
je 0x100a01b7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.1024cbfa
add esp, 4
jmp 0x100a01f9
call fcn.1024cbfa
add esp, 4
lea ecx, [esp + 0x10]
push 0x102f684c
call fcn.10090e70
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x100a01e7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100a01f9
push eax
lea ecx, [esp + 0x14]
call fcn.10090e70
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.100901f0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.10090bf0
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