joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434590
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 0x600f30
push 1
mov edi, ecx
mov dword [ebp - 4], 0
push 0
push 0x600f10
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x4345d4
push esi
push 0x600cd4
jmp 0x434605
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 0x4345ef
push esi
push 0x600cf8
jmp 0x434605
mov eax, dword [ebp - 4]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jns 0x43460d
push esi
push 0x600c84
call fcn.00434560
add esp, 8
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x43461a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x434627
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 0x434b30
Capabilities:
Reference google public dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x627fe8]
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 0x601038
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 0x434c18
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x434c18
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x434c18
push edi
push eax
call fcn.0057bfb3
mov edi, eax
add esp, 4
test edi, edi
je 0x434c06
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x434bfd
mov ecx, dword [ebp - 0x1c]
mov eax, edi
nop dword [eax]
cmp dword [eax + 0x19c], ecx
je 0x434be0
mov eax, dword [eax]
test eax, eax
jne 0x434bd0
jmp 0x434bfd
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.00577ee7
add esp, 4
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056f596
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0056f596
mov esp, ebp
pop ebp
ret
Function at 0x434e40
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x627fe8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x600fe0
push 0x600f84
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 0x601040
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 0x434f1d
push edi
push 0x828
call fcn.0043942f
mov edi, eax
add esp, 4
test edi, edi
je 0x434f1c
push 0x828
push 0
push edi
call fcn.00574fa0
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 0x434f11
cmp dword [ebp - 0x14], 0
jbe 0x434f11
mov eax, dword [edi + 0x10]
test eax, eax
je 0x434f11
cmp eax, 0xffffffff
je 0x434f11
lea ecx, [eax + edi]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi], al
lea esi, [esi + 1]
test al, al
jne 0x434f03
push 0x28
push edi
call fcn.0056fa47
add esp, 8
pop edi
test ebx, ebx
je 0x434f2d
cmp ebx, 0xffffffff
je 0x434f2d
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.0056f596
mov esp, ebp
pop ebp
ret
Function at 0x435040
Capabilities:
Get hostname
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b44f0
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x627fe8]
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.00574fa0
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.00574fa0
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 0x4350e1
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.00574fa0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0xc
mov dword [ebp - 0x168], 0x114
push 0x600f50
push 0x600f60
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x435141
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.00405c70
lea ecx, [esi + 0xab]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
call fcn.00434e40
call fcn.00434c30
mov dword [esi + 0x4c], edx
lea ecx, [esi + 0x60]
lea edx, [esi + 0x38]
mov dword [esi + 0x48], eax
call fcn.00434f60
call fcn.00434940
test eax, eax
je 0x435195
or dword [esi + 0x50], 1
call fcn.004349e0
test eax, eax
je 0x4351a2
or dword [esi + 0x50], 0x20
push 0x600ff0
push 0x600f84
call edi
push eax
call ebx
test eax, eax
je 0x4351bf
call eax
test eax, eax
je 0x4351bf
or dword [esi + 0x50], 0x40
push 0x600f74
push 0x600f84
mov dword [ebp - 0x16c], 0
call edi
push eax
call ebx
mov edi, eax
test edi, edi
je 0x4351ee
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [ebp - 0x16c], 0
je 0x4351fe
or dword [esi + 0x50], 0x800
call fcn.00434ab0
test al, al
je 0x43520e
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.0056f596
mov esp, ebp
pop ebp
ret
Function at 0x435240
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 0x435295
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 0x4352a0
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 0x435303
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x435303
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4352d0
sub ecx, edx
sar ecx, 1
cmp word [edi + ecx*2 - 2], 0x5c
je 0x435303
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4352f0
mov eax, dword [0x6010bc]
mov dword [edi], eax
pop edi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x627fe8]
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.00574fa0
mov ax, word [esi + 0x6010c0]
push 0x6010b4
mov word [esp + 0x38], ax
lea eax, [esp + 0x38]
push 0x104
push eax
call fcn.0057c2d2
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4353eb
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 0x4353eb
mov ecx, dword [esp + 0x14]
cmp ecx, edi
jb 0x4353eb
mov eax, dword [esp + 0x10]
ja 0x4353d1
cmp eax, ebx
jbe 0x4353eb
mov ebx, eax
mov edi, ecx
lea eax, [esp + 0x28]
push eax
push 0x104
push dword [esp + 0x24]
call fcn.0057d663
add esp, 0xc
add esi, 2
cmp esi, 0x18
jb 0x435360
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056f596
mov esp, ebp
pop ebp
ret
Function at 0x435410
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x612978
push 0x575a90
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x627fe8]
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 0x435451
sub edx, ecx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
call fcn.0057bfb3
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x4355e0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435482
sub ecx, edx
sar ecx, 1
lea edx, [ecx + 1]
test edx, edx
je 0x4354aa
cmp edx, 0x7fffffff
ja 0x4354aa
push ecx
push esi
push ecx
mov ecx, edi
call fcn.004348f0
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp word [edi], 0x5c
jne 0x435515
cmp word [edi + 2], 0x5c
jne 0x435515
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 0x4354e7
cmp eax, 0x5c
je 0x4354e7
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x4354d0
cmp word [esi], 0
je 0x4354f3
add esi, 2
mov dword [ebp - 0x1c], esi
movzx eax, word [esi]
test ax, ax
je 0x435507
cmp eax, 0x5c
je 0x435507
push esi
call ebx
mov esi, eax
jmp 0x4354f0
cmp word [esi], 0
je 0x435541
add esi, 2
mov dword [ebp - 0x1c], esi
jmp 0x435541
cmp word [edi + 2], 0x3a
jne 0x43553b
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 0x43553b
cmp eax, 0x5c
jne 0x43553b
add esi, 2
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
movzx eax, word [esi]
test ax, ax
je 0x435592
cmp eax, 0x5c
jne 0x435588
xor eax, eax
mov word [esi], ax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43557c
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x435580
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x435580
push edi
jmp 0x4355d8
test al, 0x10
je 0x435579
mov eax, 0x5c
mov word [esi], ax
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x435541
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.00577ee7
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.00577ee7
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 0x435600
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 0x435634
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 8]
call fcn.0043942f
mov edi, eax
add esp, 4
test edi, edi
je 0x435662
push 0
push 5
push 2
push 1
lea eax, [ebp - 8]
push eax
push edi
call esi
test eax, eax
je 0x43566a
push edi
call fcn.00439438
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 0x43568c
lea ebx, [edi + 0xc]
movzx eax, word [ebx]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, word [ebp - 2]
je 0x43569e
inc esi
add ebx, 0x18
cmp esi, dword [edi]
jb 0x435674
push edi
call fcn.00439438
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.00439438
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x435790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x627fe8]
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.00574fa0
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00574fa0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00574fa0
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0xffffffffffffffff
push 0x6382bc
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.0057db4f
push 0x5fc378
push 0x104
push esi
call fcn.0057d663
add esp, 0x20
lea eax, [ebp - 0x620]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x435855
push esi
push dword [ebp - 0x620]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push 0x6010bc
push 0x104
push esi
call fcn.0057c2d2
lea eax, [ebp - 0x414]
push eax
push 0x104
push esi
call fcn.0057c2d2
push 0x6010dc
push 0x104
push esi
call fcn.0057c2d2
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0056f596
mov esp, ebp
pop ebp
ret
Function at 0x4358a0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x627fe8]
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 0x5eeba8
push 1
push 0
push 0x5eeec8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x435972
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 0x5eee78
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x435966
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0057d663
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.0056f596
mov esp, ebp
pop ebp
ret
Function at 0x436750
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 0x5ffa04
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4367bb
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 0x436787
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 0x4367c2
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 0x436820
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.00436820
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
push 2
push 0x601100
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x43685a
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 0x43687e
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 0x436893
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call fcn.0057bfb3
push dword [ebp - 8]
mov esi, eax
push ebx
push esi
call fcn.005754d0
lea ebx, [esi + 0x8bfe]
add esp, 0x10
xor esi, esi
test dword [0x638380], 0xfffffffc
jbe 0x4368f0
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 + 0x638384]
sub dword [ebx + esi*4], eax
inc esi
mov eax, dword [0x638380]
shr eax, 2
cmp esi, eax
jl 0x4368c0
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 0x4369d7
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [ebp - 0x14]
call fcn.0057bfb3
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 [0x638380]
mov edx, dword [ebp - 0x14]
cmp edx, eax
jne 0x4369bb
cmp dword [ebp - 0x10], 0
jne 0x4369bb
mov ecx, dword [ebp - 8]
mov esi, ebx
sub edx, 4
jb 0x436981
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x436986
add ecx, 4
add esi, 4
sub edx, 4
jae 0x436970
cmp edx, 0xfffffffc
je 0x4369c8
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x4369b3
cmp edx, 0xfffffffd
je 0x4369c8
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x4369b3
cmp edx, 0xfffffffe
je 0x4369c8
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x4369b3
cmp edx, 0xffffffff
je 0x4369c8
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x4369c8
push dword [0x638380]
jmp 0x4369bc
push eax
mov edx, ebx
mov ecx, edi
call fcn.00435240
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4369e9
push eax
call fcn.00577ee7
jmp 0x4369e6
push dword [0x638380]
mov edx, ebx
mov ecx, edi
call fcn.00435240
add esp, 4
test byte [ebp + 0xc], 0x20
je 0x436a07
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 0x436a20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4520
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x627fe8]
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.00436a20
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x638990]
mov edx, dword [ecx]
mov dword [ecx], eax
cmp edx, dword [0x638990]
jb 0x436b4d
push 2
push 0x60110c
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x436b4d
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 0x436b4d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x436b4d
push ebx
call fcn.0043942f
add esp, 4
mov ebx, eax
push dword [ebp + 0xc]
push esi
push ebx
call fcn.005754d0
mov ecx, dword [0x638990]
lea edx, [ebx + 0x8bfe]
add esp, 0xc
xor esi, esi
test ecx, 0xfffffffc
jbe 0x436b30
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 + 0x638384]
sub dword [edx + esi*4], eax
inc esi
mov ecx, dword [0x638990]
mov eax, ecx
shr eax, 2
cmp esi, eax
jl 0x436af7
push ecx
push edx
push dword [ebp + 8]
call fcn.005754d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
call fcn.00439438
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 0x436b70
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.00436b70
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
push 2
push 0x601154
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x436ba3
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 0x436bc7
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 0x436bdc
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call fcn.0057bfb3
push dword [ebp - 8]
mov esi, eax
push edi
push esi
call fcn.005754d0
add esi, 0x8bfe
mov ecx, 0x289
mov edi, 0x637f78
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 + 0x637f78]
sub dword [esi*4 + 0x638178], eax
inc esi
cmp esi, 0x209
jl 0x436c07
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret