joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ee50
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ec5b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x44e6f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x7c]
push eax
push 0x4476b4
push 1
push ebx
push 0x447784
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x70]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x70], ebx
mov ecx, dword [eax]
push str.rootSecurityCenter2
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x41efed
mov ecx, dword [ebp - 0x70]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x78]
push ecx
push ebx
push 0x20
push str.Select__From_AntiVirusProduct
mov dword [ebp - 0x78], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
push 0x446794
push eax
call edx
cmp eax, ebx
jl 0x41efed
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x41efed
mov ecx, dword [eax]
lea edx, [ebp - 0x74]
push edx
lea edx, [ebp - 0x80]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x74], ebx
je 0x41efdb
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x80]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [ebp - 0x90]
push ecx
push ebx
push str.displayName
push eax
mov byte [ebp - 4], 2
call edx
mov eax, dword [ebp - 0x88]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041ebd0
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x69]
mov byte [ebp - 4], 3
call fcn.00423020
cmp dword [eax + 0x14], 0x10
jb 0x41efb0
mov esi, dword [eax]
jmp 0x41efb2
mov esi, eax
lea ecx, [ebp - 0x68]
call fcn.0040a550
lea ecx, [ebp - 0x4c]
call fcn.0040a580
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ebp - 0x30]
call fcn.0040a550
mov eax, esi
jmp 0x41eff2
cmp dword [ebp - 0x1c], 0x10
jb 0x41efed
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00429a19
add esp, 4
mov eax, str.Unknown
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00429afa
mov esp, ebp
pop ebp
ret
Function at 0x41f9b0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ee09
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x44e6f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x443bfc
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], esi
mov byte [esi], bl
call fcn.0042b640
add esp, 4
push eax
push 0x443bfc
mov ecx, esi
call fcn.00404cd0
push str.Mozilla_5.0__Windows_NT_10.0_
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], 1
call fcn.0042b640
add esp, 4
push eax
push str.Mozilla_5.0__Windows_NT_10.0_
mov ecx, esi
call fcn.00404cd0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ebx
call dword [0x4610bc]
push eax
call dword [0x461060]
test eax, eax
je 0x41fa54
mov eax, 0x44675c
cmp dword [ebp - 0x30], ebx
jne 0x41fa59
mov eax, 0x446758
push eax
lea ecx, [ebp - 0x2c]
push esi
push ecx
call fcn.0040d1c0
add esp, 0xc
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00404e10
cmp dword [ebp - 0x18], 0x10
mov byte [ebp - 4], bl
jb 0x41fa8b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00429a19
add esp, 4
push 0x4468d0
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0040d1c0
add esp, 0xc
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00404e10
cmp dword [ebp - 0x18], 0x10
jb 0x41fabe
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00429a19
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429afa
mov esp, ebp
pop ebp
ret 4

Function at 0x420090
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x44e6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 2
xor bl, bl
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x420109
lea ecx, [ebp - 0x12c]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x420109
lea edx, [ebp - 0x108]
push edi
push edx
call fcn.0043a4ff
add esp, 8
test eax, eax
jne 0x4200f8
mov bl, 1
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4200e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00429afa
mov esp, ebp
pop ebp
ret
Function at 0x423860
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f3ca
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x44e6f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a0], edi
lea eax, [ebp + 0xc]
push eax
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 4], 1
call fcn.004230c0
mov ebx, 8
cmp dword [eax + 0x14], ebx
jb 0x4238bf
mov eax, dword [eax]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x34], ebx
jb 0x4238e4
mov edx, dword [ebp - 0x48]
push edx
call fcn.00429a19
add esp, 4
mov ebx, 7
xor eax, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
lea edx, [ebp - 0x26c]
xor ecx, ecx
push edx
mov dword [ebp - 0x2a0], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
call fcn.0042d673
add esp, 4
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041eae0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00423770
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x423957
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00429a19
add esp, 4
mov ecx, dword [ebp - 0x29c]
lea eax, [ebp - 0x298]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4239d8
nop
lea eax, [ebp - 0x26c]
xor edx, edx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
call fcn.0042d673
add esp, 4
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0041eae0
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00423770
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
jb 0x4239c0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00429a19
add esp, 4
mov edx, dword [ebp - 0x29c]
lea ecx, [ebp - 0x298]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x423970
cmp dword [ebp + 0x20], 0x10
jb 0x4239ea
mov eax, dword [ebp + 0xc]
push eax
call fcn.00429a19
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.00429afa
mov esp, ebp
pop ebp
ret 0x20
Function at 0x425fa0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x425fae
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x42608d
mov esi, edx
shr esi, 3
push edi
jmp 0x425fd0
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446d70]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446d70]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446d70]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446d70]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446d70]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446d70]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446d70]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446d70]
add ecx, 8
sub edx, 8
dec esi
jne 0x425fd0
pop edi
test edx, edx
je 0x4260aa
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x446d70]
inc ecx
dec edx
jne 0x426091
not eax
pop esi
pop ebp
ret

Function at 0x4260b0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x446d70]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x446d70]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x426640
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x42672b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x426677
cmp dword [esi + 0x40], edi
jae 0x426677
push eax
call fcn.00429a19
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x42668f
lea eax, [edi + edi]
push eax
call fcn.0042bbd1
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.0042b060
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x426728
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x446d70]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x446d70]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x4266a7
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x42676a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x42674f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.0042b060
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42678c
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [0x460f40]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x427d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x427f35
cmp dword [esi + 0x6af90], 3
jb 0x427d97
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x427dd7
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x427dd7
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x427dbf
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.00425490
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x427dd7
mov edi, eax
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x427eb4
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.00424f60
sub dword [esi + 0x6af90], edi
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp edi, dword [esi + 0x6af98]
ja 0x427e7e
cmp eax, 3
jb 0x427e7e
mov eax, 1
sub edi, eax
lea ecx, [ecx]
add dword [esi + 0x6af84], eax
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor ecx, ebx
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub edi, eax
mov dword [esi + edx*4 + 0x2af70], ebx
mov edx, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + edx*4 + 0x4af70], ecx
jne 0x427e20
add dword [esi + 0x6af84], eax
jmp 0x427ed7
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
xor edi, edi
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
jmp 0x427ed7
movzx edx, byte [ecx + esi + 0x1af70]
push edx
push 0
push esi
call fcn.00424f60
dec dword [esi + 0x6af90]
add esp, 0xc
inc dword [esi + 0x6af84]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x427f13
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x427ef0
lea ecx, [eax + esi + 0x1af70]
jmp 0x427ef2
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00427b90
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x427f28
push esi
call fcn.004255f0
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x427d43
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x427f48
lea ecx, [eax + esi + 0x1af70]
jmp 0x427f4a
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.00427b90
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x429afa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e6f0]
jne 0x429b04
repz ret
jmp fcn.004303c5

Function at 0x43894c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44e6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00431a91
and dword [ebp - 0x14], 0
cmp dword [0x4620f0], 0
mov dword [ebp - 0x18], eax
jne 0x4389ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x438aa7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x438aa7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4620f0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4620f4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4620f8], eax
call edi
push eax
call esi
mov dword [0x462100], eax
test eax, eax
je 0x4389ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4620fc], eax
mov eax, dword [0x4620fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x438a58
cmp dword [0x462100], ecx
je 0x438a58
push eax
call esi
push dword [0x462100]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x438a58
test ebx, ebx
je 0x438a58
call edi
test eax, eax
je 0x438a4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x438a4f
test byte [ebp - 8], 1
jne 0x438a58
or dword [ebp + 0x10], 0x200000
jmp 0x438a8b
mov eax, dword [0x4620f4]
cmp eax, dword [ebp - 0x18]
je 0x438a8b
push eax
call esi
test eax, eax
je 0x438a8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x438a8b
mov eax, dword [0x4620f8]
cmp eax, dword [ebp - 0x18]
je 0x438a8b
push eax
call esi
test eax, eax
je 0x438a8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4620f0]
call esi
test eax, eax
je 0x438aa7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x438aa9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429afa
leave
ret
Function at 0x402bd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404840], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40410c], ecx
mov dword [0x4047c0], 0x30
mov dword [0x4047c4], 2
mov dword [0x4047cc], 0
mov dword [0x4047d0], 0
mov dword [0x4047c8], 0x402f50
jmp 0x402c23
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4047d4], eax
mov dword [0x4047e0], 0xf
mov dword [0x4047e8], 0x404767
mov dword [0x404104], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4047d8], eax
mov dword [0x4047ec], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4047dc], eax
push 0x4047c0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x404104]
push 0
push 0
push 0x24e
push 0x320
push 0xd8
push 0xa0
push 0x40000
push str.litform
push str.ndcls
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404838], eax
xor eax, eax
jmp 0x402cc2
push eax
push dword [0x404838]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404838]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4047f0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402d08
push 0x4047f0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4047f0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402cdb
mov eax, dword [0x4047f8]
jmp 0x402d15
call 0x4022b2
ret
Function at 0x403181
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4031a1
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x4031b3
mov dword [ebp - 0xc], 0x422a00
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4031c8
mov ecx, dword [0x434f58]
add ecx, eax
push ecx
call fcn.004033b2
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040339c
test eax, eax
je 0x40338a
test byte [ebp + 0x17], 0x80
je 0x403335
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40d364], 0
and dword [0x40d360], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40e9e8
mov dword [0x40ce48], 8
mov dword [0x4169f0], eax
mov dword [0x4169ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4169e8], 0x4169e8
mov dword [ebp + 8], eax
jle 0x403392
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403241
mov esi, dword [ebp + 0x14]
mov edi, 0x41ea00
push esi
push edi
call fcn.0040339c
test eax, eax
je 0x40338a
sub dword [ebp + 0x14], esi
mov dword [0x40ce38], edi
mov dword [0x40ce3c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce38
mov dword [0x40ce40], edi
mov dword [0x40ce44], eax
call fcn.0040686a
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40332d
mov esi, dword [0x40ce40]
sub esi, edi
call ebx
test byte [0x434fb4], 1
mov edi, eax
je 0x4032e8
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x4032af
cmp dword [ebp + 0x14], 0
jne 0x4032e8
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00405397
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403321
cmp dword [ebp + 0x10], 0
jne 0x403307
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405ed7
test eax, eax
je 0x403331
add dword [ebp - 4], esi
jmp 0x403315
mov eax, dword [0x40ce40]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x403264
jmp 0x403392
cmp dword [ebp + 0x14], 0
jg 0x403234
jmp 0x403392
push 0xfffffffffffffffc
jmp 0x40338c
push 0xfffffffffffffffe
jmp 0x40338c
test edi, edi
jne 0x403377
cmp dword [ebp + 0x14], edi
jle 0x403392
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x40334b
mov esi, ebx
mov edi, 0x41ea00
push esi
push edi
call fcn.0040339c
test eax, eax
je 0x40338a
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405ed7
test eax, eax
je 0x403331
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403341
jmp 0x403392
cmp dword [ebp + 0x14], esi
jge 0x40337f
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040339c
test eax, eax
jne 0x40338f
push 0xfffffffffffffffd
pop eax
jmp 0x403395
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405866
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4058b7
xor eax, eax
jmp 0x4058de
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4058de
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4058b3
call esi
pop esi
leave
ret 4

Function at 0x405918
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430250], 0x44
push eax
xor eax, eax
push 0x430250
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405957
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40595b
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x4059f9
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405e00
mov edi, eax
cmp edi, 0xffffffff
je 0x405a3a
test byte [esp + 0x10], 1
push esi
je 0x405a1c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405a22
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405a2b
xor eax, eax
inc eax
jmp 0x405a3c
test byte [esp + 0x10], 4
jne 0x405a3a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8