joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453314
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45332b
add esp, 0xfffffff0
call fcn.0040398c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d4e0
mov eax, dword [0x45aec0]
cmp word [eax + 2], 0
jne 0x453353
mov eax, dword [0x45aec0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004549d8
mov eax, dword [0x45af4c]
cmp word [eax + 2], 0
jne 0x45336d
mov eax, dword [0x45af4c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454bd0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4134ac]
call fcn.004035f8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4134ac]
call fcn.004035f8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41f920]
call fcn.00426d14
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4534f4
mov eax, dword [0x45adfc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004270e4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455140
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45adfc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c7f4
test eax, eax
je 0x453462
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b10
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c81c
test eax, eax
je 0x453476
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004045fc
mov eax, dword [0x45ad08]
cmp byte [eax], 0
jne 0x4534aa
mov eax, ebx
call fcn.0045361c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045531c
mov eax, ebx
call fcn.00455c5c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4534ea
call fcn.004039e4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453890
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45cbfc]
cmp dword [eax + 0x30], 0
je 0x45393a
cmp dword [ebx + 0x94], 0
jne 0x453934
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453820
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453934
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4538fa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453934
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00415b4c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453909
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454418
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45444d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404484
jmp 0x45445a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043e8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4554f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455539
mov eax, esi
call fcn.0043ba6c
test al, al
je 0x455539
mov eax, dword [ebx + 0x84]
call fcn.0043b768
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455539
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b768
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x457350
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404834
mov eax, dword [ebp - 8]
call fcn.00404834
xor eax, eax
push ebp
push 0x4573db
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x26], ebx
mov dword [ebp - 0x22], 2
mov eax, dword [ebp - 4]
call fcn.00404844
mov dword [ebp - 0x1e], eax
mov eax, dword [ebp - 8]
call fcn.00404844
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], 0x110
mov dword [ebp - 0x14], 0xffffffff
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, 0x4573e8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4573e2
lea eax, [ebp - 8]
mov edx, 2
call fcn.004043b8
ret
Function at 0x4577b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x45788e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402a00
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004089ac
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov ecx, 0x4578a8
call fcn.00404698
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0045756c
mov eax, dword [ebp - 4]
call fcn.0040891c
test al, al
jne 0x45781d
mov eax, dword [0x45af38]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00457350
jmp 0x457848
mov eax, dword [ebp - 4]
call fcn.004088b4
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.004088b4
cmp esi, eax
je 0x457848
mov eax, dword [0x45af38]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00457350
mov edx, 0x4578c0
mov eax, ebx
call fcn.0045764c
push 0xa
push 0x4578c8
push 0x4578c8
push 0x4578cc
push 0x4578dc
push 0
call sub.shell32.dll_ShellExecuteA
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457895
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004043b8
ret

Function at 0x458288
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00457eec
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404844
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4582e6
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45aed8]
mov dl, 1
mov eax, dword [0x457de4]
call fcn.0040bc5c
call fcn.00403df4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4582f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404844
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x458348
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45b098]
mov dl, 1
mov eax, dword [0x457de4]
call fcn.0040bc5c
call fcn.00403df4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00457f1c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4583dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov edi, ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404834
xor eax, eax
push ebp
push 0x4584f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004043e8
mov eax, dword [ebp - 4]
call fcn.0040464c
mov esi, eax
test esi, esi
jle 0x458460
mov ebx, 1
mov eax, edi
call fcn.0040489c
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
movzx ecx, word [ebp - 6]
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
mov eax, dword [edi]
movzx eax, byte [eax + ebx - 1]
add ax, word [ebp - 6]
imul ax, ax, 0xce6d
add ax, 0x58bf
mov word [ebp - 6], ax
inc ebx
dec esi
jne 0x458429
lea eax, [ebp - 4]
mov edx, dword [edi]
call fcn.0040442c
mov eax, edi
call fcn.00404394
mov eax, dword [ebp - 4]
call fcn.0040464c
mov esi, eax
test esi, esi
jle 0x4584d5
mov ebx, 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
mov dword [ebp - 0xc], eax
push dword [edi]
mov eax, dword [ebp - 0xc]
mov ecx, 0x1a
cdq
idiv ecx
mov edx, eax
add dl, 0x41
lea eax, [ebp - 0x10]
call fcn.00404574
push dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, 0x1a
cdq
idiv ecx
add dl, 0x41
lea eax, [ebp - 0x14]
call fcn.00404574
push dword [ebp - 0x14]
mov eax, edi
mov edx, 3
call fcn.0040470c
inc ebx
dec esi
jne 0x458484
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4584ff
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004043b8
lea eax, [ebp - 4]
call fcn.00404394
ret
Function at 0x458508
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404834
xor eax, eax
push ebp
push 0x458605
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404394
mov eax, dword [ebp - 4]
call fcn.0040464c
mov esi, eax
sar esi, 1
jns 0x45854d
adc esi, 0
test esi, esi
jle 0x458592
mov ebx, 1
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 4]
movzx edx, byte [edx + eax - 2]
sub edx, 0x41
imul edx, edx, 0x1a
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
sub eax, 0x41
add dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov dl, byte [ebp - 0xc]
call fcn.00404574
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.00404654
inc ebx
dec esi
jne 0x458556
lea eax, [ebp - 4]
mov edx, dword [edi]
call fcn.0040442c
mov eax, dword [ebp - 4]
call fcn.0040464c
mov esi, eax
test esi, esi
jle 0x4585e7
mov ebx, 1
mov eax, edi
call fcn.0040489c
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
movzx ecx, word [ebp - 6]
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ebx - 1]
add ax, word [ebp - 6]
imul ax, ax, 0xce6d
add ax, 0x58bf
mov word [ebp - 6], ax
inc ebx
dec esi
jne 0x4585af
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45860c
lea eax, [ebp - 0x10]
call fcn.00404394
lea eax, [ebp - 4]
call fcn.00404394
ret

Function at 0x45864c
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, 4
call fcn.0040271c
mov ebx, eax
push 0
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
push ebx
push 0
push 0
push 0x458690
call sub.kernel32.dll_GetVolumeInformationA
mov esi, dword [ebx]
mov edx, 4
mov eax, ebx
call fcn.0040273c
mov eax, esi
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x406c81
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x406cbf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406c95
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x406c90
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406cec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406ccd
not eax
pop ebp
ret 0xc

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4010f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401109
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40111d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40113e
cmp esi, eax
jae 0x401117
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401130
cmp esi, eax
jae 0x401117
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4028e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
mov esi, dword [esp + 0x9c]
push edi
push 0x17
push str.unknown_Windows_version
mov ecx, esi
call fcn.004015e0
mov edi, dword [esp + 0xa4]
lea eax, [esp + 8]
push eax
mov dword [edi], 0
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40292a
pop edi
pop esi
add esp, 0x94
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
and eax, 0xffff
cmp ecx, 1
jne 0x402a74
cmp dword [esp + 0xc], 4
jne 0x402b90
mov ecx, dword [esp + 0x10]
cmp ecx, 0xa
jae 0x4029ce
cmp eax, 0x3b6
jne 0x40297b
push str.Windows_95
mov ecx, esi
call fcn.00401960
mov dword [edi], 1
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
jbe 0x4029a4
cmp eax, 0x438
ja 0x4029ab
push str.Windows_95_SP1
mov ecx, esi
call fcn.00401960
mov dword [edi], 2
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
cmp eax, 0x438
jbe 0x4029cb
push str.Windows_95_OSR2
mov ecx, esi
call fcn.00401960
mov dword [edi], 3
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
cmp ecx, 0xa
jne 0x402a4b
cmp eax, 0x7ce
jne 0x4029f7
push str.Windows_98
mov ecx, esi
call fcn.00401960
mov dword [edi], 4
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
jbe 0x402a20
cmp eax, 0x887
jae 0x402a2b
push str.Windows_98_SP1
mov ecx, esi
call fcn.00401960
mov dword [edi], 5
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
cmp eax, 0x887
jb 0x402b90
push str.Windows_98_SE
mov ecx, esi
call fcn.00401960
mov dword [edi], 6
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
cmp ecx, 0x5a
jne 0x402b90
push str.Windows_ME
mov ecx, esi
call fcn.00401960
mov dword [edi], 7
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
cmp ecx, 2
jne 0x402b79
mov eax, dword [esp + 0xc]
cmp eax, 3
jne 0x402ab1
cmp dword [esp + 0x10], 0x33
jne 0x402b59
push str.Windows_NT_3.51
mov ecx, esi
call fcn.00401960
mov dword [edi], 0x65
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
cmp eax, 4
jne 0x402ae2
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402b59
push str.Windows_NT_4
mov ecx, esi
call fcn.00401960
mov dword [edi], 0x66
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
cmp eax, 5
jne 0x402b59
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402b0f
push str.Windows_2000
mov ecx, esi
call fcn.00401960
mov dword [edi], 0x67
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
cmp eax, 1
jne 0x402b34
push str.Windows_XP
mov ecx, esi
call fcn.00401960
mov dword [edi], 0x68
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
cmp eax, 2
jne 0x402b59
push str.Windows_2003_Server
mov ecx, esi
call fcn.00401960
mov dword [edi], 0x69
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
push str.Windows_NT_Last
mov ecx, esi
call fcn.00401960
mov dword [edi], 0xc7
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
cmp ecx, 3
jne 0x402b90
push str.Windows_CE
mov ecx, esi
call fcn.00401960
mov dword [edi], 0xc9
pop edi
mov eax, 1
pop esi
add esp, 0x94
ret
Function at 0x403390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4243c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00401fc0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401440
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403422
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x404618
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, ecx
xor ebx, ebx
push edi
push str.Kernel32
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call ebp
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
je 0x404667
push str.CreateToolhelp32Snapshot
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push str.Process32First
push eax
call edi
mov ecx, dword [esi + 4]
push str.Process32Next
push ecx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
cmp dword [esi + 8], ebx
je 0x404676
cmp dword [esi + 0xc], ebx
je 0x404676
cmp dword [esi + 0x10], ebx
jne 0x4046bd
cmp dword [esi + 4], ebx
je 0x4046bd
push str.ntdll.dll
call ebp
cmp eax, ebx
mov dword [esi], eax
je 0x4046bd
push str.ZwQuerySystemInformation
push eax
call edi
mov edx, dword [esi + 4]
push str.GetProcessHeap
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push 0x426084
push eax
call edi
mov ecx, dword [esi + 4]
push 0x426078
push ecx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x405300
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
xor edi, edi
lea eax, [edi + 1]
test eax, eax
jl 0x405373
mov ecx, dword [esi]
cmp eax, dword [ecx - 0xc]
jge 0x405373
add ecx, eax
push 0x5c
push ecx
call fcn.0040f110
add esp, 8
test eax, eax
je 0x405373
sub eax, dword [esi]
mov edi, eax
cmp edi, 0xffffffff
je 0x405373
push edi
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004052a0
mov ecx, dword [eax]
push 0
push ecx
call ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405317
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x405317
mov eax, dword [esp + 0x1c]
test eax, eax
mov eax, dword [esi]
jne 0x405389
push 0
push eax
call ebp
mov esi, dword [esi]
push 0
push esi
jmp 0x4053b6
push 0x5c
push eax
call fcn.0040f18b
add esp, 8
test eax, eax
jne 0x40539d
or eax, 0xffffffff
jmp 0x40539f
sub eax, dword [esi]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.004052a0
mov eax, dword [eax]
push 0
mov ebx, 1
push eax
call fcn.0040ef5d
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
inc esi
test bl, 1
je 0x4053e8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4053e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4054b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4245fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov dword [esp], 0
call fcn.0041df45
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x120]
lea eax, [esp]
push eax
push ecx
push 0
mov dword [esp + 0x120], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40553a
mov eax, dword [esp]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40553a
lea eax, [esp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405522
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.004015e0
push esi
mov esi, dword [esp + 8]
push edi
add esi, 0xfffffff0
push esi
call fcn.00401440
mov edi, dword [esp + 0x128]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x11c], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40557a
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0x114]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret