joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x438ec9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
push 0x9a05f8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esp + 0x34]
mov edx, dword [esi + 0x44]
mov eax, dword [esp + 0x38]
mov edi, dword [esi + 0x48]
inc edx
push eax
lea ecx, [esp + 0xc]
mov dword [esi + 0x44], edx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 8]
push ecx
mov ecx, 0x9a0740
mov dword [esp + 0x30], 0
call fcn.0040be30
lea ecx, [esp + 8]
mov dword [eax], esi
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x9a05f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x411150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x48
cmp eax, 1
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x80], 0
jne 0x4112d2
mov edi, dword [esp + 0x5c]
test edi, edi
jne 0x41118a
pop edi
pop esi
pop ebp
mov eax, 0x80070057
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [ebx]
test eax, eax
je 0x41119f
push eax
call sub.MFC71.DLL_operator_delete
add esp, 4
mov dword [ebx], 0
mov esi, dword [sym.imp.WINMM.dll_mmioOpenA]
push 0
push 0
push edi
call esi
test eax, eax
mov dword [ebx + 4], eax
je 0x4112eb
push 0
push eax
call dword [sym.imp.WINMM.dll_mmioClose]
push 0x10000
push 0
push edi
call esi
test eax, eax
mov dword [ebx + 4], eax
jne 0x411292
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push str.WAVE
push edi
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x4111fd
push 0x44587c
push edi
push eax
call ebp
mov esi, eax
test esi, esi
je 0x4112eb
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4112eb
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebp, ebp
je 0x4112eb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4112eb
push ebp
call sub.MFC71.DLL_operator_new_1
mov dword [ebx + 0x90], eax
mov edi, eax
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
mov ecx, 0x48
mov edi, edi
mov byte [eax], 0
inc eax
dec ecx
jne 0x411260
mov ecx, dword [ebx + 0x90]
push 0x10000
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esp + 0x20], 0x204d454d
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ecx
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov dword [ebx + 4], eax
mov ecx, ebx
call fcn.00410930
mov esi, eax
test esi, esi
jge 0x4112b7
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.00410ab0
test eax, eax
jl 0x41132b
mov ecx, dword [ebx + 0xc]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x30], ecx
pop ebx
add esp, 0x48
ret 0xc
mov edx, dword [esp + 0x5c]
push 0x11002
push 0
push edx
call dword [sym.imp.WINMM.dll_mmioOpenA]
test eax, eax
mov dword [ebx + 4], eax
jne 0x4112fa
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [esp + 0x60]
push eax
mov ecx, ebx
call fcn.00410de0
mov esi, eax
test esi, esi
jge 0x411324
mov ecx, dword [ebx + 4]
push 0
push ecx
call dword [sym.imp.WINMM.dll_mmioClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
mov ecx, ebx
call fcn.00410ab0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0xc
Function at 0x433c9d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x45ee98
call fcn.004342a0
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x433cdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x433cdd
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x433cf5
cmp eax, 0x20b
je 0x433ce2
mov dword [ebp - 0x1c], ebx
jmp 0x433d09
cmp dword [ecx + 0x84], 0xe
jbe 0x433cdd
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x433d03
cmp dword [ecx + 0x74], 0xe
jbe 0x433cdd
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x1f3bc58], 0xffffffff
or dword [0x1f3bc5c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x1f3b80c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x1f3b808]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1f3bc54], eax
call fcn.0043439e
call fcn.0043443e
cmp dword [0x495500], ebx
jne 0x433d69
push fcn.0043443e
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0043442c
push 0x464490
push 0x46448c
call sub.MSVCR71.dll__initterm
push 0x4343e2
call fcn.00433b25
mov eax, dword [0x1f3b804]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x1f3b800]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x433dbd
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x464488
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x433e3b
cmp al, bl
je 0x433de7
cmp dword [ebp - 0x20], ebx
jne 0x433e3b
mov al, byte [esi]
cmp al, bl
je 0x433df7
cmp al, 0x20
ja 0x433df7
inc esi
mov dword [ebp - 0x24], esi
jmp 0x433de7
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x433e13
movzx eax, word [ebp - 0x54]
jmp 0x433e16
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00437251
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x433e33
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x433e90
cmp al, 0x22
jne 0x433e4a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x433e5d
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x433dd5
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004342db
ret
Function at 0x40100c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80e008]
jne 0x401016
repz ret
jmp fcn.004018a0

Function at 0x40924e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004053be
and dword [ebp - 4], 0
cmp dword [0x810774], 0
mov ebx, eax
jne 0x4092ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093b0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093b0
push eax
call fcn.0040534c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x810774], eax
call esi
push eax
call fcn.0040534c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x810778], eax
call esi
push eax
call fcn.0040534c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x81077c], eax
call esi
push eax
call fcn.0040534c
pop ecx
mov dword [0x810784], eax
test eax, eax
je 0x4092ff
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040534c
pop ecx
mov dword [0x810780], eax
mov eax, dword [0x810780]
cmp eax, ebx
je 0x409357
cmp dword [0x810784], ebx
je 0x409357
push eax
call fcn.004053c7
push dword [0x810784]
mov esi, eax
call fcn.004053c7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409357
test edi, edi
je 0x409357
call esi
test eax, eax
je 0x40934e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40934e
test byte [ebp - 0xc], 1
jne 0x409357
or dword [ebp + 0x10], 0x200000
jmp 0x409390
mov eax, dword [0x810778]
cmp eax, ebx
je 0x409390
push eax
call fcn.004053c7
pop ecx
test eax, eax
je 0x409390
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409390
mov eax, dword [0x81077c]
cmp eax, ebx
je 0x409390
push eax
call fcn.004053c7
pop ecx
test eax, eax
je 0x409390
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x810774]
call fcn.004053c7
pop ecx
test eax, eax
je 0x4093b0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093b2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b770
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x2af88b4], 0x930
jne 0x40b78d
push str.butupoxehurelelehocosohixunexa
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x2af88b4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x2af85d0], eax
jne 0x40b7b3
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x4033fc], eax
mov eax, dword [ebp + 4]
mov dword [0x40323a], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401020
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40323a]
mov dword [ebp - 0x48], eax
mov eax, 0x4016df
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x40323a]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.lukifas
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403448], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403448]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010bc
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010b5
mov esp, ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402308
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
xor esi, esi
push ebx
mov dword [ebp + esi*4 - 0x410], esi
call fcn.00410b12
pop ecx
mov ecx, eax
xor edx, edx
mov eax, esi
div ecx
inc esi
movzx eax, byte [edx + ebx]
mov dword [ebp + esi*4 - 0x814], eax
cmp esi, 0x100
jl 0x40231b
xor edx, edx
mov ecx, dword [ebp + edx - 0x810]
lea eax, [ebp + edx - 0x410]
mov esi, dword [eax]
add ecx, esi
add edi, ecx
and edi, 0x800000ff
jns 0x40236b
dec edi
or edi, 0xffffff00
inc edi
lea ecx, [ebp + edi*4 - 0x410]
mov ebx, dword [ecx]
add edx, 4
mov dword [eax], ebx
mov dword [ecx], esi
cmp edx, 0x400
jl 0x402347
push dword [ebp + 8]
call fcn.00410b12
inc eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
push dword [ebp + 8]
mov esi, eax
xor edi, edi
mov dword [ebp - 8], esi
xor ebx, ebx
mov dword [ebp - 4], edi
call fcn.00410b12
add esp, 0xc
test eax, eax
jle 0x40244b
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
sub eax, esi
mov dword [ebp - 0xc], eax
jmp 0x4023c1
mov ebx, dword [ebp - 0x10]
inc edi
and edi, 0x800000ff
jns 0x4023d2
dec edi
or edi, 0xffffff00
inc edi
lea eax, [ebp + edi*4 - 0x410]
mov ecx, dword [eax]
lea edx, [ecx + ebx]
and edx, 0x800000ff
jns 0x4023ee
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x10], edx
lea edx, [ebp + edx*4 - 0x410]
mov ebx, dword [edx]
mov dword [eax], ebx
mov dword [edx], ecx
mov eax, dword [eax]
add eax, ecx
and eax, 0x800000ff
jns 0x402410
dec eax
or eax, 0xffffff00
inc eax
mov cl, byte [esi]
movzx edx, cl
lea eax, [ebp + eax*4 - 0x410]
cmp dword [eax], edx
jne 0x402428
mov eax, dword [ebp - 0xc]
mov byte [eax + esi], cl
jmp 0x402432
mov al, byte [eax]
xor al, cl
mov ecx, dword [ebp - 0xc]
mov byte [ecx + esi], al
push dword [ebp + 8]
inc dword [ebp - 4]
inc esi
call fcn.00410b12
pop ecx
cmp dword [ebp - 4], eax
jl 0x4023be
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov byte [esi + eax], 0
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
pop esi
pop ebx
leave
ret

Function at 0x40245c
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4e24
call fcn.004181c0
push ebx
push esi
push edi
xor ebx, ebx
push 0x4e1f
lea eax, [ebp - 0x4e23]
push ebx
push eax
mov byte [ebp - 0x4e24], bl
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 8]
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 1
push edi
mov dword [ebp - 4], ebx
call fcn.00410b12
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
pop ecx
push eax
push edi
call esi
push ebx
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4e24]
push eax
push 1
push edi
call fcn.00410b12
pop ecx
push eax
push edi
call esi
pop edi
pop esi
test eax, eax
pop ebx
lea eax, [ebp - 0x4e24]
jne 0x4024d5
mov eax, 0x424714
leave
ret
Function at 0x4041b2
Capabilities:
Check http status code

Disassembly:
mov eax, 0x41ea4a
call sub.msvcrt.dll__EH_prolog
sub esp, 0x598
push ebx
push esi
push edi
sub esp, 0xc
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov dword [ebp - 4], 1
call fcn.0040f95a
lea eax, [ebp - 0xa4]
push eax
call fcn.00403a54
add esp, 0x10
push 0xf
pop ecx
push 0x5f5e0ff
mov esi, eax
xor ebx, ebx
lea edi, [ebp - 0x68]
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [0x640164]
push eax
call dword [0x6400fc]
push ebx
push ebx
xor edi, edi
push ebx
inc edi
push ebx
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
call fcn.0040fb4d
push eax
call dword [0x640060]
push dword [0x62f33c]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x64]
xor esi, esi
call dword [0x64013c]
test eax, eax
jne 0x404244
mov esi, edi
cmp dword [ebp - 0x18], ebx
je 0x404378
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x50]
push dword [ebp - 0x58]
push dword [ebp - 0x18]
call dword [0x640160]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x40436f
mov eax, esi
neg eax
push ebx
sbb eax, eax
and eax, 0x800000
add eax, 0x400100
push eax
push ebx
push ebx
push dword [0x62f188]
push dword [ebp - 0x3c]
push 0x425a24
push dword [ebp - 0x24]
call dword [0x640194]
mov edi, eax
cmp edi, ebx
je 0x404368
cmp esi, ebx
je 0x4042bc
or dword [ebp - 0x20], 0x10300
push 4
lea eax, [ebp - 0x20]
push eax
push 0x1f
push edi
call dword [0x63ff68]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x640128]
push ebx
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1a4]
push eax
push 0x13
push edi
mov dword [ebp - 0x28], 0x100
call dword [0x6401ac]
test eax, eax
jne 0x40430c
lea ecx, [ebp + 8]
xor esi, esi
mov byte [ebp - 4], bl
call fcn.0040f98e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040f98e
mov eax, dword [ebp - 0x2c]
mov edx, esi
jmp 0x40439e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410a77
pop ecx
cmp eax, 0xc8
jne 0x4042e9
cmp esi, ebx
je 0x404368
jmp 0x404363
lea eax, [ebp - 0x10]
push eax
push 0x400
lea eax, [ebp - 0x5a4]
push eax
push edi
call dword [0x640088]
xor esi, esi
cmp dword [ebp - 0x10], ebx
jbe 0x404368
push 1
lea eax, [ebp + esi - 0x5a4]
push eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
push eax
call fcn.00410ac8
inc dword [ebp - 0x14]
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x404344
cmp dword [ebp - 0x10], ebx
ja 0x404326
push edi
call dword [0x64005c]
push dword [ebp - 0x24]
call dword [0x64005c]
push dword [ebp - 0x18]
call dword [0x64005c]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0040f98e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040f98e
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x404f2a
Capabilities:
Check http status code

Disassembly:
mov eax, 0x41ec50
call sub.msvcrt.dll__EH_prolog
sub esp, 0x978
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
sub esp, 0xc
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 4], 2
call fcn.0040f95a
lea eax, [ebp - 0xb4]
push eax
call fcn.00403a54
add esp, 0x10
push 0xf
pop ecx
mov esi, eax
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
push 0x4259fe
lea ecx, [ebp - 0x30]
call fcn.0040f923
push ebx
push ebx
push ebx
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.0040fb4d
push eax
call dword [0x640060]
push dword [0x62f33c]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x74]
xor esi, esi
call dword [0x64013c]
test eax, eax
jne 0x404fb1
inc esi
cmp dword [ebp - 0x10], ebx
je 0x4050f5
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x60]
push dword [ebp - 0x68]
push dword [ebp - 0x10]
call dword [0x640160]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x4050ec
mov eax, esi
neg eax
push ebx
sbb eax, eax
and eax, 0x800000
add eax, 0x400100
push eax
push ebx
push ebx
push dword [0x62f188]
push dword [ebp - 0x4c]
push 0x425b34
push dword [ebp - 0x1c]
call dword [0x640194]
mov edi, eax
cmp edi, ebx
je 0x4050e3
cmp esi, ebx
je 0x405029
or dword [ebp - 0x20], 0x10300
push 4
lea eax, [ebp - 0x20]
push eax
push 0x1f
push edi
call dword [0x63ff68]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x640128]
push ebx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1b4]
push eax
push 0x13
push edi
mov dword [ebp - 0x18], 0x100
call dword [0x6401ac]
test eax, eax
jne 0x405068
mov ecx, dword [ebp + 8]
push 0x425b38
call fcn.0040f923
jmp 0x405101
lea eax, [ebp - 0x1b4]
push eax
call fcn.00410a77
pop ecx
cmp eax, 0xc8
jne 0x40513d
cmp esi, ebx
je 0x4050dc
mov esi, 0x7cf
jmp 0x4050c5
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x4050dc
mov byte [ebp + eax - 0x984], bl
lea eax, [ebp - 0x984]
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040fa9c
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.0040f9e1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0040f98e
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x984]
push eax
push edi
call dword [0x640088]
cmp eax, ebx
jne 0x40508b
push edi
call dword [0x64005c]
push dword [ebp - 0x1c]
call dword [0x64005c]
push dword [ebp - 0x10]
call dword [0x64005c]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
call fcn.0040f95a
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
call fcn.0040f98e
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040f98e
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], bl
call fcn.0040f98e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov ecx, dword [ebp + 8]
push 0x425b40
call fcn.0040f923
jmp 0x405101
Function at 0x4059a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x4059be
xor eax, eax
inc eax
jmp 0x405a50
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x405a4d
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x405a4d
push dword [ebp + 0xc]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x4059b6
cmp dword [edi], 0x4550
jne 0x405a4d
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x405a4d
movzx eax, word [esi + 0x46]
test ax, ax
je 0x405a4d
imul eax, eax, 0x28
push eax
mov dword [esi + 0x140], eax
call fcn.00410afb
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x405a24
push 3
jmp 0x405a4f
push dword [ebp + 0xc]
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
push dword [esi + 0x140]
lea ecx, [ecx + edx + 0x18]
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x405a50
push 2
pop eax
pop edi
pop ebp
ret

Function at 0x406036
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x406070
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x406070
mov edx, 0x10b
cmp word [eax + ecx + 0x18], dx
jne 0x406070
push dword [ebp + 0xc]
push ecx
push dword [eax + ecx + 0x78]
call fcn.00405f9a
add esp, 0xc
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41077c
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov eax, 0x4207b9
call sub.msvcrt.dll__EH_prolog
sub esp, 0x40
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push esi
mov dword [ebp - 0x24], esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x18]
push eax
push 0x426edc
push 1
push esi
push 0x426fac
mov dword [ebp - 0x18], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push str.ROOTCIMV2
mov dword [ebp - 0x14], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x410914
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push edx
push esi
push 0x20
push str.Select__From_Win32_OperatingSystem
push 0x426398
mov dword [ebp - 0x1c], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp eax, esi
jl 0x41090d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
cmp eax, esi
je 0x4108ea
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x24]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x20], esi
je 0x4108ea
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push esi
push esi
lea edx, [ebp - 0x4c]
push edx
push esi
push str.InstallDate
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x10]
push 1
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x44]
call fcn.004106c4
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
call dword [0x640164]
push 0x104
push esi
push eax
call dword [0x6400fc]
mov esi, eax
movzx eax, word [ebp - 0x30]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x34]
push eax
movzx eax, word [ebp - 0x3c]
push eax
movzx eax, word [ebp - 0x3a]
push eax
movzx eax, word [ebp - 0x36]
push eax
push str._d__d__d__d:_d:_d
push esi
call dword [0x63ff8c]
mov ecx, dword [ebp + 8]
add esp, 0x20
push esi
call fcn.0040f923
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x4108fb
or dword [ebp - 4], 0xffffffff
push 0x4263dc
mov ecx, dword [ebp + 8]
call fcn.0040f923
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push 0x4263cc
jmp 0x4108f3
push 0x4263d4
jmp 0x4108f3