joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005b5b8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005b655
push ebx
push esi
call fcn.1005b574
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10051010
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005b602
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005b654
push edi
push eax
call fcn.1004c276
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005b622
call fcn.1004c23c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005b653
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10051010
add esp, 0x20
test eax, eax
jne 0x1005b641
push edi
call fcn.1004c23c
jmp 0x1005b649
push ebx
call fcn.1004c23c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1005b658
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1005b669
pop esi
ret
push ebx
push edi
push esi
call fcn.1005b574
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1004c276
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005b691
push ebx
push esi
push edi
call fcn.1001fd70
add esp, 0xc
push 0
call fcn.1004c23c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1005bf35
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005b906

Function at 0x1005f4de
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004cdd3
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005f54d
cmp esi, dword [ebp - 4]
je 0x1005f548
cmp dword [ebp + 0xc], 0
je 0x1005f548
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1005f525
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1005f030
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1005f54f
xor eax, eax
inc eax
jmp 0x1005f54f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1005f5b4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1004cdd3
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1004cdd3
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1005f62b
cmp word [ecx], dx
je 0x1005f62b
mov eax, dword [0x100741c4]
push edi
dec eax
push eax
push 0x100740b0
call fcn.1005f553
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005f69e
cmp word [eax], dx
je 0x1005f69e
mov eax, dword [edi]
test eax, eax
je 0x1005f64f
cmp word [eax], dx
je 0x1005f64f
lea eax, [ebp - 0x10]
push eax
call fcn.1005ef36
jmp 0x1005f658
lea eax, [ebp - 0x10]
push eax
call fcn.1005efd1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1005f6c8
mov eax, dword [0x100740ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10073da0
call fcn.1005f553
add esp, 0xc
test al, al
je 0x1005f6c8
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1005f693
cmp word [eax], di
je 0x1005f693
lea eax, [ebp - 0x10]
push eax
call fcn.1005ef36
pop ecx
jmp 0x1005f6ca
lea eax, [ebp - 0x10]
push eax
call fcn.1005efd1
jmp 0x1005f690
mov eax, dword [edi]
test eax, eax
je 0x1005f6b5
cmp word [eax], dx
je 0x1005f6b5
lea eax, [ebp - 0x10]
push eax
call fcn.1005eecd
pop ecx
jmp 0x1005f6c8
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1005f793
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1005f3d8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1005f793
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1005f793
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1005f793
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005f720
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1004ddc7
test ebx, ebx
je 0x1005f78e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1004ddc7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005f793
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005f793
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10055bad
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1005f795
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015ec5
leave
ret
Function at 0x1005fbff
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1005fc42
call fcn.10042458
mov dword [eax], 0xf
call fcn.1004246b
mov dword [eax], 0xd
call fcn.1004b8a3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015ec5
leave
ret
test eax, eax
jne 0x1005fc49
inc eax
jmp 0x1005fc36
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x1005fc34
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1005fc36
Function at 0x409086
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423960]
jne 0x409090
repz ret
jmp fcn.0040e3ee

Function at 0x417b75
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e4f4
and dword [ebp - 0x14], 0
cmp dword [0x537700], 0
mov dword [ebp - 0x18], eax
jne 0x417c28
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417cd0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x417cd0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x537700], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x537704], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x537708], eax
call edi
push eax
call esi
mov dword [0x537710], eax
test eax, eax
je 0x417c28
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x53770c], eax
mov eax, dword [0x53770c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417c81
cmp dword [0x537710], ecx
je 0x417c81
push eax
call esi
push dword [0x537710]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417c81
test ebx, ebx
je 0x417c81
call edi
test eax, eax
je 0x417c78
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x417c78
test byte [ebp - 8], 1
jne 0x417c81
or dword [ebp + 0x10], 0x200000
jmp 0x417cb4
mov eax, dword [0x537704]
cmp eax, dword [ebp - 0x18]
je 0x417cb4
push eax
call esi
test eax, eax
je 0x417cb4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417cb4
mov eax, dword [0x537708]
cmp eax, dword [ebp - 0x18]
je 0x417cb4
push eax
call esi
test eax, eax
je 0x417cb4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x537700]
call esi
test eax, eax
je 0x417cd0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417cd2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409086
leave
ret

Function at 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
call fcn.00401ca0
mov ecx, 0x401bdc
mov eax, 0x4017fd
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401d18
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004020d0
add esp, 0x24
call fcn.00401846
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4016c0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ecx
push ebx
push esi
push 2
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
cmp esi, 0x80010106
je 0x4016f8
test esi, esi
jge 0x4016f8
push esi
push str.CoInitializeEx_failed:_0x_08lx_n
call fcn.0043c4b7
add esp, 8
xor bl, bl
jmp 0x40179b
lea eax, [esp + 8]
push eax
push 0x465240
push 1
push 0
push 0x465230
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x401727
push eax
push str.CoCreateInstance_for_INetFwPolicy2_failed:_0x_08lx_n
call fcn.0043c4b7
add esp, 8
xor bl, bl
jmp 0x40179b
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 1
push 1
push eax
call edx
test eax, eax
jge 0x40174d
push eax
push str.put_FirewallEnabled_failed_for_Domain:_0x_08lx_n
call fcn.0043c4b7
add esp, 8
xor bl, bl
jmp 0x40179b
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 1
push 2
push eax
call edx
test eax, eax
jge 0x401773
push eax
push str.put_FirewallEnabled_failed_for_Private:_0x_08lx_n
call fcn.0043c4b7
add esp, 8
xor bl, bl
jmp 0x40179b
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 1
push 4
push eax
call edx
test eax, eax
jge 0x401799
push eax
push str.put_FirewallEnabled_failed_for_Public:_0x_08lx_n
call fcn.0043c4b7
add esp, 8
xor bl, bl
jmp 0x40179b
mov bl, 1
mov eax, dword [esp + 8]
test eax, eax
je 0x4017ab
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
jl 0x4017b5
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x4017c0
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ecx
push ebx
push esi
push 2
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
cmp esi, 0x80010106
je 0x4017f8
test esi, esi
jge 0x4017f8
push esi
push str.CoInitializeEx_failed:_0x_08lx_n
call fcn.0043c4b7
add esp, 8
xor bl, bl
jmp 0x40189b
lea eax, [esp + 8]
push eax
push 0x465240
push 1
push 0
push 0x465230
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x401827
push eax
push str.CoCreateInstance_for_INetFwPolicy2_failed:_0x_08lx_n
call fcn.0043c4b7
add esp, 8
xor bl, bl
jmp 0x40189b
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 0
push 1
push eax
call edx
test eax, eax
jge 0x40184d
push eax
push str.put_FirewallEnabled_failed_for_Domain:_0x_08lx_n
call fcn.0043c4b7
add esp, 8
xor bl, bl
jmp 0x40189b
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 0
push 2
push eax
call edx
test eax, eax
jge 0x401873
push eax
push str.put_FirewallEnabled_failed_for_Private:_0x_08lx_n
call fcn.0043c4b7
add esp, 8
xor bl, bl
jmp 0x40189b
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 0
push 4
push eax
call edx
test eax, eax
jge 0x401899
push eax
push str.put_FirewallEnabled_failed_for_Public:_0x_08lx_n
call fcn.0043c4b7
add esp, 8
xor bl, bl
jmp 0x40189b
mov bl, 1
mov eax, dword [esp + 8]
test eax, eax
je 0x4018ab
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
jl 0x4018b5
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
mov al, bl
pop ebx
pop ecx
ret
Function at 0x4020c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push edi
call ebp
test eax, eax
jne 0x402120
push esi
push 0x5c
push edi
call fcn.0043be7d
mov esi, eax
add esp, 8
test esi, esi
je 0x402110
push ebx
movzx ebx, word [esi]
xor eax, eax
push edi
mov word [esi], ax
call ebp
test eax, eax
jne 0x4020f8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], bx
push 0x5c
add esi, 2
push esi
call fcn.0043be7d
mov esi, eax
add esp, 8
test esi, esi
jne 0x4020e1
pop ebx
push edi
call ebp
pop esi
test eax, eax
jne 0x402120
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop ebp
ret

Function at 0x402130
Capabilities:
Write file on windows

Disassembly:
push ecx
push 0x464ec4
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0043be2a
mov ecx, dword [esp + 0xc]
add esp, 0xc
test ecx, ecx
je 0x40217f
test eax, eax
jne 0x40217f
push eax
push eax
push ecx
call fcn.0043c89b
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push 1
push ecx
call fcn.0043c78f
mov edx, dword [esp + 0x1c]
push edx
call fcn.0043c997
add esp, 0x20
mov al, 1
pop ecx
ret
xor al, al
pop ecx
ret
Function at 0x404170
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4597e1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x472bd0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x44]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.00403140
mov eax, edi
mov dword [esp + 0x34], 1
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4041d0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x14]
call fcn.00403060
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0xffffffffffffffff
mov word [esi + 4], cx
push ebx
mov ecx, esi
call fcn.00403140
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x404225
mov edx, dword [esp + 0x14]
push edx
call fcn.0040479e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x4042b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00419409

Function at 0x40ee02
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40ee49
call fcn.0041e4d3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40ee49
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40ee65
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040e97a
mov esi, eax
test edi, edi
je 0x40ee63
test ebx, ebx
je 0x40ee63
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41089b
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x457180
call fcn.0043e903
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4108c0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x410906
lea ecx, [ebp - 0x10]
call fcn.00407a9c
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f292
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040580e
mov eax, esi
call fcn.0043e9db
ret 8
Function at 0x414168
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041e4d3
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x414195
xor eax, eax
jmp 0x41423b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x41418e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41418e
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040476f
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x4141ec
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x4141db
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00412e48
push edi
mov ebx, eax
call fcn.0040479e
pop ecx
test ebx, ebx
je 0x41422e
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0041351b
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.004135cf
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x417931
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x417979
call fcn.0041e4d3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x417979
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4179bc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4179a5
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4179a5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4179b9
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x419372
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041e4d3
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4193ab
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00418fbe
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x419409
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41942d
cmp dword [edi + 0x54], 0
jne 0x41942d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041e4d3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004193ca
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x43872a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x459021
call fcn.0043e903
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040e7a4
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x43878c
call fcn.0041ddad
cmp eax, 1
jne 0x43878c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00416ca7
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040fecf
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040580e
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040580e
mov eax, esi
call fcn.0043e9db
ret 0x10

Function at 0x4387b5
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x459021
call fcn.0043e903
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040e7a4
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x438817
call fcn.0041ddad
cmp eax, 1
jne 0x438817
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00416ca7
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040fecf
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040580e
mov dword [ebp + 8], SysReAllocStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040580e
mov eax, esi
call fcn.0043e9db
ret 0x14

Function at 0x43bd04
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x472bd0]
jne 0x43bd0e
repz ret
jmp fcn.004417c3