joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ad20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7c89
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x62f490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
call fcn.0040a1e0
xor eax, eax
mov dword [ebp - 4], 0
cmp byte [esi + 0x4e], al
push 4
setne al
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 6
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0x60169d
lea ecx, [edi + 4]
mov byte [edi], 1
call fcn.00404ba0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00577678
mov esp, ebp
pop ebp
ret 4
Function at 0x44f120
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [ecx + 0x2d], 0
jne 0x44f135
cmp byte [ecx + 0x2c], 0
je 0x44f135
mov byte [ecx + 0x2c], 0
jmp fcn.0044f140
ret
Function at 0x44f140
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b94e6
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x62f490]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x62f490]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x2d], 0
jne 0x44f385
cmp byte [esi + 0x2c], 0
jne 0x44f385
lea eax, [esi + 0x34]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [esp + 0x4c], 0x10
mov word [esp + 0x52], ax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
push 0
push dword [esi + 0x7c]
push dword [esi + 0x80]
push dword [esi + 0x28]
call dword [sym.imp.WS2_32.dll_recvfrom]
push dword [esp + 0x54]
mov edi, eax
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [esp + 0x52]
mov ebx, eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov dword [esp + 0x14], eax
test edi, edi
js 0x44f20b
push eax
mov eax, dword [esi + 4]
push ebx
push edi
push dword [esi + 0x80]
push esi
call eax
add esp, 0x14
jmp 0x44f37b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2746
jne 0x44f2bf
lea ecx, [esp + 0x60]
call fcn.00405ee0
mov dword [esp + 0xb8], 0
lea ecx, [esp + 0x34]
mov edx, edi
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], edi
mov byte [esp + 0x68], 0
call fcn.00405780
push eax
mov edx, str.recvfrom_error:
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x20]
call fcn.00405a10
add esp, 4
lea ecx, [esp + 0x6c]
push eax
call fcn.00409840
lea ecx, [esp + 0x1c]
call fcn.00404500
lea ecx, [esp + 0x34]
mov byte [esp + 0xb8], 0
call fcn.00404500
cmp byte [esi + 0x2d], 0
jne 0x44f2b6
cmp dword [esi + 8], 0
je 0x44f2b6
push dword [esp + 0x14]
lea eax, [esp + 0x64]
push ebx
sub esp, 0x24
mov ecx, esp
push eax
call fcn.00406680
mov eax, dword [esi + 8]
push esi
call eax
add esp, 0x30
lea ecx, [esp + 0x60]
jmp 0x44f376
cmp edi, 0x2733
je 0x44f37b
lea ecx, [esp + 0x84]
call fcn.00405ee0
mov dword [esp + 0xb8], 2
lea ecx, [esp + 0x1c]
mov edx, edi
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], edi
mov byte [esp + 0x8c], 1
call fcn.00405780
push eax
mov edx, str.recvfrom_error:
mov byte [esp + 0xbc], 3
lea ecx, [esp + 0x38]
call fcn.00405a10
add esp, 4
lea ecx, [esp + 0x90]
push eax
call fcn.00409840
lea ecx, [esp + 0x34]
call fcn.00404500
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 2
call fcn.00404500
cmp byte [esi + 0x2d], 0
jne 0x44f36f
cmp dword [esi + 0xc], 0
je 0x44f36f
sub esp, 0x24
lea eax, [esp + 0xa8]
mov ecx, esp
push eax
call fcn.00406680
mov eax, dword [esi + 0xc]
push esi
call eax
add esp, 0x28
lea ecx, [esp + 0x84]
call fcn.00406650
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00577678
mov esp, ebp
pop ebp
ret
Function at 0x44f3b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9530
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x62f490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x2d], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
jne 0x44f5a3
lea eax, [edi + 0x4c]
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x14]
mov eax, 2
mov word [ebp - 0x44], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x10]
mov word [ebp - 0x42], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp + 0xc]
push ebx
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x44f59a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x44f492
xor esi, esi
jmp 0x44f450
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x48]
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x44f59a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x44f492
inc esi
cmp esi, 0xa
jl 0x44f450
jmp 0x44f59a
push 0
push 0x60169d
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404ba0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7c]
mov edx, ebx
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x2c], 1
call fcn.00405780
push eax
mov edx, str.sendto_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00405a10
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x44f52e
cmp dword [ebp - 0x14], 0x10
jb 0x44f513
push dword [ebp - 0x28]
call fcn.0044f788
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404560
cmp dword [ebp - 0x50], 0x10
jb 0x44f53f
push dword [ebp - 0x64]
call fcn.0044f788
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jb 0x44f566
push dword [ebp - 0x7c]
call fcn.0044f788
add esp, 4
cmp byte [edi + 0x2d], 0
jne 0x44f589
cmp dword [edi + 0xc], 0
je 0x44f589
sub esp, 0x24
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00406680
mov eax, dword [edi + 0xc]
push edi
call eax
add esp, 0x28
cmp dword [ebp - 0x14], 0x10
jb 0x44f59a
push dword [ebp - 0x28]
call fcn.0044f788
add esp, 4
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00577678
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45eb31
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 0x45eb76
call fcn.004695c5
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45eb76
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x45eb92
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0046975e
mov ebx, eax
test edi, edi
je 0x45eb90
test esi, esi
je 0x45eb90
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 0x464f74
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.004695c5
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 0x464fab
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.00464fcc
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 0x4dfa70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00468a1c
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4dfaac
call fcn.004dfc8f
mov dword [esi + 0xc], 1
jmp 0x4dfab1
call fcn.004dfc8f
cmp dword [esi], 0
je 0x4dfafa
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4dfad4
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0045ebe9
jmp 0x4dfae5
push 0xff
mov ecx, esi
call fcn.0040ce70
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0045cade
jmp 0x4dfb1e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4dfb1e
push dword [esi]
push dword [ebp - 4]
call fcn.0046c120
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4dfbe4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004dfc8f
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4dfc2c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0045ebe9
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0045cade
jmp 0x4dfc37
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046c120
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x542419
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005733c5
call fcn.00469619
cmp dword [eax + 0x14], 0
jne 0x542434
mov ecx, esi
pop esi
jmp fcn.0054181a
pop esi
ret

Function at 0x54ec4d
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00405770
call fcn.00469619
cmp dword [eax + 0x14], 0
jne 0x54ec68
mov ecx, esi
pop esi
jmp fcn.0054e536
pop esi
ret
Function at 0x58f825
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62f490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00581dfe
mov dword [ebp - 0x14], eax
cmp dword [0x63cbe8], esi
jne 0x58f918
push 0x800
push esi
push 0x5f9f20
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x58f8a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x58f9f8
push esi
push esi
push 0x5f9f20
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x58f9f8
push 0x5f9f38
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x58f9f8
push eax
call ebx
push 0x5f9f44
push edi
mov dword [0x63cbe8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5f9f54
push edi
mov dword [0x63cbec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x63cbf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x63cbf8], eax
test eax, eax
je 0x58f915
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x63cbf4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x58f93d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x58f930
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x58f952
push 4
pop eax
jmp 0x58f9fa
cmp dword [ebp - 0x14], esi
je 0x58f952
push dword [0x63cbe8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x58f937
mov eax, dword [0x63cbf4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x58f9b0
cmp dword [0x63cbf8], edi
je 0x58f9b0
push eax
call ebx
push dword [0x63cbf8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x58f9b0
test eax, eax
je 0x58f9b0
call ecx
test eax, eax
je 0x58f9a5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x58f9a5
test byte [ebp - 8], 1
jne 0x58f9b0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x58f9e0
mov eax, dword [0x63cbec]
cmp eax, edi
je 0x58f9dd
push eax
call ebx
test eax, eax
je 0x58f9dd
call eax
mov esi, eax
test esi, esi
je 0x58f9dd
mov eax, dword [0x63cbf0]
cmp eax, edi
je 0x58f9dd
push eax
call ebx
test eax, eax
je 0x58f9dd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x63cbe8]
call ebx
test eax, eax
je 0x58f9f8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x58f9fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00577678
mov esp, ebp
pop ebp
ret
Function at 0x59f69b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x430f30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x426015
lea edi, [esi - 0x25015]
push edi
or ebp, 0xffffffff
jmp 0x430f52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x430f59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x430f48
mov eax, 1
add ebx, ebx
jne 0x430f6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x430f60
jne 0x430f7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430f60
xor ecx, ecx
sub eax, 3
jb 0x430f90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x431002
mov ebp, eax
add ebx, ebx
jne 0x430f9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x430fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x430fcc
inc ecx
add ebx, ebx
jne 0x430fb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x430fad
jne 0x430fc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430fad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x430fec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x430fdd
jmp 0x430f4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x430fec
add edi, ecx
jmp 0x430f4e
pop esi
mov edi, esi
mov ecx, 0x167
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43100a
cmp byte [edi], 2
jne 0x43100a
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 0x43100f
lea edi, [esi + 0x2e000]
mov eax, dword [edi]
or eax, eax
je 0x43107e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3d7f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3d89c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43103c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3d8a4]
or eax, eax
je 0x431078
mov dword [ebx], eax
add ebx, 4
jmp 0x431059
call dword [esi + 0x3d8a0]
mov ebp, dword [esi + 0x3d8a8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4310b2
sub esp, 0xffffff80
jmp 0x404d30
Function at 0x1007592d
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x64
mov eax, 0x1010af12
call fcn.10062c32
push ecx
push 0x1013d750
lea ecx, [ebp - 0x70]
call fcn.1007c0cb
xor ebx, ebx
mov ecx, 0x1013d744
mov dword [ebp - 4], ebx
call fcn.10076078
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
push 0x20119
push 0x1002f7c8
push 0x80000002
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.1007c0cb
mov esi, dword [ebp - 0x5c]
test eax, eax
jne 0x100759f8
push ecx
push 0x104
lea ecx, [ebp - 0x50]
call fcn.1007c0cb
mov byte [ebp - 4], 2
mov edi, ebx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44]
push eax
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100759f0
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x50]
call fcn.1007c0cb
push eax
mov ecx, 0x1013d744
mov byte [ebp - 4], 3
call fcn.1007c0cb
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1006af06
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
sub eax, ecx
sar eax, 1
inc edi
jmp 0x1007599f
lea ecx, [ebp - 0x50]
call fcn.10075865
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
push 0x20219
push 0x1002f7c8
push 0x80000002
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.1007c0cb
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x10075ad9
push ecx
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.1007c0cb
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
mov edi, dword [ebp - 0x50]
sar eax, 1
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x64]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x44]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10075a99
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
push dword [ebp - 0x1c]
call fcn.1007c0cb
push eax
mov ecx, 0x1013d744
mov byte [ebp - 4], 6
call fcn.1007c0cb
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.1006af06
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
inc ebx
jmp 0x10075a46
lea ecx, [ebp - 0x1c]
call fcn.10075865
test edi, edi
je 0x10075aac
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10075ab7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov edi, ebx
mov ebx, 0x80
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x10002784
call fcn.1006d7a9
mov eax, edi
mov edx, ebx
call fcn.10062bca
ret
cmp eax, 2
je 0x10075b11
cmp eax, 3
je 0x10075b11
call fcn.100758f8
mov edi, eax
mov ebx, edx
or edi, dword [ebp - 0x44]
or ebx, 0x112a
cmp dword [ebp - 0x50], 0
je 0x10075b04
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10075ac0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10075ac0
cmp dword [ebp - 0x50], 0
je 0x10075b20
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10075ab9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10075ab9
Function at 0x1007bd0a
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0x2c
push 0x1011e300
call fcn.100622e0
mov dword [ebp - 0x38], edx
mov ebx, ecx
xor edi, edi
test ebx, ebx
jne 0x1007bd2a
push edi
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 4], edi
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x1007bd41
push 0xc1
jmp 0x1007be78
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
cmp dword [ecx], 0x4550
je 0x1007bd58
push 0xbf
jmp 0x1007be78
cmp word [ecx + 0x14], di
je 0x1007be73
mov esi, dword [ecx + 0x78]
lea eax, [esi + ebx]
neg esi
sbb esi, esi
and esi, eax
mov dword [ebp - 0x30], esi
je 0x1007be73
mov eax, dword [ecx + 0x7c]
add eax, esi
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + ebx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x3c], ecx
mov edx, dword [esi + 0x20]
lea eax, [edx + ebx]
neg edx
sbb edx, edx
and edx, eax
mov dword [ebp - 0x34], edx
mov edx, dword [esi + 0x24]
lea eax, [edx + ebx]
neg edx
sbb edx, edx
and edx, eax
mov dword [ebp - 0x2c], edx
mov eax, edi
mov dword [ebp - 0x1c], edi
cmp eax, dword [esi + 0x14]
jae 0x1007be4a
test ecx, ecx
je 0x1007bdcc
mov ecx, dword [ecx + eax*4]
lea eax, [ebx + ecx]
neg ecx
sbb ecx, ecx
and ecx, eax
jmp 0x1007bdce
mov ecx, edi
mov dword [ebp - 0x28], ecx
mov edx, edi
cmp ecx, esi
jbe 0x1007bde3
cmp ecx, dword [ebp - 0x24]
sbb eax, eax
not eax
and ecx, eax
mov dword [ebp - 0x28], ecx
mov eax, edi
mov dword [ebp - 0x20], edi
cmp eax, dword [esi + 0x18]
jae 0x1007be12
mov esi, dword [ebp - 0x2c]
movzx eax, word [esi + eax*2]
cmp eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
jne 0x1007be41
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1007be3d
mov edx, dword [ebp - 0x20]
mov edx, dword [eax + edx*4]
lea eax, [ebx + edx]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x10]
add eax, dword [ebp - 0x1c]
push ecx
push edx
push eax
push dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
call dword [0x1013f49c]
call dword [ebp + 8]
test eax, eax
je 0x1007be4a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x3c]
jmp 0x1007bdb1
mov edx, edi
jmp 0x1007be12
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1007bde8
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
jmp 0x1007be87
push 0xc0
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4