joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4056c5
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45a788
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x18], 0
call fcn.004045f0
lea ecx, [esi + 0x20]
push ecx
push 0
push esi
push 0x405610
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
cmp dword [esp + 0x2c], 0x10
jb 0x40570b
mov edx, dword [esp + 0x18]
push edx
call fcn.0044afc3
add esp, 4
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x1c

Function at 0x405720
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x214
mov eax, dword [0x46ad0c]
push esi
xor esi, esi
push esi
mov dword [esp + 0x218], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x40584a
lea eax, [esp + 4]
push eax
push 0x464d8c
push 1
push esi
push 0x464d9c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x405844
mov edx, dword [esp + 0x220]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x224]
test eax, eax
je 0x40578c
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x228]
test ecx, ecx
je 0x4057a2
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x22c]
test cx, cx
je 0x4057b9
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x34]
mov ecx, dword [esp + 0x230]
test ecx, ecx
je 0x4057cf
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov ecx, dword [esp + 0x234]
test ecx, ecx
je 0x4057e5
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x464dac
push eax
call dword [ecx]
test eax, eax
jl 0x40583a
mov ecx, dword [esp + 0x21c]
push 0x104
lea eax, [esp + 0x10]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov esi, 1
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
call fcn.0044b7c8
add esp, 0x214
ret 0x1c
Function at 0x405dd0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x46ad0c]
push esi
push edi
mov dword [esp + 0x42c], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x16
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x405e28
mov ecx, dword [esp + 0x42c]
call fcn.0044b7c8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x114]
push 0x45d818
push edx
call fcn.0044b73f
add esp, 0xc
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x114]
push 0x45d800
push edx
call fcn.0044b73f
mov eax, dword [0x46c230]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x330]
push str._swnwbwnwb.exe
push edx
call fcn.0044b73f
mov eax, dword [0x46c230]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x234]
push str._swnwb
push edx
call fcn.0044b73f
add esp, 0x24
push 0
lea eax, [esp + 0x21c]
push eax
push 0x657
push 1
push 0x45d7e0
lea ecx, [esp + 0x334]
push ecx
lea edx, [esp + 0x128]
push edx
mov ecx, esi
call fcn.00405720
mov ecx, dword [esp + 0x42c]
mov eax, 1
call fcn.0044b7c8
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405ef0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x46ad0c]
push esi
push edi
mov dword [esp + 0x42c], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x17
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x405f48
mov ecx, dword [esp + 0x42c]
call fcn.0044b7c8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x114]
push 0x45d818
push edx
call fcn.0044b73f
add esp, 0xc
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x114]
push 0x45d800
push edx
call fcn.0044b73f
mov eax, dword [0x46c230]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x330]
push str._swnwbwnwb.exe
push edx
call fcn.0044b73f
mov eax, dword [0x46c230]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x234]
push str._swnwb
push edx
call fcn.0044b73f
add esp, 0x24
push 0
lea eax, [esp + 0x21c]
push eax
push 0x657
push 1
push 0x45d7e0
lea ecx, [esp + 0x334]
push ecx
lea edx, [esp + 0x128]
push edx
mov ecx, esi
call fcn.00405720
mov ecx, dword [esp + 0x42c]
mov eax, 1
call fcn.0044b7c8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b430
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45ab2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
mov eax, dword [0x46ad0c]
push esi
lea ecx, [esp + 4]
mov dword [esp + 0x31c], eax
call fcn.00403990
mov esi, dword [esp + 0x330]
push esi
lea eax, [esp + 0x14]
push str._s.
push eax
mov dword [esp + 0x334], 0
call fcn.0044b73f
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 8]
call fcn.00403a90
test eax, eax
je 0x40b4f7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea ecx, [esp + 0xc]
call fcn.004039d0
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.004039a0
test eax, eax
jne 0x40b4f1
lea edx, [esp + 0x11c]
push edx
lea ecx, [esp + 0x10]
call fcn.00403a10
lea eax, [esp + 0x11c]
push eax
push esi
lea ecx, [esp + 0x228]
push str._s_s
push ecx
call fcn.0044b73f
add esp, 0x10
lea edx, [esp + 0x220]
push edx
call ebx
test edi, edi
jne 0x40b4a0
pop edi
pop ebx
lea ecx, [esp + 4]
mov dword [esp + 0x328], 0xffffffff
call fcn.00403a40
mov ecx, dword [esp + 0x320]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x31c]
mov eax, 1
pop esi
call fcn.0044b7c8
add esp, 0x328
ret 4

Function at 0x40b540
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x46ad0c]
push esi
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov esi, ecx
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x40b583
push 0x17
lea eax, [esp + 0x10]
push eax
jmp 0x40b58a
push 2
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40b5aa
mov ecx, dword [esp + 0x114]
call fcn.0044b7c8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edi, [esp + 8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b5b0
mov edx, dword [0x45d90c]
mov eax, dword [0x45d910]
mov cx, word [0x45d914]
mov dword [edi], edx
mov dword [edi + 4], eax
mov word [edi + 8], cx
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b5d8
mov edx, dword [0x45e0b0]
mov eax, dword [0x45e0b4]
lea ecx, [esp + 8]
mov dword [edi], edx
push ecx
mov ecx, esi
mov dword [edi + 4], eax
call fcn.0040b430
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x114]
mov eax, 1
call fcn.0044b7c8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b620
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x46ad0c]
push esi
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov esi, ecx
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
test eax, eax
push 0
je 0x40b663
push 0x17
lea eax, [esp + 0x10]
push eax
jmp 0x40b66a
push 2
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40b68a
mov ecx, dword [esp + 0x114]
call fcn.0044b7c8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea edi, [esp + 8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b690
mov edx, dword [0x45d90c]
mov eax, dword [0x45d910]
mov cx, word [0x45d914]
mov dword [edi], edx
mov dword [edi + 4], eax
mov word [edi + 8], cx
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b6b8
mov edx, dword [0x45e0b8]
mov eax, dword [0x45e0bc]
lea ecx, [esp + 8]
mov dword [edi], edx
push ecx
mov ecx, esi
mov dword [edi + 4], eax
call fcn.0040b430
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x114]
mov eax, 1
call fcn.0044b7c8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41ddc0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
push edi
push ecx
call fcn.0042dfe0
movzx ecx, word [esi + 0xe]
movzx edx, byte [esi + 8]
mov ebp, dword [esi + 0x44]
mov dword [esp + 0x20], ecx
movzx ecx, word [esi + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x40]
movzx ebx, word [ecx + 0x1e]
xor ecx, ecx
mov ch, byte [edx + ebp + 5]
mov dword [esp + 0x24], eax
add esp, 4
mov dword [esp + 0x24], edx
mov cl, byte [edx + ebp + 6]
mov edi, ecx
mov ecx, ebx
sub ecx, edi
lea esi, [edi + ebp]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
test esi, esi
jle 0x41dea3
mov ecx, dword [esp + 0x1c]
add ecx, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
jmp 0x41de40
mov ecx, dword [esp + 0x10]
mov edi, edi
mov eax, dword [esp + 0x20]
xor edx, edx
mov dh, byte [ecx]
mov dl, byte [ecx + 1]
mov ecx, edx
mov edx, dword [esp + 0x4c]
lea esi, [ecx + eax]
lea ecx, [esp + 0x28]
push ecx
push esi
push edx
call fcn.0041dbf0
movzx ecx, word [esp + 0x52]
sub ebx, ecx
mov eax, ecx
shr ecx, 2
lea edi, [ebx + ebp]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
sar ecx, 8
mov byte [eax], cl
mov byte [eax + 1], bl
add eax, 2
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
add esp, 0xc
dec eax
mov dword [esp + 0x14], eax
jne 0x41de3a
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, ebx
sar eax, 8
mov byte [edx + ebp + 5], al
mov byte [edx + ebp + 6], bl
mov byte [edx + ebp + 1], 0
mov byte [edx + ebp + 2], 0
mov byte [edx + ebp + 7], 0
lea edx, [ecx + esi*2]
mov ecx, ebx
sub ecx, edx
lea edi, [edx + ebp]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
Function at 0x422200
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x4c]
mov esi, dword [ebx + 0x40]
push 0
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
mov dword [esp + 0x2c], esi
call fcn.00420380
add esp, 0x14
test eax, eax
jne 0x422366
movzx eax, word [esi + 0x1e]
movzx edx, byte [ebx + 8]
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, dword [ebp + 0x44]
mov dword [esp + 0xc], ecx
movzx ecx, word [ebx + 0x14]
push edi
movzx edi, word [ebx + 0xe]
lea ecx, [edi + ecx*2]
mov edi, dword [esp + 0x10]
sub ecx, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x44]
lea esi, [edx + eax]
mov edx, ecx
mov dword [esp + 0x18], eax
xor eax, eax
mov ah, byte [esi + 5]
shr ecx, 2
push ebx
push ebp
mov al, byte [esi + 6]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
sub ecx, eax
lea esi, [eax + edx]
mov edx, dword [esp + 0x18]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0041e230
mov esi, eax
add esp, 8
test esi, esi
jne 0x422356
movzx ecx, byte [ebx + 2]
shl ecx, 3
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x18]
lea edi, [ebp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebx + 2]
test al, al
mov byte [ebp + 2], al
je 0x4222da
mov word [ebp + 0x12], 0
mov eax, dword [ebp + 0x44]
movzx ecx, byte [eax]
and ecx, 0xfffffff7
push ecx
mov esi, ebx
call fcn.0041e3a0
movzx eax, byte [ebx + 8]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x44]
push edx
lea edx, [eax + ecx + 8]
push edx
call fcn.00418de0
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx + 0x16]
add esp, 0xc
test al, al
je 0x42234b
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebp + 0x4c]
mov bl, 5
call fcn.0041d9d0
mov esi, eax
add esp, 4
test esi, esi
jne 0x422356
cmp word [ebp + 0x14], ax
jbe 0x42234b
lea esp, [esp]
mov eax, esi
mov edi, ebp
call fcn.0041dbb0
call fcn.0041dd40
test eax, eax
jne 0x422364
movzx ecx, word [ebp + 0x14]
inc esi
cmp esi, ecx
jl 0x422330
push ebp
call fcn.004214b0
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0x48]
push edx
call fcn.00430010
add esp, 4
mov eax, esi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x432ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x64]
push ebx
mov ebx, dword [ecx + 0x20]
test ebx, ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x64]
mov eax, dword [edi]
mov dword [esp + 0x64], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
je 0x432c95
movzx edx, byte [ebx + 8]
mov ecx, dword [esp + 0x68]
cmp edx, ecx
jne 0x432c8a
movzx eax, byte [ebx + 9]
cmp eax, dword [esp + 0x70]
jne 0x432c8a
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebx + 0x20]
je 0x432b26
mov edx, dword [esp + 0x64]
mov edx, dword [edx + 8]
cmp eax, dword [edx + 0x2c]
jne 0x432c8a
cmp ecx, 0x64
jne 0x432b47
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x432b47
mov esi, dword [esp + 0x6c]
push eax
call fcn.00432760
add esp, 4
test eax, eax
je 0x432c8a
mov eax, dword [edi + 0xdc]
test eax, eax
je 0x432b61
cmp ebx, dword [eax + 0x1c]
je 0x432c8a
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x432b51
mov eax, dword [ebx]
mov esi, dword [esp + 0x64]
push 0xffffffffffffffff
push eax
push str.___TRIGGER__s
push esi
call fcn.00410a90
mov ecx, dword [edi + 0xc]
add esp, 0xc
push eax
push 0
push 0
push 0
push 0x13
push ecx
call fcn.00416ee0
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
xor edx, edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0xdc]
mov dword [esp + 0x34], edx
lea edx, [esp + 0x34]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
mov dword [edi + 0xdc], edx
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x30]
push ecx
push edi
mov dword [esp + 0x64], edi
call fcn.00434b30
mov edx, dword [edi + 0xc]
push edx
call fcn.00414d70
mov ebp, eax
mov eax, dword [ebx + 0xc]
push eax
push esi
call fcn.0043b0c0
mov ecx, dword [esp + 0x98]
mov esi, eax
mov al, byte [ecx + 0x1e]
add esp, 0x34
test al, al
jne 0x432cc9
lea edx, [esp + 0x3c]
push esi
push edx
call fcn.0043bc70
add esp, 8
test eax, eax
jne 0x432cc9
push 8
push ebp
push esi
push edi
call fcn.0043d3b0
push esi
call fcn.0043a720
mov eax, dword [esp + 0x94]
mov ecx, dword [ebx + 0x24]
push eax
push ecx
call fcn.004328b0
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x2c]
push eax
mov dword [edi + 0xdc], edx
call fcn.00434b60
mov ecx, dword [edi + 0xc]
push ebp
push ecx
call fcn.00414dc0
add esp, 0x28
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x432af0
mov eax, dword [esp + 0x88]
test eax, eax
je 0x432caa
mov edx, dword [eax]
mov ecx, dword [esp + 0x28]
or edx, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x432cbf
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
or ecx, edx
mov dword [eax], ecx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
mov edx, dword [esp + 0x38]
push esi
mov dword [edi + 0xdc], edx
call fcn.0043a720
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret
Function at 0x43a8e0
Capabilities:
Enumerate pe sections

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x43a8ed
xor eax, eax
pop edi
ret
push ebp
mov ebp, dword [esp + 0xc]
push esi
push 0x48
push ebp
call fcn.00417fb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x43a908
pop esi
pop ebp
pop edi
ret
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov ecx, dword [edi]
push ecx
push ebp
call fcn.00439ca0
mov dword [esi], eax
mov edx, dword [edi + 0xc]
push edx
push ebp
call fcn.0043a7c0
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
push eax
push ebp
call fcn.0043b0c0
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
push ecx
push ebp
call fcn.00439ca0
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x18]
push edx
push ebp
call fcn.0043b0c0
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
push eax
push ebp
call fcn.00439ca0
mov dword [esi + 0x1c], eax
mov cl, byte [edi + 4]
mov byte [esi + 4], cl
mov edx, dword [edi + 0x20]
push edx
push ebp
call fcn.0043a8e0
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x2c]
push eax
push ebp
call fcn.0043b0c0
mov dword [esi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add esp, 0x40
push ecx
push ebp
call fcn.0043b0c0
mov dword [esi + 0x30], eax
or eax, 0xffffffff
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dl, byte [edi + 6]
mov byte [esi + 6], dl
mov cl, byte [edi + 7]
add esp, 8
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov byte [esi + 7], cl
mov byte [esi + 8], 0
mov byte [esi + 9], 0
mov dword [esi + 0x28], 0
mov eax, esi
pop esi
pop ebp
pop edi
ret
Function at 0x44c3c4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0044c5c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x44c45f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x46c838]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x44c45f
cmp eax, 1
je 0x44c480
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x44c45f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x44c42c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x44c45b
xor eax, eax
inc eax
jmp 0x44c49f
cmp edi, eax
jae 0x44c463
xor eax, eax
jmp 0x44c49f
cmp eax, esi
jae 0x44c46a
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x46c838]
jmp 0x44c483
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44d47e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4650a0
call fcn.0044f920
mov edi, 0x94
mov eax, edi
call fcn.0044c5c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x46c838], ecx
mov eax, dword [esi + 4]
mov dword [0x46c844], eax
mov edx, dword [esi + 8]
mov dword [0x46c848], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46c83c], esi
cmp ecx, 2
je 0x44d4de
or esi, 0x8000
mov dword [0x46c83c], esi
shl eax, 8
add eax, edx
mov dword [0x46c840], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x44d519
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44d519
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x44d531
cmp eax, 0x20b
je 0x44d51e
mov dword [ebp - 0x1c], esi
jmp 0x44d545
cmp dword [ecx + 0x84], 0xe
jbe 0x44d519
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x44d53f
cmp dword [ecx + 0x74], 0xe
jbe 0x44d519
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0044f986
pop ecx
test eax, eax
jne 0x44d559
push 0x1c
call fcn.0044d45a
pop ecx
call fcn.00451678
test eax, eax
jne 0x44d56a
push 0x10
call fcn.0044d45a
pop ecx
call fcn.0045552f
mov dword [ebp - 4], esi
call fcn.00452d13
test eax, eax
jge 0x44d583
push 0x1b
call fcn.0044d435
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46df30], eax
call fcn.0045540d
mov dword [0x46c698], eax
call fcn.0045536b
test eax, eax
jge 0x44d5a9
push 8
call fcn.0044d435
pop ecx
call fcn.00455138
test eax, eax
jge 0x44d5ba
push 9
call fcn.0044d435
pop ecx
push 1
call fcn.004545b7
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x44d5d0
push eax
call fcn.0044d435
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004550db
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x44d5f1
movzx eax, word [ebp - 0x40]
jmp 0x44d5f4
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040b3f0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x44d612
push edi
call fcn.004546e4
call fcn.00454706
jmp 0x44d644
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0044f95b
ret