joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057c8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5a4d
push edi
mov dword [esp + 0x14], ecx
cmp word [esi], ax
je 0x4057ec
xor eax, eax
jmp 0x405974
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi + 0x74], 0x10
jne 0x4057e5
mov ecx, dword [eax + esi + 0x7c]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x4057e5
mov edi, dword [eax + esi + 0x78]
xor ebx, ebx
add edi, esi
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x20]
add eax, esi
mov dword [esp + 0x1c], eax
add edx, esi
mov eax, dword [edi + 0x1c]
add eax, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
cmp dword [ebp + 0xc], ebx
je 0x405874
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [edi + 0x14], eax
jbe 0x405972
mov ecx, dword [edx + eax*4]
add ecx, esi
call fcn.0040307d
cmp eax, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
je 0x40585f
mov edx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 0x14]
jb 0x405839
jmp 0x405972
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
movzx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x24]
mov ebx, dword [ebx + eax*4]
jmp 0x405886
mov ebx, dword [ebp + 0x10]
sub ebx, dword [edi + 0x10]
cmp ebx, dword [edi + 0x14]
jae 0x4057e5
mov ebx, dword [eax + ebx*4]
add ebx, esi
cmp ebx, edi
jbe 0x405972
lea eax, [ecx + edi]
cmp ebx, eax
jae 0x405972
push 0x104
call fcn.0040f04a
mov dword [esp + 0x14], eax
mov dword [esp], 0x100
call fcn.0040f04a
pop ecx
mov esi, eax
push 0x2e
push ebx
mov dword [esp + 0x2c], esi
call fcn.00410dd0
pop ecx
pop ecx
push 0x100
lea edi, [eax + 1]
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
call esi
sub edi, ebx
push edi
push ebx
mov ebx, dword [esp + 0x18]
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x42b5fc
push ebx
call esi
push 0x42d0cc
push ebx
call esi
push 0x42d0d0
push ebx
call esi
mov ecx, dword [esp + 0x14]
push ebx
call fcn.0040576f
mov edi, eax
test edi, edi
jne 0x40592a
push eax
push ecx
push ebx
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.0040613a
mov edi, eax
test edi, edi
jne 0x40592e
jmp 0x4057e5
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x40594c
cmp byte [esi], 0x23
jne 0x40594c
movsx eax, byte [esi + 1]
push eax
push 0
jmp 0x405956
push 0
mov ecx, esi
call fcn.0040307d
push eax
push edi
mov ecx, ebx
call fcn.004057c8
push esi
mov ebx, eax
call fcn.00410a63
mov eax, dword [esp + 0x14]
pop ecx
push eax
call fcn.00410a63
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40651e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x406564
sub ebx, str._b
mov ax, word [ebx + edi*2 + str._b]
mov ecx, esi
xor ax, word [edi*2 + str._b]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x406542
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x40656c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x4065b2
sub ebx, 0x42b760
mov ax, word [ebx + edi*2 + 0x42b760]
mov ecx, esi
xor ax, word [edi*2 + 0x42b760]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x406590
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x4065ba
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov ebx, ecx
mov esi, edx
push edi
lea ecx, [esp + 0x28]
call fcn.004018f0
push 0x10
pop edi
cmp dword [esp + 0x3c], edi
lea edx, [esp + 0x28]
push dword [esi + 0x10]
cmovae edx, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
xor ebp, ebp
mov dword [esp + 0x4c], 0x67452301
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x50], 0xefcdab89
mov dword [esp + 0x54], 0x98badcfe
mov dword [esp + 0x58], 0x10325476
call fcn.004094e8
lea ecx, [esp + 0x40]
call fcn.00409574
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebp
lea esi, [esp + 0x98]
mov word [esp + 0x10], ax
movzx eax, byte [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.00401a7c
inc esi
dec edi
jne 0x40663a
push dword [esp + 0x20]
lea edx, [esp + 0x14]
mov ecx, ebx
call fcn.0040667f
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.004023dd
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.00401d41
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x9c
ret

Function at 0x40667f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
and dword [esp + 0x10], 0
push ebx
push ebp
push esi
push edi
mov esi, edx
mov dword [esp + 0x24], 0xf
mov ebx, ecx
mov byte [esp + 0x10], 0
xor edi, edi
mov al, byte [edi + 0x42b720]
lea ecx, [esp + 0x10]
xor al, byte [edi + 0x4a1d80]
movzx eax, al
push eax
call fcn.0040424a
inc edi
cmp edi, 0x10
jl 0x40669e
xor ebp, ebp
mov dword [esp + 0x3c], 7
xor eax, eax
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], ax
cmp dword [esi + 0x10], ebp
jne 0x4066e8
push 0x42b5f0
mov ecx, ebx
call fcn.004019f1
jmp 0x40676c
mov edi, ebp
cmp dword [esp + 0x44], eax
jbe 0x406760
cmp dword [esi + 0x14], 8
jb 0x4066fa
mov eax, dword [esi]
jmp 0x4066fc
mov eax, esi
movzx eax, word [eax + edi*2]
lea ecx, [esp + 0x10]
cmp dword [esp + 0x24], 0x10
cmovae ecx, dword [esp + 0x10]
shr eax, 4
and eax, 0xf
movsx ax, byte [eax + ecx]
lea ecx, [esp + 0x28]
movzx eax, ax
push eax
call fcn.00401a7c
cmp dword [esi + 0x14], 8
jb 0x406730
mov eax, dword [esi]
jmp 0x406732
mov eax, esi
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0x10]
movzx eax, word [eax + edi*2]
cmovae ecx, dword [esp + 0x10]
and eax, 0xf
movsx ax, byte [eax + ecx]
lea ecx, [esp + 0x28]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x44]
jb 0x4066f0
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call fcn.00401a13
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.004023dd
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.00401d41
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x30
ret 4
Function at 0x409eb9
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x409eff
sub ebx, 0x42b850
mov ax, word [ebx + edi*2 + 0x42b850]
mov ecx, esi
xor ax, word [edi*2 + 0x42b850]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x409edd
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x409f07
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x409f4d
sub ebx, 0x42b8b0
mov ax, word [ebx + edi*2 + 0x42b8b0]
mov ecx, esi
xor ax, word [edi*2 + 0x42b8b0]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x409f2b
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x40b287
Capabilities:
Get common file path

Disassembly:
sub esp, 0x2b4
lea eax, [esp + 0xa8]
push ebx
push ebp
push esi
push edi
push 0x208
push eax
mov bh, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40b40c
and dword [esp + 0x38], 0
xor eax, eax
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
cmp word [esp + 0xb8], ax
je 0x40b2da
lea eax, [esp + 0xb8]
push eax
call fcn.0041012b
pop ecx
push eax
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x30]
call fcn.004026be
push 0xc
mov edx, 0x4a1e00
lea ecx, [esp + 0x5c]
call fcn.00409eb9
push 0xd
mov edx, 0x4a2210
lea ecx, [esp + 0x74]
call fcn.00409eb9
push 0xb
mov edx, 0x4a1e90
lea ecx, [esp + 0x8c]
call fcn.00409eb9
push 0xc
mov edx, 0x4a2060
lea ecx, [esp + 0xa4]
call fcn.00409eb9
xor esi, esi
lea ebp, [esp + 0x58]
mov edi, esi
xor eax, eax
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x38]
push 0x42b5f8
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
call fcn.0041012b
pop ecx
add eax, esi
lea ecx, [esp + 0x10]
push eax
call fcn.00402caa
push 0xffffffffffffffff
xor esi, esi
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00401dd0
push 0x42b5f8
call fcn.0041012b
pop ecx
push eax
push 0x42b5f8
lea ecx, [esp + 0x18]
call fcn.00401e6d
push 0xffffffffffffffff
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.00401dd0
push eax
lea ecx, [esp + 0x44]
call fcn.00401a13
lea ecx, [esp + 0x40]
call fcn.0040ab19
push esi
push 1
lea ecx, [esp + 0x48]
mov bl, al
call fcn.004023dd
push esi
push 1
lea ecx, [esp + 0x18]
call fcn.004023dd
test bl, bl
jne 0x40b3e2
inc edi
add ebp, 0x18
cmp edi, 4
jl 0x40b33a
jmp 0x40b3e4
xor bh, bh
push 3
lea esi, [esp + 0xbc]
pop edi
push 0
sub esi, 0x18
push 1
mov ecx, esi
call fcn.004023dd
dec edi
jns 0x40b3ee
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004023dd
pop edi
pop esi
pop ebp
mov al, bh
pop ebx
add esp, 0x2b4
ret
Function at 0x40cdc6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x40cdd1
xor eax, eax
jmp 0x40cea9
push ebx
push esi
mov esi, dword [esp + 0xc]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x40ce8a
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca80]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca80]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca80]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca80]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca80]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca80]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca80]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca80]
dec edi
jne 0x40cded
pop edi
test esi, esi
je 0x40cea3
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca80]
inc edx
dec esi
jne 0x40ce8e
not ecx
pop esi
mov eax, ecx
pop ebx
ret 4

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

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov edx, 0xff
mov esi, dword [edi]
xor eax, esi
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x42ca80]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, edx
xor eax, dword [ecx*4 + 0x42ca80]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x42083b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f4b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x42d1a8]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041364c
mov dword [ebp - 0x14], eax
cmp dword [0x4a36dc], esi
jne 0x42092e
push 0x800
push esi
push str.USER32.DLL
call dword [0x42d1b8]
mov edi, eax
test edi, edi
jne 0x4208bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x420a0e
push esi
push esi
push str.USER32.DLL
call dword [0x42d1b8]
mov edi, eax
test edi, edi
je 0x420a0e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x420a0e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4a36dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4a36e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4a36e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a36ec], eax
test eax, eax
je 0x42092b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a36e8], eax
mov edi, dword [ebp - 0x18]
call dword [0x42d1b0]
test eax, eax
je 0x420953
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x420946
push eax
call dword [0x42d1bc]
cmp dword [ebp - 0x14], esi
je 0x420968
push 4
pop eax
jmp 0x420a10
cmp dword [ebp - 0x14], esi
je 0x420968
push dword [0x4a36dc]
call dword [0x42d1ac]
push 3
jmp 0x42094d
mov eax, dword [0x4a36e8]
mov ebx, dword [0x42d1ac]
cmp eax, edi
je 0x4209c6
cmp dword [0x4a36ec], edi
je 0x4209c6
push eax
call ebx
push dword [0x4a36ec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4209c6
test eax, eax
je 0x4209c6
call ecx
test eax, eax
je 0x4209bb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4209bb
test byte [ebp - 8], 1
jne 0x4209c6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4209f6
mov eax, dword [0x4a36e0]
cmp eax, edi
je 0x4209f3
push eax
call ebx
test eax, eax
je 0x4209f3
call eax
mov esi, eax
test esi, esi
je 0x4209f3
mov eax, dword [0x4a36e4]
cmp eax, edi
je 0x4209f3
push eax
call ebx
test eax, eax
je 0x4209f3
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4a36dc]
call ebx
test eax, eax
je 0x420a0e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x420a10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411b2d
mov esp, ebp
pop ebp
ret
Function at 0x40159f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 8], ecx
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401658
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.00401404
cmp dword [ebp - 0xc], ebx
je 0x4015f9
push 2
push ebx
push 0xfffffac0
jmp 0x4015fd
push ebx
push ebx
push 0x40
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
lea eax, [ebp + 8]
push eax
push 0x70
push dword [ebp - 8]
push edi
call esi
test eax, eax
je 0x401650
cmp dword [ebp + 8], 0x70
jne 0x401650
push 1
push ebx
push 0x50
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push ebx
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 8]
mov ebx, 0x480
push ebx
add eax, 0x70
push eax
push edi
call esi
test eax, eax
je 0x401650
cmp dword [ebp + 8], ebx
jne 0x401650
mov byte [ebp - 1], 1
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 4
Function at 0x401b95
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xa0
mov eax, dword [0x433e80]
xor eax, ebp
mov dword [ebp + 0x70], eax
push edi
mov edi, dword [ebp + 0x7c]
push 0x9c
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.00415630
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x9c
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
jne 0x401bdd
xor al, al
jmp 0x401ce5
cmp dword [ebp - 0x1c], 2
jne 0x401cb7
cmp byte [ebp + 0x6e], 1
jne 0x401c37
cmp dword [ebp - 0x28], 5
jb 0x401c2d
cmp dword [ebp - 0x24], 1
mov ecx, edi
jne 0x401c23
push str.Windows_XP
call fcn.0040119e
test word [ebp + 0x6c], 0x200
mov ecx, edi
je 0x401c19
push str._Home_Edition
jmp 0x401cb0
push str._Professional_Edition
jmp 0x401cb0
push str.Windows_2000
jmp 0x401cde
push str.Windows_NT_4.0
jmp 0x401cdc
cmp byte [ebp + 0x6e], 3
jne 0x401ce3
cmp dword [ebp - 0x28], 5
mov ecx, edi
jb 0x401c9f
cmp dword [ebp - 0x24], 2
jne 0x401c56
push str.Windows_.Net
jmp 0x401c5b
push str.Windows_2000
call fcn.0040119e
test byte [ebp + 0x6c], 0x80
je 0x401c6d
push str._DataCenter_Server
jmp 0x401cae
test byte [ebp + 0x6c], 2
mov ecx, edi
je 0x401c89
cmp dword [ebp - 0x28], 4
jne 0x401c82
push str._Advanced_Server
jmp 0x401cb0
push str._Enterprise_Server
jmp 0x401cb0
cmp word [ebp + 0x6c], 0x400
jne 0x401c98
push str._Web_Server
jmp 0x401cb0
push str._Server
jmp 0x401cb0
push str.Windows_NT_4.0
call fcn.0040119e
push str._Server
mov ecx, edi
call fcn.00401285
jmp 0x401ce3
cmp dword [ebp - 0x1c], 1
jne 0x401ce3
cmp dword [ebp - 0x24], 0xa
jae 0x401cca
push str.Windows_95
jmp 0x401cdc
cmp dword [ebp - 0x24], 0x5a
jae 0x401cd7
push str.Windows_98
jmp 0x401cdc
push str.Windows_ME
mov ecx, edi
call fcn.0040119e
mov al, 1
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop edi
call fcn.004151e0
add ebp, 0x74
leave
ret

Function at 0x401d06
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401d49
push ebx
push ebx
push ebx
push ebx
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401d40
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
Function at 0x401dfe
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4352b4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetVersion]
push esi
jne 0x401e42
call ebx
test eax, eax
jns 0x401e38
push str.___.___
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x4352b0], eax
mov dword [0x4352b4], 1
mov eax, dword [0x4352b0]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
je 0x401e5e
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x401e8e
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x401e84
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x401e78
push dword [eax + 8]
call dword [eax]
jmp 0x401e7e
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x401e8d
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x40284e
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x426fc4
call fcn.004151ef
xor ebx, ebx
inc ebx
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], 0
jne 0x402891
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402891
mov byte [ebp - 0xd], bl
mov eax, dword [ebp + 0x10]
push dword [eax - 8]
lea ecx, [ebp + 0x10]
push ebx
call fcn.00401a3e
push eax
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4028b5
mov esi, ebx
cmp byte [ebp - 0xd], 0
je 0x4028c4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
call fcn.004010f1
lea ecx, [ebp + 0x10]
call fcn.004010f1
mov eax, esi
call fcn.0041528e
ret 0xc

Function at 0x4029d2
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x433e80]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
push edi
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
push ebx
push 0x429830
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402a54
mov esi, dword [esi]
push ebx
lea eax, [ebp - 0x80]
push eax
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x402a43
cmp dword [ebp - 0x80], 1
jne 0x402a43
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004151e0
add ebp, 0x90
leave
ret 4
Function at 0x403627
Capabilities:
Parse url

Disassembly:
push 0x48
mov eax, 0x4271ac
call fcn.004151ef
mov ecx, dword [ebp + 8]
xor edi, edi
push edi
push 0x429928
mov dword [ebp - 0x10], edi
call fcn.00401ab8
xor ebx, ebx
inc ebx
cmp eax, 0xffffffff
jne 0x403667
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push str.http:__
push eax
call fcn.004033bb
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ebx
jmp 0x40366a
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401d4e
test byte [ebp - 0x10], bl
mov dword [ebp - 4], 2
je 0x403687
lea ecx, [ebp - 0x18]
call fcn.004010f1
push 0x3c
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00415630
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push dword [ebp - 0x40]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x44]
call fcn.004012ac
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
call fcn.0040114e
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004010f1
push dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
push dword [ebp - 0x28]
call fcn.004012ac
mov ecx, dword [ebp + 0x10]
push eax
mov byte [ebp - 4], 4
call fcn.0040114e
lea ecx, [ebp - 0x10]
call fcn.004010f1
lea ecx, [ebp - 0x14]
call fcn.004010f1
call fcn.0041528e
ret

Function at 0x403986
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x42725a
call fcn.004151ef
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], 0xff
mov byte [ebp - 0xd], 0
jne 0x4039d0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 8]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareTrymedia_SystemsDownload_Manager
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4039d0
mov byte [ebp - 0xd], 1
mov esi, dword [ebp + 0x10]
mov ecx, esi
call fcn.0040326e
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00401a3e
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403a01
xor edi, edi
inc edi
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00401a90
push 1
lea eax, [ebp + 0x10]
push eax
mov ecx, esi
call fcn.00403411
push 0x429978
push eax
call fcn.00401f00
lea ecx, [ebp + 0x10]
mov bl, al
call fcn.004010f1
test bl, bl
je 0x403a41
mov eax, dword [esi]
mov eax, dword [eax - 8]
push 1
dec eax
push eax
mov ecx, esi
call fcn.0040232e
cmp byte [ebp - 0xd], 0
je 0x403a50
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
call fcn.004010f1
mov eax, edi
call fcn.0041528e
ret 0xc