joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420274
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x100c]
mov eax, 0x100c
call fcn.004682e0
push 0xffffffffffffffff
push 0x4a3b37
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x202c
call fcn.004682e0
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x1008], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x1018]
or dword [ebp - 0x18], 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
jne 0x42032b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0x1020], bl
je 0x420308
cmp eax, 0x20
je 0x420301
cmp eax, 0x21
jne 0x420308
xor eax, eax
jmp 0x420433
cmp eax, ebx
jle 0x420318
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x42032b
mov dword [ebp - 0x30], eax
push 0x4ca350
lea eax, [ebp - 0x30]
push eax
call fcn.00466f9a
mov esi, 0x2800
push esi
call fcn.00445b80
pop ecx
mov edi, eax
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp + 0x101c]
push dword [ebp + 0x1014]
call sub.msi.dll_MsiRecordSetStringA
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x420392
push 0x1004
push ebx
push eax
lea ecx, [ebp - 0x203c]
call fcn.0041f854
push eax
lea eax, [ebp - 0x1038]
push eax
call fcn.00468310
add esp, 0xc
push 0x4ca340
lea eax, [ebp - 0x1038]
jmp 0x420325
cmp dword [ebp - 0x14], ebx
je 0x420405
push ebx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4203d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4203c3
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x4203d5
mov dword [ebp - 0x24], eax
push 0x4ca350
lea eax, [ebp - 0x24]
jmp 0x420325
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x14]
je 0x420405
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4203f3
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x420405
mov dword [ebp - 0x34], eax
push 0x4ca350
lea eax, [ebp - 0x34]
jmp 0x420325
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x1c], eax
cmp eax, ebx
ja 0x420343
mov byte [ebp - 4], bl
push edi
call fcn.004666eb
pop ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0xffffffff
je 0x420430
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1008]
xor ecx, ebp
call fcn.00466e81
add ebp, 0x100c
leave
ret
Function at 0x4217c9
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x20
mov eax, 0x4a4047
call fcn.00466e90
xor ebx, ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov edi, 0x2001f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
lea ecx, [ebp - 0x28]
call fcn.004014b0
test eax, eax
je 0x42184b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401460
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00466e81
add ebp, 0x414
leave
ret 4
xor eax, eax
push 0x40e
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 0x18], ebx
call fcn.00468220
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x1c], 0x208
push ebx
jmp 0x4218f7
inc dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push esi
lea ecx, [ebp - 0x14]
call fcn.004014b0
test eax, eax
jne 0x4218b3
mov ecx, dword [ebp - 0x20]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00421169
test eax, eax
jne 0x42190d
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnceEx
push esi
lea ecx, [ebp - 0x14]
call fcn.004014b0
test eax, eax
jne 0x4218da
mov ecx, dword [ebp - 0x20]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00421169
test eax, eax
jne 0x42190d
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00401460
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x42187f
jmp 0x421818
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00401460
xor ebx, ebx
inc ebx
jmp 0x421818
Function at 0x421fe6
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
sub esp, 0xab8
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0xab8], eax
push 0x3c
mov eax, 0x4a4287
call fcn.00466e90
mov esi, dword [ebp + 0xac4]
xor eax, eax
push 0x7fe
mov word [ebp + 0x2b8], ax
xor ebx, ebx
lea eax, [ebp + 0x2ba]
push ebx
push eax
call fcn.00468220
add esp, 0xc
lea eax, [ebp + 0x2b8]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 1
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x2b8]
push eax
lea ecx, [ebp + 0x250]
call fcn.00401890
mov dword [ebp - 4], ebx
push 1
lea eax, [ebp - 0xd]
push eax
push 0x4b23a0
lea ecx, [ebp + 0x284]
call fcn.00401890
mov byte [ebp - 4], 1
lea eax, [ebp + 0x284]
push eax
lea ecx, [ebp + 0x250]
call fcn.00421945
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x284]
call fcn.00401640
or dword [ebp - 0x14], 0xffffffff
mov byte [ebp - 4], 2
cmp dword [ebp + 0x26c], 8
mov eax, dword [ebp + 0x258]
jae 0x4220b4
lea eax, [ebp + 0x258]
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [ebp - 0x14]
call fcn.004204e9
cmp dword [ebp - 0x14], 0xffffffff
jmp 0x422167
lea eax, [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x422158
push 1
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x2b8]
push eax
lea ecx, [ebp + 0x284]
call fcn.00401890
mov byte [ebp - 4], 3
push 1
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401890
mov byte [ebp - 4], 4
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0x284]
call fcn.00421945
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00401640
cmp dword [ebp + 0x2a0], 8
mov eax, dword [ebp + 0x28c]
jae 0x422142
lea eax, [ebp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x284]
call fcn.00401640
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4220d1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0041fcc9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x250]
call fcn.00401640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xab8]
xor ecx, ebp
call fcn.00466e81
add ebp, 0xabc
leave
ret 4
Function at 0x425dd4
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x10
mov eax, 0x4a4dbd
call fcn.00466e90
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 1
lea esi, [edi + 0x34]
mov eax, dword [esi + 0xc]
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040cf21
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x425e2d
lea ecx, [ebp - 0x14]
call fcn.0040cca8
cmp dword [eax + 0x1c], 8
jb 0x425e1b
mov eax, dword [eax + 8]
jmp 0x425e1e
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x14]
call fcn.0040cd0d
mov eax, dword [esi + 0x10]
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040cf21
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ccd4
test al, al
je 0x425e08
cmp dword [edi + 0x1c], 8
jb 0x425e55
mov eax, dword [edi + 8]
jmp 0x425e58
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0040d59c
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.004016a0
call fcn.00466f68
ret 4
Function at 0x428119
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x184
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x184], eax
push 0x88
mov eax, 0x4a52fe
call fcn.00466e90
mov esi, dword [ebp + 0x190]
lea eax, [ebp]
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 4], 5
jne 0x42829a
push 2
pop ebx
cmp dword [ebp + 8], ebx
jne 0x42829a
cmp byte [ebp + 0x11a], 1
je 0x42829a
push 0x4b0f88
push esi
call fcn.0046829a
pop ecx
pop ecx
test eax, eax
jne 0x428194
inc eax
jmp 0x428332
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0xd]
push eax
push esi
lea ecx, [ebp + 0x11c]
call fcn.0040921c
mov dword [ebp - 4], ebx
xor ebx, ebx
cmp dword [ebp + 0x134], ebx
je 0x42828b
lea ecx, [ebp - 0x2c]
call fcn.0040d0ef
mov byte [ebp - 4], 3
push edi
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x2c
lea ecx, [ebp + 0x11c]
call fcn.0041166b
push edi
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0x150]
call fcn.00401f50
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push 0x34
cdq
pop ecx
idiv ecx
xor esi, esi
test eax, eax
jbe 0x428270
push edi
lea eax, [ebp - 0xd]
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0x94]
call fcn.0040921c
mov byte [ebp - 4], 5
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0041fc30
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0041c923
add esp, 0xc
mov byte [ebp - 4], 6
push ebx
push ebx
lea ecx, [ebp + 0x150]
push ecx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.004234b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
call fcn.004016a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
call fcn.004016a0
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push 0x34
cdq
pop ecx
idiv ecx
inc esi
cmp esi, eax
jb 0x4281fe
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x150]
call fcn.004016a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0040d59c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x11c]
jmp 0x42832b
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp + 0x150]
call fcn.00401f50
and dword [ebp - 4], 0
push 0x4b0f88
push esi
call fcn.0046829a
pop ecx
pop ecx
test eax, eax
jne 0x428321
push edi
lea eax, [ebp - 0xd]
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0x60]
call fcn.0040921c
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
push 0
push edi
lea eax, [ebp + 0x150]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004234b0
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004016a0
test bl, bl
je 0x428321
mov ecx, dword [ebp - 0x14]
call fcn.0041fbf3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x150]
call fcn.004016a0
xor eax, eax
jmp 0x428332
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x150]
call fcn.004016a0
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 + 0x184]
xor ecx, ebp
call fcn.00466e81
add ebp, 0x188
leave
ret 4
Function at 0x4329f1
Capabilities:
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0xd4]
sub esp, 0x154
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0xd0], eax
and dword [ebp - 0x58], 0
push esi
push edi
mov edi, ecx
call fcn.004056ea
xor esi, esi
lea eax, [ebp - 0x44]
inc esi
push eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x44], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
sub eax, 0
mov dword [ebp - 0x4c], ecx
je 0x432a9e
dec eax
je 0x432a93
dec eax
jne 0x432aa5
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x5c], 2
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x80]
dec eax
push 4
pop ecx
je 0x432a86
dec eax
je 0x432a7d
dec eax
jne 0x432a89
mov dword [ebp - 0x5c], 5
jmp 0x432a89
mov dword [ebp - 0x5c], 3
jmp 0x432a89
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x40], ecx
jb 0x432aa5
mov dword [ebp - 0x58], esi
jmp 0x432aa5
movzx eax, cx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x4c], eax
jmp 0x432aa5
mov dword [ebp - 0x5c], 7
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
call fcn.004056e6
mov ecx, eax
call fcn.00435d4b
mov ecx, dword [ebp + 0xd0]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00466e81
add ebp, 0xd4
leave
ret

Function at 0x432c0f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x432c46
mov edx, dword [ecx + 0xd8]
mov ecx, dword [ebp + 8]
push esi
movzx eax, byte [ecx]
xor eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x10]
dec dword [ebp + 0xc]
and eax, 0xff
mov eax, dword [edx + eax*4]
shr esi, 8
xor esi, eax
inc ecx
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x10], esi
jne 0x432c22
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc

Function at 0x433b4a
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 0x433b64
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x433b75
push 0xd
pop eax
jmp 0x433ba2
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 0x433b78
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 0x434279
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x18
mov eax, 0x4a72eb
call fcn.00466e90
mov eax, dword [ebp + 0x20c]
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
lea ecx, [ebp - 0x14]
call fcn.004014b0
mov ebx, eax
cmp ebx, esi
je 0x434301
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401460
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.00466e81
add ebp, 0x204
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x434319
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00434279
cmp eax, esi
jne 0x43434c
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
call ebx
test eax, eax
je 0x434309
lea ecx, [ebp - 0x14]
call fcn.00401460
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401460
mov eax, esi
jmp 0x4342dc
Function at 0x437687
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
mov esi, ecx
cmp dword [esi + 4], 0
push edi
je 0x4376cc
mov eax, dword [ebp + 8]
test eax, eax
je 0x4376a1
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x437702
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.00437406
push 0x4cedd8
lea eax, [ebp - 0x58]
push eax
call fcn.00466f9a
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x437702
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x437702
push 1
push eax
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.004373a8
push 0x4cedc8
lea eax, [ebp - 0x54]
jmp 0x4376c6
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x437f05
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x58
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x437f19
xor eax, eax
inc eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x437f4d
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0045c62f
test al, al
jne 0x437f7c
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.00437406
push 0x4cedd8
lea eax, [ebp - 0x58]
push eax
call fcn.00466f9a
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x437f7c
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.0043731b
push 0x4cedc8
lea eax, [ebp - 0x54]
jmp 0x437f47
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x437f84
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x58
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x437f98
push 8
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x437fcc
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0045c62f
test al, al
jne 0x437ffb
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.00437406
push 0x4cedd8
lea eax, [ebp - 0x58]
push eax
call fcn.00466f9a
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x437ffb
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.0043731b
push 0x4cedc8
lea eax, [ebp - 0x54]
jmp 0x437fc6
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x438849
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x834
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x834], eax
push 0xa4
mov eax, 0x4a8234
call fcn.00466e90
xor eax, eax
push 0x7fe
mov word [ebp + 0x34], ax
xor ebx, ebx
lea eax, [ebp + 0x36]
push ebx
push eax
mov esi, ecx
call fcn.00468220
add esp, 0xc
push 0x400
lea eax, [ebp + 0x34]
push eax
push 0x4c1c70
push str.ClickOncePackage
push str.Startup
lea ecx, [esi + 0x28]
call fcn.00409e61
cmp word [ebp + 0x34], bx
jne 0x4388b9
xor eax, eax
jmp 0x4389d3
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.00437805
mov dword [ebp - 4], ebx
cmp dword [eax + 0x1c], 8
jb 0x4388d2
mov eax, dword [eax + 8]
jmp 0x4388d5
add eax, 8
xor esi, esi
inc esi
push esi
lea ecx, [ebp - 0xd]
push ecx
push eax
lea ecx, [ebp]
call fcn.00401890
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.004016a0
push esi
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401890
mov byte [ebp - 4], 3
push ebx
push ebx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp]
call fcn.00401bd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
call fcn.00401910
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp]
call fcn.00401720
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb0]
call fcn.00401640
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.00401640
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00401640
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
push 4
jae 0x43896d
lea eax, [ebp + 8]
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
lea edx, [ebp - 0xd]
push edx
push eax
call fcn.0040921c
mov byte [ebp - 4], 6
mov byte [ebp - 4], 2
call fcn.0044f1bc
add esp, 0x38
cmp al, bl
jne 0x4389a0
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp]
call fcn.00402670
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x4389ac
lea eax, [ebp + 8]
push esi
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb esi, esi
neg esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00401640
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x834]
xor ecx, ebp
call fcn.00466e81
add ebp, 0x838
leave
ret
Function at 0x43f95f
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 8], 0
je 0x43f97b
mov ecx, esi
call fcn.0043f803
pop esi
ret 4

Function at 0x4402af
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push 0x54
mov eax, 0x4a9a63
call fcn.00466e90
mov esi, ecx
mov ebx, edx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov edi, dword [esi + 0xa8]
cmp edi, eax
jne 0x4402eb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00440080
xor eax, eax
call fcn.00466f68
ret
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x440302
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
push str..debug
call fcn.0043fca1
pop ecx
test eax, eax
je 0x440324
cmp dword [eax + 0xc], edi
jne 0x440324
mov edi, dword [esi + 0xac]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1c], edi
jmp 0x44036f
push str..rdata
call fcn.0043fca1
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x440346
push str..text
call fcn.0043fca1
pop ecx
mov ecx, eax
test ecx, ecx
je 0x4402d7
mov esi, dword [esi + 0xac]
mov eax, esi
push 0x1c
mov dword [ebp - 0x20], esi
xor edx, edx
pop esi
div esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4402d7
sub edi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + edi]
mov edi, dword [ebp - 0x20]
lea eax, [ecx + ebx]
mov esi, ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x4403d6
cmp dword [ebp + 8], 0
je 0x4403d6
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, esi
div dword [ebp - 0x44]
imul eax, dword [ebp - 0x44]
mov ebx, eax
lea eax, [edx + edi]
push eax
push ebx
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4403c7
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00440080
mov eax, esi
jmp 0x4402e5
push edi
lea ecx, [ebp - 0x10]
call fcn.0044015a
sub edi, ebx
add edi, esi
mov eax, edi
mov edx, dword [ebp - 0x1c]
test edx, edx
jbe 0x4403f5
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0xc]
jbe 0x4403ef
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x4403e0
mov esi, dword [ebp - 0x14]
jmp 0x4403b4