joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003f8a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c670a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [section..data]
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]
push 0
mov dword [ebp - 0x18], esi
call fcn.10075b95
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x1003f946
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.10057cbc
push 0x100f35d0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.10056360
push edi
push esi
call fcn.10075a68
add esp, 8
mov eax, esi
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.10056351
mov esp, ebp
pop ebp
ret 4

Function at 0x10040330
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c67c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.10006160
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.10040260
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x100403a1
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.10057cbc
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x100403ca
push dword [esp + 0xc]
call fcn.100559ce
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100418c0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2f20
call fcn.100567b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x1017b868]
lea eax, [ebp - 0xfa4]
mov dword [ebp - 0x2f1c], eax
lea eax, [ebp - 0x2714]
mov dword [ebp - 0x2f10], eax
lea eax, [ebp - 0x7d4]
mov dword [ebp - 0x2f04], eax
lea eax, [ebp - 0x1f44]
mov dword [ebp - 0x2efc], eax
lea eax, [ebp - 0x2ee4]
mov dword [ebp - 0x2ef4], eax
lea eax, [ebp - 0x1774]
mov dword [ebp - 0x2eec], eax
mov eax, edx
push esi
mov dword [ebp - 0x2f18], 0x3e8
mov dword [ebp - 0x2f0c], 0x3e8
mov dword [ebp - 0x2f00], 0x3e8
lea esi, [eax + 2]
mov dword [ebp - 0x2ef8], 0x3e8
mov dword [ebp - 0x2ef0], 0x3e8
mov dword [ebp - 0x2ee8], 0x3e8
mov dword [ebp - 0x2f20], 0x3c
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10041971
sub eax, esi
lea ecx, [ebp - 0x2f20]
push ecx
sar eax, 1
push SysReAllocString
inc eax
push eax
push edx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
pop esi
test eax, eax
je 0x100419c8
push dword [ebp - 0x2f10]
mov dword [0x1017b880], 1
push 0x3e8
push 0x1017b884
call fcn.10055fa4
movzx eax, word [ebp - 0x2f08]
add esp, 0xc
mov dword [0x1017c054], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret

Function at 0x100419e0
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1017b880], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
jne 0x10041a0a
call fcn.100418c0
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push 0x100e3908
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
je 0x10041ad2
movzx eax, word [0x1017c054]
push esi
push edi
push edi
push 3
push edi
push edi
push eax
push 0x1017b884
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x10041a54
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x10041ad1
push 0
push 0x84000000
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x100e8cd4
push eax
push 0
push str.HTTP_1.0
push dword [ebp - 0x10]
mov dword [ebp - 8], edi
push str.POST
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10041a8f
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x10041acc
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x10041ac0
mov ecx, edx
lea esi, [ecx + 1]
jmp 0x10041aa0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041aa0
sub ecx, esi
push ecx
push edx
push 0x31
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov edi, eax
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
push dword [ebp - 0x18]
call esi
push ebx
call esi
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.10056351
mov esp, ebp
pop ebp
ret 8
Function at 0x10042160
Capabilities:
Check if file exists
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push edi
push edi
push edi
push 0x100e3908
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100422b4
push edi
push 0x84000002
push edi
push edi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x100421bd
mov ebx, dword [ebp - 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
jmp 0x100422b1
push 0xf4240
call fcn.10055db0
push 0xf4240
mov esi, eax
push 0
push esi
mov dword [ebp - 0x14], esi
call fcn.100567e0
add esp, 0x10
mov dword [ebp - 8], edi
lea eax, [ebp - 8]
push eax
push 0xf4240
push esi
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [ebp - 8]
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test edi, edi
je 0x10042283
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
call eax
push 0
push 0
test eax, eax
je 0x10042217
push 3
jmp 0x10042219
push 2
push 0
push 7
push 0x40000000
push ebx
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x10042251
push 2
push 0
push 0
push esi
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push 0xf4240
push esi
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1004227e
mov edi, dword [ebp - 8]
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test edi, edi
jne 0x10042202
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
mov edi, 1
call eax
test eax, eax
je 0x10042296
mov ecx, ebx
call fcn.1003e080
test esi, esi
je 0x100422a3
push esi
call fcn.10055d78
add esp, 4
push dword [ebp - 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ebx, dword [ebp - 0x18]
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10056351
mov esp, ebp
pop ebp
ret 8
Function at 0x10042390
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2888
call fcn.100567b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x64
call fcn.10055db0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100423c7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret
push 0x64
push 0
push esi
call fcn.100567e0
add esp, 0xc
mov dword [ebp - 0x2888], 0x2880
lea eax, [ebp - 0x2888]
push eax
lea eax, [ebp - 0x2884]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1004248d
lea eax, [ebp - 0x2884]
cmp byte [eax + 0x194], 0
jne 0x1004244d
cmp byte [eax + 0x195], 0
jne 0x1004244d
cmp byte [eax + 0x196], 0
jne 0x1004244d
cmp byte [eax + 0x197], 0
jne 0x1004244d
cmp byte [eax + 0x198], 0
jne 0x1004244d
cmp byte [eax + 0x199], 0
jne 0x1004244d
mov eax, dword [eax]
test eax, eax
jne 0x10042400
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push 0x100e4178
push 0x32
push esi
call fcn.10057794
add esp, 0x24
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10056351
mov esp, ebp
pop ebp
ret
Function at 0x10042600
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c14
call fcn.100567b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c14], eax
test eax, eax
jne 0x10042634
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov dword [ebp - 0x2c10], 0
xor esi, esi
lea esp, [esp]
push esi
lea eax, [ebp - 0x104]
push str..PhysicalDrive_d
push eax
call fcn.100427c0
add esp, 0xc
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10042768
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c00], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c0c], xmm0
push 0
push eax
mov dword [ebp - 0x2c04], 0
mov dword [ebp - 0x2c0c], 0
mov dword [ebp - 0x2c08], 0
call fcn.100567e0
add esp, 0xc
lea eax, [ebp - 0x2c00]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c0c]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10042765
push 0x3e7
lea eax, [ebp - 0x4eb]
push 0
push eax
call fcn.100567e0
mov ecx, dword [ebp - 0x2be4]
xor al, al
add esp, 0xc
mov byte [ebp - 0x4ec], al
test ecx, ecx
jle 0x10042741
lea eax, [ebp - 0x4ec]
push eax
push ecx
lea ecx, [ebp - 0x2bfc]
call fcn.100424a0
mov al, byte [ebp - 0x4ec]
movsx eax, al
push eax
call fcn.100583e1
add esp, 4
test eax, eax
jne 0x10042774
movsx eax, byte [ebp - 0x4d9]
push eax
call fcn.100583e1
add esp, 4
test eax, eax
jne 0x10042774
push edi
call ebx
inc esi
cmp esi, 0x10
jl 0x10042650
jmp 0x1004279b
lea eax, [ebp - 0x4ec]
push eax
push 0x3e9
push dword [ebp - 0x2c14]
call fcn.10059a3f
add esp, 0xc
mov dword [ebp - 0x2c10], 1
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c10]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10056351
mov esp, ebp
pop ebp
ret 4
Function at 0x10043160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x100431bf
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x100431c8
test ecx, ecx
je 0x100431bf
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x10043180
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100431e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x1004323f
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x10043248
test ecx, ecx
je 0x1004323f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x10043200
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10045ce0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
xor eax, eax
push ebx
push esi
push edi
jmp 0x10045cf0
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x1017dde0], ecx
inc eax
cmp eax, 0x100
jb 0x10045cf0
cmp eax, 0x800
jae 0x10045dc3
lea esp, [esp]
mov edx, dword [eax*4 + 0x1017d9e0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x1017dde0]
mov dword [eax*4 + 0x1017dde0], edx
inc eax
cmp eax, 0x800
jb 0x10045da0
mov dword [0x1017c094], 0x10046a10
mov dword [ebp - 4], 0x40000
pushfd
pop eax
mov edx, eax
xor eax, dword [ebp - 4]
push eax
popfd
pushfd
pop eax
xor eax, edx
push edx
popfd
and dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10045ee0
mov dword [ebp - 8], 0x200000
pushfd
pop eax
mov edx, eax
xor eax, dword [ebp - 8]
push eax
popfd
pushfd
pop eax
xor eax, edx
push edx
popfd
and dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10045ee0
lea eax, [ebp - 0x20]
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x28]
call fcn.10046ac0
add esp, 0xc
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x18]
mov ecx, 1
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10046ac0
mov edi, dword [ebp - 0x18]
add esp, 0xc
mov esi, edi
xor ecx, ecx
shr esi, 8
mov eax, 0x10175298
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
mov ebx, dword [ebp - 0x24]
cmp dword [eax - 8], ebx
jne 0x10045e7f
mov ebx, dword [ebp - 0x20]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x1c]
jne 0x10045e7f
cmp dword [eax], ebx
je 0x10045e8e
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x10045e68
or ecx, 0xffffffff
sub ecx, 0
je 0x10045ec7
dec ecx
je 0x10045eb6
dec ecx
jne 0x10045ee0
cmp esi, 6
jb 0x10045ee0
jne 0x10045ed6
cmp edi, 0xf
jb 0x10045ee0
mov dword [0x1017c094], 0x10046ab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x10045ee0
jne 0x10045ed6
cmp edi, 6
jb 0x10045ee0
cmp edi, 0xa
jmp 0x10045ed4
cmp esi, 6
jb 0x10045ee0
jne 0x10045ed6
cmp edi, 0x100c
je 0x10045ee0
mov dword [0x1017c094], 0x10046ab0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10046fe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x10047000
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
lea ecx, [ecx]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x10047029
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x10047026
inc esi
cmp esi, edx
jb 0x10047017
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x10047131
cmp ecx, 3
jbe 0x10047042
xor eax, eax
jmp 0x10047080
dec ecx
shl eax, cl
and eax, 7
je 0x10047080
movzx ecx, byte [eax + 0x100e32b8]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x100de368], 0
mov cl, byte [edx + 4]
je 0x1004706a
test cl, cl
je 0x1004706a
cmp cl, 0xff
jne 0x1004707d
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x10047010
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x100470a2
cmp cl, 0xff
je 0x100470a2
mov ecx, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc edi
jmp 0x10047010
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x100470fe
movzx edx, byte [eax + 0x100e32b8]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x100470ea
cmp dl, 0xff
jne 0x100470fe
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x100470c0
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
add edi, 5
mov byte [esi + 2], cl
mov ecx, dword [ebp - 4]
jmp 0x10047010
pop esi
pop ebx
cmp ecx, 3
jbe 0x10047146
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10053d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c74f6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x420]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.100567e0
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x10053e54
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x10053e54
call fcn.10052980
mov esi, eax
jmp 0x10053f41
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10053e77
call fcn.10052980
jmp 0x10053f34
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x10053e95
call fcn.10052980
jmp 0x10053f34
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x10053eb6
mov esi, 0x8007000e
jmp 0x10053f36
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.10052510
jmp 0x10053ee0
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x10053ef7
mov esi, 0x8007000e
jmp 0x10053f36
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x10053f17
call fcn.10052980
jmp 0x10053f34
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.10053c30
mov esi, eax
test edi, edi
je 0x10053f41
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10053f60
lea ecx, [ebp - 0x420]
call fcn.10053380
lea ebx, [ebx]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10056351
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100548f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x10054909
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10054915
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10054910
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10054950
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10054965
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x10054970
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10054970
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1007af40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c76c1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x38]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.10083200
mov dword [edi + 0x38], eax
lea ecx, [edi + 0x40]
mov dword [ebp - 4], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
call fcn.10079f60
mov dword [edi + 0x40], eax
lea ecx, [edi + 0x48]
mov byte [ebp - 4], 1
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
call fcn.1007fa20
mov dword [edi + 0x48], eax
mov eax, edi
mov byte [ebp - 4], 2
lea ecx, [edi + 0x38]
mov dword [eax + 0x50], 0
call fcn.10083270
lea ecx, [edi + 0x40]
call fcn.10083270
mov eax, dword [edi + 0x48]
lea ecx, [edi + 0x48]
push dword [eax + 4]
call fcn.100b0450
mov eax, dword [edi + 0x48]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x48]
mov dword [eax], eax
mov eax, dword [edi + 0x48]
mov dword [eax + 8], eax
mov dword [edi + 0x4c], 0
call fcn.100855a0
mov ecx, edi
mov dword [ecx + 0x28], eax
mov eax, ecx
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