joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4054f8
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x4098f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x409956
call fcn.004098a4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00405be4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00405be4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4099b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x451998], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x409a8e
cmp dword [0x451994], 0
jne 0x409a8e
cmp dword [0x451b88], 0
je 0x409a48
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004097a4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409a2e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004097a4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409a2e
lea ebx, [ebp - 0x84]
jmp 0x409a2f
inc ebx
call fcn.00409970
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x409ac9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x45199c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00405be4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x45199f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x409ac9
cmp dword [0x451994], 0
je 0x409aa8
cmp dword [0x451994], 0xffffffff
je 0x409ac9
push esi
call dword [0x451994]
pop ecx
mov eax, dword [0x451998]
test eax, eax
je 0x409ac9
cmp dword [0x451998], 0xffffffff
je 0x409ac9
cmp byte [eax], 0
je 0x409ac9
push esi
push eax
call fcn.004098f4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a30c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x453ee8], 0
jne 0x40a38d
cmp dword [0x453f08], 0
jne 0x40a33c
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x453f08], eax
test eax, eax
jne 0x40a33c
push str.GetEnvironmentStrings_failed
call fcn.00409ae0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x453f08]
jmp 0x40a350
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00405be4
pop ecx
mov edi, eax
test eax, eax
jne 0x40a348
lea edi, [ebp + 1]
push edi
call fcn.00404ab0
pop ecx
mov ebx, eax
mov dword [0x453eec], ebx
test ebx, ebx
jne 0x40a37a
xor eax, eax
jmp 0x40a450
push edi
mov edx, dword [0x453f08]
push edx
push ebx
call fcn.00405a94
add esp, 0xc
jmp 0x40a3ad
xor esi, esi
mov ebx, dword [0x453ee8]
jmp 0x40a3a7
push eax
call fcn.00405be4
pop ecx
test eax, eax
jne 0x40a3a3
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40a397
lea ebx, [esi + 4]
push 4
mov dword [0x453ef0], ebx
inc ebx
push ebx
call fcn.00404614
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40a3d0
xor eax, eax
jmp 0x40a450
cmp dword [0x453ee8], 0
jne 0x40a401
xor esi, esi
mov ebx, dword [0x453eec]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40a3f2
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00405be4
pop ecx
mov edi, eax
test eax, eax
jne 0x40a3e8
jmp 0x40a432
xor esi, esi
mov ebx, dword [0x453ee8]
mov eax, dword [esp]
mov edi, eax
jmp 0x40a42c
push eax
call fcn.00405be4
pop ecx
test eax, eax
je 0x40a421
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40a425
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40a410
mov eax, dword [0x453ee8]
test eax, eax
je 0x40a442
push eax
call fcn.00404ac0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x453ee8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40cbd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x4525f8
sub eax, eax
test esi, esi
je 0x40ccb0
sub eax, 1
test ecx, ecx
je 0x40ccae
test esi, 3
je 0x40cc0e
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cbf3
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40cc95
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cc1c
mov ecx, edx
test ecx, ecx
je 0x40ccae
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40cc9b
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x40cf94
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040d017
jae 0x40cfa2
xor ecx, ecx
call fcn.0040d017
jae 0x40cfd1
xor eax, eax
call fcn.0040d017
jae 0x40cfe1
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040d017
adc al, al
jae 0x40cfc3
jne 0x40d00d
stosb byte es:[edi], al
jmp 0x40cfa5
call fcn.0040d023
sub ecx, ebx
jne 0x40cfea
call fcn.0040d021
jmp 0x40d009
lodsb al, byte [esi]
shr eax, 1
je 0x40d033
adc ecx, ecx
jmp 0x40d006
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040d021
cmp eax, 0x7d00
jae 0x40d006
cmp ah, 5
jae 0x40d007
cmp eax, 0x7f
ja 0x40d008
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40cfa5
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x40d360
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40d3cf
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x40d397
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40dcd0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
lea edx, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edx
lea ecx, [ebp - 0x114]
push ecx
push esi
push edi
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x40dd6f
mov dword [ebp - 0xc], 0xc8
push str.HIDVid_3689Pid_8762
call fcn.00405be4
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
push 0x452eba
call fcn.00405d5c
add esp, 0xc
test eax, eax
jne 0x40dd6f
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
jne 0x40dd6c
mov ecx, dword [ebp + 0x10]
mov esi, str.__
mov edi, ecx
lea edx, [ebp - 0x110]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00405ba8
add esp, 8
mov eax, 1
jmp 0x40dd7a
inc dword [ebp - 0x10]
inc esi
test ebx, ebx
je 0x40dcef
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x408d10
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x20c
push esi
push edi
xor edx, edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], dl
mov byte [esp + 0x110], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x23
push eax
push edx
mov dword [esp + 0x18], edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea edx, [esp + 0xc]
push str.StormConfig.ini
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
push 0x104
push ecx
push 0x410a14
push 0x41061c
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x218]
lea edx, [esp + 0x110]
push edx
mov ecx, esi
call fcn.0040ac92
mov eax, esi
pop edi
pop esi
add esp, 0x20c
ret

Function at 0x408dc0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x208
push esi
push edi
xor edx, edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], dl
mov byte [esp + 8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
push 0x23
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x10c]
lea edx, [esp + 8]
push ecx
push str._sStormcurrent.ecs
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x10
lea eax, [esp + 8]
push eax
call esi
test eax, eax
jne 0x408e63
mov edx, dword [0x410ae4]
lea ecx, [esp + 8]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 8]
push str...current.ecs
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 8]
push ecx
call esi
pop edi
pop esi
test eax, eax
je 0x408e97
mov edx, dword [esp + 0x210]
mov ecx, dword [esp + 0x20c]
lea eax, [esp]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
xor eax, eax
add esp, 0x208
ret
mov eax, 0x80004005
add esp, 0x208
ret

Function at 0x408eb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push 0x104
push eax
call fcn.00408dc0
add esp, 8
test eax, eax
je 0x408ed5
xor eax, eax
add esp, 0x108
ret
push 0
push 0x80
push 3
push 0
push 3
lea ecx, [esp + 0x18]
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
jne 0x408efd
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
lea edx, [esp]
push 0
push edx
push 8
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
add esp, 0x108
ret
Function at 0x409020
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x20c
push esi
push edi
xor edx, edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], dl
mov byte [esp + 0x110], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x23
push eax
push edx
mov dword [esp + 0x18], edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea edx, [esp + 0xc]
push str.StormConfig.ini
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
push 0x104
push ecx
push 0x410a14
push str.version
push str.UPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x218]
lea edx, [esp + 0x110]
push edx
mov ecx, esi
call fcn.0040ac92
mov eax, esi
pop edi
pop esi
add esp, 0x20c
ret
Function at 0x4090d0
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
sub esp, 0x944
push esi
mov esi, dword [esp + 0x94c]
test esi, esi
push edi
mov dword [esp + 8], 0x80004005
jne 0x4090f9
pop edi
mov eax, 0x80004005
pop esi
add esp, 0x944
ret
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x14d]
mov byte [esp + 0x14c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x50]
lea ecx, [esp + 0x150]
push 0x10000000
push esi
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x100
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0x800
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x40918c
pop edi
mov eax, 0x80004005
pop esi
add esp, 0x944
ret
push ebp
push 0
push 0
push 0
push 0
push str.StormUpgrade
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
test ebp, ebp
je 0x40924c
lea eax, [esp + 0x10]
push 4
push eax
push 2
push ebp
mov dword [esp + 0x20], 0x1770
call dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jne 0x4091cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x958]
push ebx
push 0
push 0
push 3
push 0x410530
push 0x410530
lea edx, [esp + 0x68]
push ecx
push edx
push ebp
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, eax
test esi, esi
je 0x409248
push 1
push 0x4000000
push 0
push 0
lea eax, [esp + 0x164]
push str.HTTP_1.0
push eax
push str.GET
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
je 0x409245
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x409242
mov dword [esp + 0x10], 0
push edi
call ebx
push esi
call ebx
push ebp
call ebx
pop ebx
mov eax, dword [esp + 0xc]
pop ebp
pop edi
pop esi
add esp, 0x944
ret
Function at 0x4094e0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x4094f4
pop ecx
ret
mov al, byte [esp]
test al, 0x20
je 0x409500
xor eax, eax
pop ecx
ret
test al, 7
jne 0x409508
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret

Function at 0x409c10
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
setae al
add esp, 0x94
ret

Function at 0x409c40
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x44]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x409c58
pop esi
add esp, 0x3c
ret
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov al, byte [esp + 0x50]
mov dword [esp + 0xc], 0x40
test al, al
mov dword [esp + 8], 0x3c
mov dword [esp + 0x24], 1
pop edi
mov dword [esp + 0x10], str.runas
jne 0x409c97
mov dword [esp + 0x10], 0x410a14
mov eax, dword [esp + 0x48]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x3c
ret
Function at 0x40a18c
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x40a170
push 0xffffffffffffffff
push 0x40bc4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebp
push esi
mov esi, ecx
push edi
push 6
mov eax, dword [esi + 0x500]
push eax
call fcn.00409260
lea ebp, [esi + 0x504]
mov ecx, ebp
call fcn.00401790
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
stosb byte es:[edi], al
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], 0x100
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0xc]
mov dword [esp + 0x128], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_storm2
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a260
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
push edx
push ecx
push 0
push str.DisplayIcon
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
call fcn.00409c10
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x18]
push eax
push 0
push ecx
call fcn.00409c40
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebp
call fcn.00401790
mov eax, dword [esi + 0x20]
push 0
push 0xf060
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x401380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401399
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4013d0
lea ebx, [ebx]
cmp esi, eax
jae 0x4013d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4013c0
cmp esi, eax
jb 0x4013da
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4017c0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4017e0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x4017f4
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x401820
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x401836
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401843
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8