joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59f910
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, ecx
call fcn.0057f740
mov eax, dword [esi + 0x50]
test eax, eax
je 0x59f932
mov ecx, dword [esi + 0x48]
add eax, eax
add eax, eax
push eax
push 0
push ecx
call fcn.00555bf0
add esp, 0xc
mov edx, dword [esi + 0x38]
mov dword [edx], 0x67452301
mov eax, dword [esi + 0x38]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [esi + 0x38]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [esi + 0x38]
mov dword [edx + 0xc], 0x10325476
mov eax, dword [esi + 0x38]
mov dword [eax + 0x10], 0xc3d2e1f0
pop esi
ret

Function at 0x5a2ef0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
mov ebx, 2
lea esp, [esp]
movzx edx, byte [edi]
mov edx, dword [edx*4 + 0x5eab40]
xor dword [esi], edx
mov edx, dword [edi]
shr edx, 8
mov ebp, dword [esi]
movzx edx, dl
mov edx, dword [edx*4 + 0x5eaf40]
add edx, ebp
mov dword [esi], edx
movzx edx, byte [edi + 2]
mov edx, dword [edx*4 + 0x5eab40]
add dword [ecx], edx
movzx edx, byte [edi + 3]
mov edx, dword [edx*4 + 0x5eaf40]
xor dword [eax], edx
mov ebp, dword [edi]
mov edx, dword [eax]
rol ebp, 8
add ebp, edx
mov dword [edi], ebp
movzx edx, byte [esi]
mov edx, dword [edx*4 + 0x5eab40]
xor dword [ecx], edx
mov edx, dword [esi]
mov ebp, dword [ecx]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x5eaf40]
add edx, ebp
mov dword [ecx], edx
movzx edx, byte [esi + 2]
mov edx, dword [edx*4 + 0x5eab40]
add dword [eax], edx
movzx edx, byte [esi + 3]
mov edx, dword [edx*4 + 0x5eaf40]
xor dword [edi], edx
mov edx, dword [esi]
rol edx, 8
add edx, dword [ecx]
mov dword [esi], edx
movzx edx, byte [ecx]
mov edx, dword [edx*4 + 0x5eab40]
xor dword [eax], edx
mov edx, dword [ecx]
mov ebp, dword [eax]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x5eaf40]
add edx, ebp
mov dword [eax], edx
movzx edx, byte [ecx + 2]
mov edx, dword [edx*4 + 0x5eab40]
add dword [edi], edx
movzx edx, byte [ecx + 3]
mov edx, dword [edx*4 + 0x5eaf40]
xor dword [esi], edx
mov edx, dword [ecx]
rol edx, 8
mov dword [ecx], edx
movzx edx, byte [eax]
mov edx, dword [edx*4 + 0x5eab40]
xor dword [edi], edx
mov edx, dword [eax]
mov ebp, dword [edi]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x5eaf40]
add edx, ebp
mov dword [edi], edx
movzx edx, byte [eax + 2]
mov edx, dword [edx*4 + 0x5eab40]
add dword [esi], edx
movzx edx, byte [eax + 3]
mov edx, dword [edx*4 + 0x5eaf40]
xor dword [ecx], edx
mov edx, dword [eax]
rol edx, 8
sub ebx, 1
mov dword [eax], edx
jne 0x5a2f10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5a3030
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov ebx, 2
lea esp, [esp]
movzx edx, byte [esi]
mov edx, dword [edx*4 + 0x5eaf40]
xor dword [edi], edx
movzx edx, byte [esi + 3]
mov edx, dword [edx*4 + 0x5eab40]
sub dword [ecx], edx
movzx edx, byte [esi + 2]
mov edx, dword [edx*4 + 0x5eaf40]
sub dword [eax], edx
mov edx, dword [esi]
mov ebp, dword [eax]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x5eab40]
xor edx, ebp
mov dword [eax], edx
mov edx, dword [esi]
ror edx, 8
mov dword [esi], edx
movzx edx, byte [edi]
mov edx, dword [edx*4 + 0x5eaf40]
xor dword [ecx], edx
movzx edx, byte [edi + 3]
mov edx, dword [edx*4 + 0x5eab40]
sub dword [eax], edx
movzx edx, byte [edi + 2]
mov edx, dword [edx*4 + 0x5eaf40]
sub dword [esi], edx
mov edx, dword [edi]
mov ebp, dword [esi]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x5eab40]
xor edx, ebp
mov dword [esi], edx
mov edx, dword [edi]
ror edx, 8
mov dword [edi], edx
sub dword [ecx], edx
movzx edx, byte [ecx]
mov edx, dword [edx*4 + 0x5eaf40]
xor dword [eax], edx
movzx edx, byte [ecx + 3]
mov edx, dword [edx*4 + 0x5eab40]
sub dword [esi], edx
movzx edx, byte [ecx + 2]
mov edx, dword [edx*4 + 0x5eaf40]
sub dword [edi], edx
mov edx, dword [ecx]
mov ebp, dword [edi]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x5eab40]
xor edx, ebp
mov dword [edi], edx
mov edx, dword [ecx]
ror edx, 8
mov dword [ecx], edx
mov edx, dword [esi]
sub dword [eax], edx
movzx edx, byte [eax]
mov edx, dword [edx*4 + 0x5eaf40]
xor dword [esi], edx
movzx edx, byte [eax + 3]
mov edx, dword [edx*4 + 0x5eab40]
sub dword [edi], edx
movzx edx, byte [eax + 2]
mov edx, dword [edx*4 + 0x5eaf40]
sub dword [ecx], edx
mov edx, dword [eax]
mov ebp, dword [ecx]
shr edx, 8
movzx edx, dl
mov edx, dword [edx*4 + 0x5eab40]
xor edx, ebp
mov dword [ecx], edx
mov edx, dword [eax]
ror edx, 8
sub ebx, 1
mov dword [eax], edx
jne 0x5a3050
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5a9780
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, ecx
call fcn.0057f740
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5a97a2
mov ecx, dword [esi + 0x38]
add eax, eax
add eax, eax
push eax
push 0
push ecx
call fcn.00555bf0
add esp, 0xc
mov edx, dword [esi + 0x48]
mov dword [edx], 0x67452301
mov eax, dword [esi + 0x48]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [esi + 0x48]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [esi + 0x48]
mov dword [edx + 0xc], 0x10325476
mov eax, dword [esi + 0x48]
mov dword [eax + 0x10], 0xc3d2e1f0
pop esi
ret

Function at 0x5a9c70
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
call fcn.0057f740
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5a9c92
mov ecx, dword [esi + 0x38]
add eax, eax
add eax, eax
push eax
push 0
push ecx
call fcn.00555bf0
add esp, 0xc
mov edx, dword [esi + 0x48]
mov dword [edx], 0x67452301
mov eax, dword [esi + 0x48]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [esi + 0x48]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [esi + 0x48]
mov dword [edx + 0xc], 0x10325476
pop esi
ret
Function at 0x5aa381
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
add ecx, 0xfffffff0
push edi
cmp eax, ecx
jbe 0x5aa394
mov eax, ecx
mov edi, dword [esp + 0x10]
push eax
mov eax, dword [esi + 0xc]
add eax, 0x10
push edi
push eax
call fcn.0054f2c0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push ecx
lea edx, [eax + 0x10]
push edx
push eax
add eax, 0x20
push eax
call fcn.00585e40
add esp, 0x1c
xor dl, dl
xor ebx, ebx
xor eax, eax
jmp 0x5aa3d0
mov ecx, dword [esi + 0xc]
movzx edx, dl
movzx edx, byte [edx + 0x5e6338]
xor byte [ecx + eax], dl
mov edx, dword [esi + 0xc]
add ecx, eax
mov cl, byte [ecx]
movzx ecx, cl
movzx ecx, byte [ecx + 0x5e6338]
xor byte [edx + eax + 1], cl
mov ecx, dword [esi + 0xc]
lea edx, [edx + eax + 1]
mov dl, byte [edx]
movzx edx, dl
movzx edx, byte [edx + 0x5e6338]
xor byte [ecx + eax + 2], dl
mov edx, dword [esi + 0xc]
lea ecx, [ecx + eax + 2]
mov cl, byte [ecx]
movzx ecx, cl
movzx ecx, byte [ecx + 0x5e6338]
xor byte [edx + eax + 3], cl
mov ecx, dword [esi + 0xc]
lea edx, [edx + eax + 3]
mov dl, byte [edx]
movzx edx, dl
movzx edx, byte [edx + 0x5e6338]
xor byte [ecx + eax + 4], dl
mov edx, dword [esi + 0xc]
lea ecx, [ecx + eax + 4]
mov cl, byte [ecx]
movzx ecx, cl
movzx ecx, byte [ecx + 0x5e6338]
xor byte [edx + eax + 5], cl
mov ecx, dword [esi + 0xc]
lea edx, [edx + eax + 5]
mov dl, byte [edx]
movzx edx, dl
movzx edx, byte [edx + 0x5e6338]
xor byte [ecx + eax + 6], dl
mov edx, dword [esi + 0xc]
lea ecx, [ecx + eax + 6]
mov cl, byte [ecx]
movzx ecx, cl
movzx ecx, byte [ecx + 0x5e6338]
xor byte [edx + eax + 7], cl
lea edx, [edx + eax + 7]
mov dl, byte [edx]
add eax, 8
cmp eax, 0x30
jne 0x5aa3d0
add dl, bl
inc ebx
cmp ebx, 0x12
jne 0x5aa3c2
mov edx, dword [esi + 0x1c]
mov dl, byte [edx + 0xf]
xor eax, eax
cmp dword [esi + 8], eax
je 0x5aa4d1
lea ebx, [ebx]
movzx ebx, byte [eax + edi]
mov ecx, dword [esi + 0x1c]
movzx edx, dl
xor ebx, edx
movzx edx, byte [ebx + 0x5e6338]
xor byte [ecx + eax], dl
mov dl, byte [ecx + eax]
add ecx, eax
inc eax
cmp eax, dword [esi + 8]
jne 0x5aa4b0
pop edi
pop esi
pop ebx
ret 4
Function at 0x5b1b47
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
mov eax, dword [esi + 0x3c]
sub eax, dword [esi + 0x88]
push edi
mov dword [esp + 0x10], eax
cmp ebp, eax
lea eax, [esp + 0x1c]
jb 0x5b1b64
lea eax, [esp + 0x10]
mov edi, dword [eax]
mov eax, dword [esi + 0x68]
mov ebx, dword [esp + 0x18]
add eax, dword [esi + 0x88]
push edi
push ebx
push eax
call fcn.005658c0
mov ecx, dword [esi + 0x68]
add ecx, dword [esi + 0x88]
add esp, 0xc
push edi
push ecx
mov ecx, esi
call fcn.00576e40
add dword [esi + 0x88], edi
mov eax, dword [esi + 0x88]
add ebx, edi
sub ebp, edi
cmp eax, dword [esi + 0x3c]
jne 0x5b1bac
mov ecx, esi
call fcn.005b1b00
cmp ebp, dword [esi + 0x3c]
jb 0x5b1c13
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x68]
push edx
push ebx
push eax
call fcn.005658c0
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x68]
add esp, 0xc
push ecx
push edx
mov ecx, esi
call fcn.00576e40
mov eax, dword [esi + 0x3c]
lea ecx, [eax - 1]
add ebx, eax
sub ebp, eax
test ecx, ecx
jl 0x5b1bf2
nop
mov eax, dword [esi + 0x78]
inc byte [eax + ecx]
add eax, ecx
cmp byte [eax], 0
jne 0x5b1bf2
sub ecx, 1
jns 0x5b1be0
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x64]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
push eax
mov eax, dword [esi + 0x78]
push eax
call edx
mov dword [esi + 0x88], 0
cmp ebp, dword [esi + 0x3c]
jae 0x5b1bb1
mov eax, dword [esi + 0x68]
add eax, dword [esi + 0x88]
push ebp
push ebx
push eax
call fcn.005658c0
mov ecx, dword [esi + 0x68]
add ecx, dword [esi + 0x88]
add esp, 0xc
push ebp
push ecx
mov ecx, esi
call fcn.00576e40
add dword [esi + 0x88], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x10006190
Capabilities:
Get graphical window text

Disassembly:
call fcn.10020280
test eax, eax
je 0x100061af
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x10006230
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10006230
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.10021cc5
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10006230
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x10006230
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.100023e0
add esp, 0x10
test eax, eax
je 0x10006230
push esi
call fcn.10021b75
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x10008da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100883e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x18]
push eax
xor ebx, ebx
push ecx
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call fcn.1003ac20
add esp, 0xc
test eax, eax
jne 0x10008df2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push esi
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
jne 0x10008e40
lea edx, [ebp - 0x20]
push 0x10097510
push edx
mov dword [ebp - 0x20], 1
call fcn.1002245f
mov dword [ebp + 8], 0
mov eax, 0x10008e3b
ret
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov edi, 0x100000
jne 0x10008e64
mov eax, dword [ebp - 0x18]
cmp eax, edi
ja 0x10008e64
cmp eax, ebx
mov edi, eax
je 0x10008f78
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], ebx
call fcn.1001cb90
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 2
call fcn.1001cbb0
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x24]
push ebx
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10008f69
mov edx, dword [ebp - 0x34]
push ebx
push edx
lea ecx, [ebp - 0x38]
call fcn.1001cdb0
xor edi, edi
mov al, byte [ebp + edi - 0x14]
mov edx, dword [ebp - 0x34]
mov byte [ebp - 0x28], al
mov ecx, dword [ebp - 0x28]
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.1001cdb0
inc edi
cmp edi, 4
jb 0x10008ea9
xor edi, edi
mov al, byte [ebp + edi - 0x18]
mov edx, dword [ebp - 0x34]
mov byte [ebp - 0x28], al
mov ecx, dword [ebp - 0x28]
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.1001cdb0
inc edi
cmp edi, 4
jb 0x10008ec8
lea ecx, [ebp - 0x48]
call fcn.1001cb90
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x38]
push eax
push ecx
mov byte [ebp - 4], 3
call fcn.10041810
mov ebx, dword [ebp - 0x44]
mov eax, dword [ebp + 0x10]
add esp, 8
lea edx, [ebx + ebx]
cmp edx, eax
jge 0x10008f5d
mov edi, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
jle 0x10008f36
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov al, byte [ecx + esi]
push eax
push str._02X
push edi
call fcn.10022167
add esp, 0xc
add edi, 4
inc esi
cmp esi, ebx
jl 0x10008f17
lea ecx, [ebp - 0x48]
mov dword [ebp + 8], 1
mov byte [ebp - 4], 2
call fcn.1001cba0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.1001cba0
mov esi, dword [ebp - 0x1c]
jmp 0x10008f78
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.1001cba0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.1001cba0
cmp esi, 0xffffffff
je 0x10008f84
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009bf0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1008861b
push eax
mov eax, dword [0x100b0568]
mov dword fs:[0], esp
sub esp, 0x910
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x10009e36
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x519]
mov byte [esp + 0x518], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.OAgent.ini
mov dword [0x100b0568], 1
mov dword [esp + 0xc], ebx
stosb byte es:[edi], al
call fcn.10001090
push eax
lea eax, [esp + 0x1c]
push 0x1009d494
push eax
call fcn.10022115
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x118]
push ecx
push 0x400
push edx
push 0x100b0560
push 0x1008b520
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, ebx
jbe 0x10009ce6
cmp byte [esp + 0x517], bl
jne 0x10009ce6
lea eax, [esp + 0x518]
push 0x400
lea ecx, [esp + 0x11c]
push eax
push ecx
call fcn.1004aa40
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x10009cea
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x10009df4
lea ecx, [esp + 0xc]
call fcn.1001d3d0
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push 0x80000002
lea ecx, [esp + 0x18]
mov dword [esp + 0x92c], ebx
call fcn.1001d540
test eax, eax
je 0x10009d69
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x1008b56c
call fcn.1001d960
cmp eax, ebx
je 0x10009d69
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x10009d5c
mov edx, ecx
push esi
mov esi, eax
lea edi, [esp + 0x51c]
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 0x10009d60
mov dword [esp + 8], ebx
push eax
call fcn.10021cd3
add esp, 4
lea ecx, [esp + 0xc]
call fcn.1001d590
lea ecx, [esp + 0xc]
mov dword [esp + 0x920], 0xffffffff
call fcn.1001d4c0
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x10009df4
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x118]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x11c]
push eax
push 0x100b0560
push 0x1008b56c
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
test eax, eax
jbe 0x10009dec
cmp byte [esp + 0x517], bl
jne 0x10009dec
lea ecx, [esp + 0x518]
push 0x400
lea edx, [esp + 0x11c]
push ecx
push edx
call fcn.1004aa40
add esp, 0xc
jmp 0x10009df0
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x10009e36
cmp eax, 4
jbe 0x10009e36
lea ecx, [esp + 0x518]
test ecx, ecx
je 0x10009e36
cmp dword [esp + 0x518], 1
je 0x10009e36
mov edx, dword [esp + 0x534]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x10009e36
add eax, 0xfffffffc
cmp ecx, eax
ja 0x10009e36
mov eax, dword [esp + 0x520]
mov dword [0x100b0564], eax
mov ecx, dword [esp + 0x918]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x91c
ret
Function at 0x1000f260
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 0x1000f2ae
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000f2ae
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x1000f2b3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x1000f299
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x1000f2c3
test esi, esi
jne 0x1000f2e1
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 0x1000f2df
mov byte [eax + esi - 1], 0
jne 0x1000f2e8
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret

Function at 0x10014a40
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 0x10014a90
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10014a90
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x10014a95
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x10014a7b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x10014aa2
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 0x1001d610
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 0x1001d651
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 0x1001d653
mov esi, edi
test esi, esi
je 0x1001d6c8
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 0x1001d6bd
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x1001d6bd
cmp dword [esp + 0x1c], eax
jbe 0x1001d68e
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 0x1001d6bd
cmp esi, edi
je 0x1001d6af
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 0x1001d6c8
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 0x1001d960
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 0x1001d9d4
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 0x1001d9d4
cmp dword [esp + 0x10], 3
jne 0x1001d9d4
mov edx, dword [esp + 0x18]
push edx
call fcn.10021cc5
mov edi, eax
add esp, 4
test edi, edi
je 0x1001d9d4
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1001d9cb
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.10021cd3
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x1001d9e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10088f8f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x1008b604]
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 0x1001da4b
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 0x1001da4d
mov esi, edi
test esi, esi
je 0x1001db17
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 0x1001db0c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x1001da8f
cmp eax, 2
je 0x1001da8f
cmp eax, 6
je 0x1001da8f
cmp eax, 7
jne 0x1001db0c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.10021cc5
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 0x1001daf2
lea ecx, [esp + 0x14]
call fcn.1000ba80
cmp esi, dword [esp + 0x14]
je 0x1001dae7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.10021cd3
add esp, 4
jmp 0x1001db29
call fcn.10021cd3
add esp, 4
lea ecx, [esp + 0x10]
push 0x100b0560
call fcn.1000ba80
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x1001db17
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1001db29
push eax
lea ecx, [esp + 0x14]
call fcn.1000ba80
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.1000adf0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.1000b820
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