joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fd05
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0044e6a3
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.0044e6a3
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x4dc0f8
call fcn.00411099
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.0043e679
lea ecx, [ebp - 8]
call fcn.0043e679
mov esi, str.0.0.0.0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 4
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
push eax
push 4
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.EnableDHCP
push dword [ebx]
xor edi, edi
inc edi
mov dword [ebp - 0xc], edi
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.IPAddress
push dword [ebx]
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.SubnetMask
push dword [ebx]
call esi
push edi
mov edi, 0x4c1872
push edi
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44fde0
cmp byte [eax], 0x2d
jne 0x44fdc1
mov dword [ebp + 0xc], edi
cmp byte [eax], 0
je 0x44fde0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push 0
push str.NameServer
push dword [ebx]
call esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x451e18
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp byte [0x4dc420], bl
jne 0x451f96
push esi
push edi
push 0x1122
lea ecx, [ebp - 0x18]
call fcn.00444e50
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
mov dword [esi], ebx
push str.TIPSDUMMY
mov dword [esi + 4], ebx
mov word [esi], bx
push str.SOFTWAREPELOGON
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0xc], 0x1ffe
call fcn.0043f8c4
add esp, 0x18
mov edi, eax
neg edi
sbb edi, edi
inc edi
jne 0x451e8b
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x451e8e
mov eax, dword [ebp - 0xc]
shr eax, 1
mov word [esi + eax*2], bx
cmp word [esi], bx
jne 0x451f7a
lea eax, [esi + 0x2000]
push 0x104
push eax
push ebx
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str..USRCFG.INI
lea eax, [esi + 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
lea eax, [esi + 0x2000]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00405bea
push ebx
lea eax, [ebp - 8]
push eax
push 0x1ffe
push esi
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_ReadFile]
shr dword [ebp - 8], 1
mov eax, 0xffe
cmp dword [ebp - 8], eax
jbe 0x451f11
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov word [esi + eax*2], bx
cmp word [esi], 0xfeff
jne 0x451f54
add esi, 2
mov dword [ebp - 4], esi
jmp 0x451f54
lea eax, [ebp - 4]
push eax
call fcn.0043e611
mov esi, dword [ebp - 4]
push 0xd
lea eax, [ebp - 4]
push 0xa
push eax
call fcn.0043ec0f
push 0xa
push str.TIPSDUMMY:
push esi
call fcn.00402cff
add esp, 0x1c
test al, al
jne 0x451f5e
mov eax, dword [ebp - 4]
cmp word [eax], bx
jne 0x451f27
jmp 0x451f72
mov eax, dword [ebp - 4]
add esi, 0x14
cmp word [eax], bx
je 0x451f6c
mov word [eax], bx
xor edi, edi
mov dword [ebp - 0x14], esi
inc edi
lea ecx, [ebp - 0x10]
call fcn.00402cb0
xor eax, eax
cmp edi, ebx
setne al
push eax
push dword [ebp - 0x14]
call fcn.00451d92
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
call fcn.0043e679
pop edi
pop esi
mov eax, dword [0x4dc8dc]
pop ebx
leave
ret
Function at 0x45255e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push edi
xor ebx, ebx
inc ebx
xor edi, edi
push 0x100000
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
mov word [ebp - 0x21c], di
call fcn.00444e50
cmp dword [ebp + 0x14], edi
jne 0x4525b2
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
cmp ebx, edi
lea eax, [ebp - 0x21c]
mov dword [ebp + 0x14], eax
je 0x4526e5
cmp dword [ebp - 4], edi
push esi
mov esi, 0xa0000000
mov dword [ebp - 0xc], edi
je 0x4525c5
mov esi, 0xe0000000
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 3
push esi
push dword [ebp + 0xc]
call dword [0x4dc2a0]
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jne 0x45261c
cmp dword [ebp - 4], 1
jne 0x452612
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 3
and esi, 0xbfffffff
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], 2
call dword [0x4dc2a0]
test eax, eax
mov dword [ebp - 8], eax
je 0x4525e4
cmp dword [ebp - 8], 0
jne 0x45261c
call edi
xor ebx, ebx
test ebx, ebx
je 0x4526d5
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [0x4dc2a4]
mov ebx, eax
test ebx, ebx
jne 0x452639
call edi
inc ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [0x4dc2a8]
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x452650
call edi
xor ebx, ebx
test ebx, ebx
je 0x4526c6
cmp dword [ebp - 4], 0
mov esi, 0x400
jne 0x452664
mov esi, 0x600
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x4dc2ac]
mov ebx, eax
call edi
test ebx, ebx
jne 0x4526c6
test esi, 0x400
je 0x4526a1
cmp eax, 0x57
jne 0x4526a1
and esi, 0xfffffbff
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x4dc2ac]
mov ebx, eax
call edi
test ebx, ebx
je 0x452679
test ebx, ebx
jne 0x4526c6
cmp dword [ebp - 4], 2
jne 0x4526c4
or esi, 0x200
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x4dc2ac]
mov ebx, eax
test ebx, ebx
jne 0x4526c6
call edi
cmp dword [ebp + 0x14], 0
je 0x4526d5
push dword [ebp + 0x14]
call dword [0x4dc2b0]
cmp dword [ebp - 8], 0
pop esi
je 0x4526e5
push dword [ebp - 8]
call dword [0x4dc2b0]
lea ecx, [ebp - 0x10]
call fcn.0043e679
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x452c33
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push edi
jne 0x452c65
mov ax, word [esi]
mov word [ebp - 0xc], ax
mov ax, word [esi + 2]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x5c
mov word [ebp - 6], bx
mov dword [ebp + 0x10], eax
push 0x209
lea ecx, [ebp - 4]
call fcn.00444e50
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push edi
push str.Device_
mov word [eax], bx
call fcn.0043fac4
add esp, 0xc
test al, al
jne 0x452cbe
push 0xc
push edi
push str.DosDevices_
call fcn.0043fac4
add esp, 0xc
test al, al
jne 0x452cbe
cmp word [edi], bx
je 0x452cc2
cmp word [edi + 2], bx
je 0x452cc2
push 0x3a
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x452cc2
or dword [ebp + 0x14], 1
push 0xb
push edi
push 0x4c9944
call fcn.0043fac4
mov ebx, dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x452ce6
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x452d0d
cmp byte [ebp + 0x18], 0
je 0x452cf8
xor eax, eax
mov ax, word [esi]
push eax
call fcn.00441e70
pop ecx
push edi
push esi
push dword [ebp + 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x452d1e
cmp byte [ebp + 0x18], al
jl 0x452d6a
mov byte [ebp + 0x18], al
push 0x208
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x452d46
cmp byte [ebp + 0x18], 0
jle 0x452d6a
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x452d6a
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
or eax, 0xe
push eax
call ebx
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
cmp byte [ebp + 0x18], 0
mov esi, eax
jl 0x452d6a
test esi, esi
jne 0x452d6a
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0x18], 0xff
jmp 0x452ce6
lea ecx, [ebp - 4]
call fcn.0043e679
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x453ce2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov esi, 0x200
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004adbb0
and dword [ebp - 0xc], 0
push esi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
call fcn.00441fa2
cmp eax, esi
pop ecx
pop ecx
jl 0x453d1e
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x453d21
mov dword [ebp - 8], esi
lea eax, [esi + esi + 0x200]
push eax
lea ecx, [ebp - 4]
call fcn.00444cdb
mov edi, dword [ebp - 4]
push 0
push dword [ebp + 0x10]
add edi, 0x200
push dword [ebp + 0xc]
and edi, 0xfffffe00
push dword [ebp + 8]
lea ebx, [edi + esi]
call fcn.0043f9d0
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x453dfc
cmp edx, dword [ebp + 0x10]
jne 0x453dfc
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x453dfc
push esi
push ebx
push edi
call fcn.00414409
mov esi, dword [ebp + 0x18]
add esp, 0xc
cmp esi, 1
jne 0x453da4
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x1ce]
push eax
call fcn.00414409
add esp, 0xc
dec esi
push 0
push dword [ebp + 0x10]
neg esi
push dword [ebp + 0xc]
sbb esi, esi
push dword [ebp + 8]
and esi, 0xffff55ab
add esi, 0xaa55
mov word [ebx + 0x1fe], si
call fcn.0043f9d0
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x453dfc
cmp edx, dword [ebp + 0x10]
jne 0x453dfc
push dword [ebp - 8]
push ebx
push edi
call fcn.00445104
add esp, 0xc
test eax, eax
jne 0x453dfc
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 4]
call fcn.0043e679
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x4543d4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x134
mov ecx, edi
call fcn.00444e77
push 0xca
lea ecx, [ebp - 0x10]
call fcn.00444e50
mov eax, dword [ebp + 0x18]
movzx esi, byte [ebp + 0x18]
and eax, 0x100
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [edi]
test esi, esi
sete bl
neg esi
sbb esi, esi
and esi, 0x19
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], eax
mov byte [ebp + 0x1b], 0
lea ebx, [ebx + ebx - 1]
mov edx, esi
je 0x4544a9
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x4544a9
and dword [ebp - 4], 0xfffffffc
jmp 0x4544a9
test edx, edx
jl 0x4544ae
xor eax, eax
mov ecx, edx
inc eax
shl eax, cl
movsx esi, bl
mov cl, dl
add edx, esi
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
add cl, 0x41
test edx, eax
mov byte [ebp + 0x17], cl
je 0x4544a6
cmp dword [ebp - 8], 0
je 0x454478
movsx ax, cl
push eax
call fcn.004ad0ae
test eax, eax
pop ecx
je 0x4544a6
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x45448c
mov ax, word [ebp + 0xc]
test ax, ax
je 0x45448c
mov word [edi], ax
inc edi
inc edi
movsx ax, cl
mov word [edi], ax
inc edi
inc edi
cmp dword [ebp + 0x10], 0
mov byte [ebp + 0x1b], 1
je 0x4544a6
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x45443e
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0043e679
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4546c3
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
and word [eax], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x454706
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4546ff
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0044e6d5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret
Function at 0x4550ac
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
movzx esi, word [ebp + 0x1c]
lea eax, [esi - 1]
cdq
push edi
not eax
not edx
push 0xa0000
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.00444cdb
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add edi, 0x20000
xor ebx, ebx
and edi, 0xfffe0000
cmp dword [ebp + 0x1c], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
jne 0x455127
mov dword [ebp + 0x18], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 0x14], ebx
jl 0x45521a
jle 0x455211
cmp dword [ebp + 0x18], ebx
jne 0x45514d
mov eax, dword [ebp - 8]
cdq
cmp dword [ebp + 0x14], edx
jl 0x45514d
jg 0x455123
cmp dword [ebp + 0x10], eax
jbe 0x45514d
xor cl, cl
jmp 0x45514f
mov eax, dword [ebp + 0x18]
cdq
add eax, ecx
adc edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.004afea0
mov dword [ebp - 8], eax
jmp 0x4550ff
mov cl, 1
cmp dword [ebp + 0x14], ebx
jl 0x455166
jg 0x45515f
cmp dword [ebp + 0x10], 0x10000000
jbe 0x455166
mov esi, 0x10000000
jmp 0x455169
mov esi, dword [ebp + 0x10]
cmp cl, bl
mov edx, dword [ebp + 0xc]
mov eax, esi
je 0x4551dd
movzx esi, word [ebp + 0x1c]
sub esi, dword [ebp + 0x18]
cmp ebx, dword [ebp + 0x14]
jl 0x455188
jg 0x455185
cmp esi, dword [ebp + 0x10]
jbe 0x455188
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.0043f9d0
add esp, 0x10
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
movzx eax, word [ebp + 0x1c]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
add eax, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.00414409
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0043f9d0
movzx eax, word [ebp + 0x1c]
add esp, 0x1c
mov edx, edi
jmp 0x4551e7
cmp dword [ebp + 0x1c], ebx
je 0x4551e7
and esi, dword [ebp - 0x28]
mov eax, esi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [ebp + 0x10], esi
mov dword [ebp + 0x18], ebx
sbb dword [ebp + 0x14], ebx
add dword [ebp + 0xc], esi
cmp dword [ebp + 0x14], ebx
jg 0x45510e
jl 0x45521a
cmp dword [ebp + 0x10], ebx
ja 0x45510e
lea ecx, [ebp - 0xc]
call fcn.0043e679
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x456647
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x92], 0
jne 0x45665f
test byte [ecx + 9], 0xf
jne 0x45665f
pop ebp
jmp fcn.0045654f
pop ebp
jmp fcn.0045522d

Function at 0x456665
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x456728
cmp esi, edi
je 0x45668b
mov dword [ebp - 4], esi
jmp 0x456691
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp word [eax], di
mov esi, eax
je 0x456721
push ebx
mov ebx, esi
jmp 0x4566a7
cmp ax, 0x3d
je 0x4566b1
inc esi
inc esi
mov ax, word [esi]
cmp ax, di
jne 0x4566a1
cmp dword [ebp + 0xc], edi
je 0x4566ce
mov ecx, dword [ebp + 8]
mov eax, esi
sub eax, ebx
push 0xffffffffffffffff
sar eax, 1
push eax
lea eax, [esi + 2]
push eax
push ebx
call fcn.0041500d
jmp 0x456711
mov edi, esi
sub edi, ebx
sar edi, 1
push edi
push ebx
lea ecx, [ebp - 8]
call fcn.0044e68a
mov ecx, dword [ebp - 4]
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 8]
call fcn.00410d4d
test eax, eax
jne 0x456703
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push edi
lea eax, [esi + 2]
push eax
push ebx
call fcn.0041500d
lea ecx, [ebp - 8]
call fcn.0043e679
xor edi, edi
jmp 0x456711
inc esi
inc esi
cmp word [esi], di
jne 0x45670f
inc esi
inc esi
cmp word [esi], di
jne 0x45669d
mov eax, dword [ebp - 0xc]
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop edi
pop esi
leave
ret

Function at 0x456975
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0044e097
cmp dword [ebp + 8], 0
pop ecx
mov ebx, eax
jge 0x4569ef
and word [ebp - 0xc], 0
and word [ebp - 2], 0
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x2a
mov word [ebp - 0x14], 0x20
mov word [ebp - 0x12], si
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0x2c
mov word [ebp - 8], si
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x4569df
cmp ebx, 2
je 0x4569ef
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4dc0f8
call fcn.00452d79
pop ebx
leave
ret
Function at 0x457578
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
xor edi, edi
cmp ebx, esi
mov dword [ebp - 4], esi
jne 0x457625
cmp dword [ebp + 0xc], esi
jne 0x4575a2
mov eax, 0x80070057
jmp 0x457730
cmp dword [0x4dc4f8], esi
jle 0x45772e
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4575e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x457730
jmp 0x457761
push esi
lea eax, [ebp + 8]
push eax
push dword [0x4dc4f8]
push dword [0x4dcd1c]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4dcd1c]
cmp eax, esi
mov dword [0x4dc4f8], esi
je 0x45772e
call fcn.0043e59e
mov dword [0x4dcd1c], esi
jmp 0x45772e
cmp dword [ebp + 0x10], esi
je 0x45774c
push esi
push dword [ebp + 0x10]
call fcn.00415984
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x457761
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
sub edi, dword [ebx]
sub eax, dword [ebx + 4]
cmp edi, esi
mov dword [ebp - 0x10], eax
jle 0x457735
cmp eax, esi
jle 0x457735
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [0x4dbf0c]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [0x4dbf10]
cmp edi, dword [ebp - 8]
jne 0x457693
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x457735
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0044458f
mov ebx, eax
add esp, 0xc
cmp ebx, esi
je 0x457761
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp + 8], esi
call dword [0x4dbf18]
push 2
push dword [ebp + 8]
call dword [0x4dbf20]
push dword [ebp - 0x10]
push edi
push esi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [0x4dbed4]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp + 8], esi
je 0x457703
push dword [ebp + 8]
call dword [0x4dbf1c]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00457233
add esp, 0x10
cmp ebx, esi
mov edi, eax
je 0x457720
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 4], esi
je 0x45772e
push dword [ebp - 4]
call dword [0x4dbed0]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 0x14]
push 1
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00457233
add esp, 0x10
mov edi, eax
jmp 0x457720
push str.DISPLAY
push esi
push ebx
call fcn.0044458f
mov ebx, eax
add esp, 0xc
cmp ebx, esi
jne 0x457703
xor eax, eax
inc eax
jmp 0x457730
Function at 0x457766
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
cmp dword [0x4dbf2c], edi
mov ebx, ecx
mov dword [ebp - 0xc], ebx
jne 0x457792
push edi
push edi
call fcn.00415984
test eax, eax
pop ecx
pop ecx
jne 0x457792
or eax, 0xffffffff
jmp 0x45791e
mov eax, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], edi
je 0x4577a3
mov ecx, dword [eax]
jmp 0x4577a5
xor ecx, ecx
mov eax, dword [ebp + 8]
cmp eax, edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
jne 0x4577bb
push 0x64
pop eax
cmp eax, 0x10000
push esi
jge 0x457804
mov esi, dword [0x4dbfb0]
movzx eax, ax
push str.IMAGE
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x4577e8
or eax, 0xffffffff
jmp 0x45791d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 8
mov dword [ebp + 0xc], eax
jb 0x4577e0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x45780d
cmp ecx, edi
je 0x457828
mov eax, dword [eax]
mov dword [ebp + 0xc], ecx
cmp eax, edi
je 0x4577e0
lea ecx, [ebx + 0x2c]
push ecx
push dword [ebp + 0xc]
lea esi, [ebx + 0x28]
push eax
call fcn.00443aaf
add esp, 0xc
mov dword [esi], eax
jmp 0x457833
lea esi, [ebx + 0x28]
push esi
push eax
call dword [0x4dbed8]
mov eax, dword [esi]
cmp eax, edi
jne 0x457841
push 0xfffffffffffffffe
pop eax
jmp 0x45791d
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], edi
call dword [0x4dbeec]
mov eax, dword [ebp - 8]
shl eax, 4
push eax
lea ecx, [ebp + 8]
call fcn.00444cdb
push dword [ebp - 8]
push dword [ebp + 8]
push dword [esi]
call dword [0x4dbedc]
lea eax, [ebx + 0xc]
push eax
push dword [ebp + 8]
push dword [esi]
call dword [0x4dbef0]
cmp dword [ebx + 0xc], 1
ja 0x457889
or edi, 0xffffffff
jmp 0x457913
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
mov edi, 0x5100
push edi
push dword [esi]
call dword [0x4dbef4]
push dword [ebp - 4]
lea ecx, [ebp + 0xc]
call fcn.00444cdb
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push dword [esi]
call dword [0x4dbef8]
mov edi, dword [ebp - 4]
push dword [ebx + 0xc]
add edi, 0xfffffff0
mov ecx, ebx
shr edi, 2
call fcn.0044e47a
xor esi, esi
xor ebx, ebx
test edi, edi
jbe 0x4578f1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + eax*4]
push ebx
shl esi, 1
call fcn.0044e47a
inc ebx
cmp ebx, edi
mov dword [eax], esi
jb 0x4578d3
mov edi, dword [ebp - 0xc]
add edi, 0xc
jmp 0x457905
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.0044e47a
mov dword [eax], esi
inc ebx
cmp ebx, dword [edi]
jb 0x4578f9
mov edi, dword [edi]
lea ecx, [ebp + 0xc]
call fcn.0043e679
lea ecx, [ebp + 8]
call fcn.0043e679
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 8