joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060db
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call fcn.00427d80
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push ebx
push 0xffffffffffffff96
push dword [esi + 8]
call edi
push ebx
lea eax, [ebp - 0x7c]
push eax
push 0x6a
lea eax, [ebp - 0x78]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x7c], 0x6a
jne 0x4061b1
mov edx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x78]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x406170
cmp cx, bx
je 0x40616c
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x406170
add eax, 4
add edx, 4
cmp cx, bx
jne 0x40614a
xor eax, eax
jmp 0x406175
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4061b1
push 1
push ebx
push 0xffffffffffffff92
push dword [esi + 8]
call edi
push ebx
lea eax, [ebp - 0x7c]
push eax
push 4
lea eax, [ebp - 0x80]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x7c]
push 1
push ebx
neg eax
push eax
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp + 0x190]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042396b
add ebp, 0x194
leave
ret

Function at 0x4061c8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [esi + 0x26f0]
sub eax, dword [esi + 0x26ec]
push ebx
push 2
xor ebx, ebx
push ebx
push ebx
push dword [esi + 8]
sar eax, 2
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 4], ebx
je 0x406285
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
call edi
mov eax, dword [esi + 0x26f0]
sub eax, dword [esi + 0x26ec]
mov dword [ebp - 0xc], 4
sar eax, 2
test eax, eax
je 0x40625b
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x26ec]
push 0x20
push dword [eax + ebx*4]
push dword [esi + 8]
call edi
mov eax, dword [esi + 0x26f0]
sub eax, dword [esi + 0x26ec]
add dword [ebp - 0xc], 0x20
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x40622d
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
call edi
push 0
lea eax, [ebp - 8]
push eax
push 0x6a
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push dword [esi + 8]
call edi
pop edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop ebx
leave
ret
Function at 0x406291
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push esi
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x218], esi
call fcn.00427d80
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push esi
push 0xffffffffffffff96
push dword [ebx + 8]
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
call edi
push esi
lea eax, [ebp - 0x214]
push eax
push 0x6a
lea eax, [ebp - 0x210]
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x214], 0x6a
jne 0x40647b
mov edx, str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
lea eax, [ebp - 0x210]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x40634c
cmp cx, si
je 0x406348
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x40634c
add eax, 4
add edx, 4
cmp cx, si
jne 0x406326
xor eax, eax
jmp 0x406351
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x40647b
push 1
push esi
push 0xffffffffffffff92
push dword [ebx + 8]
call edi
push esi
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x22c]
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x22c]
add eax, dword [ebp - 0x214]
push 1
push esi
neg eax
push eax
push dword [ebx + 8]
call edi
push esi
lea eax, [ebp - 0x214]
push eax
push 4
lea eax, [ebp - 0x218]
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x21c], esi
cmp dword [ebp - 0x218], esi
jbe 0x406444
lea edi, [ebx + 0x5cfd8]
jmp 0x4063ca
xor esi, esi
push esi
lea ecx, [ebp - 0x214]
push ecx
push 0x20
lea eax, [edi - 0x18]
push eax
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [edi]
add dword [edi - 0x10], ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi - 4]
adc dword [edi - 0xc], ecx
mov ecx, dword [edi - 8]
sub ecx, dword [edi - 0x10]
lea eax, [edi - 0x18]
sbb edx, dword [edi - 0xc]
add ecx, 1
adc edx, esi
add dword [ebp - 0x228], ecx
mov dword [eax], esi
mov dword [edi - 0x14], esi
adc dword [ebp - 0x224], edx
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
lea esi, [ebx + 0x26ec]
call fcn.00406e70
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
add edi, 0x20
cmp eax, dword [ebp - 0x218]
jb 0x4063c8
mov ecx, dword [ebx + 0x5d108]
sub ecx, dword [ebp - 0x228]
mov edx, dword [ebx + 0x5d10c]
sbb edx, dword [ebp - 0x224]
mov dword [ebx + 0x5d120], ecx
mov eax, edx
mov dword [ebx + 0x5d11c], eax
xor eax, eax
mov dword [ebx + 0x5d124], edx
mov dword [ebx + 0x5d118], ecx
inc eax
jmp 0x40647d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042396b
leave
ret
Function at 0x40648b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
mov eax, dword [ebx + 0x805c]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x20]
cmp dword [eax + 4], 1
push edi
jne 0x4064ac
mov eax, dword [ebx]
mov dword [ebp - 4], eax
xor edi, edi
cmp dword [esi + 0x26fc], edi
je 0x40654d
call fcn.004060db
mov edi, dword [ebx + 0x8040]
mov ecx, dword [edi + 8]
add ecx, dword [edi + 0x18]
mov eax, dword [edi + 0xc]
adc eax, dword [edi + 0x1c]
push 0
mov edx, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ecx
push dword [esi + 8]
sar edx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4064fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406589
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebx + 0x40]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406589
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x406589
add dword [edi + 0x18], eax
mov edx, ebx
adc dword [edi + 0x1c], 0
mov ecx, dword [ebp - 8]
add dword [esi + 0x5d118], ecx
push ecx
mov ecx, esi
adc dword [esi + 0x5d11c], 0
call fcn.0040658f
call fcn.004061c8
xor eax, eax
inc eax
jmp 0x40658b
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebx + 0x40]
push eax
push dword [esi + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406589
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
jne 0x406589
add dword [esi + 0x5d118], ecx
push ecx
mov edx, ebx
adc dword [esi + 0x5d11c], edi
mov ecx, esi
call fcn.0040658f
jmp 0x406548
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4072f8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x3c0]
sub esp, 0x440
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp + 0x3bc], eax
push ebx
push esi
push edi
push 0x43e494
mov esi, 0x43e174
push esi
mov ebx, 0x103
push ebx
push 0x44ac98
mov edi, ecx
call fcn.00424b04
call fcn.00407f76
push eax
push esi
push ebx
push 0x44aea0
call fcn.00424b04
call fcn.00407f76
push eax
push esi
push ebx
push 0x44b0a8
call fcn.00424b04
add esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push esi
push ebx
push 0x44b2b0
call fcn.00424b04
push dword [edi]
push str.0x_08x
push ebx
push 0x44b8c8
call fcn.00424b04
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x1b4], ax
lea eax, [ebp + 0x1b6]
push eax
call fcn.00427d80
mov esi, dword [edi + 0xc]
and dword [ebp - 0x80], 0
add esp, 0x2c
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407426
mov edi, dword [ebp - 0x7c]
test edi, edi
je 0x407426
push ebx
lea eax, [ebp + 0x1b4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x407426
sub esi, edi
mov dword [ebp - 0x58], esi
mov edi, 0x44b6c0
lea esi, [ebp + 0x1b4]
call fcn.00407e1c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
jne 0x4073fd
mov eax, esi
push eax
push 0x43e174
push ebx
push 0x44b4b8
call fcn.00424b04
push dword [ebp - 0x58]
push str.0x_08x
push ebx
push 0x44bad0
call fcn.00424b04
add esp, 0x20
jmp 0x407439
push str.unknown
push ebx
push 0x44b4b8
call fcn.00424b04
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
call fcn.00427d80
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00413577
add esp, 0x20
cmp dword [ebp - 0x58], 0
je 0x407490
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x60]
push dword [ebp - 0x5c]
push dword [ebp - 0x58]
push str._d._d._d__s
push ebx
push 0x44bcd8
call fcn.00424b04
add esp, 0x1c
call fcn.00407edd
mov ecx, dword [ebp + 0x3bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042396b
add ebp, 0x3c0
leave
ret
Function at 0x407572
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7b4]
sub esp, 0x834
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp + 0x7b0], eax
mov eax, dword [ebp + 0x7bc]
push ebx
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x7c0]
mov esi, 0x823
push esi
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x73]
push 0
push eax
mov ebx, ecx
mov byte [ebp - 0x74], 0
call fcn.00427d80
add esp, 0xc
cmp dword [ebp + 0x7c4], 0
push ebx
je 0x407684
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push str.___________________________7d9114302a0cb6
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_nContent_Type:_application_octet_stream_r_n_r_n
push esi
push eax
call fcn.00424bd4
lea eax, [ebp - 0x74]
add esp, 0x18
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4075f0
sub eax, esi
push 0x43e5d4
push ebx
mov esi, eax
call fcn.00424d3c
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 0x78], ebx
test ebx, ebx
je 0x4076c7
push 2
push 0
push ebx
call fcn.0042523d
push ebx
call fcn.0042514e
push 0
push 0
push ebx
mov dword [ebp - 0x80], eax
call fcn.0042523d
mov eax, dword [ebp - 0x80]
lea ebx, [eax + esi + 2]
add esp, 0x1c
cmp ebx, dword [edi]
jae 0x407676
push esi
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call fcn.00428020
push dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
push 1
push dword [ebp - 0x80]
add eax, esi
push eax
call fcn.00424f9d
mov eax, dword [ebp - 0x7c]
add esp, 0x1c
add eax, dword [ebp - 0x80]
mov ecx, 0xa0d
mov word [eax + esi], cx
mov dword [edi], ebx
jmp 0x407679
and dword [edi], 0
push dword [ebp - 0x78]
call fcn.00425326
pop ecx
jmp 0x4076ca
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push str.___________________________7d9114302a0cb6
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push esi
push eax
call fcn.00424bd4
lea eax, [ebp - 0x74]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4076a4
sub eax, ecx
mov esi, eax
cmp esi, dword [edi]
jae 0x4076c7
push esi
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call fcn.00428020
add esp, 0xc
mov dword [edi], esi
jmp 0x4076ca
and dword [edi], 0
mov ecx, dword [ebp + 0x7b0]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042396b
add ebp, 0x7b4
leave
ret
Function at 0x407b8f
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x5a0]
sub esp, 0x620
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp + 0x59c], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x80]
xor edi, edi
push eax
mov dword [ebp - 0x80], edi
call fcn.004076e1
pop ecx
mov dword [0x44c700], eax
cmp eax, edi
je 0x407cec
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push edi
push eax
call fcn.00427d80
xor eax, eax
push esi
mov word [ebp + 0x394], ax
lea eax, [ebp + 0x396]
push edi
push eax
call fcn.00427d80
add esp, 0x18
lea eax, [ebp + 0x394]
push eax
mov ebx, 0x103
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x43e0a0
lea eax, [ebp + 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
call fcn.0040316e
push str.http:__doctor.se.360.cn_index.php_doadderrorlog
call fcn.0040729c
lea eax, [ebp + 0x18c]
push eax
call fcn.004072ca
xor eax, eax
push esi
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push edi
push eax
mov dword [0x44f118], 0x2710
call fcn.00427d80
add esp, 0xc
mov esi, str.___________________________7d9114302a0cb6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x407c86
xor eax, eax
jmp 0x407c9b
lea eax, [edi + edi]
call fcn.004309d0
mov eax, esp
push 3
push edi
push esi
mov esi, eax
call fcn.00402bf1
push eax
push str.multipart_form_data__boundary_s
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.00424b04
mov eax, dword [0x44c700]
push 0x208
mov dword [0x44eef0], eax
mov eax, dword [ebp - 0x80]
push 0
mov esi, 0x44eef8
push esi
mov dword [0x44eef4], eax
call fcn.00427d80
lea eax, [ebp - 0x7c]
push eax
push 0x43e174
push ebx
push esi
call fcn.00407223
add esp, 0x2c
call fcn.004030be
call fcn.004033b7
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x59c]
xor ecx, ebp
call fcn.0042396b
add ebp, 0x5a0
leave
ret
Function at 0x407d0a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
push ebx
push str.dbghelp.dll
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
mov dword [ebp - 0x6c], eax
cmp eax, ebx
je 0x407e06
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
cmp eax, ebx
je 0x407dfd
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push ebx
push eax
call fcn.00427d80
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x44c4f8
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x43e0a0
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407dfc
push edi
xor eax, eax
lea edi, [ebp - 0x80]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x74]
push ebx
push ebx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push ebx
push esi
mov dword [ebp - 0x78], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x70]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 0x1a0]
xor ecx, ebp
pop ebx
call fcn.0042396b
add ebp, 0x1a4
leave
ret

Function at 0x407e1c
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x3f90]
mov eax, 0x4010
call fcn.00430920
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp + 0x3f8c], eax
xor eax, eax
push 0x3ffe
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00427d80
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x407ec6
cmp eax, 0x3fff
ja 0x407ec6
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x407ec6
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x43e7a8
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x407ec6
mov eax, dword [ebp - 0x78]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x43e7ac
push ebx
push edi
call fcn.00424b04
xor eax, eax
add esp, 0x1c
mov word [edi + ebx*2 - 2], ax
inc eax
jmp 0x407ec8
xor eax, eax
mov ecx, dword [ebp + 0x3f8c]
xor ecx, ebp
call fcn.0042396b
add ebp, 0x3f90
leave
ret
Function at 0x407edd
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
push esi
push edi
mov dword [ebp - 4], 0x104
cmp ax, word [0x4af808]
jne 0x407f1f
push eax
push 0x26
mov edi, 0x4af808
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407f09
push 0x10
pop ecx
mov esi, str.internet_exploreriexplore.exe
rep movsd dword es:[edi], dword [esi]
push ebx
mov ebx, dword [ebp - 4]
mov edi, 0x44bee0
mov esi, 0x4af808
call fcn.00407e1c
mov esi, eax
pop ebx
test esi, esi
jne 0x407f70
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push str.Version
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x407f70
xor eax, eax
cmp ax, word [0x44bee0]
je 0x407f70
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x408479
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, word [ebp + 0xc]
push esi
push edi
push 0x43fb28
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x408576
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
je 0x408575
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x408575
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x408575
push ebx
push esi
push eax
call fcn.00428020
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp + 0xc], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x40856c
mov ebx, dword [ebp + 0xc]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
cmp esi, edi
je 0x408536
lea eax, [ebp - 4]
push eax
push ebx
mov dword [esi], 0x43ea4c
mov dword [ebp - 4], edi
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
jmp 0x408538
xor esi, esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, edi
je 0x40856c
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
jne 0x408564
push edi
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipCreateHBITMAPFromBitmap]
cmp eax, edi
je 0x408564
mov dword [esi + 8], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x4091f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0040919e
mov ebx, eax
cmp ebx, esi
je 0x40925c
cmp dword [ebp - 0x218], esi
je 0x409255
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4092f4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x409284
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.004091f0
mov dword [ebp - 0x224], eax
cmp eax, esi
jne 0x409305
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call ebx
test eax, eax
je 0x409264
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], esi
je 0x4092cf
push dword [ebp - 0x218]
call ebx
mov dword [ebp - 0x218], esi
push dword [ebp - 0x220]
mov dword [ebp - 0x214], esi
call fcn.004090c3
mov edi, eax
cmp dword [ebp - 0x218], esi
je 0x4092f2
push dword [ebp - 0x218]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042396b
leave
ret 4
cmp dword [ebp - 0x218], esi
je 0x409319
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x4092f4
Function at 0x4095d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x44465c]
xor eax, ebp
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x39c]
push ebx
mov ebx, dword [ebp + 0x3a0]
push esi
push edi
xor esi, esi
push 2
push esi
push eax
mov edi, edx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x74], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x78], eax
cmp eax, esi
jne 0x40962c
call fcn.00408a94
mov esi, eax
jmp 0x4096e0
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x409645
call fcn.00408a94
jmp 0x4096d5
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x40963b
push edi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x40966f
mov esi, 0x8007000e
jmp 0x4096d7
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
cmp ecx, esi
ja 0x409680
cmp eax, 0xffffffff
jbe 0x40968a
push 0x80070216
call fcn.00401000
cmp eax, 0x400
jbe 0x40969d
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0040b1df
jmp 0x4096a3
lea eax, [ebp - 0x70]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], esi
je 0x409668
push edi
push dword [ebp - 0x74]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40963b
mov edx, dword [ebp - 0x74]
push dword [ebp + 0x3a4]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x80]
call fcn.0040a020
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x74], eax
je 0x4096f0
lea eax, [ebp - 0x74]
call fcn.0040b117
mov ecx, dword [ebp + 0x390]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042396b
add ebp, 0x394
leave
ret 0xc