joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403274
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x416020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40330c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4032ec
xor eax, eax
push ebp
push 0x4032e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403328
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4032ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x416020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x416020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403ea8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x417044], 0
je 0x403f09
cmp word [0x417218], 0xd7b2
jne 0x403ed1
cmp dword [0x417220], 0
jbe 0x403ed1
mov eax, 0x417214
call dword [0x417230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x416090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f30
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x416030], 0
jne 0x403f25
push 0
push 0x416088
push 0x416090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405314
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405544
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405397
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405544
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405397
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405560
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405420
xor eax, eax
push ebp
push 0x405419
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040515c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4053fe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405580
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4053fe
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405420
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40553a
cmp byte [ebp - 0xd], 0
jne 0x405467
cmp byte [ebp - 0x12], 0
je 0x40553a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405480
dec ebx
cmp byte [ebx], 0x2e
je 0x40548f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40547f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40553a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4054cc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40553a
cmp byte [ebp - 0xd], 0
je 0x40553a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40553a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405bd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405c36
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404294
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e68
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405c20
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c3d
lea eax, [ebp - 0x10]
call fcn.00404024
ret

Function at 0x40796c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004044c0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407985
test al, 0x10
jne 0x407989
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a2e0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a319
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404114
jmp 0x40a322
mov eax, ebx
mov edx, esi
call fcn.00404078
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a32c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a34d
mov al, byte [esp]
jmp 0x40a34f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a9d4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a84c
mov eax, dword [0x41652c]
cmp byte [eax], 0
je 0x40aa50
mov eax, dword [0x416444]
call fcn.00402b78
call fcn.0040275c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407c84
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40aa98
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40aa86
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x416420]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x417660]
call fcn.00405120
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b734
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b798
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404294
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004075ec
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b79f
lea eax, [ebp - 0xc]
call fcn.00404024
ret

Function at 0x413ddc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004044b0
xor eax, eax
push ebp
push 0x413e94
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push ebx
call sub.user32.dll_GetActiveWindow
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.004061f0
test eax, eax
je 0x413e7e
mov eax, 0x104
call fcn.00407d8c
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 4]
call fcn.004044c0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
call sub.shell32.dll_SHBrowseForFolderA
mov esi, eax
test esi, esi
je 0x413e77
push ebx
push esi
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x413e77
mov eax, edi
mov edx, ebx
call fcn.0040421c
mov eax, ebx
call fcn.00407dcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413e9b
lea eax, [ebp - 4]
call fcn.00404024
ret

Function at 0x4140cc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x168], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044b0
xor eax, eax
push ebp
push 0x414387
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov eax, dword [0x417b3c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x41414d
inc esi
xor edi, edi
Function at 0x10002880
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov edx, 0x51
push esi
push edi
mov esi, 0x10060b20
xor edi, edi
mov ecx, edi
mov eax, edi
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [ebp + edi*4 - 0x400], eax
inc edi
cmp edi, 0x100
jl 0x10002897
or eax, 0xffffffff
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ebp + ecx*4 - 0x400]
sub edx, 1
jne 0x10002934
pop edi
not eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10008ee0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1005e010
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], 0x100c8a4c
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10037d73
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10037239
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10008e80
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100496a5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x100c0250]
test eax, eax
je 0x100496e4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100496e4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100496e4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100496e4
cmp dword [ecx + 0x74], 0xe
jbe 0x100496e4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1005d640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005d66d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005d66d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x409368
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40941c
jmp 0x409411
cmp dword [esi + 0x10], 0x1000
jne 0x4093fd
test byte [esi + 0x15], 1
jne 0x4093fd
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4093bc
cmp eax, 2
je 0x4093bc
cmp eax, 0x10
je 0x4093bc
cmp eax, 0x20
jne 0x4093d1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4093d1
mov bl, 1
xor ebp, ebp
jmp 0x4093e2
mov eax, dword [esi]
add eax, ebp
call fcn.00409360
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jl 0x4093d5
test bl, bl
je 0x4093fd
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40941c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409394
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x4d2554ca
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x3a7c429f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x406ced
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x40af98
call fcn.00406fd4
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406d2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406d2d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406d45
cmp eax, 0x20b
je 0x406d32
mov dword [ebp - 0x1c], ebx
jmp 0x406d59
cmp dword [ecx + 0x84], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x406d53
cmp dword [ecx + 0x74], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40ea78], 0xffffffff
or dword [0x40ea7c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40d464]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40d460]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40ea74], eax
call fcn.0049e000
call fcn.00406fd0
cmp dword [0x40d320], ebx
jne 0x406db9
push fcn.00406fd0
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00406fbe
push 0x40c00c
push 0x40c008
call sub.MSVCR71.dll__initterm
push 0x406f74
call fcn.00406f1e
mov eax, dword [0x40d45c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40d458]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x406e0d
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40c004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x406e8b
cmp al, bl
je 0x406e37
cmp dword [ebp - 0x20], ebx
jne 0x406e8b
mov al, byte [esi]
cmp al, bl
je 0x406e47
cmp al, 0x20
ja 0x406e47
inc esi
mov dword [ebp - 0x24], esi
jmp 0x406e37
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x406e63
movzx eax, word [ebp - 0x54]
jmp 0x406e66
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00404254
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x406e83
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x406ee0
cmp al, 0x22
jne 0x406e9a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x406ead
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x406e25
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040700f
ret
Function at 0x407080
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x5550b0]
push ebx
push esi
push edi
test eax, eax
jne 0x407117
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, 0x45
mov edi, 0x554f70
push 0x554f70
rep stosd dword es:[edi], eax
mov dword [0x554f70], 0x114
call esi
mov ecx, dword [0x554f74]
mov edx, dword [0x554f78]
mov eax, ecx
and edx, 0xffff
and eax, 0xffff
shl eax, 0x10
or eax, edx
cmp ecx, 5
mov dword [0x5550b0], eax
jb 0x40711d
mov ecx, 0x47
xor eax, eax
mov edi, 0x554e50
push 0x554e50
rep stosd dword es:[edi], eax
mov dword [0x554e50], 0x11c
call esi
mov eax, dword [0x554e58]
mov ecx, dword [0x554e54]
mov dword [0x554f78], eax
mov eax, dword [0x5550b0]
mov dword [0x554f74], ecx
jmp 0x40711d
mov ecx, dword [0x554f74]
mov ebx, dword [esp + 0x10]
cmp dword [ebx], 0
je 0x4072aa
mov edx, dword [0x554f78]
push ebp
push edx
push ecx
push str.Windows__d._d
push ebx
call fcn.00405cb0
mov eax, dword [0x554f80]
add esp, 0x10
cmp eax, 2
jne 0x4071b3
mov eax, str._Win32_NT
test eax, eax
je 0x407294
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x407294
mov edx, dword [ebx]
mov ecx, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp ecx, 1
jg 0x40718e
mov edi, dword [edx - 8]
mov ebp, dword [edx - 4]
lea ecx, [edi + eax]
cmp ecx, ebp
jg 0x40718e
lea ecx, [eax + eax]
mov esi, str._Win32_NT
jmp 0x40723d
push str._Win32_NT
mov ecx, dword [edx - 8]
push eax
push edx
push ecx
mov ecx, ebx
call fcn.004059f0
test eax, eax
je 0x407294
push esi
call fcn.00405590
jmp 0x407294
cmp eax, 1
jne 0x4071ff
mov edx, str._Win32_WINDOWS
test edx, edx
je 0x407294
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x407294
mov edx, dword [ebx]
mov ecx, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp ecx, 1
jg 0x4071f8
mov edi, dword [edx - 8]
mov ebp, dword [edx - 4]
lea ecx, [edi + eax]
cmp ecx, ebp
jg 0x4071f8
lea ecx, [eax + eax]
mov esi, str._Win32_WINDOWS
jmp 0x40723d
push str._Win32_WINDOWS
jmp 0x407193
test eax, eax
jne 0x40726f
mov edx, str._Win32s
test edx, edx
je 0x407294
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x407294
mov edx, dword [ebx]
mov ecx, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp ecx, 1
jg 0x407265
mov edi, dword [edx - 8]
mov ebp, dword [edx - 4]
lea ecx, [edi + eax]
cmp ecx, ebp
jg 0x407265
lea ecx, [eax + eax]
mov esi, str._Win32s
lea edi, [edx + edi*2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov edx, dword [ecx - 8]
add edx, eax
mov dword [ecx - 8], edx
mov ebx, dword [ebx]
mov eax, dword [ebx - 8]
mov word [ebx + eax*2], 0
jmp 0x407294
push str._Win32s
jmp 0x407193
mov edx, str._Unbekannt
test edx, edx
jne 0x40727c
xor eax, eax
jmp 0x407287
push str._Unbekannt
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str._Unbekannt
push eax
mov ecx, ebx
call fcn.00405a90
mov eax, dword [esp + 0x18]
pop ebp
test eax, eax
je 0x4072a5
mov ecx, dword [0x554f80]
mov dword [eax], ecx
mov eax, dword [0x5550b0]
pop edi
pop esi
pop ebx
Function at 0x40b370
Capabilities:
Get session user name

Disassembly:
mov eax, 0x181c
call fcn.00532230
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 0x3fa
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00410470
mov edx, dword [0x554e0c]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], edx
mov dword [esp + 0x830], edx
rep stosd dword es:[edi], eax
mov ecx, 0x3ff
lea edi, [esp + 0x834]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push 0x34
push ecx
mov dword [esp + 0x2c], 0x400
call fcn.004bd990
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40b536
lea ecx, [esp + 0x18]
push 0x34
push ecx
call fcn.004bd990
mov edx, dword [0x547570]
mov esi, eax
mov eax, str.___s_
add esp, 8
test eax, eax
mov dword [esp + 0x10], edx
jne 0x40b418
xor ebx, ebx
jmp 0x40b425
push str.___s_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov esi, dword [esi]
mov edi, dword [esi - 8]
lea eax, [ebx + edi]
cmp eax, edi
jl 0x40b47b
invalid

Function at 0x40ba10
Capabilities:
Create directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.0043ce30
add esp, 4
test eax, eax
jne 0x40ba2a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
ret
Function at 0x40e900
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
mov eax, dword [0x5478f4]
push esi
cmp eax, 0xffffffff
jne 0x40e9a8
lea eax, [esp + 4]
xor esi, esi
push eax
push 0x20006
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.SHELL32.dll_SHChangeNotifyRegister
mov dword [0x5478f4], 0
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e943
mov esi, dword [esp + 4]
call dword [sym.imp.WINMM.dll_timeGetTime]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push 0
push str._________ADMIN_TEST_SoftwareOK
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40e982
test esi, esi
mov dword [0x5478f4], 0
je 0x40e97d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
push str._________ADMIN_TEST_SoftwareOK
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
mov dword [0x5478f4], 1
je 0x40e9a3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
pop ecx
ret