joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a5a0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060d18
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x34]
call fcn.1003def0
test eax, eax
jne 0x1002a5da
xor ebx, ebx
jmp 0x1002a5e4
lea ecx, [esi + 0x34]
call fcn.1003def0
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x34]
call fcn.10007d70
push 0
push 0
push 3
push 0
push 0
push ebx
push dword [eax]
push dword [esi + 0x4c]
call dword [sym.imp.wininet.dll_InternetConnectW]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [esi + 0x50], eax
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002a626
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp dword [esi + 0x50], 0
jne 0x1002a669
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x1002a669
push 0x10063700
lea ecx, [ebp - 0x14]
call fcn.10007d70
push eax
mov dword [ebp - 4], 0
call edi
push eax
lea ecx, [ebp - 0x24]
call fcn.10007d70
push 0x1007469c
lea eax, [ebp - 0x24]
push eax
call fcn.10007d70
push 2
mov ecx, esi
call fcn.10007d70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002a7d0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 0x18]
sub esi, dword [ebx + 0x14]
mov eax, dword [ebp + 8]
add eax, esi
cmp eax, 0xa00000
jle 0x1002a827
push 0xcaa10025
lea ecx, [ebp - 0x18]
call fcn.10007d70
push 0x100731f4
lea eax, [ebp - 0x18]
push eax
call fcn.10007d70
push eax
lea ecx, [ebx + 0x14]
call fcn.10007d70
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x44]
push ecx
push dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x54]
call dword [sym.imp.wininet.dll_InternetReadFile]
test eax, eax
jne 0x1002a889
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1002a889
push 0x10063700
lea ecx, [ebp + 8]
call fcn.10007d70
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.10007d70
push 0x1007469c
lea eax, [ebp - 0x28]
push eax
call fcn.10007d70
mov eax, dword [ebx + 0x44]
add eax, esi
push eax
lea ecx, [ebx + 0x14]
call fcn.10007d70
push 0xa
mov ecx, ebx
call fcn.10007d70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002aa70
Capabilities:
Query remote server for available data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fa38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x54]
mov dword [ebp - 0x10], 0
call dword [sym.imp.wininet.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x1002aaf3
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1002aaf3
push 0x10063700
lea ecx, [ebp - 0x14]
call fcn.10007d70
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.10007d70
push 0x1007469c
lea eax, [ebp - 0x30]
push eax
call fcn.10007d70
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x1002ab25
mov ecx, dword [edi + 0x18]
sub ecx, dword [edi + 0x14]
add ecx, edx
cmp ecx, 0xa00000
jbe 0x1002ab25
push 0xcaa10025
lea ecx, [ebp - 0x20]
call fcn.10007d70
push 0x100731f4
lea eax, [ebp - 0x20]
push eax
call fcn.10007d70
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10032d30
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x34]
call fcn.1003dee0
movzx edi, al
neg edi
sbb edi, edi
push 0xd
mov ecx, esi
and edi, 0x800000
call fcn.10007d70
cmp dword [esi + 0x48], 0
je 0x10032dcc
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 0x34]
call fcn.10007d70
push edi
push 0
push 0
push 0
push dword [eax]
push dword [esi + 0x10]
push dword [esi + 0x48]
call dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
mov edx, dword [ebp - 4]
add edx, 0xfffffff0
mov dword [esi + 0x4c], eax
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10032da0
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp dword [esi + 0x4c], 0
jne 0x10032dc3
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.10007d70
push 0x10073814
lea eax, [ebp - 0x10]
push eax
call fcn.10007d70
push 0xe
mov ecx, esi
call fcn.10007d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10032de0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061948
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x44], 0
je 0x10032e29
push 0xcaa10023
lea ecx, [ebp - 0x1c]
call fcn.10007d70
push 0x10073144
lea eax, [ebp - 0x1c]
push eax
call fcn.10007d70
movzx eax, byte [esi + 0x41]
neg eax
sbb eax, eax
and eax, 0x10000000
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.winhttp.dll_WinHttpOpen]
mov dword [esi + 0x44], eax
test eax, eax
jne 0x10032e7e
push 0x10063700
lea ecx, [ebp - 0x10]
call fcn.10007d70
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10007d70
push 0x1007469c
lea eax, [ebp - 0x2c]
push eax
call fcn.10007d70
push 1
mov ecx, esi
call fcn.10007d70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10032ea0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060c88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov edi, dword [eax + 0x18]
sub edi, dword [eax + 0x14]
mov edx, dword [ebp + 8]
lea ebx, [eax + 0x14]
add edx, edi
mov dword [ebp - 0x18], edi
cmp edx, 0xa00000
jle 0x10032f01
push 0xcaa10025
lea ecx, [ebp - 0x28]
call fcn.10007d70
push 0x100731f4
lea eax, [ebp - 0x28]
push eax
call fcn.10007d70
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov esi, ecx
sub esi, eax
mov byte [ebp - 0x10], 0
cmp edx, esi
jbe 0x10032f25
sub eax, ecx
lea esi, [ebp - 0x10]
push esi
add eax, edx
push eax
push ecx
mov ecx, ebx
call fcn.10007d70
jmp 0x10032f46
jae 0x10032f46
lea esi, [edx + eax]
cmp esi, ecx
je 0x10032f46
mov edi, ecx
sub edi, ecx
push edi
push ecx
push esi
call fcn.10007d70
lea eax, [edi + esi]
mov edi, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 0x4c]
mov dword [ebp - 0x14], 0
call dword [sym.imp.winhttp.dll_WinHttpReadData]
test eax, eax
jne 0x10032f9b
push 0x10063700
lea ecx, [ebp + 8]
call fcn.10007d70
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.10007d70
push 0x1007469c
lea eax, [ebp - 0x38]
push eax
call fcn.10007d70
mov eax, dword [ebp - 0x14]
add eax, edi
push eax
mov ecx, ebx
call fcn.10007d70
push 0xa
mov ecx, esi
call fcn.10007d70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10033280
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060d59
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1007f3e4]
mov ecx, 0x1007f3e4
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
push dword [edi + 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10033389
mov eax, dword [ebp - 0x10]
cmp eax, 0xa00000
jbe 0x1003332c
push 0xcaa10025
lea ecx, [ebp - 0x20]
call fcn.10007d70
push 0x100731f4
lea eax, [ebp - 0x20]
push eax
call fcn.10007d70
shr eax, 1
dec eax
push eax
mov ecx, esi
call fcn.10007d70
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov ecx, dword [esi]
mov edi, eax
test ecx, ecx
je 0x10033367
push dword [ecx - 8]
push ecx
call fcn.10007d70
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1003339e
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x1003339e
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
test edi, edi
jne 0x10033389
push 0x10063700
mov ecx, esi
call fcn.10007d70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.10007d70
int3

Function at 0x10045816
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10080cd4], 0
push esi
push edi
jne 0x1004578c
call fcn.100456f8
test eax, eax
je 0x100457d1
mov eax, dword [0x10080cd4]
cmp eax, 1
jne 0x100457ad
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x100457d1
jmp 0x10045813
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10045813
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100457d5
xor eax, eax
jmp 0x10045813
mov eax, dword [esi]
push dword [0x10080cd4]
call edi
mov edi, eax
test edi, edi
je 0x100457f7
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x10045813
lea edi, [esi + 0xff0]
push esi
push dword [0x10080cd4]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x100457fd
mov eax, esi
pop edi
pop esi
ret
jmp 0x10045778

Function at 0x10045bb2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007f45c]
jne 0x10045bbc
repz ret
jmp fcn.100490d1
Function at 0x100051a3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10014d34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0xe8], eax
jne 0x100051d1
cmp dword [esi + 0xec], edi
je 0x100052bb
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
mov dword [esi + 0xe8], eax
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x30]
mov dword [esi + 0xec], edi
mov dword [ebp - 8], edi
call fcn.10008403
mov ebx, dword [esi + 4]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
sete byte [ebp - 0x25]
and dword [ebp - 0x2c], 0
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x10005226
push 0
push dword [esi + 4]
call ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 0x9c]
mov edx, dword [esi + 0xa4]
mov ecx, dword [esi + 0x98]
push 0x10
sub edx, eax
push edx
mov edx, dword [esi + 0xa0]
sub edx, ecx
push edx
push eax
push ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
push 0x491
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x10005270
mov ecx, esi
call fcn.10008403
cmp dword [ebp - 0x2c], 0
je 0x1000527d
push 1
push dword [esi + 4]
call ebx
cmp byte [ebp - 0x25], 0
pop ebx
je 0x1000528d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x100052bb
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xa4]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xa0]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10009710
leave
ret 8

Function at 0x100089c1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0xd
push dword [ecx + 0x38]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
ret 8

Function at 0x10008de5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push edi
mov edi, ecx
cmp eax, 0x1a
jl 0x10008e3e
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x10008e3e
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x18]
call ebx
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push 0x10
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
push eax
push ecx
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.10008403
push 1
push dword [edi + 0x18]
call ebx
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x10009710
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10014d34]
jne 0x1000971a
repz ret
jmp fcn.10009ea3
Function at 0x10007ae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x10007b09
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10007b1f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10007b16
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10007b52
nop
cmp esi, ecx
jae 0x10007b16
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10007b40
cmp esi, ecx
jae 0x10007b16
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10007bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x10007ca1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10007ca1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10007ca1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10007c27
cmp esi, ecx
jae 0x10007ca1
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10007c11
cmp esi, ecx
jae 0x10007ca1
movzx eax, word [esi]
test ax, ax
je 0x10007ca1
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x10007caa
mov eax, dword [ebx]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x10007c6d
push edi
mov ecx, ebx
call fcn.10008120
mov eax, dword [ebx]
push 0
push 0
push edi
push eax
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebx]
cmp edi, dword [ecx - 8]
jg 0x10007caa
mov dword [ecx - 0xc], edi
mov eax, 1
mov ecx, dword [ebx]
mov byte [edi + ecx], 0
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x80070057
call fcn.10008360
int3
Function at 0x10007cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.100430fb
mov ebx, eax
test ebx, ebx
jne 0x10007ce0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x10007dc7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10007dc7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10007dc7
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10007d48
cmp esi, ecx
jae 0x10007dc7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10007d32
cmp esi, ecx
jae 0x10007dc7
movzx eax, word [esi]
test ax, ax
je 0x10007dc7
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x10007dd2
mov ebx, dword [ebp - 4]
mov edx, 1
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x10007d91
push edi
mov ecx, ebx
call fcn.10008120
mov eax, dword [ebx]
push 0
push 0
push edi
push eax
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x10007dd2
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10008360
int3
Function at 0x10007de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor dl, dl
mov dword [ebp - 4], ecx
test eax, eax
je 0x10007eef
test eax, 0xffff0000
jne 0x10007eef
push ebx
push edi
movzx edi, ax
push edi
call fcn.100430fb
mov ebx, eax
test ebx, ebx
je 0x10007eeb
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x10007eeb
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10007eeb
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10007eea
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x10007e79
cmp esi, ecx
jae 0x10007eea
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x10007e63
cmp esi, ecx
jae 0x10007eea
movzx eax, word [esi]
test ax, ax
je 0x10007eea
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x10007ef7
mov ebx, dword [ebp - 4]
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x10007ec2
push edi
mov ecx, ebx
call fcn.10008120
mov edx, dword [ebx]
movzx eax, word [esi]
push 0
push 0
push edi
push edx
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x10007ef7
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
pop esi
pop edi
mov dl, 1
pop ebx
mov al, dl
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10008360
int3
Function at 0x1003baf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b36d8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1022ee34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
push 2
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1003bb63
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x2001f
push 0
push 0x1020a050
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1003bbaf
mov eax, dword [ebp + 0x10]
mov edi, dword [eax - 0xc]
lea esi, [edi + edi]
test esi, esi
js 0x1003bc28
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x1003bb91
push esi
lea ecx, [ebp + 0x10]
call fcn.10008120
mov eax, dword [ebp + 0x10]
lea ecx, [edi + edi]
push ecx
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003bbd0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003bbee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1003bc0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.1017859f
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10008360
int3