joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1063464
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1077400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x28], eax
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
mov dword [ebp - 0x34], 0x10
mov dword [ebp - 0x30], edi
mov eax, dword [0x1077004]
mov esi, 0x1077004
mov ebx, 0x1010d9c
cmp eax, esi
je 0x10634cb
test dword [eax + 0x1c], 0x100
je 0x10634cb
cmp byte [eax + 0x19], 5
jb 0x10634cb
push ebx
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015bb9
push 0x2001f
push 1
push 0x1010dd0
push 0x80000001
call fcn.0101fb88
mov dword [ebp - 0x2c], eax
cmp eax, edi
jne 0x106352b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1077004]
cmp eax, esi
je 0x1063662
test dword [eax + 0x1c], 0x100
je 0x1063662
cmp byte [eax + 0x19], 2
jb 0x1063662
push dword [ebp - 0x28]
push ebx
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
jmp 0x1063662
push dword [ebp - 0x28]
call fcn.01021142
test eax, eax
je 0x1063586
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1063581
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1077004]
cmp eax, esi
je 0x1063659
test dword [eax + 0x1c], 0x100
je 0x1063659
cmp byte [eax + 0x19], 2
jb 0x1063659
push dword [ebp - 0x28]
push ebx
push 0x16
jmp 0x106364e
lea eax, [ebp - 0x24]
jmp 0x1063589
mov eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
call fcn.0101ff04
test eax, eax
jne 0x10635ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1077004]
cmp eax, esi
je 0x1063659
test dword [eax + 0x1c], 0x100
je 0x1063659
cmp byte [eax + 0x19], 2
jb 0x1063659
push dword [ebp - 0x28]
push ebx
push 0x17
jmp 0x106364e
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x30]
push eax
push edi
push edi
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x28], eax
cmp eax, edi
je 0x106360c
mov eax, dword [0x1077004]
cmp eax, esi
je 0x1063659
test dword [eax + 0x1c], 0x100
je 0x1063659
cmp byte [eax + 0x19], 2
jb 0x1063659
push dword [ebp - 0x28]
push ebx
push 0x18
jmp 0x106364e
cmp dword [ebp - 0x30], edi
jne 0x1063659
push 0x10027e4
push 0x1010e18
push dword [ebp - 0x2c]
call fcn.0101fdb1
test eax, eax
jne 0x1063659
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1077004]
cmp eax, esi
je 0x1063659
test dword [eax + 0x1c], 0x100
je 0x1063659
cmp byte [eax + 0x19], 2
jb 0x1063659
push dword [ebp - 0x28]
push ebx
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d9bb
leave
ret 4
Function at 0x106367b
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1077400]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x28], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x30], 0x10
mov eax, dword [0x1077004]
mov esi, 0x1077004
mov edi, 0x1010d9c
cmp eax, esi
je 0x10636de
test dword [eax + 0x1c], 0x100
je 0x10636de
cmp byte [eax + 0x19], 5
jb 0x10636de
push edi
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015bb9
push 0x20006
push 1
push 0x1010dd0
push 0x80000001
call fcn.0101fb88
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x106373e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1077004]
cmp eax, esi
je 0x10637d3
test dword [eax + 0x1c], 0x100
je 0x10637d3
cmp byte [eax + 0x19], 2
jb 0x10637d3
push dword [ebp - 0x28]
push edi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
jmp 0x10637d3
push ebx
call fcn.01021142
test eax, eax
je 0x1063786
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1063783
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1077004]
cmp eax, esi
je 0x10637ca
test dword [eax + 0x1c], 0x100
je 0x10637ca
cmp byte [eax + 0x19], 2
jb 0x10637ca
push dword [ebp - 0x28]
push edi
push 0x1c
jmp 0x10637bf
lea ebx, [ebp - 0x24]
push ebx
push 0x1010e18
push dword [ebp - 0x2c]
call fcn.0101fdb1
test eax, eax
jne 0x10637ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov eax, dword [0x1077004]
cmp eax, esi
je 0x10637ca
test dword [eax + 0x1c], 0x100
je 0x10637ca
cmp byte [eax + 0x19], 2
jb 0x10637ca
push dword [ebp - 0x28]
push edi
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e0d7
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101d9bb
leave
ret 4
Function at 0x1063a48
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1077400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [0x1077004]
mov ebx, 0x1077004
cmp eax, ebx
je 0x1063a92
test dword [eax + 0x1c], 0x100
je 0x1063a92
cmp byte [eax + 0x19], 5
jb 0x1063a92
push 0x1010d9c
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015bb9
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x24], ax
push 7
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi]
mov dword [ebp - 0x234], 0x10
mov eax, dword [eax + 4]
xor edi, edi
cmp eax, edi
jne 0x1063ae9
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x24]
push eax
push 0x1010dd0
push 0x10055e8
lea eax, [ebp - 0x22c]
push 0x104
push eax
call fcn.010166de
add esp, 0x14
cmp eax, edi
jge 0x1063b4e
mov ecx, dword [0x1077004]
cmp ecx, ebx
je 0x1063bf4
test dword [ecx + 0x1c], 0x100
je 0x1063bf4
cmp byte [ecx + 0x19], 2
jb 0x1063bf4
and eax, 0xffff
push eax
push 0x1010d9c
push 0xb
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101e0d7
jmp 0x1063bf4
push 0x20019
push edi
lea eax, [ebp - 0x22c]
push eax
push 0x80000001
call fcn.0101fb88
mov dword [ebp - 0x230], eax
cmp eax, edi
jne 0x1063b98
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1077004]
cmp ecx, ebx
je 0x1063be0
test dword [ecx + 0x1c], 0x100
je 0x1063be0
cmp byte [ecx + 0x19], 2
jb 0x1063be0
push eax
push 0x1010d9c
push 0xc
jmp 0x1063bd5
push edi
push 0x1010dac
push eax
call fcn.01020624
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
cmp dword [eax], edi
jne 0x1063be0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1077004]
cmp ecx, ebx
je 0x1063be0
test dword [ecx + 0x1c], 0x100
je 0x1063be0
cmp byte [ecx + 0x19], 2
jb 0x1063be0
push eax
push 0x1010d9c
push 0xd
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101e0d7
cmp dword [ebp - 0x230], edi
je 0x1063bf4
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0101d9bb
leave
ret 4
Function at 0x1067e12
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0x1010efc
mov dword [ebp - 8], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
cmp esi, edi
jl 0x1067f00
push ebx
push 0x1010f24
mov dword [ebp - 4], 1
call fcn.01021611
mov ebx, eax
test ebx, ebx
je 0x1067e6e
mov eax, dword [ebp + 0x18]
add eax, eax
push eax
call fcn.0101e8e4
mov edi, eax
test edi, edi
jne 0x1067e78
mov esi, 0x8007000e
jmp 0x1067eff
push edi
push 0
push 0x1010f1c
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1067e9e
and eax, 0xffff
or eax, 0x80070000
push ebx
mov esi, eax
call fcn.0101e9ef
cmp dword [ebp + 0xc], 0
je 0x1067eff
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x2e
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x1067ec7
xor ecx, ecx
mov word [eax], cx
push 0x1010f10
push dword [ebp + 0x18]
push edi
call fcn.0101e5fc
mov esi, eax
test esi, esi
jl 0x1067eff
push edi
push 0
push 0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.010690d8
mov esi, eax
test esi, esi
jl 0x1067eff
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0101f089
mov esi, eax
pop ebx
push edi
call fcn.0101e9ef
cmp dword [ebp - 4], 0
je 0x1067f12
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, esi
pop esi
leave
ret 0x14
Function at 0x1067f1f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x1077400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.01067d92
test eax, eax
je 0x1067f4a
xor eax, eax
inc eax
jmp 0x10680c1
push 0x1010f7c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsContentTypeW]
cmp eax, 1
jne 0x1067f62
xor eax, eax
jmp 0x10680c1
push 0x2e
push esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
pop ecx
xor eax, eax
pop ecx
test esi, esi
je 0x10680c1
push ebx
push edi
mov ebx, 0x206
push ebx
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov edi, 0x80000000
push edi
mov dword [ebp - 0x620], 0x208
call esi
test eax, eax
je 0x1067fcc
cmp eax, 0xd
jne 0x10680b8
xor eax, eax
push ebx
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x20c]
push eax
push 0x1010f68
lea eax, [ebp - 0x414]
push 0x104
push eax
mov dword [ebp - 0x620], 0x208
call fcn.010166de
add esp, 0x1c
test eax, eax
jl 0x10680b8
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call esi
test eax, eax
je 0x1068052
cmp eax, 0xd
je 0x1068052
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x414]
push eax
call fcn.0101f089
test eax, eax
jl 0x10680b8
xor eax, eax
push ebx
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x20c]
push eax
push 0x1010f34
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.010166de
add esp, 0x1c
test eax, eax
jl 0x10680b8
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
push edi
mov dword [ebp - 0x620], 0x208
call esi
test eax, eax
je 0x10680bc
cmp eax, 0xd
je 0x10680bc
xor eax, eax
jmp 0x10680bf
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0101d9bb
leave
ret 4
Function at 0x106994d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
je 0x1069a5e
cmp dword [edi + 8], ebx
je 0x1069a5e
cmp dword [edi + 0x10], ebx
je 0x1069a5e
push ebx
push 0x80
push 1
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1069a5e
mov ecx, dword [edi + 0x10]
cmp ecx, ebx
push esi
mov esi, dword [edi + 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
jle 0x1069a48
cmp dword [edi + 0x18], ebx
je 0x1069a34
cmp dword [edi + 0xc], 0x28
jb 0x1069a4b
mov eax, dword [esi + 0x20]
mov edx, 0x4d42
shl eax, 2
mov word [ebp - 0x18], dx
lea edx, [eax + 0x36]
mov dword [ebp - 0xe], edx
lea edx, [ecx + 0xe]
mov dword [ebp - 0x16], edx
xor edx, edx
mov word [ebp - 0x12], dx
mov word [ebp - 0x10], dx
cmp dword [esi + 8], ebx
jne 0x1069a19
sub ecx, eax
movzx eax, word [esi + 0xe]
imul eax, dword [esi + 4]
add eax, 0x1f
cdq
and edx, 7
add eax, edx
mov edi, eax
add ecx, 0xffffffd8
sar edi, 3
and edi, 0xfffffffc
mov eax, ecx
xor edx, edx
div edi
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 8], eax
push ebx
lea eax, [ebp - 4]
push eax
push 0xe
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1069a4b
mov ecx, dword [ebp - 8]
push ebx
lea eax, [ebp - 4]
push eax
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1069a4b
xor ebx, ebx
inc ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1204370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x120438e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x122d074
push ecx
mov edi, eax
call fcn.01218198
mov esi, eax
add esp, 8
test esi, esi
jne 0x12043cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0121802e
push esi
call fcn.01217fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x1207850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x12078ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x1232720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x12078ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.012181e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x12078ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x1232720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x120792a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.01219082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x1207957
mov word [eax], si
add eax, 2
push eax
call fcn.01219030
add esp, 4
jmp 0x1207959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x12078ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x12078b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x1207ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1208080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x12080c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x122d458
push ecx
call fcn.012181e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.012181e1
add esp, 0x10
jmp 0x12080d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0121820b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.01217dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.01208050
mov eax, dword [0x1232728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x120813b
push esi
call fcn.01207fb0
add esp, 4
mov dword [0x1232728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x120814c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.01207ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x120b440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x120b4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x120b48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x120b471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x120b47e
add edx, ecx
cmp ebx, edx
jb 0x120b48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x120b467
xor ecx, ecx
jmp 0x120b4a2
test eax, eax
jne 0x120b492
xor ecx, ecx
jmp 0x120b4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.0120b3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x120b8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x120b921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x120b946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x120b96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x120b993
push ecx
push esi
call fcn.0120b4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x120cc00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x120cc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x120cc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x120cc38
add edx, eax
cmp ebx, edx
jb 0x120cc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x120cc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x120cc50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x120cc70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x120ccb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x120cc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x120cca8
add edx, ecx
cmp ebx, edx
jb 0x120ccb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x120cc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x120cf60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.01219145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x120cffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x120cfdd
lea eax, [esp + 0x18]
push eax
jmp 0x120cfe2
push 0x1232720
call fcn.01218fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x120cfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x120cf40
push 4
push ecx
push eax
call fcn.0121943f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x120d310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.01219145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x120d3ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x120d38d
lea eax, [esp + 0x18]
push eax
jmp 0x120d392
push 0x1232720
call fcn.01218fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x120d360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x120cf40
push 4
push ecx
push eax
call fcn.0121943f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret