joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b03d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x40b05d
cmp dword [edi + 0x54], 0
jne 0x40b05d
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041f859
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040b004
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40fcab
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40fce4
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040fc44
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00408f61
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x411911
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x411954
call fcn.0041f859
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x411954
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41196f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004114cb
test ebx, ebx
mov esi, eax
je 0x41196d
test edi, edi
je 0x41196d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41b508
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041f859
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x41b533
xor eax, eax
jmp 0x41b5d7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x41b52c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41b52c
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00405c2a
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x41b588
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x41b577
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0041a357
push edi
mov ebx, eax
call fcn.00405c5a
test ebx, ebx
pop ecx
je 0x41b5ca
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0041a9f1
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0041aaa3
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x4207d5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x420803
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420821
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042073f
jmp 0x420821
mov eax, dword [esi + 0x14]
test eax, eax
je 0x420821
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042073f
test edi, edi
mov eax, edi
jne 0x42080b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x46b12c]
test ecx, ecx
je 0x4208e4
jmp 0x4207d4
ret 8

Function at 0x439112
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x467be8]
jne 0x43911c
repz ret
jmp fcn.0043ec9f
Function at 0x4460d2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043e686
xor ebx, ebx
cmp dword [0x46bf90], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4461a7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x446112
xor eax, eax
jmp 0x44626b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x44610b
push eax
call fcn.0043e623
mov dword [esp], 0x458f1c
push edi
mov dword [0x46bf90], eax
call esi
push eax
call fcn.0043e623
mov dword [esp], 0x458f08
push edi
mov dword [0x46bf94], eax
call esi
push eax
call fcn.0043e623
mov dword [0x46bf98], eax
lea eax, [ebp - 8]
push eax
call fcn.0043a5a0
test eax, eax
pop ecx
pop ecx
je 0x446175
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00439600
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4461a7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043e623
cmp eax, ebx
pop ecx
mov dword [0x46bfa0], eax
je 0x4461a7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043e623
pop ecx
mov dword [0x46bf9c], eax
mov eax, dword [0x46bf9c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x446220
cmp dword [0x46bfa0], esi
je 0x446220
push eax
call fcn.0043e68f
pop ecx
call eax
cmp eax, ebx
je 0x4461ed
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x46bfa0]
call fcn.0043e68f
pop ecx
call eax
test eax, eax
je 0x4461ed
test byte [ebp - 0x18], 1
jne 0x446220
lea eax, [ebp - 0xc]
push eax
call fcn.0043a5d7
test eax, eax
pop ecx
je 0x446208
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00439600
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x446217
or dword [ebp + 0x10], 0x200000
jmp 0x446251
or dword [ebp + 0x10], 0x40000
jmp 0x446251
mov eax, dword [0x46bf94]
cmp eax, esi
je 0x446251
push eax
call fcn.0043e68f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x446251
mov eax, dword [0x46bf98]
cmp eax, esi
je 0x446251
push dword [ebp - 4]
push eax
call fcn.0043e68f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x46bf90]
call fcn.0043e68f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44d7c4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x467be8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044d759
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043a940
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x44d813
cmp dword [ebp - 0x1c], 5
jb 0x44d82b
jmp 0x44d827
cmp dword [ebp - 0x10], 1
jne 0x44d82b
cmp dword [ebp - 0x1c], 4
ja 0x44d827
jne 0x44d82b
cmp dword [ebp - 0x18], 0
jbe 0x44d82b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x45a8d8
call fcn.0044d64a
test eax, eax
jge 0x44d84c
mov byte [0x46c238], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00439112
add ebp, 0x78
leave
ret
Function at 0x401ce0
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407ab3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x278
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x280], esi
xorps xmm0, xmm0
mov dword [ebp - 0x27c], 1
movups xmmword [esi], xmm0
push 0x20
movups xmmword [esi + 0x10], xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0040694c
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
push dword [esi + 4]
mov dword [esi + 0x18], 7
push 0x10
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
call fcn.00405890
push 0
mov dword [ebp - 4], 2
push 2
mov dword [ebp - 0x27c], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x401ec8
lea eax, [ebp - 0x278]
mov dword [ebp - 0x278], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401ec1
nop
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x44]
call fcn.004050b0
lea edx, [ebp - 0x44]
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.00401730
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x288]
mov ecx, esi
push eax
call fcn.00405e10
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x401e5f
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401e55
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ee8
push ecx
push edx
call fcn.00406ce2
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 7
jbe 0x401eab
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401ea1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401ee8
push ecx
push edx
call fcn.00406ce2
add esp, 8
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401df0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040685e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x402f50
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40805c
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x101
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40311e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.004050b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x270]
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
push str.runneradmin
movq qword [ebp - 0x224], xmm0
call fcn.004050b0
push str.Lain
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 1
call fcn.004050b0
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 2
push ecx
lea eax, [ebp - 0x240]
push eax
push ecx
lea ecx, [ebp - 0x224]
call fcn.004047f0
push 0x405050
push 2
push 0x18
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 4
push eax
call fcn.0040697c
mov edi, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x240]
cmp edi, dword [ebp - 0x220]
je 0x4030d7
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x40304f
mov eax, dword [edi]
cmp dword [ebp - 0x22c], 7
lea esi, [ebp - 0x240]
mov ecx, dword [ebp - 0x230]
cmova esi, ebx
cmp ecx, dword [edi + 0x10]
jne 0x4030c8
mov edx, ecx
test edx, edx
je 0x403083
sub esi, eax
mov cx, word [esi + eax]
cmp cx, word [eax]
jne 0x4030c8
add eax, 2
sub edx, 1
jne 0x403072
lea ecx, [ebp - 0x224]
call fcn.004056c0
mov eax, dword [ebp - 0x22c]
cmp eax, 7
jbe 0x4030c4
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4030ba
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40310e
push ecx
push ebx
call fcn.00406ce2
add esp, 8
mov al, 1
jmp 0x403120
add edi, 0x18
cmp edi, dword [ebp - 0x220]
jne 0x403045
lea ecx, [ebp - 0x224]
call fcn.004056c0
mov eax, dword [ebp - 0x22c]
cmp eax, 7
jbe 0x40311e
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x403114
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403114
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.00406ce2
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040685e
mov esp, ebp
pop ebp
ret
Function at 0x404060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40408c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x4040b4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4040ba
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x404144
jg 0x4040d1
test esi, esi
je 0x404144
test ecx, ecx
jl 0x404127
jg 0x4040db
test eax, eax
je 0x404127
cmp edi, ecx
jg 0x4040ef
jl 0x4040e5
cmp esi, eax
jae 0x4040ef
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
add edx, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x404144
jg 0x40412a
test esi, esi
je 0x404144
jmp 0x40412a
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404144
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x40418c
jl 0x404180
test ecx, ecx
jne 0x40418c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4041a5
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x4041f3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x4041f9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x4041f9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x404266
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x404222
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x404254
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x404266
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x404230
test edi, edi
je 0x404266
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4045e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x404610
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040685e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40464c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40464c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040685e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404723
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404674
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404680
movsx eax, bl
jmp 0x4046b8
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4046e2
sub eax, 1
je 0x4046e2
sub eax, 2
jne 0x404723
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040685e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404700
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x404723
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040685e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040685e
mov esp, ebp
pop ebp
ret 4
Function at 0x405420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4054dc
cmp byte [esi + 0x3d], 0
je 0x4054dc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4054ca
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x405491
sub eax, 1
je 0x405495
sub eax, 2
jne 0x4054ca
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040685e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4054b3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4054ca
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040685e
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040685e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040685e
mov esp, ebp
pop ebp
ret
Function at 0x40755f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40759e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40759e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40759e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40759e
cmp dword [ecx + 0x74], 0xe
jbe 0x40759e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4033a6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100000
push dword [ebp + 8]
push eax
push dword [ebp + 0x10]
call fcn.004030c4
add esp, 0x10
test eax, eax
je 0x4033e6
push 0x10
push 0x483f64
push str.Installer_Corrupted._nPlease_re_download_this_file_nfrom_www.winamp.com
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4033eb
Capabilities:
Delete file
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push dword [eax]
lea eax, [ebp - 0x108]
push dword [ebp + 8]
push 0x4840b8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80000080
push 2
push 0
mov ebx, 0x40000000
push 1
lea eax, [ebp - 0x108]
push ebx
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4034c9
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x60c]
push str.Couldnt_open_the_file:_n_t__s__nfor_writing._If_Winamp_is_currently_running__nbe_sure_to_close_it._n_nHit__abort__to_cancel_installation___retry__to__ntry_writing_this_file_again__or__ignore__to_skip_this_file.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x60c]
push 0x32
push str.Error_Installing_Winamp
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub eax, 3
je 0x4034ab
dec eax
jne 0x40353b
lea eax, [ebp - 0x108]
push eax
call esi
push 0
push 0x80000080
push 2
push 0
push 1
lea eax, [ebp - 0x108]
push ebx
push eax
jmp 0x403443
push 0x30
push str.Winamp_Installer
push str.Installation_aborted_n_n_Installation_failed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, dword [ebp + 0xc]
mov edi, eax
push dword [esi + 4]
lea ebx, [esi + 0xc]
push ebx
call fcn.00403beb
cmp eax, dword [esi + 8]
pop ecx
pop ecx
je 0x40350a
push 0x10
push 0x483f64
push str.Failed_CRC_check_on_file._nPlease_re_download_this_installer_nfrom_www.winamp.com_n_n_Installation_failed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
push dword [esi + 4]
push ebx
call fcn.004033a6
add esp, 0xc
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
push 0
push ecx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret