joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433560
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x5ffec8
push 1
mov edi, ecx
mov dword [ebp - 4], 0
push 0
push 0x5ffea8
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x4335a4
push esi
push 0x5ffc1c
jmp 0x4335d5
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jns 0x4335bf
push esi
push 0x5ffc8c
jmp 0x4335d5
mov eax, dword [ebp - 4]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jns 0x4335dd
push esi
push 0x5ffcb0
call fcn.00433530
add esp, 8
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4335ea
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4335f7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x433b00
Capabilities:
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x626fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x20], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1c], esi
mov eax, 2
movq qword [ebp - 0x12], xmm0
push 0x600048
mov dword [ebp - 0xa], esi
mov word [ebp - 6], si
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x5a
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetBestInterfaceEx]
test eax, eax
jne 0x433be8
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x433be8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x433be8
push edi
push eax
call fcn.0057adc5
mov edi, eax
add esp, 4
test edi, edi
je 0x433bd6
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x433bcd
mov ecx, dword [ebp - 0x1c]
mov eax, edi
nop dword [eax]
cmp dword [eax + 0x19c], ecx
je 0x433bb0
mov eax, dword [eax]
test eax, eax
jne 0x433ba0
jmp 0x433bcd
push 0x104
push dword [ebp - 0x20]
add eax, 8
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, 1
push edi
call fcn.00576d87
add esp, 4
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e545
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0056e545
mov esp, ebp
pop ebp
ret
Function at 0x433e10
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x626fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x5fff70
push 0x5fff18
mov esi, ecx
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push 0x5fffec
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x433eed
push edi
push 0x828
call fcn.004383d4
mov edi, eax
add esp, 4
test edi, edi
je 0x433eec
push 0x828
push 0
push edi
call fcn.00573e40
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push eax
push 0x826
push edi
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ebx
call dword [ebp - 0x18]
test eax, eax
je 0x433ee1
cmp dword [ebp - 0x14], 0
jbe 0x433ee1
mov eax, dword [edi + 0x10]
test eax, eax
je 0x433ee1
cmp eax, 0xffffffff
je 0x433ee1
lea ecx, [eax + edi]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x433ed3
push 0x28
push edi
call fcn.0056ea19
add esp, 8
pop edi
test ebx, ebx
je 0x433efd
cmp ebx, 0xffffffff
je 0x433efd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e545
mov esp, ebp
pop ebp
ret
Function at 0x433ff0
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b33a0
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x626fe8]
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 esi, ecx
push 0x114
lea eax, [ebp - 0x168]
push 0
push eax
call fcn.00573e40
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x170]
mov dword [ebp - 0x170], 0xf
push eax
lea eax, [esi + 0x7e]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00573e40
add esp, 0xc
mov dword [ebp - 0x54], 0x40
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x434091
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
shrd ecx, eax, 0x14
shr eax, 0x14
mov word [esi + 0x28], cx
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x180]
push 0x114
mov word [esi + 0x2a], ax
lea eax, [ebp - 0x168]
push 0
push eax
call fcn.00573e40
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0xc
mov dword [ebp - 0x168], 0x114
push 0x5fff34
push 0x5ffef8
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x4340f1
lea ecx, [ebp - 0x168]
push ecx
call eax
mov eax, dword [ebp - 0x164]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x160]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x15c]
mov dword [esi + 0x34], eax
call fcn.004059d0
lea ecx, [esi + 0xab]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
call fcn.00433e10
call fcn.00433c00
mov dword [esi + 0x4c], edx
lea ecx, [esi + 0x60]
lea edx, [esi + 0x38]
mov dword [esi + 0x48], eax
call fcn.00433f10
call fcn.00433910
test eax, eax
je 0x434145
or dword [esi + 0x50], 1
call fcn.004339b0
test eax, eax
je 0x434152
or dword [esi + 0x50], 0x20
push 0x5fffd8
push 0x5fff18
call edi
push eax
call ebx
test eax, eax
je 0x43416f
call eax
test eax, eax
je 0x43416f
or dword [esi + 0x50], 0x40
push 0x5ffee8
push 0x5fff18
mov dword [ebp - 0x16c], 0
call edi
push eax
call ebx
mov edi, eax
test edi, edi
je 0x43419e
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x16c], 0
je 0x4341ae
or dword [esi + 0x50], 0x800
call fcn.00433a80
test al, al
je 0x4341be
or dword [esi + 0x50], 0x8000
xor eax, eax
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.0056e545
mov esp, ebp
pop ebp
ret
Function at 0x4341f0
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
mov edi, edx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x434245
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x434250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4342b3
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4342b3
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434280
sub ecx, edx
sar ecx, 1
cmp word [edi + ecx*2 - 2], 0x5c
je 0x4342b3
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4342a0
mov eax, dword [0x600014]
mov dword [edi], eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4342c0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x626fe8]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x1c], ecx
xor edi, edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
xor esi, esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
nop word [eax + eax]
push 0x206
lea eax, [esp + 0x2e]
push 0
push eax
call fcn.00573e40
mov ax, word [esi + 0x600050]
push 0x60006c
mov word [esp + 0x38], ax
lea eax, [esp + 0x38]
push 0x104
push eax
call fcn.0057b0e4
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x43439b
push 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x43439b
mov ecx, dword [esp + 0x14]
cmp ecx, edi
jb 0x43439b
mov eax, dword [esp + 0x10]
ja 0x434381
cmp eax, ebx
jbe 0x43439b
mov ebx, eax
mov edi, ecx
lea eax, [esp + 0x28]
push eax
push 0x104
push dword [esp + 0x24]
call fcn.0057c473
add esp, 0xc
add esi, 2
cmp esi, 0x18
jb 0x434310
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056e545
mov esp, ebp
pop ebp
ret
Function at 0x4343c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6117c8
push 0x574930
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x626fe8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x434401
sub edx, ecx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
call fcn.0057adc5
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x434590
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434432
sub ecx, edx
sar ecx, 1
lea edx, [ecx + 1]
test edx, edx
je 0x43445a
cmp edx, 0x7fffffff
ja 0x43445a
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004338c0
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp word [edi], 0x5c
jne 0x4344c5
cmp word [edi + 2], 0x5c
jne 0x4344c5
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
nop
movzx eax, word [esi]
test ax, ax
je 0x434497
cmp eax, 0x5c
je 0x434497
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x434480
cmp word [esi], 0
je 0x4344a3
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x4344b7
cmp eax, 0x5c
je 0x4344b7
push esi
call ebx
mov esi, eax
jmp 0x4344a0
cmp word [esi], 0
je 0x4344f1
add esi, 2
mov dword [ebp - 0x1c], esi
jmp 0x4344f1
cmp word [edi + 2], 0x3a
jne 0x4344eb
lea esi, [edi + 2]
mov dword [ebp - 0x1c], esi
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x4344eb
cmp eax, 0x5c
jne 0x4344eb
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
movzx eax, word [esi]
test ax, ax
je 0x434542
cmp eax, 0x5c
jne 0x434538
xor eax, eax
mov word [esi], ax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43452c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x434530
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x434530
push edi
jmp 0x434588
test al, 0x10
je 0x434529
mov eax, 0x5c
mov word [esi], ax
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x4344f1
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.00576d87
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00576d87
add esp, 4
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
mov esp, ebp
pop ebp
ret
Function at 0x4345b0
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetExtendedTcpTable]
lea eax, [ebp - 8]
push 0
push 5
push 2
push 1
push eax
push 0
mov word [ebp - 2], cx
mov dword [ebp - 8], 0
call esi
cmp eax, 0x7a
je 0x4345e4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 8]
call fcn.004383d4
mov edi, eax
add esp, 4
test edi, edi
je 0x434612
push 0
push 5
push 2
push 1
lea eax, [ebp - 8]
push eax
push edi
call esi
test eax, eax
je 0x43461a
push edi
call fcn.004383cf
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
push ebx
cmp dword [edi], esi
jbe 0x43463c
lea ebx, [edi + 0xc]
movzx eax, word [ebx]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, word [ebp - 2]
je 0x43464e
inc esi
add ebx, 0x18
cmp esi, dword [edi]
jb 0x434624
push edi
call fcn.004383cf
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + esi*2]
mov esi, dword [edi + eax*8 + 0x18]
push edi
call fcn.004383cf
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x434740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x626fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x414]
mov esi, ecx
push 0
push eax
call fcn.00573e40
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00573e40
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00573e40
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0xffffffffffffffff
push 0x6372bc
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0057c95f
push 0x5fb348
push 0x104
push esi
call fcn.0057c473
add esp, 0x20
lea eax, [ebp - 0x620]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x434805
push esi
push dword [ebp - 0x620]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push 0x600014
push 0x104
push esi
call fcn.0057b0e4
lea eax, [ebp - 0x414]
push eax
push 0x104
push esi
call fcn.0057b0e4
push 0x600084
push 0x104
push esi
call fcn.0057b0e4
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0056e545
mov esp, ebp
pop ebp
ret
Function at 0x434850
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x626fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
push eax
push 0x5edb78
push 1
push 0
push 0x5ede98
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x434922
mov eax, dword [ebp - 0x210]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x210]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x5ede48
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x434916
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057c473
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
add esp, 0xc
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e545
mov esp, ebp
pop ebp
ret
Function at 0x435700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov esi, edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x5fe9bc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43576b
mov edx, dword [ebp + 8]
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435737
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
push dword [ebp - 4]
test eax, eax
je 0x435772
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4357d0
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0
push eax
push fcn.004357d0
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
push 2
push 0x6000ac
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x43580a
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x43582e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x435843
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call fcn.0057adc5
push dword [ebp - 8]
mov esi, eax
push ebx
push esi
call fcn.00574370
lea ebx, [esi + 0x8bfe]
add esp, 0x10
xor esi, esi
test dword [0x637380], 0xfffffffc
jbe 0x4358a0
nop
mov eax, 0x2040811
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7f
sub ecx, eax
mov eax, dword [ecx*4 + 0x637384]
sub dword [ebx + esi*4], eax
inc esi
mov eax, dword [0x637380]
shr eax, 2
cmp esi, eax
jl 0x435870
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x435987
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [ebp - 0x14]
call fcn.0057adc5
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
push 0
push ecx
push dword [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x637380]
mov edx, dword [ebp - 0x14]
cmp edx, eax
jne 0x43596b
cmp dword [ebp - 0x10], 0
jne 0x43596b
mov ecx, dword [ebp - 8]
mov esi, ebx
sub edx, 4
jb 0x435931
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x435936
add ecx, 4
add esi, 4
sub edx, 4
jae 0x435920
cmp edx, 0xfffffffc
je 0x435978
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x435963
cmp edx, 0xfffffffd
je 0x435978
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x435963
cmp edx, 0xfffffffe
je 0x435978
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x435963
cmp edx, 0xffffffff
je 0x435978
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x435978
push dword [0x637380]
jmp 0x43596c
push eax
mov edx, ebx
mov ecx, edi
call fcn.004341f0
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x435999
push eax
call fcn.00576d87
jmp 0x435996
push dword [0x637380]
mov edx, ebx
mov ecx, edi
call fcn.004341f0
add esp, 4
test byte [ebp + 0xc], 0x20
je 0x4359b7
push 0x82
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4359d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b33d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x626fe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push fcn.004359d0
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x637990]
mov edx, dword [ecx]
mov dword [ecx], eax
cmp edx, dword [0x637990]
jb 0x435afd
push 2
push 0x600098
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x435afd
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp - 0x14]
mov ebx, eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x435afd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x435afd
push ebx
call fcn.004383d4
add esp, 4
mov ebx, eax
push dword [ebp + 0xc]
push esi
push ebx
call fcn.00574370
mov ecx, dword [0x637990]
lea edx, [ebx + 0x8bfe]
add esp, 0xc
xor esi, esi
test ecx, 0xfffffffc
jbe 0x435ae0
mov eax, 0x2040811
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
lea edx, [ebx + 0x8bfe]
shr eax, 6
imul eax, eax, 0x7f
sub ecx, eax
mov eax, dword [ecx*4 + 0x637384]
sub dword [edx + esi*4], eax
inc esi
mov ecx, dword [0x637990]
mov eax, ecx
shr eax, 2
cmp esi, eax
jl 0x435aa7
push ecx
push edx
push dword [ebp + 8]
call fcn.00574370
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
call fcn.004383cf
add esp, 4
xor eax, eax
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 0x435b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 4]
push eax
push fcn.00435b20
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
push 2
push 0x600100
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x435b53
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x435b77
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x435b8c
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call fcn.0057adc5
push dword [ebp - 8]
mov esi, eax
push edi
push esi
call fcn.00574370
add esi, 0x8bfe
mov ecx, 0x289
mov edi, 0x636f78
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov eax, 0x2040811
mov ecx, esi
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x7f
sub ecx, eax
mov eax, dword [ecx*4 + 0x636f78]
sub dword [esi*4 + 0x637178], eax
inc esi
cmp esi, 0x209
jl 0x435bb7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret