joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a0a87
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebp, ebp
mov ebx, 1
push 0x4c6c7c
lea ecx, [esi + 0x1c]
mov dword [esp + 0x14], esi
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
call fcn.00436fc0
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov eax, dword [0x4aefac]
mov dword [esp + 0x1c], ebp
mov dword [esi + 0x28], eax
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], bl
call fcn.00486bb1
lea edi, [esi + 0x44]
mov byte [esp + 0x1c], 2
mov ecx, edi
call fcn.00486801
lea ebx, [esi + 0x58]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call fcn.00486801
push 0xffffffffffffffff
push ebp
mov ecx, edi
mov byte [esp + 0x24], 4
mov dword [esi], 0x4a8a48
call fcn.00486861
push 0xffffffffffffffff
push ebp
mov ecx, ebx
call fcn.00486861
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402110
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4a0d78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x40]
mov esi, ecx
push edi
call fcn.0040e790
push edi
call fcn.0040f130
add esp, 8
lea ecx, [esp + 0xc]
call fcn.00489022
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
call fcn.00488adc
mov eax, dword [0x4c1960]
mov dword [esp + 0x2c], eax
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 2
mov dword [esp + 0x20], vtable.CFileException.0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xffffffff
call fcn.004885ca
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 3
push ecx
push 0x1042
push edi
lea ecx, [esp + 0x18]
call fcn.004891d4
test eax, eax
jne 0x4021be
lea edx, [esp + 8]
push 0x4b2208
push edx
mov dword [esp + 0x10], 0xef18
call fcn.0041ec39
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0048932b
mov eax, dword [esi + 0x28]
mov ecx, dword [eax - 8]
lea ecx, [ecx + ecx + 2]
mov dword [esp + 0x40], ecx
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.0048932b
lea edx, [esp + 0x40]
push 4
push edx
lea ecx, [esp + 0x14]
call fcn.0048932b
lea eax, [esp + 0x40]
push 4
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 4
call fcn.0048932b
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00402270
lea ecx, [esp + 0xc]
call fcn.004893ef
mov dword [esp + 0x1c], vtable.CFileException.0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 4
call fcn.00488433
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.00489117
mov ecx, dword [esp + 0x30]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x402550
Capabilities:
Connect network resource

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a0de8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
cmp esi, ebx
je 0x402649
push esi
call fcn.0041ec73
add esp, 4
test eax, eax
je 0x402649
mov eax, dword [0x4c1960]
push edi
mov dword [esp + 0x3c], eax
push esi
lea ecx, [esp + 0x40]
push str._sIPC_
push ecx
mov dword [esp + 0x40], ebx
call fcn.004850f3
mov edx, dword [esp + 0x48]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0xc], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], edx
push ebx
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
pop edi
cmp esi, ebx
je 0x402625
cmp esi, 0x4c3
je 0x402625
push ebx
push 0x4c6c7c
lea eax, [esp + 0x10]
push 0x4c6c7c
push eax
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
cmp esi, ebx
je 0x402625
cmp esi, 0x4c3
je 0x402625
push ebx
push ebx
lea ecx, [esp + 0x10]
push ebx
push ecx
call sub.MPR.dll_WNetAddConnection2W
mov esi, eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.00488433
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x28]
pop esi
mov eax, 0x57
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x402660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0e28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00489022
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.00488adc
mov eax, dword [0x4c1960]
mov dword [esp + 0x24], eax
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 2
mov dword [esp + 0x18], vtable.CFileException.0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xffffffff
call fcn.004885ca
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
push 0x40
push edx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.004891d4
test eax, eax
jne 0x4026fb
lea eax, [esp + 0x38]
push 0x4b2208
push eax
mov dword [esp + 0x40], 0x6a
call fcn.0041ec39
lea ecx, [esp + 4]
call fcn.004894ce
push eax
mov dword [esi + 0x24], eax
call fcn.00488166
mov ecx, dword [esi + 0x24]
add esp, 4
mov dword [esi + 0x20], eax
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.004892f1
lea ecx, [esp + 4]
call fcn.004893ef
mov dword [esp + 0x14], vtable.CFileException.0
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 4
call fcn.00488433
lea ecx, [esp + 4]
mov dword [esp + 0x30], 0xffffffff
call fcn.00489117
mov ecx, dword [esp + 0x28]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x402c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x4c1960]
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov word [esp + 8], si
mov word [esp + 0xa], si
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 8]
push esi
push eax
push ecx
mov dword [esp + 0x50], esi
call fcn.0044b070
add esp, 0xc
test eax, eax
jne 0x402caf
lea edx, [esp + 0x4c]
push 0x4b2208
push edx
mov dword [esp + 0x54], 0xef1f
call fcn.0041ec39
mov eax, dword [esp + 0x28]
push str.Agent
push eax
call fcn.0041ec90
add esp, 8
cmp eax, esi
jne 0x402d5e
mov dword [edi + 0x2c], 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x44], 7
call fcn.00488433
lea ecx, [esp + 0x34]
mov byte [esp + 0x44], 6
call fcn.00488433
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 5
call fcn.00488433
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 4
call fcn.00488433
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 3
call fcn.00488433
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 2
call fcn.00488433
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.00488433
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], 0xffffffff
call fcn.00488433
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 4
mov dword [edi + 0x2c], esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x44], 0xe
call fcn.00488433
lea ecx, [esp + 0x34]
mov byte [esp + 0x44], 0xd
call fcn.00488433
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 0xc
call fcn.00488433
lea ecx, [esp + 0x2c]
mov byte [esp + 0x44], 0xb
call fcn.00488433
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 0xa
call fcn.00488433
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 9
call fcn.00488433
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 8
call fcn.00488433
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], 0xffffffff
call fcn.00488433
mov ecx, dword [esp + 0x3c]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x402ed0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
lea ecx, [ebp - 0x7c]
call fcn.00449810
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00489022
mov ecx, dword [ebp + 8]
push 0
push 0x40
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004891d4
test eax, eax
jne 0x402f45
lea edx, [ebp - 0x14]
push 0x4b2208
push edx
mov dword [ebp - 0x14], 0xef20
call fcn.0041ec39
lea ecx, [ebp - 0x40]
call fcn.00487126
mov ebx, 2
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004894ce
mov esi, eax
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x40]
call fcn.00487186
mov eax, dword [ebp - 0x3c]
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004892f1
lea ecx, [ebp - 0x2c]
call fcn.004893ef
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], ebx
xor esi, esi
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0044afa0
test eax, eax
jne 0x402faf
cmp esi, ebx
jge 0x402fee
push 0x3e8
call edi
inc esi
cmp esi, 3
jl 0x402f8e
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00487159
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00489117
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
call fcn.004499c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
lea edx, [ebp - 0x18]
push 0x4b2208
push edx
mov dword [ebp - 0x18], 0xef22
call fcn.0041ec39
mov ecx, dword [ebp + 0x18]
call fcn.00488af2
lea eax, [ebp - 0x1c]
push 0x4b2208
push eax
mov dword [ebp - 0x1c], 0xef21
call fcn.0041ec39
Function at 0x403650
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a1100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x4c1960]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
mov edi, dword [esp + 0x48]
push 0x4c0560
push edi
lea ecx, [esp + 0x10]
push 0x4c0554
push ecx
mov dword [esp + 0x50], 0
call fcn.004850f3
mov edx, dword [0x4c1960]
mov dword [esp + 0x20], edx
push edi
lea eax, [esp + 0x24]
push 0x4c054c
push eax
mov byte [esp + 0x5c], 1
call fcn.004850f3
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0040f130
add esp, 0x20
test eax, eax
jne 0x4036dd
lea edx, [esp + 0x4c]
push 0x4b2208
push edx
mov dword [esp + 0x54], 0xef27
call fcn.0041ec39
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403715
mov ecx, dword [esp + 8]
push ecx
call fcn.0040e790
add esp, 4
test eax, eax
jne 0x403715
lea edx, [esp + 0x4c]
push 0x4b2208
push edx
mov dword [esp + 0x54], 0xef25
call fcn.0041ec39
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x4c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x403742
lea edx, [esp + 0x4c]
push 0x4b2208
push edx
mov dword [esp + 0x54], 0xef23
call fcn.0041ec39
mov eax, dword [0x4c1960]
mov dword [esp + 0x48], eax
push 0x4c052c
push edi
lea ecx, [esp + 0x50]
push 0x4c0554
push ecx
mov byte [esp + 0x50], 2
call fcn.004850f3
mov edx, dword [esp + 0x58]
push edx
call fcn.0040e790
mov eax, dword [esp + 0x5c]
push eax
call fcn.0040f130
add esp, 0x18
lea ecx, [esp + 0x14]
call fcn.00489022
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 3
call fcn.00488adc
mov ecx, dword [0x4c1960]
mov dword [esp + 0x34], ecx
mov edi, vtable.CFileException.0
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x44], 5
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xffffffff
call fcn.004885ca
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x24]
push edx
push 0x1042
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 6
call fcn.004891d4
test eax, eax
jne 0x4037fe
lea ecx, [esp + 0x4c]
push 0x4b2208
push ecx
mov dword [esp + 0x54], 0xef18
call fcn.0041ec39
mov eax, dword [esi + 0x28]
mov ecx, dword [eax - 8]
lea ecx, [ecx + ecx + 2]
mov dword [esp + 0xc], ecx
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0048932b
lea edx, [esp + 0xc]
push 4
push edx
lea ecx, [esp + 0x1c]
call fcn.0048932b
lea eax, [esp + 0xc]
push 4
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 4
call fcn.0048932b
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00402270
lea ecx, [esp + 0x14]
call fcn.004893ef
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 7
call fcn.00488433
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call fcn.00489117
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 1
call fcn.00488433
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 0
call fcn.00488433
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0xffffffff
call fcn.00488433
mov ecx, dword [esp + 0x38]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret 8
Function at 0x403ad0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a1166
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push edi
push str.AKernel3_mac_
call fcn.0041ec73
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x47c]
lea ecx, [esp + 0x264]
push eax
push ecx
call fcn.0041ed27
lea edx, [esp + 0x26c]
push 0x4c059c
push edx
call fcn.0041ecfd
add esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp + 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403c1d
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x403c1d
push ebx
push esi
mov esi, dword [esp + 0x484]
xor ebx, ebx
lea eax, [esp + 0x44]
push 0x4c0598
push eax
call fcn.0041ec90
add esp, 8
test eax, eax
je 0x403c07
lea ecx, [esp + 0x44]
push 0x4c0590
push ecx
call fcn.0041ec90
add esp, 8
test eax, eax
je 0x403c07
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x44]
push edx
push eax
push str.AKernel3_mac_
call fcn.0041ecc5
add esp, 0xc
test eax, eax
jne 0x403c07
lea ecx, [esp + 0x44]
lea edx, [esp + 0xc]
push ecx
push esi
push edx
call fcn.004886d8
push 0x4c058c
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x480], ebx
push eax
call fcn.004886d8
push eax
mov ecx, esi
mov byte [esp + 0x47c], 1
call fcn.0048857a
lea ecx, [esp + 0x14]
mov byte [esp + 0x478], bl
call fcn.00488433
lea ecx, [esp + 0xc]
mov dword [esp + 0x478], 0xffffffff
call fcn.00488433
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403b61
pop esi
pop ebx
mov ecx, dword [esp + 0x468]
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x470
ret 8
Function at 0x4042f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a1308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [0x4c1960]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x94]
xor ebx, ebx
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x88], ebx
call fcn.004884a7
mov edi, eax
mov esi, dword [esp + 0x98]
lea ecx, [esp + 0x34]
push esi
mov byte [esp + 0x88], 1
call fcn.004884a7
mov ebp, eax
mov edx, dword [esp + 0x90]
lea ecx, [esp + 0x30]
push edx
mov byte [esp + 0x88], 2
call fcn.004884a7
mov dword [esp + 0x94], eax
lea eax, [esp + 0x10]
push str._r__allow_lowercase__V
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x90], 3
call fcn.004886d8
mov edx, dword [esp + 0x94]
mov byte [esp + 0x84], 4
push edx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00488672
push str.__o__
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x90], 5
call fcn.004886d8
push ebp
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x90], 6
call fcn.00488672
push 0x4c0674
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x8c], 7
push eax
call fcn.004886d8
push edi
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x90], 8
call fcn.00488672
push 0x4c0624
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x90], 9
call fcn.004886d8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x88], 0xa
call fcn.0048857a
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 9
call fcn.00488433
lea ecx, [esp + 0x18]
mov byte [esp + 0x84], 8
call fcn.00488433
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 7
call fcn.00488433
lea ecx, [esp + 0x20]
mov byte [esp + 0x84], 6
call fcn.00488433
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 5
call fcn.00488433
lea ecx, [esp + 0x28]
mov byte [esp + 0x84], 4
call fcn.00488433
lea ecx, [esp + 0x2c]
mov byte [esp + 0x84], 3
call fcn.00488433
lea ecx, [esp + 0x30]
mov byte [esp + 0x84], 2
call fcn.00488433
lea ecx, [esp + 0x34]
mov byte [esp + 0x84], 1
call fcn.00488433
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], bl
call fcn.00488433
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x40]
lea edx, [esp + 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x10]
push edx
mov dword [esp + 0x44], 0x3c
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esp + 0x78]
or ebp, 0xffffffff
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call fcn.0040e5b0
add esp, 4
test eax, eax
je 0x40456a
mov ecx, dword [esp + 0x3c]
push esi
call fcn.004045a0
mov edi, eax
cmp edi, ebx
jne 0x404556
push esi
call fcn.0040e790
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x84], ebp
call fcn.00488433
mov eax, edi
jmp 0x40457c
lea ecx, [esp + 0x10]
mov dword [esp + 0x84], ebp
call fcn.00488433
xor eax, eax
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 0x10
Function at 0x4045a0
Capabilities:
Access peb ldr_data
Create process on windows
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a1383
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x268
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x6e]
mov word [esp + 0x6c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x6c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x6c]
push 0x5c
push ecx
call fcn.0041ed4c
add esp, 8
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x2c]
mov word [eax], si
push edx
call fcn.004884a7
push str.dmgtool.exe
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x284], esi
push eax
call fcn.004886d8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x27c], 2
call fcn.00488433
mov ebp, dword [esp + 0x284]
lea ecx, [esp + 0x20]
push ebp
call fcn.004884a7
push str..dat
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x288], 3
call fcn.004886d8
lea ecx, [esp + 0x20]
mov byte [esp + 0x27c], 5
call fcn.00488433
push ebp
lea ecx, [esp + 0x28]
call fcn.004884a7
push eax
lea edx, [esp + 0x20]
push 0x4c0624
push edx
mov byte [esp + 0x288], 6
call fcn.0048874c
push 0x4c0674
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x284], 7
push eax
call fcn.004886d8
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x288], 8
call fcn.00488672
mov byte [esp + 0x27c], 9
push 0x4c0624
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004886d8
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 0xe
call fcn.00488433
lea ecx, [esp + 0x28]
mov byte [esp + 0x27c], 0xd
call fcn.00488433
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], 0xc
call fcn.00488433
lea ecx, [esp + 0x24]
mov byte [esp + 0x27c], 0xb
call fcn.00488433
mov edx, dword [esp + 0x10]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 0x3c
mov dword [esp + 0x38], 0x40
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x68]
or esi, 0xffffffff
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e5b0
add esp, 4
test eax, eax
je 0x4047ce
push ebp
call fcn.0040e790
mov eax, dword [esp + 0x10]
push ebp
push eax
call fcn.0040e610
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], 5
call fcn.00488433
lea ecx, [esp + 0xc]
mov byte [esp + 0x27c], 2
call fcn.00488433
lea ecx, [esp + 0x14]
mov dword [esp + 0x27c], esi
call fcn.00488433
mov eax, 1
jmp 0x404802
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], 5
call fcn.00488433
lea ecx, [esp + 0xc]
mov byte [esp + 0x27c], 2
call fcn.00488433
lea ecx, [esp + 0x14]
mov dword [esp + 0x27c], esi
call fcn.00488433
xor eax, eax
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x274
ret 4
Function at 0x405560
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4a16e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x4c1960]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x244]
mov edi, 1
cmp ebp, ebx
mov dword [esp + 0x238], edi
jne 0x4055c1
mov esi, dword [esp + 0x240]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004881a0
mov dword [esp + 0x14], edi
jmp 0x405700
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebx
push edx
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jbe 0x4056bf
push edi
call fcn.00488166
add esp, 4
mov esi, eax
push esi
push edi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4056bf
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0x4c0764
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405683
mov edx, dword [esp + 0x1c]
cmp edx, ebx
jne 0x405632
push esi
call fcn.0048818f
add esp, 4
lea eax, [esp + 0x10]
push eax
jmp 0x4056ea
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ecx, ecx
xor eax, eax
mov cx, word [edx + 2]
mov ax, word [edx]
push ecx
push eax
lea ecx, [esp + 0x30]
push str.StringFileInfo_04x_04xFileVersion
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x28]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x405693
push esi
call fcn.0048818f
add esp, 4
lea edx, [esp + 0x10]
push edx
jmp 0x4056ea
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4056b6
push eax
call fcn.0041ec73
add esp, 4
test eax, eax
jbe 0x4056b6
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.004885ca
push esi
call fcn.0048818f
add esp, 4
push 0x4c0598
push 0x4c039c
lea ecx, [esp + 0x18]
call fcn.004849ec
push 0x4c6c7c
push 0x4c058c
lea ecx, [esp + 0x18]
call fcn.004849ec
lea ecx, [esp + 0x10]
push ecx
mov esi, dword [esp + 0x244]
mov ecx, esi
call fcn.004881a0
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], bl
call fcn.00488433
mov ecx, dword [esp + 0x230]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret