joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40268e
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4026df
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x4026f0
push 0xd
pop eax
jmp 0x40271d
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4026f3
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x402c70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x592894]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.0040264d
mov ebx, eax
cmp ebx, esi
je 0x402ce0
lea ecx, [ebp - 0x70]
call fcn.004025d8
mov eax, ebx
mov ecx, dword [ebp + 0x198]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b812
add ebp, 0x19c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x402cf8
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.00402c70
cmp eax, esi
jne 0x402d2a
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x402ce8
lea ecx, [ebp - 0x70]
call fcn.004025d8
push dword [ebp - 0x78]
mov ecx, edi
call fcn.0040257d
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004025d8
mov eax, esi
jmp 0x402cc6
Function at 0x42560d
Capabilities:
Delete registry key

Disassembly:
push ebp
sub esp, 0x70
lea ebp, [esp - 4]
mov eax, dword [0x592894]
xor eax, ebp
mov dword [ebp + 0x70], eax
push 0xa8
mov eax, 0x51f1cb
call fcn.0047b821
mov eax, ecx
lea ebx, [eax + 4]
cmp dword [ebx + 0x18], 8
jb 0x42563e
mov ecx, dword [ebx + 4]
jmp 0x425641
lea ecx, [ebx + 4]
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor esi, esi
mov dword [ebp + 0x44], eax
cmp eax, esi
je 0x425788
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00424726
mov edi, eax
lea eax, [ebp - 0x60]
push ebx
push eax
mov dword [ebp - 4], esi
call fcn.0043b2c3
push eax
xor ebx, ebx
lea eax, [ebp - 0x98]
push str.RegDeleteKeyW_
inc ebx
push eax
mov byte [ebp - 4], bl
call fcn.0040bccd
push str.__returned:
push eax
lea eax, [ebp - 0xb4]
push eax
mov byte [ebp - 4], 2
call fcn.004104cc
push edi
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 3
call fcn.00412aeb
add esp, 0x34
push eax
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 4
call fcn.00439086
push esi
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040365c
push esi
push ebx
lea ecx, [ebp - 0xb4]
call fcn.0040365c
push esi
push ebx
lea ecx, [ebp - 0x98]
call fcn.0040365c
push esi
push ebx
lea ecx, [ebp - 0x60]
call fcn.0040365c
push esi
push ebx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xa
call fcn.0040365c
push 0x52db29
lea ecx, [ebp + 0x28]
call fcn.0040979d
push str.bp::registry::Key::remove
lea ecx, [ebp]
mov byte [ebp - 4], 0xb
call fcn.0040979d
push str........._srclibsinstallerlibRegUtils_Windows.cpp
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.0040979d
lea eax, [ebp + 0x28]
push eax
push 0x182
lea eax, [ebp]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x48]
push eax
mov byte [ebp - 4], 0xd
call fcn.004394a1
add esp, 0x14
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040365c
push esi
push ebx
lea ecx, [ebp]
call fcn.0040365c
push esi
push ebx
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 0xa
call fcn.0040365c
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004390bb
push 0x578ccc
lea eax, [ebp + 0x1c]
push eax
call fcn.0047b16b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.0047b812
add ebp, 0x74
leave
ret
Function at 0x437add
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x592894]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0xc0
mov eax, 0x521ba9
call fcn.0047b821
mov edi, dword [ebp + 0x234]
xor esi, esi
inc esi
xor ebx, ebx
push esi
lea ecx, [ebp]
mov dword [ebp - 0x10], ebx
call fcn.0040bb60
xor eax, eax
push 0x206
mov word [ebp + 0x20], ax
lea eax, [ebp + 0x22]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0047b1c0
add esp, 0xc
lea eax, [ebp + 0x20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x437bc7
mov eax, dword [0x598964]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x18], eax
call fcn.0040bb60
cmp eax, ebx
jne 0x437b6b
xor edi, edi
jmp 0x437b72
mov ecx, dword [eax]
mov edi, dword [ecx + 4]
add edi, eax
push esi
lea ecx, [ebp - 0x78]
call fcn.0040bb60
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x437b87
xor esi, esi
jmp 0x437b8e
mov ecx, dword [eax]
mov esi, dword [ecx + 4]
add esi, eax
push str.GetTempPathW_fails
lea ecx, [ebp - 0x34]
call fcn.0040979d
push dword [ebp - 0x10]
lea eax, [ebp - 0x34]
push dword [ebp - 0x18]
lea ecx, [ebp - 0xcc]
push edi
push esi
push eax
mov byte [ebp - 4], 3
call fcn.0042d1b9
push 0x57ef14
lea eax, [ebp - 0xcc]
push eax
call fcn.0047b16b
push esi
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.00426c4c
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.00409edc
push ebx
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.004036a7
push esi
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.00409c43
push ebx
push esi
lea ecx, [ebp + 4]
call fcn.004036a7
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x228]
xor ecx, ebp
call fcn.0047b812
add ebp, 0x22c
leave
ret
Function at 0x437c2c
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x244
lea ebp, [esp - 4]
mov eax, dword [0x592894]
xor eax, ebp
mov dword [ebp + 0x244], eax
push 0xa0
mov eax, 0x521bf4
call fcn.0047b821
mov eax, dword [ebp + 0x250]
mov edi, dword [ebp + 0x254]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x258]
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x20]
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
call fcn.004379a7
pop ecx
pop ecx
lea eax, [ebp - 0x38]
push eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
mov dword [ebp - 4], esi
call fcn.00412b36
cmp dword [ebp + 0x38], 8
mov ecx, dword [ebp + 0x24]
jae 0x437c9b
lea ecx, [ebp + 0x24]
cmp dword [eax + 0x18], 8
jb 0x437ca6
mov eax, dword [eax + 4]
jmp 0x437ca9
add eax, 4
lea edx, [ebp + 0x3c]
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], eax
call fcn.004036a7
cmp dword [ebp - 0x10], esi
jne 0x437d3a
mov eax, dword [0x598964]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x18], eax
call fcn.0042c7a8
mov byte [ebp - 4], bl
cmp eax, esi
jne 0x437cf3
xor ebx, ebx
jmp 0x437cfa
mov ecx, dword [eax]
mov ebx, dword [ecx + 4]
add ebx, eax
mov eax, dword [edi]
mov esi, dword [eax + 4]
push str.GetTempFileNameW_fails
lea ecx, [ebp - 0x38]
add esi, edi
call fcn.0040979d
push dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push dword [ebp - 0x18]
lea ecx, [ebp - 0xac]
push ebx
push esi
push eax
mov byte [ebp - 4], 2
call fcn.0042d1b9
push 0x57ef14
lea eax, [ebp - 0xac]
push eax
call fcn.0047b16b
push ebx
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp]
call fcn.00426c4c
lea eax, [ebp]
push eax
mov byte [ebp - 4], 3
call fcn.0042ffb6
pop ecx
mov ecx, dword [ebp - 0x14]
push ebx
lea eax, [ebp]
push eax
call fcn.00409c43
push esi
push ebx
lea ecx, [ebp + 4]
call fcn.004036a7
push esi
push ebx
lea ecx, [ebp + 0x20]
call fcn.004036a7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x244]
xor ecx, ebp
call fcn.0047b812
add ebp, 0x248
leave
ret
Function at 0x437e3d
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
sub esp, 0x68
push 0x170
mov eax, 0x521c5d
call fcn.0047b854
xor edi, edi
push edi
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x60], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, edi
jge 0x437e81
push str.CoInitialize___failed
lea ecx, [ebp - 0x2c]
call fcn.0040979d
push 0x580e98
lea eax, [ebp - 0x2c]
push eax
call fcn.0047b16b
lea eax, [ebp + 0x64]
push eax
push 0x53cca0
xor ebx, ebx
inc ebx
push ebx
push edi
push 0x53ccc0
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jge 0x437ebb
push str.unable_to_get_IShellLinkW_interface
lea ecx, [ebp - 0xb8]
call fcn.0040979d
push 0x580e98
lea eax, [ebp - 0xb8]
jmp 0x437e7b
mov eax, dword [ebp + 0x64]
mov ecx, dword [eax]
lea edx, [ebp + 0x60]
push edx
push 0x53ccb0
push eax
call dword [ecx]
cmp eax, edi
jge 0x437ee7
push str.unable_to_get_IPersistFile_interface
lea ecx, [ebp - 0x64]
call fcn.0040979d
push 0x580e98
lea eax, [ebp - 0x64]
jmp 0x437e7b
lea eax, [ebp + 0x38]
push eax
mov eax, dword [ebp + 0x78]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call fcn.00412b36
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], bl
jb 0x437f08
mov eax, dword [eax + 4]
jmp 0x437f0b
add eax, 4
mov ecx, dword [ebp + 0x64]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x50]
push edi
push ebx
lea ecx, [ebp + 0x38]
mov esi, eax
mov byte [ebp - 4], 0
call fcn.004036a7
cmp esi, edi
jge 0x437f49
push str.unable_to_set_shortcut
lea ecx, [ebp - 0x9c]
call fcn.0040979d
push 0x580e98
lea eax, [ebp - 0x9c]
jmp 0x437e7b
lea eax, [ebp + 0x38]
push eax
mov eax, dword [ebp + 0x74]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call fcn.00412b36
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], 2
jb 0x437f6b
mov eax, dword [eax + 4]
jmp 0x437f6e
add eax, 4
mov ecx, dword [ebp + 0x60]
mov edx, dword [ecx]
push ebx
push eax
push ecx
call dword [edx + 0x18]
push edi
push ebx
lea ecx, [ebp + 0x38]
mov esi, eax
mov byte [ebp - 4], 0
call fcn.004036a7
cmp esi, edi
jge 0x437fa7
push str.unable_to_persist_shortcut
lea ecx, [ebp - 0x48]
call fcn.0040979d
push 0x580e98
lea eax, [ebp - 0x48]
jmp 0x437e7b
or dword [ebp - 4], 0xffffffff
mov byte [ebp + 0x6b], bl
jmp 0x438103
mov eax, dword [ebp + 0x60]
cmp eax, edi
je 0x438110
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x64]
cmp eax, edi
je 0x43811d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [ebp + 0x6b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4387f6
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x250
lea ebp, [esp - 4]
mov eax, dword [0x592894]
xor eax, ebp
mov dword [ebp + 0x250], eax
push 0x108
mov eax, 0x521e0e
call fcn.0047b821
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp + 0x48], ax
lea eax, [ebp + 0x4a]
push esi
push eax
mov dword [ebp - 0x10], esi
call fcn.0047b1c0
add esp, 0xc
lea eax, [ebp + 0x48]
push eax
mov eax, dword [ebp + 0x25c]
xor ebx, ebx
inc ebx
push ebx
push esi
or eax, 0x8000
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push ebx
cmp eax, esi
je 0x438947
push 3
lea ecx, [ebp - 0x114]
call fcn.0040ac7d
push dword [ebp + 0x25c]
lea eax, [ebp - 0x10c]
push str.Unable_to_get_Folder_Path_for_CSIDL:
push eax
mov dword [ebp - 4], esi
call fcn.0040a99a
pop ecx
pop ecx
mov ecx, eax
call fcn.0040d08c
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x114]
call fcn.00409e20
push eax
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.00439124
push esi
push ebx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.0040365c
push 0x52db29
lea ecx, [ebp - 0x2c]
call fcn.0040979d
push str.getCSIDL
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.0040979d
push str........._srclibs_bputils_srcPlatformProductPaths_Windows.cpp
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.0040979d
lea eax, [ebp - 0x2c]
push eax
push 0x3e
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 6
call fcn.004394a1
add esp, 0x14
push esi
push ebx
lea ecx, [ebp - 0x54]
call fcn.0040365c
push esi
push ebx
lea ecx, [ebp - 0x70]
call fcn.0040365c
push esi
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040365c
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x38]
call fcn.00439159
push 0x5797a8
lea eax, [ebp - 0x38]
push eax
call fcn.0047b16b
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x28]
call fcn.00426c4c
push ebx
lea eax, [ebp + 0x28]
push eax
mov ecx, edi
mov dword [ebp - 4], 7
call fcn.00409c43
push esi
push ebx
lea ecx, [ebp + 0x2c]
call fcn.004036a7
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.0047b812
add ebp, 0x254
leave
ret

Function at 0x438fdf
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [ecx]
lea eax, [esi + 4]
push eax
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
setne al
pop esi
ret 8
Function at 0x43b959
Capabilities:
Check mutex on windows

Disassembly:
push 0x5c
mov eax, 0x52254c
call fcn.0047b88a
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
cmp dword [eax + 0x14], ebx
jne 0x43b98f
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x68]
push 0xffffffffffffffff
push eax
call fcn.00438759
add esp, 0x10
xor edi, edi
inc edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4c], edi
jmp 0x43b992
xor edi, edi
inc edi
push eax
lea ecx, [ebp - 0x48]
call fcn.0040919e
test byte [ebp - 0x4c], 1
mov dword [ebp - 4], 2
je 0x43b9b2
push ebx
push edi
lea ecx, [ebp - 0x68]
call fcn.0040365c
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0043b125
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x43b9cd
lea eax, [ebp - 0x28]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43ba42
cmp byte [ebp + 8], bl
je 0x43ba21
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x43ba42
cmp eax, 0x80
je 0x43ba42
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004036a7
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.0040365c
xor eax, eax
call fcn.0047b90d
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004036a7
push ebx
push edi
lea ecx, [ebp - 0x48]
call fcn.0040365c
mov eax, esi
jmp 0x43ba1b
push 4
call fcn.0047bc79
mov dword [eax], esi
pop ecx
mov esi, eax
jmp 0x43ba2a

Function at 0x43da7e
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x10004]
mov eax, 0x10004
call fcn.0047be20
push 0xffffffffffffffff
push 0x522ad6
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x592894]
xor eax, ebp
mov dword [ebp + 0x10000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x1000c]
xor ebx, ebx
mov ecx, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call fcn.00404513
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp]
inc esi
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x7fff
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x34]
call fcn.00423cd1
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 4], esi
call fcn.0043b2c3
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040ba1d
push ebx
push esi
lea ecx, [ebp - 0x50]
call fcn.0040365c
push ebx
push esi
lea ecx, [ebp - 0x34]
call fcn.004036a7
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10000]
xor ecx, ebp
call fcn.0047b812
add ebp, 0x10004
leave
ret
Function at 0x43dba9
Capabilities:
Accept command line arguments

Disassembly:
push 0x40
mov eax, 0x522b0e
call fcn.0047b821
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x10]
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x43dc5a
cmp dword [ebp - 0x10], ebx
jle 0x43dc5a
push dword [ebp - 0x10]
push 4
call fcn.00480364
pop ecx
xor edi, edi
cmp dword [ebp - 0x10], ebx
pop ecx
mov dword [esi + 0x1c], eax
jle 0x43dc5a
mov eax, dword [ebp - 0x14]
push dword [eax + edi*4]
lea ecx, [ebp - 0x30]
call fcn.00423cd1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 4], ebx
call fcn.0043b2c3
pop ecx
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00410cdb
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040365c
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004036a7
mov ecx, esi
call fcn.0043db54
cmp dword [eax + 0x18], 0x10
jb 0x43dc4b
mov eax, dword [eax + 4]
jmp 0x43dc4e
add eax, 4
mov ecx, dword [esi + 0x1c]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x43dbf3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call fcn.0047b8f9
ret 8
Function at 0x443851
Capabilities:
Connect pipe
Create pipe

Disassembly:
push 0x40
mov eax, 0x523599
call fcn.0047b88a
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0043b125
pop ecx
pop ecx
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 1
jae 0x443887
lea ecx, [ebp - 0x28]
push esi
push 0x400
mov eax, 0x8000
push eax
push eax
movzx eax, byte [ebp + 0x28]
neg eax
sbb eax, eax
push 0xff
and eax, 0x80000
push esi
or eax, 0x40040003
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x443908
cmp ebx, esi
je 0x4438e8
lea eax, [ebp - 0x4c]
push str.Error_creating_named_pipe
push eax
call fcn.004391c2
pop ecx
pop ecx
push edi
push esi
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00404aa4
push esi
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040365c
xor edi, edi
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004036a7
push esi
push 1
lea ecx, [ebp + 8]
call fcn.0040365c
mov eax, edi
call fcn.0047b90d
ret
push dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
cmp eax, esi
jne 0x4438ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4438ea
cmp eax, 0x217
je 0x4438ea
lea eax, [ebp - 0x4c]
push str.Error_connecting_named_pipe
push eax
call fcn.004391c2
pop ecx
pop ecx
push 0xffffffffffffffff
push esi
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00404aa4
push esi
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040365c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4438e8

Function at 0x444b62
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp dword [ebp + 8], ebx
je 0x444c3f
cmp dword [ebp + 0xc], ebx
je 0x444c3f
cmp dword [esi + 8], ebx
je 0x444c3f
push edi
push 0x14
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.0047b1c0
add esp, 0xc
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push 4
lea eax, [ebp + 0xc]
push eax
push dword [esi + 8]
mov byte [ebp - 1], 1
call edi
test eax, eax
jne 0x444bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x444c36
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x444c36
cmp dword [ebp - 8], 4
jne 0x444c36
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call edi
test eax, eax
jne 0x444c39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x444c36
push 1
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 8]
mov dword [ebp + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x444c36
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
je 0x444c39
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
pop edi
jmp 0x444c41
xor al, al
pop esi
pop ebx
leave
ret 8
Function at 0x447a71
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x138
mov eax, dword [0x592894]
xor eax, ebp
mov dword [ebp + 0x70], eax
movzx eax, word [ebp + 0x7c]
push esi
mov esi, dword [0x5991b0]
push 0xf0
push eax
push esi
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x447be7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x447be7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x447be7
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x447be5
inc esi
inc esi
movzx edi, ax
movzx eax, word [esi]
inc esi
inc esi
mov ecx, dword [esi]
mov dword [ebp - 0xa0], ecx
mov ecx, 0x403
add esi, 4
cmp cx, ax
jne 0x447b60
push esi
lea ecx, [ebp - 0x94]
call fcn.00447a58
push dword [ebp - 0x94]
movzx eax, di
push 0
push 0x143
push eax
mov eax, dword [ebp - 0x9c]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x447b40
and dword [ebp - 0x98], 0
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x447bd2
push dword [ebp - 0x94]
call fcn.0047acd4
pop ecx
jmp 0x447bd2
mov ecx, 0x1234
cmp cx, ax
jne 0x447bd2
or dword [ebp - 0xc0], 0xffffffff
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xc4], 1
call fcn.00447a58
mov eax, dword [eax]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x447ba9
push dword [ebp - 0x94]
call fcn.0047acd4
pop ecx
lea eax, [ebp - 0xc4]
push eax
push 0
movzx eax, di
push 0x40b
push eax
mov eax, dword [ebp - 0x9c]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x447bd2
and dword [ebp - 0x98], 0
add esi, dword [ebp - 0xa0]
cmp dword [ebp - 0x98], 0
jne 0x447adf
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp - 0x98]
xor ecx, ebp
pop esi
call fcn.0047b812
add ebp, 0x74
leave
ret 4
Function at 0x44a1db
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x592894]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
cmp byte [eax + 0x48], 0
mov ecx, dword [ebp + 0xc]
je 0x44a237
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0043b125
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x44a20e
lea eax, [ebp - 0x1c]
push 1
push 0
push 0
push eax
push str.open
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004036a7
xor al, al
jmp 0x44a23d
mov byte [eax + 0x48], 1
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047b812
leave
ret 8