joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404720
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x404759
mov dword [ebp - 8], 6
jmp 0x4047f2
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xffff
movzx edx, cx
and edx, 0xff
movzx eax, dl
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
and ecx, 0xffff
movzx edx, cx
shr edx, 8
movzx eax, dl
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x4047a3
cmp dword [ebp - 0x18], 1
je 0x4047d3
jmp 0x4047ea
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 3
jb 0x4047d1
cmp dword [ebp - 0x1c], 4
jbe 0x4047bd
cmp dword [ebp - 0x1c], 5
je 0x4047c8
jmp 0x4047d1
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x439814
jmp 0x4047d1
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0x439820
jmp 0x4047ea
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 4
je 0x4047e1
jmp 0x4047ea
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x43982c
xor ecx, ecx
jne 0x40473e
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x404800
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x441384]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xac], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
push 0x94
push 0
lea eax, [ebp - 0xa8]
push eax
call fcn.00413a50
add esp, 0xc
mov dword [ebp - 0xa8], 0x94
lea ecx, [ebp - 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404884
mov dword [ebp - 0xa8], 0x94
lea edx, [ebp - 0xa8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x404884
mov dword [ebp - 4], 2
jmp 0x40499f
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
je 0x40498e
cmp dword [ebp - 0xb0], 1
je 0x404937
cmp dword [ebp - 0xb0], 2
je 0x4048b8
jmp 0x404997
cmp dword [ebp - 0xa4], 4
ja 0x4048cc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x43983c
jmp 0x404935
cmp dword [ebp - 0xa4], 5
jne 0x4048e9
cmp dword [ebp - 0xa0], 0
jne 0x4048e9
mov edx, dword [ebp + 8]
mov dword [edx], 0x439848
jmp 0x404935
cmp dword [ebp - 0xa4], 5
jne 0x404906
cmp dword [ebp - 0xa0], 1
jne 0x404906
mov eax, dword [ebp + 8]
mov dword [eax], 0x439854
jmp 0x404935
cmp dword [ebp - 0xa4], 5
jne 0x404923
cmp dword [ebp - 0xa0], 2
jne 0x404923
mov ecx, dword [ebp + 8]
mov dword [ecx], str.WindowsXP
jmp 0x404935
cmp dword [ebp - 0xa4], 6
jne 0x404935
mov edx, dword [ebp + 8]
mov dword [edx], str.WindowsVista
jmp 0x404997
cmp dword [ebp - 0xa4], 4
jne 0x404954
cmp dword [ebp - 0xa0], 0
jne 0x404954
mov eax, dword [ebp + 8]
mov dword [eax], 0x43987c
jmp 0x40498c
cmp dword [ebp - 0xa4], 4
jne 0x404971
cmp dword [ebp - 0xa0], 0xa
jne 0x404971
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x439888
jmp 0x40498c
cmp dword [ebp - 0xa4], 4
jne 0x40498c
cmp dword [ebp - 0xa0], 0x5a
jne 0x40498c
mov edx, dword [ebp + 8]
mov dword [edx], 0x439894
jmp 0x404997
mov eax, dword [ebp + 8]
mov dword [eax], 0x4398a0
xor ecx, ecx
jne 0x404820
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00413a38
mov esp, ebp
pop ebp
ret 4

Function at 0x4050a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x441384]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x410], ecx
mov dword [ebp - 4], 2
push 0x4686e8
call fcn.00413460
add esp, 4
test eax, eax
je 0x405163
mov dword [ebp - 4], 1
mov byte [ebp - 0x408], 0
push 0x3ff
push 0
lea eax, [ebp - 0x407]
push eax
call fcn.00413a50
add esp, 0xc
mov ecx, dword [0x456714]
push ecx
push 0x46a8e8
push str.999999999999999
push 0x4686e8
push str._s_Serial_sCid_sBrandId_dplatformCLIENTEvent3
push 0x400
lea edx, [ebp - 0x408]
push edx
call fcn.00413e53
add esp, 0x1c
push 0
push 0
lea eax, [ebp - 0x408]
push eax
push str.iexplore
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0x20
jg 0x40515b
mov dword [ebp - 4], 2
xor ecx, ecx
jne 0x4050d5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00413a38
mov esp, ebp
pop ebp
ret
Function at 0x405bf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.00413a50
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret
Function at 0x4074e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x46a1d0], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x46a1d4], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x407830
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x46a1d8], eax
xor ecx, ecx
jne 0x4074ed
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x407a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
shl eax, 0x10
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xbfffffff
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0x7fffffff
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00403900
add esp, 4
xor edx, edx
jne 0x407a84
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x409460
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
push str.999999999999999
call fcn.00405180
add esp, 4
add eax, 0x32
mov dword [ebp - 0x50], eax
mov eax, dword [0x456d64]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x64
ja case.0x4094ad.3
mov ecx, dword [ebp - 0x60]
movzx edx, byte [ecx + 0x409650]
jmp dword [edx*4 + 0x409640]
mov eax, 1
jmp 0x40963b
mov dword [0x456d64], 0
mov dword [ebp - 0xc], 0x468ee8
mov eax, dword [ebp - 0xc]
push eax
call fcn.00413460
add esp, 4
test eax, eax
je 0x409540
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00405180
add esp, 4
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
push edx
call fcn.004131d6
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x409518
mov dword [ebp - 4], 2
jmp 0x4095be
push str.666666666666666
push 0x442e74
push str.999999999999999
mov ecx, dword [ebp - 0xc]
push ecx
push str._ssr_slang_ss_s
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00413e53
add esp, 0x1c
jmp 0x4095be
mov dword [ebp - 0xc], 0x468650
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00413460
add esp, 4
test eax, eax
je 0x4095be
mov edx, dword [ebp - 0xc]
push edx
call fcn.00405180
add esp, 4
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
push eax
call fcn.004131d6
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x40958f
mov dword [ebp - 4], 2
jmp 0x4095be
push str.666666666666666
push 0x442e74
push str.999999999999999
mov edx, dword [0x456d64]
push edx
mov eax, dword [ebp - 0xc]
push eax
push str._smode_dsr_slang_ss_s
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00413e53
add esp, 0x20
mov eax, dword [ebp - 0xc]
push eax
call fcn.00413460
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x4095d5
jmp 0x409619
push 0x3c
push 0
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00413a50
add esp, 0xc
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x100
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x30], 1
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
xor ecx, ecx
jne 0x40947b
cmp dword [ebp - 8], 0
je 0x409638
mov edx, dword [ebp - 8]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004135d8
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40be90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareInstallerLogger
push 0x80000001
mov dword [esp + 0x18], 0
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40beda
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push esi
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
add eax, 1
pop esi
add esp, 0xc
ret

Function at 0x40c420
Capabilities:
Set registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x441384]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x218]
mov eax, dword [esp + 0x21c]
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov esi, dword [esp + 0x21c]
test esi, esi
push edi
mov edi, dword [esp + 0x230]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
jne 0x40c493
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00413a38
add esp, 0x210
ret
test ecx, ecx
je 0x40c476
test edi, edi
je 0x40c476
test eax, eax
je 0x40c4bf
cmp byte [eax], 0
je 0x40c4bf
push eax
push ecx
push str._s_s
lea eax, [esp + 0x24]
push 0x200
push eax
call fcn.00413e53
add esp, 0x14
jmp 0x40c4d2
push ecx
lea ecx, [esp + 0x1c]
push 0x200
push ecx
call fcn.00413573
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c51c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40c51c
mov esi, 2
jmp 0x40c547
push edi
call fcn.00413ffd
mov ecx, dword [esp + 0x10]
add esp, 4
push eax
push edi
push 1
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40c543
mov dword [esp + 0x10], 2
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40c556
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.00413a38
add esp, 0x210
ret
Function at 0x40c570
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x441384]
xor eax, esp
mov dword [esp + 0x208], eax
mov ecx, dword [esp + 0x214]
mov eax, dword [esp + 0x218]
push ebp
push esi
mov esi, dword [esp + 0x218]
test esi, esi
push edi
mov edi, dword [esp + 0x228]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov ebp, 1
jne 0x40c5d9
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00413a38
add esp, 0x20c
ret
test ecx, ecx
je 0x40c5bc
test eax, eax
je 0x40c601
cmp byte [eax], 0
je 0x40c601
push eax
push ecx
push str._s_s
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.00413e53
add esp, 0x14
jmp 0x40c614
push ecx
lea ecx, [esp + 0x18]
push 0x200
push ecx
call fcn.00413573
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c657
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40c675
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x230]
push ecx
push 4
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40c67a
mov ebp, 2
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40c689
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00413a38
add esp, 0x20c
ret
Function at 0x40c6b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x441384]
xor eax, esp
mov dword [esp + 0x208], eax
mov ecx, dword [esp + 0x214]
mov eax, dword [esp + 0x218]
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
mov esi, dword [esp + 0x22c]
push edi
mov edi, dword [esp + 0x220]
test edi, edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov ebp, 1
jne 0x40c70e
mov eax, 2
jmp 0x40c7eb
test ecx, ecx
je 0x40c704
test eax, eax
je 0x40c736
cmp byte [eax], 0
je 0x40c736
push eax
push ecx
push str._s_s
lea eax, [esp + 0x24]
push 0x200
push eax
call fcn.00413e53
add esp, 0x14
jmp 0x40c749
push ecx
lea ecx, [esp + 0x1c]
push 0x200
push ecx
call fcn.00413573
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c7d5
mov eax, dword [esi]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x40c7ac
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push ebx
push edx
call edi
test eax, eax
jne 0x40c7d5
mov eax, dword [esp + 0x10]
push eax
call fcn.00413504
mov ecx, dword [esp + 0x14]
push ecx
push 0
push eax
mov dword [esi], eax
call fcn.00413a50
mov eax, dword [esi]
add esp, 0x10
test eax, eax
jne 0x40c7bf
jmp 0x40c7d5
push eax
call fcn.00413ffd
mov dword [esp + 0x14], eax
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x40c7d5
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push ebx
push eax
call edi
test eax, eax
je 0x40c7da
mov ebp, 2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c7e9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00413a38
add esp, 0x20c
ret
Function at 0x40c810
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x441384]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x218]
mov eax, dword [esp + 0x21c]
push ebx
mov ebx, dword [esp + 0x228]
push ebp
push esi
mov esi, dword [esp + 0x220]
test esi, esi
mov edx, 4
push edi
mov edi, dword [esp + 0x230]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
lea ebp, [edx - 3]
jne 0x40c871
mov eax, 2
jmp 0x40c8fa
test ecx, ecx
je 0x40c867
test eax, eax
je 0x40c899
cmp byte [eax], 0
je 0x40c899
push eax
push ecx
push str._s_s
lea eax, [esp + 0x28]
push 0x200
push eax
call fcn.00413e53
add esp, 0x14
jmp 0x40c8ac
push ecx
lea ecx, [esp + 0x20]
push 0x200
push ecx
call fcn.00413573
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c8e4
lea ecx, [esp + 0x14]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esp + 0x20]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40c8e9
mov ebp, 2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c8f8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00413a38
add esp, 0x210
ret

Function at 0x40c930
Capabilities:
Get common file path

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
push ebx
push 0x800
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, eax
test esi, esi
jne 0x40c96f
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x800
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, eax
test esi, esi
je 0x40c9d3
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov ebp, 0x800
xor edi, edi
sub ebp, esi
add esi, ebx
jmp 0x40c990
movzx ecx, word [esp + 0x22]
movzx edx, word [esp + 0x20]
movzx eax, word [esp + 0x1e]
add ecx, edi
push ecx
push edx
push eax
push str.setup__02d_02d_03d_
push ebp
push esi
call fcn.00413e53
push ebx
call fcn.00415788
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x40c9e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c9d3
add edi, 1
cmp edi, 0xa
jle 0x40c990
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40ca40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
mov eax, dword [0x441384]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x46b854]
test eax, eax
push ebx
mov ebx, dword [esp + 0x810]
push ebp
push edi
mov edi, dword [esp + 0x814]
mov ebp, 1
jne 0x40ca99
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x40ca99
pop edi
lea eax, [ebp + 1]
pop ebp
pop ebx
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00413a38
add esp, 0x804
ret
cmp byte [esp + 0x81c], 0
push esi
je 0x40cab6
lea eax, [esp + 0x10]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40cac7
push 0x800
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, eax
test esi, esi
je 0x40cb0b
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.00413c1d
add esp, 8
test edi, edi
mov byte [eax], 0
je 0x40caf5
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40cae8
sub eax, edx
jmp 0x40caf7
xor eax, eax
add esi, eax
add esi, 0xa
push esi
call fcn.00413504
add esp, 4
test eax, eax
mov dword [ebx], eax
jne 0x40cb12
mov eax, 2
jmp 0x40cb3e
test edi, edi
je 0x40cb2d
push edi
lea ecx, [esp + 0x14]
push ecx
push str._s_s
push esi
push eax
call fcn.00413e53
add esp, 0x14
jmp 0x40cb3c
lea edx, [esp + 0x10]
push edx
push esi
push eax
call fcn.00413573
add esp, 0xc
mov eax, ebp
mov ecx, dword [esp + 0x810]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00413a38
add esp, 0x804
ret

Function at 0x40ce70
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x298
mov eax, dword [0x441384]
xor eax, esp
mov dword [esp + 0x294], eax
cmp dword [0x46b860], 0
push esi
mov esi, dword [esp + 0x2a0]
jne 0x40cf02
lea eax, [esp + 4]
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40cec0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.00413a38
add esp, 0x298
ret
push 0x104
lea ecx, [esp + 0x198]
push ecx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x40cea8
lea edx, [esp + 0x194]
push edx
call sub.WSOCK32.dll_gethostbyname
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
mov eax, dword [esp + 0x2a8]
push eax
push esi
call fcn.00413573
add esp, 0xc
mov ecx, dword [esp + 0x298]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00413a38
add esp, 0x298
ret

Function at 0x40d010
Capabilities:
Connect to http server

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
push eax
push esi
call fcn.0041446a
add esp, 0xc
push 0
push 0
push 3
push 0x43a906
push 0x43a906
push 0x50
mov byte [edi + esi], 0
mov ecx, dword [esi + 0x108]
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 0x10c], eax
jne 0x40d06b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x110], eax
pop edi
mov eax, 0xd
pop esi
ret 8
pop edi
mov eax, 1
pop esi
ret 8
Function at 0x40d0b0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push edi
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x40d0c4
lea eax, [edi + 0xa]
pop edi
add esp, 0x3c
ret
push esi
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00413a50
mov esi, dword [esp + 0x58]
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0x1c], 1
je 0x40d0f4
mov dword [esp + 0x18], eax
push edi
call fcn.00413ffd
add esp, 4
lea ecx, [esp + 8]
push ecx
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x40d11b
pop esi
mov eax, 0xa
pop edi
add esp, 0x3c
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
mov dword [esi], edx
pop esi
mov dword [eax], ecx
mov eax, 1
pop edi
add esp, 0x3c
ret

Function at 0x40d140
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push edi
mov edi, dword [esp + 0x44]
test edi, edi
jne 0x40d154
lea eax, [edi + 0xa]
pop edi
add esp, 0x3c
ret
push esi
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00413a50
mov esi, dword [esp + 0x58]
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [esp + 8], 0x3c
mov dword [esp + 0x38], 1
je 0x40d184
mov dword [esp + 0x34], eax
push edi
call fcn.00413ffd
add esp, 4
lea ecx, [esp + 8]
push ecx
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x40d1ab
pop esi
mov eax, 0xa
pop edi
add esp, 0x3c
ret
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
mov dword [esi], edx
pop esi
mov dword [eax], ecx
mov eax, 1
pop edi
add esp, 0x3c
ret

Function at 0x40d1d0
Capabilities:
Check internet connectivity via wininet

Disassembly:
mov eax, dword [esp + 4]
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionA]
neg eax
sbb eax, eax
and eax, 0xfffffff4
add eax, 0xd
ret

Function at 0x40d5a0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x108
mov eax, dword [0x441384]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
lea edx, [esp]
push edx
push 0x13
push eax
call fcn.0040d220
cmp eax, 1
jne 0x40d5f0
lea eax, [esp]
push eax
call fcn.00413f52
add esp, 4
cmp eax, 0xc8
je 0x40d5eb
cmp eax, 0xce
mov eax, 0x14
jne 0x40d5f0
mov eax, 1
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00413a38
add esp, 0x108
ret 4
Function at 0x40d610
Capabilities:
Send data
Send http request

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x10]
push ebp
push esi
lea eax, [esp + 8]
mov ebp, ecx
push eax
lea ecx, [esp + 0x10]
push ecx
xor esi, esi
push edx
mov dword [esp + 0x1c], 0x7530
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call fcn.0040d140
add esp, 0xc
cmp eax, 1
jne 0x40d723
push ebx
mov ebx, dword [esp + 0x24]
cmp ebx, esi
jne 0x40d661
mov eax, dword [esp + 0x20]
push eax
call fcn.00413ffd
add esp, 4
mov ebx, eax
push edi
mov edi, dword [esp + 0x10]
lea ecx, [edi + ebx + 1]
push ecx
call fcn.004131d6
mov edx, dword [esp + 0x18]
push edi
mov esi, eax
push edx
push esi
call fcn.0041446a
mov eax, dword [esp + 0x34]
push ebx
push eax
lea ecx, [esi + edi]
push ecx
call fcn.0041446a
mov edx, dword [ebp + 0x10c]
add esp, 0x1c
push 0
push 0x4480000
push 0
push 0
push 0
push esi
push 0x43a914
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x40d6cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x110], eax
lea eax, [edi + 0xf]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0xc
ret 0xc
push 4
lea eax, [esp + 0x1c]
push eax
push 6
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x40d705
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x110], eax
mov ebx, 0xf
jmp 0x40d70f
push edi
mov ecx, ebp
call fcn.0040d5a0
mov ebx, eax
push esi
call fcn.0041356e
add esp, 4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
add esp, 0xc
ret 0xc