joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013f30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
cmp word [edi + 0x1168], 0
jne 0x10013f4d
mov eax, 0x64
mov word [edi + 0x1168], ax
call fcn.10006060
cmp eax, 0xa000000
jb 0x10014030
mov eax, dword [edi + 0x1b48]
lea esi, [edi + 0x1b48]
test eax, eax
je 0x10013f7a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
push esi
push 0x20019
push 0
push str.SOFTWAREMicrosoftAccessibility
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10014030
mov eax, dword [edi + 0x1b40]
test eax, eax
je 0x10013fb3
push 1
push eax
push 4
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 4
push eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push str.TextScaleFactor
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10014030
mov esi, dword [esp + 8]
lea eax, [esi - 0x64]
cmp eax, 0x96
ja 0x10014030
movzx eax, word [edi + 0x1168]
cmp esi, eax
je 0x10014030
mov eax, dword [edi + 0x1b4c]
mov word [edi + 0x1168], si
mov ecx, dword [edi + 0x1b50]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
cmp eax, ecx
jae 0x10014026
mov edx, dword [eax + 8]
imul edx, esi
mov dword [eax + 0xc], edx
add eax, 0x14
cmp eax, ecx
jae 0x10014026
mov esi, dword [esp + 8]
jmp 0x10014010
pop edi
mov al, 1
pop esi
add esp, 8
ret 4
pop edi
xor al, al
pop esi
add esp, 8
ret 4
Function at 0x1001b030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esi + 0xc], 0x10053498
mov dword [esi + 0x40], 0x10053490
mov dword [esi + 0xd0], 0x10053484
mov dword [esi + 0x34], 1
mov eax, dword [edx + 4]
mov ebx, dword [eax + 8]
add ebx, edx
mov dword [esi + 0x38], 0x10053508
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], ecx
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x5c], eax
movzx eax, byte [ebx + 0x2c]
mov byte [esi + 0x60], al
movzx eax, byte [ebx + 0x2d]
mov byte [esi + 0x61], al
movzx eax, byte [ebx + 0x2e]
mov byte [esi + 0x62], al
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x64], eax
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x68], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x40]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x74], ecx
mov edi, dword [eax + 4]
mov ebp, dword [eax]
movzx eax, byte [eax + 0xc]
mov byte [esi + 0x84], al
mov byte [esi + 0x85], 0
test edi, edi
jle 0x1001b10f
lea eax, [edi + 0x10]
push eax
mov dword [esi + 0x80], eax
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [esi + 0x78], eax
test eax, eax
je 0x1001b10f
push edi
push ebp
mov dword [esi + 0x7c], edi
push eax
mov byte [eax + edi], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1001b127
mov dword [esi + 0x78], 0x10059da0
mov dword [esi + 0x80], 0
mov dword [esi + 0x7c], 0
mov edi, dword [ebx + 0x58]
mov al, byte [ebx + 0x60]
mov ebp, dword [ebx + 0x54]
mov byte [esi + 0x94], al
mov byte [esi + 0x95], 0
test edi, edi
jle 0x1001b175
lea eax, [edi + 0x10]
push eax
mov dword [esi + 0x90], eax
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [esi + 0x88], eax
test eax, eax
je 0x1001b175
push edi
push ebp
mov dword [esi + 0x8c], edi
push eax
mov byte [eax + edi], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1001b193
mov dword [esi + 0x88], 0x10059da0
mov dword [esi + 0x90], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x98], 0x10059da0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov word [esi + 0xa4], 0x100
mov dword [esi + 0xa8], 0x10059da0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov word [esi + 0xb4], 0xff
push ecx
push dword [esp + 0x20]
lea ecx, [esi + 0xd0]
mov byte [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0
call fcn.1000e9e0
mov eax, dword [esi + 0xc]
mov ecx, dword [0x10059df0]
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi], 0
mov eax, dword [eax + 8]
lea ecx, [ecx + 0x1134]
push esi
mov dword [eax + esi + 0xc], 0x10053480
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10039460
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x1001bba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x14], ebx
push esi
push edi
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + ebx + 0x10]
mov dword [edx + 0x30], eax
mov byte [edx + 0x28], 1
mov dword [edx + 0x34], 0
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + ebx + 0x14]
mov dword [edx + 0x40], eax
mov byte [edx + 0x38], 1
mov dword [edx + 0x44], 0
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + ebx + 0x1c]
mov dword [edx + 0x50], eax
mov byte [edx + 0x48], 1
mov dword [edx + 0x54], 0
mov edx, 0xcccccccd
mov eax, dword [ebx + 4]
lea edi, [edx - 1]
mov eax, dword [eax + 8]
mov ecx, dword [eax + ebx + 0x20]
mov ebx, dword [eax + ebx + 0x24]
add ecx, 0x2ac18000
mov eax, ecx
adc ebx, 0xfe624e21
mul edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov esi, edx
mov eax, ecx
mov ecx, 0xcccccccd
mul edi
mov edi, eax
mov dword [esp + 0x10], edx
mov eax, ebx
mul ecx
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0xc]
mov edx, 0xcccccccc
mul edx
add ecx, esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [esp + 0x10]
adc ecx, 0
mov dword [esp + 0x20], edi
xor eax, eax
add ebx, ecx
mov ecx, dword [esp + 0xc]
adc eax, eax
add ecx, ebx
mov ebx, dword [ebp + 8]
adc edx, eax
shrd ecx, edx, 3
shr edx, 3
mov dword [ebx + 0x64], edx
mov byte [ebx + 0x58], 3
mov dword [ebx + 0x60], ecx
mov al, byte [esi + 0x60]
movzx eax, al
cdq
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x68], 0
mov al, byte [esi + 0x70]
movzx eax, al
cdq
mov byte [ebx + 0x78], 0
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 8]
add ecx, esi
test byte [ecx + 0x2c], 4
je 0x1001bd59
mov eax, dword [ecx + 0x30]
cmp word [eax + 0x358], 0xf
jb 0x1001bd1e
mov eax, dword [ecx + 0x34]
mov byte [ebx + 0x88], 1
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x94], 0
mov eax, dword [esi + 4]
push ebx
mov eax, dword [eax + 8]
mov ecx, dword [eax + esi + 0x3c]
mov eax, dword [eax + esi + 0x40]
mov dword [ebx + 0xa0], ecx
mov ecx, esi
mov byte [ebx + 0x98], 3
mov dword [ebx + 0xa4], eax
call fcn.1001d040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx + 0x14]
mov byte [ebx + 0x88], 1
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x94], 0
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + esi + 0x1c]
mov byte [ebx + 0x98], 1
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], 0
push ebx
mov ecx, esi
call fcn.1001d040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002b370
Capabilities:
Hide graphical window

Disassembly:
mov edx, dword [ecx + 0x20]
test edx, edx
jne 0x1002b37c
xor al, al
ret 8
cmp byte [esp + 8], 0
mov al, byte [esp + 4]
jne 0x1002b38c
cmp byte [ecx + 0x5e], al
je 0x1002b3b5
mov byte [ecx + 0x5e], al
test al, al
je 0x1002b3ac
lea eax, [ecx + 0x28]
push eax
lea eax, [ecx + 0x48]
push eax
push 0x40b
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov al, 1
ret 8
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, 1
ret 8

Function at 0x1002c370
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.1000e7d0
test al, al
jne 0x1002c4aa
lea ebx, [esi + 0x14]
mov dword [esp + 0x10], 0
cmp byte [esi + 0x3c], al
je 0x1002c3b3
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1002c47f
mov byte [esi + 0x3c], 0
jmp 0x1002c3df
push 0x1000
lea ecx, [esi + 0x64]
call fcn.10002980
mov ecx, dword [esi + 0x6c]
lea edx, [esp + 0x10]
sub ecx, dword [esi + 0x68]
push ebx
push edx
push ecx
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002c499
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x1002c48c
push ebx
lea ecx, [esi + 0x64]
call fcn.10002980
test eax, eax
je 0x1002c3fb
add dword [esi + 0x68], ebx
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x1002c409
mov eax, dword [esi + 0x68]
mov byte [ecx + eax], 0
mov ecx, esi
call fcn.1002c5c0
mov ebp, dword [esi + 0x68]
mov ebx, ebp
mov edx, dword [esi + 0x7c]
sub ebx, edx
je 0x1002c434
mov ecx, dword [esi + 0x6c]
mov eax, ecx
sub eax, ebp
cmp eax, 0x1000
jae 0x1002c478
sub ecx, ebx
cmp ecx, 0x1000
jb 0x1002c478
test edx, edx
jle 0x1002c462
mov eax, ebp
cmp edx, eax
jae 0x1002c462
mov ecx, dword [esi + 0x64]
sub eax, edx
push eax
mov dword [esi + 0x68], eax
lea eax, [ecx + edx]
push eax
push ecx
call sub.msvcrt.dll_memmove
add esp, 0xc
mov dword [esi + 0x7c], 0
mov ecx, esi
jmp 0x1002c377
test ebp, ebp
jbe 0x1002c471
test edx, edx
je 0x1002c471
mov dword [esi + 0x68], 0
mov dword [esi + 0x7c], 0
mov ecx, esi
jmp 0x1002c377
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
je 0x1002c4aa
mov ecx, esi
call fcn.1002c590
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002c48c
mov byte [esi + 0x3c], 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1002c4b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0xffffffff
jne 0x1002c4c4
cmp dword [esi + 0x40], 0xffffffff
je 0x1002c581
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea edi, [esi + 0x28]
jmp 0x1002c4e0
cmp byte [esi + 0x3d], 0
mov dword [esp + 0x10], 0
je 0x1002c505
push 0
lea eax, [esp + 0x14]
push eax
push edi
push dword [esi + 0x10]
call ebx
test eax, eax
je 0x1002c53c
mov byte [esi + 0x3d], 0
jmp 0x1002c52c
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x80]
sub ecx, edx
mov dword [esp + 0x10], ecx
je 0x1002c56d
mov eax, dword [esi + 0x70]
push edi
add eax, edx
lea edx, [esp + 0x14]
push edx
push ecx
push eax
push dword [esi + 0x10]
call ebp
test eax, eax
je 0x1002c556
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002c549
add dword [esi + 0x80], eax
jmp 0x1002c4e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e4
je 0x1002c57e
mov ecx, esi
call fcn.1002c590
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1002c549
pop edi
pop ebp
pop ebx
mov byte [esi + 0x3d], 1
pop esi
pop ecx
ret
mov dword [esi + 0x74], 0
mov dword [esi + 0x80], 0
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret

Function at 0x1002c690
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.1000e7d0
test al, al
jne 0x1002c7ab
jmp 0x1002c6b0
push 0x1000
lea ecx, [esi + 0x64]
call fcn.10002980
mov ecx, dword [esi + 0x6c]
sub ecx, dword [esi + 0x68]
push 0
push ecx
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
je 0x1002c7a2
cmp ebx, 0xffffffff
je 0x1002c786
push ebx
lea ecx, [esi + 0x64]
call fcn.10002980
test eax, eax
je 0x1002c6f3
add dword [esi + 0x68], ebx
mov ecx, dword [esi + 0x64]
test ecx, ecx
je 0x1002c701
mov eax, dword [esi + 0x68]
mov byte [ecx + eax], 0
cmp byte [esi + 0x4d], 6
mov ecx, esi
jge 0x1002c710
call fcn.1002c8b0
jmp 0x1002c715
call fcn.1002d5e0
mov ebp, dword [esi + 0x68]
mov ebx, ebp
mov edx, dword [esi + 0x7c]
sub ebx, edx
je 0x1002c739
mov ecx, dword [esi + 0x6c]
mov eax, ecx
sub eax, ebp
cmp eax, 0x1000
jae 0x1002c771
sub ecx, ebx
cmp ecx, 0x1000
jb 0x1002c771
test edx, edx
jle 0x1002c75b
mov eax, ebp
cmp edx, eax
jae 0x1002c75b
mov ecx, dword [esi + 0x64]
sub eax, edx
push eax
mov dword [esi + 0x68], eax
lea eax, [ecx + edx]
push eax
push ecx
call sub.msvcrt.dll_memmove
add esp, 0xc
jmp 0x1002c76a
test ebp, ebp
jbe 0x1002c76a
test edx, edx
je 0x1002c76a
mov dword [esi + 0x68], 0
mov dword [esi + 0x7c], 0
mov ecx, esi
call fcn.1000e7d0
test al, al
je 0x1002c6b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1002c7ab
push 1
mov ecx, esi
call fcn.1002c860
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
mov ecx, esi
call fcn.1002c860
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x1002c7c0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x4c], 0
je 0x1002c82f
mov eax, dword [esi + 0x80]
push ebx
mov ebx, dword [esi + 0x70]
push ebp
push edi
mov edi, dword [esi + 0x74]
add ebx, eax
sub edi, eax
cmp dword [esi + 0x10], 0xffffffff
jne 0x1002c7e8
cmp dword [esi + 0x40], 0xffffffff
je 0x1002c851
test edi, edi
je 0x1002c80a
mov ebp, dword [sym.imp.WS2_32.dll_send]
push 0
push edi
push ebx
push dword [esi + 0x40]
call ebp
test eax, eax
je 0x1002c848
cmp eax, 0xffffffff
je 0x1002c831
add ebx, eax
sub edi, eax
jne 0x1002c7f2
mov dword [esi + 0x74], 0
xor eax, eax
mov dword [esi + 0x80], eax
cmp byte [esi + 0x4d], 5
jne 0x1002c82c
test edi, edi
jne 0x1002c82c
push 1
mov ecx, esi
call fcn.1002c860
pop edi
pop ebp
pop ebx
pop esi
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1002c842
push 1
jmp 0x1002c84a
mov byte [esi + 0x4c], 0
jmp 0x1002c851
push 0
mov ecx, esi
call fcn.1002c860
test edi, edi
je 0x1002c80a
mov eax, dword [esi + 0x74]
sub eax, edi
jmp 0x1002c813
Function at 0x1002e4c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
dec edi
test byte [esp + 0x120], 1
je 0x1002e534
mov eax, edi
mov byte [esp + 0x18], 0
cdq
mov dword [esp + 0x40], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], 0
push eax
push 0
push dword [esp + 0x128]
mov byte [esp + 0x3c], 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 0
mov byte [esp + 0x4c], 0
mov dword [esp + 0x58], edx
call fcn.10032d60
mov ecx, ebp
call fcn.10032610
test edi, edi
jle 0x1002e6f0
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x14], eax
mov edx, 0x10
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
cmp eax, ecx
cmovne esi, eax
lea esp, [esp]
dec edi
test esi, esi
je 0x1002e6f0
cmp esi, ebp
je 0x1002e6df
test edi, edi
mov ebx, 0x20
cmovne ebx, edx
cmp dword [esi + 0x40], 0xffffffff
je 0x1002e590
test edi, edi
mov ebx, 0x120
mov eax, 0x110
cmovne ebx, eax
mov edx, dword [ebp + 0xb8]
mov ecx, dword [esi + 0x10]
lea eax, [edx + 1]
mov dword [ebp + 0xb8], eax
mov eax, ebx
or eax, 0x200
cmp ecx, 0xffffffff
lea ecx, [esp + 0x48]
cmove eax, ebx
push eax
push 4
push 1
push 0x66
push edx
call fcn.1002bb20
movzx eax, word [esi + 0x358]
lea ecx, [esp + 0x18]
cdq
mov dword [esp + 0x78], eax
movzx eax, word [esi + 0x35a]
mov dword [esp + 0x7c], edx
cdq
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x128]
mov dword [esp + 0x98], eax
mov eax, dword [esi + 0x36c]
push 0
mov dword [esp + 0xac], eax
movzx eax, byte [esi + 0x37c]
push eax
push dword [esi + 0x374]
mov byte [esp + 0x7c], 0
push dword [esi + 0x370]
mov byte [esp + 0x90], 0
mov dword [esp + 0x9c], edx
mov byte [esp + 0xa0], 1
mov dword [esp + 0xac], 0
mov byte [esp + 0xb0], 1
mov dword [esp + 0xbc], 0
mov dword [esp + 0x28], 0x10059da0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov word [esp + 0x34], 0x102
call fcn.10003830
lea eax, [esp + 0x18]
push eax
push 5
lea ecx, [esp + 0x50]
call fcn.10033840
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.msvcrt.dll_free]
cmp eax, 0x10059da0
je 0x1002e698
push eax
call ebx
add esp, 4
lea eax, [esi + 0x390]
push eax
push 0x70
lea ecx, [esp + 0x50]
call fcn.10033840
lea eax, [esi + 0x3a0]
push eax
push 0x71
lea ecx, [esp + 0x50]
call fcn.10033840
lea eax, [esp + 0x48]
mov ecx, ebp
push eax
call fcn.1002d9f0
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1002e6d6
push eax
call ebx
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, 0x10
mov eax, dword [esi]
xor esi, esi
cmp eax, ecx
cmovne esi, eax
test edi, edi
jne 0x1002e560
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0x18
Function at 0x10033ba0
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 8
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
push edi
push 0xf0000040
push 1
mov dword [esi], eax
mov edi, ecx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push str.Microsoft_Base_Cryptographic_Provider_v1.0
mov dword [esi + 0xc], eax
push eax
mov dword [esi + 0x10], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x10033c3a
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x8004
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10033c2e
push 0
push dword [edi + 4]
push dword [edi]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10033c24
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x14
push eax
push esi
push 2
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x100367d0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x4c
lea eax, [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x58]
push esi
push edi
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, dword [esp + 0x64]
mov dl, byte [ebx + 0x30]
test dl, dl
jne 0x100367f7
cmp dword [ebx], 0
jne 0x10036804
mov eax, dword [esp + 0x18]
cmp eax, dword [ebx + 4]
jne 0x10036804
mov cl, 1
jmp 0x10036806
xor cl, cl
mov byte [esp + 0x64], cl
test dl, dl
jne 0x10036814
cmp dword [ebx + 0x10], 0
jne 0x10036821
mov eax, dword [esp + 0x18]
cmp eax, dword [ebx + 0x14]
jne 0x10036821
mov al, 1
jmp 0x10036823
xor al, al
test cl, cl
jne 0x1003682b
test al, al
je 0x1003683f
cmp dword [ebx + 0x20], 0
je 0x1003684e
push 3
push ebp
call dword [sym.imp.USER32.dll_GetAncestor]
cmp eax, dword [ebx + 0x20]
je 0x1003684e
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8
xor eax, eax
mov dword [esp + 0x20], 0x3c
mov ecx, 1
mov word [esp + 0x58], ax
mov dword [esp + 0x14], ecx
test ecx, ecx
lea eax, [ebx + 0x10]
mov edi, ebx
lea edx, [esp + 0x13]
cmove edi, eax
lea eax, [esp + 0x64]
cmove eax, edx
mov dword [esp + 0x1c], eax
mov byte [eax], 0
mov eax, dword [esp + 0x18]
cmp eax, dword [edi + 4]
jne 0x10036976
cmp dword [edi], 0
je 0x1003689e
cmp byte [ebx + 0x30], 0
je 0x10036976
cmp word [esp + 0x58], 0
jne 0x100368fa
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowInfo]
test eax, eax
je 0x10036972
mov eax, dword [esp + 0x44]
test eax, 0x10000000
je 0x100368ee
test eax, eax
js 0x100368ee
test dword [esp + 0x48], 0x8000080
jne 0x100368ee
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x100368ee
mov ecx, dword [esp + 0x14]
mov al, 1
mov byte [esp + 0x60], al
jmp 0x100368fe
mov ecx, dword [esp + 0x14]
xor al, al
mov byte [esp + 0x60], al
jmp 0x100368fe
mov al, byte [esp + 0x60]
cmp byte [edi + 0xc], 0
jne 0x10036948
test al, al
je 0x10036976
cmp dword [edi + 8], 0
je 0x10036948
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp dword [edi + 8], eax
ja 0x10036972
cmp dword [ebx + 0x24], 0
je 0x10036948
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
push esi
push dword [ebx + 0x28]
push dword [ebx + 0x24]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
cmp esi, dword [edi + 8]
jne 0x10036972
test eax, eax
jne 0x10036972
cmp byte [edi + 0xd], 0
mov eax, dword [esp + 0x1c]
mov dword [edi], ebp
mov byte [eax], 1
je 0x10036972
test dword [esp + 0x44], 0x40000000
jne 0x10036972
push ebx
push fcn.100367d0
push ebp
call dword [sym.imp.USER32.dll_EnumChildWindows]
test eax, eax
je 0x100369a0
mov ecx, dword [esp + 0x14]
sub ecx, 1
mov dword [esp + 0x14], ecx
jns 0x10036866
cmp byte [ebx + 0x30], 0
jne 0x1003683f
xor eax, eax
cmp byte [esp + 0x64], al
sete al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret 8
Function at 0x10039070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esi + 0x7c], 1
mov dword [esi + 4], 0x1005618c
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi], 0x10056154
mov dword [esi + 0x14], edi
test edi, edi
je 0x100390bb
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + edi + 0x14]
add ecx, edi
mov eax, dword [eax + 4]
inc dword [eax + ecx + 0x14]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1c], eax
mov al, byte [esp + 0x20]
mov byte [esi + 0x24], al
mov al, byte [esp + 0x18]
mov byte [esi + 0x34], al
mov dword [esi + 0x20], 0
mov byte [esi + 0x25], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov eax, dword [edi + 0xc]
push ebx
mov eax, dword [eax + 8]
movzx eax, byte [eax + edi + 0x8c]
mov byte [esi + 0x35], al
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 4]
mov ecx, dword [eax]
movzx eax, byte [eax + 0xc]
mov dword [esp + 0x24], ecx
mov byte [esi + 0x44], al
mov byte [esi + 0x45], 0
test ebx, ebx
jle 0x10039153
lea eax, [ebx + 0x10]
push eax
mov dword [esi + 0x40], eax
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [esi + 0x38], eax
test eax, eax
je 0x10039153
push ebx
push dword [esp + 0x28]
mov dword [esi + 0x3c], ebx
push eax
mov byte [eax + ebx], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x10039168
mov dword [esi + 0x38], 0x10059da0
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x48], 0x10059da0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov word [esi + 0x54], 0x100
mov dword [esi + 0x58], 0x10059da0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov word [esi + 0x64], 0xff
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 8]
mov ebx, dword [eax + edi + 0x80]
mov edi, dword [eax + edi + 0x7c]
mov word [esi + 0x74], 0xff
test ebx, ebx
jle 0x100391f9
lea eax, [ebx*2 + 0x20]
mov dword [esi + 0x70], eax
add eax, 4
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100391d9
add ecx, 4
mov dword [esi + 0x68], ecx
test ecx, ecx
je 0x100391f9
lea eax, [ebx + ebx]
mov dword [esi + 0x6c], ebx
push eax
xor edx, edx
push edi
push ecx
mov word [eax + ecx], dx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1003920e
mov dword [esi + 0x68], 0x10059da0
mov dword [esi + 0x70], 0
mov dword [esi + 0x6c], 0
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x78], ecx
pop ebx
test ecx, ecx
je 0x10039224
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
inc dword [eax + ecx + 4]
mov eax, dword [esi + 0x14]
pop edi
inc dword [eax + 0x10]
mov eax, esi
pop esi
ret 0x20