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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp byte [0x4db408], bl
jne 0x451891
push esi
push edi
push 0x1122
lea ecx, [ebp - 0x18]
call fcn.00444a2e
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.0043f684
add esp, 0x18
mov edi, eax
neg edi
sbb edi, edi
inc edi
jne 0x451786
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x451789
mov eax, dword [ebp - 0xc]
shr eax, 1
mov word [esi + eax*2], bx
cmp word [esi], bx
jne 0x451875
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.00405a2a
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 0x45180c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov word [esi + eax*2], bx
cmp word [esi], 0xfeff
jne 0x45184f
add esi, 2
mov dword [ebp - 4], esi
jmp 0x45184f
lea eax, [ebp - 4]
push eax
call fcn.0043e425
mov esi, dword [ebp - 4]
push 0xd
lea eax, [ebp - 4]
push 0xa
push eax
call fcn.0043e9e8
push 0xa
push str.TIPSDUMMY:
push esi
call fcn.0040f74f
add esp, 0x1c
test al, al
jne 0x451859
mov eax, dword [ebp - 4]
cmp word [eax], bx
jne 0x451822
jmp 0x45186d
mov eax, dword [ebp - 4]
add esi, 0x14
cmp word [eax], bx
je 0x451867
mov word [eax], bx
xor edi, edi
mov dword [ebp - 0x14], esi
inc edi
lea ecx, [ebp - 0x10]
call fcn.00402cb5
xor eax, eax
cmp edi, ebx
setne al
push eax
push dword [ebp - 0x14]
call fcn.0045168d
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
call fcn.0043e48d
pop edi
pop esi
mov eax, dword [0x4db8b4]
pop ebx
leave
ret
Function at 0x451e59
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.00444a2e
cmp dword [ebp + 0x14], edi
jne 0x451ead
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 0x451fe0
cmp dword [ebp - 4], edi
push esi
mov esi, 0xa0000000
mov dword [ebp - 0xc], edi
je 0x451ec0
mov esi, 0xe0000000
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 3
push esi
push dword [ebp + 0xc]
call dword [0x4db284]
cmp eax, edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 8], eax
jne 0x451f17
cmp dword [ebp - 4], 1
jne 0x451f0d
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 [0x4db284]
test eax, eax
mov dword [ebp - 8], eax
je 0x451edf
cmp dword [ebp - 8], 0
jne 0x451f17
call edi
xor ebx, ebx
test ebx, ebx
je 0x451fd0
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [0x4db288]
mov ebx, eax
test ebx, ebx
jne 0x451f34
call edi
inc ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [0x4db28c]
test eax, eax
mov dword [ebp + 0x14], eax
jne 0x451f4b
call edi
xor ebx, ebx
test ebx, ebx
je 0x451fc1
cmp dword [ebp - 4], 0
mov esi, 0x400
jne 0x451f5f
mov esi, 0x600
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x4db290]
mov ebx, eax
call edi
test ebx, ebx
jne 0x451fc1
test esi, 0x400
je 0x451f9c
cmp eax, 0x57
jne 0x451f9c
and esi, 0xfffffbff
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x4db290]
mov ebx, eax
call edi
test ebx, ebx
je 0x451f74
test ebx, ebx
jne 0x451fc1
cmp dword [ebp - 4], 2
jne 0x451fbf
or esi, 0x200
push esi
push dword [ebp + 8]
push dword [ebp + 0x14]
call dword [0x4db290]
mov ebx, eax
test ebx, ebx
jne 0x451fc1
call edi
cmp dword [ebp + 0x14], 0
je 0x451fd0
push dword [ebp + 0x14]
call dword [0x4db294]
cmp dword [ebp - 8], 0
pop esi
je 0x451fe0
push dword [ebp - 8]
call dword [0x4db294]
lea ecx, [ebp - 0x10]
call fcn.0043e48d
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x45252e
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 0x452560
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.00444a2e
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push edi
push str.Device_
mov word [eax], bx
call fcn.0043f884
add esp, 0xc
test al, al
jne 0x4525b9
push 0xc
push edi
push str.DosDevices_
call fcn.0043f884
add esp, 0xc
test al, al
jne 0x4525b9
cmp word [edi], bx
je 0x4525bd
cmp word [edi + 2], bx
je 0x4525bd
push 0x3a
lea eax, [edi + 4]
push eax
call dword [sym.imp.shlwapi.dll_StrChrW]
test eax, eax
je 0x4525bd
or dword [ebp + 0x14], 1
push 0xb
push edi
push 0x4c8834
call fcn.0043f884
mov ebx, dword [sym.imp.KERNEL32.DLL_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x4525e1
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x452608
cmp byte [ebp + 0x18], 0
je 0x4525f3
xor eax, eax
mov ax, word [esi]
push eax
call fcn.00441bea
pop ecx
push edi
push esi
push dword [ebp + 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x452619
cmp byte [ebp + 0x18], al
jl 0x452665
mov byte [ebp + 0x18], al
push 0x208
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrcpynW]
jmp 0x452641
cmp byte [ebp + 0x18], 0
jle 0x452665
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x452665
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 0x452665
test esi, esi
jne 0x452665
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0x18], 0xff
jmp 0x4525e1
lea ecx, [ebp - 4]
call fcn.0043e48d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x453573
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.004ad070
and dword [ebp - 0xc], 0
push esi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
call fcn.00441d1c
cmp eax, esi
pop ecx
pop ecx
jl 0x4535af
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x4535b2
mov dword [ebp - 8], esi
lea eax, [esi + esi + 0x200]
push eax
lea ecx, [ebp - 4]
call fcn.004448b9
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.0043f790
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x45368d
cmp edx, dword [ebp + 0x10]
jne 0x45368d
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 0x45368d
push esi
push ebx
push edi
call fcn.004143a0
mov esi, dword [ebp + 0x18]
add esp, 0xc
cmp esi, 1
jne 0x453635
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x1ce]
push eax
call fcn.004143a0
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.0043f790
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x45368d
cmp edx, dword [ebp + 0x10]
jne 0x45368d
push dword [ebp - 8]
push ebx
push edi
call fcn.00444ce2
add esp, 0xc
test eax, eax
jne 0x45368d
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.0043e48d
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x453b91
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.00444a55
push 0xca
lea ecx, [ebp - 0x10]
call fcn.00444a2e
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 0x453c66
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x453c66
and dword [ebp - 4], 0xfffffffc
jmp 0x453c66
test edx, edx
jl 0x453c6b
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 0x453c63
cmp dword [ebp - 8], 0
je 0x453c35
movsx ax, cl
push eax
call fcn.004ac576
test eax, eax
pop ecx
je 0x453c63
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x453c49
mov ax, word [ebp + 0xc]
test ax, ax
je 0x453c49
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 0x453c63
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x453bfb
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0043e48d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x453e80
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 0x453ec3
push esi
push 0xd
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x453ebc
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push eax
mov ecx, edi
call fcn.0044dfe2
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 0x454860
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.004448b9
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 0x4548db
mov dword [ebp + 0x18], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 0x14], ebx
jl 0x4549ce
jle 0x4549c5
cmp dword [ebp + 0x18], ebx
jne 0x454901
mov eax, dword [ebp - 8]
cdq
cmp dword [ebp + 0x14], edx
jl 0x454901
jg 0x4548d7
cmp dword [ebp + 0x10], eax
jbe 0x454901
xor cl, cl
jmp 0x454903
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.004af360
mov dword [ebp - 8], eax
jmp 0x4548b3
mov cl, 1
cmp dword [ebp + 0x14], ebx
jl 0x45491a
jg 0x454913
cmp dword [ebp + 0x10], 0x10000000
jbe 0x45491a
mov esi, 0x10000000
jmp 0x45491d
mov esi, dword [ebp + 0x10]
cmp cl, bl
mov edx, dword [ebp + 0xc]
mov eax, esi
je 0x454991
movzx esi, word [ebp + 0x1c]
sub esi, dword [ebp + 0x18]
cmp ebx, dword [ebp + 0x14]
jl 0x45493c
jg 0x454939
cmp esi, dword [ebp + 0x10]
jbe 0x45493c
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.0043f790
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.004143a0
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0043f790
movzx eax, word [ebp + 0x1c]
add esp, 0x1c
mov edx, edi
jmp 0x45499b
cmp dword [ebp + 0x1c], ebx
je 0x45499b
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 0x4548c2
jl 0x4549ce
cmp dword [ebp + 0x10], ebx
ja 0x4548c2
lea ecx, [ebp - 0xc]
call fcn.0043e48d
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x455dfb
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x92], 0
jne 0x455e13
test byte [ecx + 9], 0xf
jne 0x455e13
pop ebp
jmp fcn.00455d03
pop ebp
jmp fcn.004549e1

Function at 0x455e19
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 0x455edc
cmp esi, edi
je 0x455e3f
mov dword [ebp - 4], esi
jmp 0x455e45
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp word [eax], di
mov esi, eax
je 0x455ed5
push ebx
mov ebx, esi
jmp 0x455e5b
cmp ax, 0x3d
je 0x455e65
inc esi
inc esi
mov ax, word [esi]
cmp ax, di
jne 0x455e55
cmp dword [ebp + 0xc], edi
je 0x455e82
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.00414f99
jmp 0x455ec5
mov edi, esi
sub edi, ebx
sar edi, 1
push edi
push ebx
lea ecx, [ebp - 8]
call fcn.0044df97
mov ecx, dword [ebp - 4]
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 8]
call fcn.00410c6f
test eax, eax
jne 0x455eb7
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push edi
lea eax, [esi + 2]
push eax
push ebx
call fcn.00414f99
lea ecx, [ebp - 8]
call fcn.0043e48d
xor edi, edi
jmp 0x455ec5
inc esi
inc esi
cmp word [esi], di
jne 0x455ec3
inc esi
inc esi
cmp word [esi], di
jne 0x455e51
mov eax, dword [ebp - 0xc]
pop ebx
push eax
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
pop edi
pop esi
leave
ret

Function at 0x456129
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0044d9d8
cmp dword [ebp + 8], 0
pop ecx
mov ebx, eax
jge 0x4561a3
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 0x456193
cmp ebx, 2
je 0x4561a3
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4db0e0
call fcn.00452674
pop ebx
leave
ret
Function at 0x456d2c
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 0x456dd9
cmp dword [ebp + 0xc], esi
jne 0x456d56
mov eax, 0x80070057
jmp 0x456ee4
cmp dword [0x4db4d4], esi
jle 0x456ee2
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 0x456d97
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, esi
jne 0x456ee4
jmp 0x456f15
push esi
lea eax, [ebp + 8]
push eax
push dword [0x4db4d4]
push dword [0x4dbcf4]
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x4dbcf4]
cmp eax, esi
mov dword [0x4db4d4], esi
je 0x456ee2
call fcn.0043e3b2
mov dword [0x4dbcf4], esi
jmp 0x456ee2
cmp dword [ebp + 0x10], esi
je 0x456f00
push esi
push dword [ebp + 0x10]
call fcn.004158f3
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x456f15
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 0x456ee9
cmp eax, esi
jle 0x456ee9
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [0x4daef4]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [0x4daef8]
cmp edi, dword [ebp - 8]
jne 0x456e47
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x456ee9
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.004441bc
mov ebx, eax
add esp, 0xc
cmp ebx, esi
je 0x456f15
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp + 8], esi
call dword [0x4daf00]
push 2
push dword [ebp + 8]
call dword [0x4daf08]
push dword [ebp - 0x10]
push edi
push esi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [0x4daebc]
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 0x456eb7
push dword [ebp + 8]
call dword [0x4daf04]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004569e7
add esp, 0x10
cmp ebx, esi
mov edi, eax
je 0x456ed4
push ebx
call dword [sym.imp.gdi32.dll_DeleteObject]
cmp dword [ebp - 4], esi
je 0x456ee2
push dword [ebp - 4]
call dword [0x4daeb8]
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.004569e7
add esp, 0x10
mov edi, eax
jmp 0x456ed4
push str.DISPLAY
push esi
push ebx
call fcn.004441bc
mov ebx, eax
add esp, 0xc
cmp ebx, esi
jne 0x456eb7
xor eax, eax
inc eax
jmp 0x456ee4
Function at 0x456f1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor edi, edi
cmp dword [0x4daf14], edi
mov ebx, ecx
mov dword [ebp - 0xc], ebx
jne 0x456f46
push edi
push edi
call fcn.004158f3
test eax, eax
pop ecx
pop ecx
jne 0x456f46
or eax, 0xffffffff
jmp 0x4570d2
mov eax, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], edi
je 0x456f57
mov ecx, dword [eax]
jmp 0x456f59
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 0x456f6f
push 0x64
pop eax
cmp eax, 0x10000
push esi
jge 0x456fb8
mov esi, dword [0x4daf98]
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 0x456f9c
or eax, 0xffffffff
jmp 0x4570d1
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp eax, 8
mov dword [ebp + 0xc], eax
jb 0x456f94
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
jmp 0x456fc1
cmp ecx, edi
je 0x456fdc
mov eax, dword [eax]
mov dword [ebp + 0xc], ecx
cmp eax, edi
je 0x456f94
lea ecx, [ebx + 0x2c]
push ecx
push dword [ebp + 0xc]
lea esi, [ebx + 0x28]
push eax
call fcn.00443752
add esp, 0xc
mov dword [esi], eax
jmp 0x456fe7
lea esi, [ebx + 0x28]
push esi
push eax
call dword [0x4daec0]
mov eax, dword [esi]
cmp eax, edi
jne 0x456ff5
push 0xfffffffffffffffe
pop eax
jmp 0x4570d1
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], edi
call dword [0x4daed4]
mov eax, dword [ebp - 8]
shl eax, 4
push eax
lea ecx, [ebp + 8]
call fcn.004448b9
push dword [ebp - 8]
push dword [ebp + 8]
push dword [esi]
call dword [0x4daec4]
lea eax, [ebx + 0xc]
push eax
push dword [ebp + 8]
push dword [esi]
call dword [0x4daed8]
cmp dword [ebx + 0xc], 1
ja 0x45703d
or edi, 0xffffffff
jmp 0x4570c7
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
mov edi, 0x5100
push edi
push dword [esi]
call dword [0x4daedc]
push dword [ebp - 4]
lea ecx, [ebp + 0xc]
call fcn.004448b9
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
push dword [esi]
call dword [0x4daee0]
mov edi, dword [ebp - 4]
push dword [ebx + 0xc]
add edi, 0xfffffff0
mov ecx, ebx
shr edi, 2
call fcn.0040f83e
xor esi, esi
xor ebx, ebx
test edi, edi
jbe 0x4570a5
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.0040f83e
inc ebx
cmp ebx, edi
mov dword [eax], esi
jb 0x457087
mov edi, dword [ebp - 0xc]
add edi, 0xc
jmp 0x4570b9
mov ecx, dword [ebp - 0xc]
push ebx
call fcn.0040f83e
mov dword [eax], esi
inc ebx
cmp ebx, dword [edi]
jb 0x4570ad
mov edi, dword [edi]
lea ecx, [ebp + 0xc]
call fcn.0043e48d
lea ecx, [ebp + 8]
call fcn.0043e48d
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x46a1f7
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x20]
call fcn.00446db5
lea eax, [ebp + 8]
push eax
call fcn.0043e425
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.00444a2e
push 0x14
lea ecx, [ebp - 8]
call fcn.00444a2e
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x4c9a38
mov dword [ebp - 4], edi
call fcn.00446a34
add esp, 0xc
push 1
push 0x2c
pop esi
movzx ebx, al
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.004581ad
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0044785b
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x46a28e
add dword [ebp + 8], 2
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004581ad
push edi
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.0044785b
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x46a2b7
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 4]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004581ad
push eax
call fcn.00447ac3
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x46a2c9
mov esi, 0x80070057
jmp 0x46a3d8
cmp dword [ebp - 4], edi
mov eax, dword [ebp - 8]
jne 0x46a2da
cmp ebx, edi
jne 0x46a2da
cmp word [eax], di
je 0x46a2bf
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
call ebx
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 8]
call fcn.00444a55
mov eax, dword [ebp - 8]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x14], edi
call fcn.004130a1
push dword [ebp - 0xc]
mov dword [ebp + 8], eax
call fcn.004130a1
pop ecx
pop ecx
mov edi, eax
xor ecx, ecx
cmp word [edi], cx
je 0x46a2bf
cmp dword [ebp - 0x10], ecx
jne 0x46a331
cmp dword [ebp - 4], ecx
jne 0x46a331
push ecx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_CreateHardLinkW]
jmp 0x46a381
cmp dword [ebp - 4], 2
je 0x46a389
cmp dword [ebp - 0x10], ecx
jne 0x46a389
xor esi, esi
test byte [ebp - 4], 0x10
je 0x46a345
inc esi
push edi
call ebx
lea eax, [edi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x46a359
xor esi, esi
inc esi
and word [eax], 0
test esi, esi
jne 0x46a374
cmp dword [ebp - 4], 3
jne 0x46a374
push dword [ebp + 8]
call fcn.004ac5b9
mov esi, eax
neg esi
sbb esi, esi
pop ecx
neg esi
push esi
push dword [ebp + 8]
push edi
call fcn.00442749
add esp, 0xc
test eax, eax
je 0x46a3d0
xor eax, eax
jmp 0x46a3d6
mov eax, dword [ebp + 8]
cmp word [eax], cx
jne 0x46a39a
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x46a381
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [esi + 8]
push ecx
push 0x208
push eax
call fcn.00445269
push esi
push edi
mov word [esi], 0x5c
mov word [esi + 2], 0x3f
mov word [esi + 4], 0x3f
mov word [esi + 6], 0x5c
call fcn.00442645
add esp, 0x18
jmp 0x46a381
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
lea ecx, [ebp - 8]
call fcn.0043e48d
lea ecx, [ebp - 0xc]
call fcn.0043e48d
lea ecx, [ebp - 0x20]
call fcn.0043e48d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8