joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4077d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433190
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x448620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0xa
jl 0x407959
push 0x440eac
push 0x440eb4
call fcn.00407f20
push 0x440eb8
push 0x43f73c
mov ecx, edi
call fcn.00407f20
push 0x440ec0
push 0x440ec8
mov ecx, edi
call fcn.00407f20
push 0x440ecc
push 0x440ed4
mov ecx, edi
call fcn.00407f20
push 0x440ed8
push 0x440ee0
mov ecx, edi
call fcn.00407f20
push 0x440ee4
push 0x440eec
mov ecx, edi
call fcn.00407f20
push 0x440ef0
push 0x440ef8
mov ecx, edi
call fcn.00407f20
call fcn.0040ca7a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x407898
push 0x80004005
call fcn.00403290
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.0040ca7a
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4078c8
push 0x80004005
call fcn.00403290
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push dword [edi]
push dword [esi]
push dword [0x44d810]
push eax
call fcn.004074e0
mov esi, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
add esp, 0x10
mov ecx, esi
push 0
push 0
push 0
push 0
push 1
sub esp, 8
call fcn.00403670
add esp, 0x1c
test eax, eax
jne 0x407918
push dword [edi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40793b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x407959
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4083c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433238
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x448620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x18], eax
mov ebx, ecx
xor ecx, ecx
xor edi, edi
mov word [eax], cx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov word [eax], cx
mov eax, dword [ebp + 0xc]
mov word [eax], cx
mov eax, dword [ebp + 0x10]
mov word [eax], cx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], edi
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x40848e
lea ecx, [esi + 0xa]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004084f0
mov edi, dword [ebp - 0x28]
push edi
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40848e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x44100c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40848e
mov ecx, dword [ebp - 0x14]
mov esi, 1
mov edx, dword [ebp - 0x18]
movzx eax, word [ecx + 0xa]
mov word [edx], ax
movzx eax, word [ecx + 8]
mov edx, dword [ebp + 8]
mov word [edx], ax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp + 0xc]
mov word [edx], ax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
jmp 0x408490
xor esi, esi
test edi, edi
je 0x40849d
push edi
call fcn.0040c46c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408650
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433268
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x448620]
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
mov dword [ebp - 0x44], edx
mov edi, ecx
mov dword [ebp - 0x54], edi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x408693
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0xbb8
mov esi, eax
push 0
push edi
mov dword [ebp - 0x50], esi
call fcn.0041d740
xor edi, edi
mov dword [ebp - 0x4c], 0
add esp, 0xc
mov dword [ebx], 0
cmp dword [ebp - 0x48], edi
jle 0x4087db
mov edx, dword [esi + edi*4]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [edx], ax
je 0x408702
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4086f3
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x40]
call fcn.004041a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
push dword [ebp - 0x50]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
lea eax, [ecx + eax*2]
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404730
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x54]
add esi, dword [ebp - 0x4c]
push eax
mov eax, 0xbb8
sub eax, dword [ebp - 0x4c]
push eax
push esi
call fcn.0041cbf6
mov eax, dword [ebx]
add esp, 0x10
mov ecx, dword [ebp - 0x44]
mov dword [ecx + eax*4], esi
mov ecx, dword [ebp - 0x4c]
inc dword [ebx]
inc ecx
add ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x4c], ecx
jb 0x408796
push dword [ebp - 0x28]
call fcn.0040c46c
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x4087c0
push dword [ebp - 0x40]
call fcn.0040c46c
add esp, 4
mov esi, dword [ebp - 0x50]
inc edi
cmp edi, dword [ebp - 0x48]
jl 0x4086d2
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + eax*4], 0
jmp 0x4087e3
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x44]
mov dword [ecx + eax*4], edi
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.0041b38f
mov esp, ebp
pop ebp
ret
Function at 0x40ba50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4335c2
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x448620]
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
mov esi, ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
call fcn.00403430
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x23
push 0
mov dword [ebp - 0x21c], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40bae3
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bad6
jmp 0x40bb0d
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40bb22
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bb02
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004032e0
jmp 0x40bb2e
push 0x44d7d4
mov ecx, esi
call fcn.00404be0
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
lea ebx, [edi - 1]
test ebx, ebx
js 0x40bbb1
cmp ebx, edi
jg 0x40bbb1
cmp word [eax + ebx*2], 0x5c
jne 0x40bb77
test ebx, ebx
js 0x40bbb1
cmp ebx, edi
jge 0x40bbb1
cmp dword [eax - 4], 1
jle 0x40bb5b
push edi
mov ecx, esi
call fcn.00403110
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + ebx*2], cx
test edi, edi
js 0x40bbb1
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40bbb1
mov dword [eax - 0xc], edi
mov eax, dword [esi]
mov word [eax + edi*2], cx
push 1
push 0x44100c
mov ecx, esi
call fcn.00404400
push 9
push 0x43f398
mov ecx, esi
call fcn.00404400
mov eax, esi
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.0041b38f
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403290
int3

Function at 0x40cbd2
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x433714
call fcn.0041dd96
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0040ccb3
and dword [ebp - 4], 0
mov dword [ebx], vtable.CHttpConnection.0
call fcn.0040ca7a
push eax
lea ecx, [ebx + 0x18]
call fcn.00402e60
push dword [ebp + 0xc]
lea ecx, [ebx + 0x18]
mov byte [ebp - 4], 1
call fcn.004033a0
push dword [ebx + 8]
push 0
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 8]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebx + 4], eax
test eax, eax
jne 0x40cc48
push eax
push dword [ebx + 8]
call fcn.0040d337
push dword [ebx + 0xc]
mov ecx, 0x44a79c
push eax
call fcn.0040dd75
mov eax, ebx
call fcn.0041dd64
ret 0x18
Function at 0x40cdb9
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x40cde2
call fcn.00416357
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x40ce0f
push esi
push eax
mov ecx, 0x44a79c
call fcn.0040dd75
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.0040d337
int3
Function at 0x42c3fc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x448620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042278a
mov dword [ebp - 0x14], eax
cmp dword [0x44d674], esi
jne 0x42c4ef
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x42c47c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42c5cf
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x42c5cf
push 0x439d18
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42c5cf
push eax
call ebx
push 0x439d24
push edi
mov dword [0x44d674], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x439d34
push edi
mov dword [0x44d678], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44d67c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44d684], eax
test eax, eax
je 0x42c4ec
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44d680], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42c514
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42c507
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x42c529
push 4
pop eax
jmp 0x42c5d1
cmp dword [ebp - 0x14], esi
je 0x42c529
push dword [0x44d674]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42c50e
mov eax, dword [0x44d680]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x42c587
cmp dword [0x44d684], edi
je 0x42c587
push eax
call ebx
push dword [0x44d684]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42c587
test eax, eax
je 0x42c587
call ecx
test eax, eax
je 0x42c57c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x42c57c
test byte [ebp - 8], 1
jne 0x42c587
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x42c5b7
mov eax, dword [0x44d678]
cmp eax, edi
je 0x42c5b4
push eax
call ebx
test eax, eax
je 0x42c5b4
call eax
mov esi, eax
test esi, esi
je 0x42c5b4
mov eax, dword [0x44d67c]
cmp eax, edi
je 0x42c5b4
push eax
call ebx
test eax, eax
je 0x42c5b4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44d674]
call ebx
test eax, eax
je 0x42c5cf
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x42c5d1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b38f
mov esp, ebp
pop ebp
ret
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x78a36315
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2ea86beb
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401062
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 0x44
xor ebx, ebx
pop esi
lea eax, [ebp - 0x54]
push esi
push ebx
push eax
call fcn.0040b360
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], esi
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x8000020
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x4010d8
cmp byte [ebp + 0xc], bl
je 0x4010b1
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebp + 0x10], bl
je 0x4010c4
push 0xea60
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov al, 1
jmp 0x4010da
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x4016f9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
push edi
and byte [ebp - 1], bl
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push dword [ebp + 8]
call fcn.004051f6
mov esi, eax
mov edi, edx
sub esi, 0x18
pop ecx
sbb edi, ebx
pop ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
js 0x401743
mov eax, 0x10000
jg 0x40173d
cmp esi, eax
jbe 0x401743
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x1c]
call fcn.0040b3c3
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4017ee
mov eax, esi
or eax, edi
je 0x4017d5
mov eax, dword [ebp - 0x18]
mov ebx, esi
cmp edi, eax
mov dword [ebp - 0x20], edi
jl 0x401776
jg 0x401770
cmp esi, dword [ebp - 0x1c]
jbe 0x401776
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push 0
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4017d1
mov edx, dword [ebp - 0x14]
xor eax, eax
cmp edx, ebx
jne 0x4017d1
cmp eax, dword [ebp - 0x20]
jne 0x4017d1
sub esi, edx
mov ecx, edx
sbb edi, eax
mov eax, dword [ebp - 0xc]
shr ecx, 2
je 0x4017b4
mov ebx, dword [eax]
add eax, 4
add dword [ebp - 8], ebx
dec ecx
jne 0x4017a9
mov ecx, eax
sub eax, dword [ebp - 0xc]
cmp eax, edx
jae 0x401757
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx]
add dword [ebp - 8], eax
inc ecx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edx
jb 0x4017c0
jmp 0x401757
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call fcn.0040b3b8
cmp byte [ebp - 1], 0
pop ecx
je 0x4017e8
xor eax, eax
jmp 0x4017f8
cmp dword [ebp - 8], 0
jne 0x4017f5
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401e79
Capabilities:
Copy file
Set file attributes

Disassembly:
mov eax, 0x414402
call fcn.0040b7a8
sub esp, 0x608
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0xd], 1
mov byte [eax], bl
call fcn.00402099
push dword [ebp + 8]
call fcn.00402099
lea eax, [ebp - 0x22c]
push eax
push edi
call fcn.00405b23
lea eax, [ebp - 0x22c]
push eax
call fcn.00405818
push 0x104
call fcn.0040b3c3
mov ecx, eax
add esp, 0x18
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x401eec
push 0x41816c
call fcn.00407516
mov dword [ebp + 0xc], eax
jmp 0x401eef
mov dword [ebp + 0xc], ebx
mov ecx, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
call fcn.00407613
push eax
mov eax, dword [0x41deb8]
push dword [ebp + 8]
mov ecx, dword [eax]
call fcn.00401982
test al, al
jne 0x401f56
push dword [ebp + 8]
mov esi, 0x41d41c
mov ecx, esi
push 0x14
call fcn.0040324c
push eax
lea eax, [ebp - 0x614]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, esi
push 0x10
push 2
call fcn.0040324c
push eax
lea eax, [ebp - 0x614]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x402085
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00402212
mov ecx, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00407613
push eax
call fcn.00402212
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp eax, dword [ebp - 0x14]
ja 0x40205c
jne 0x401f9a
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
ja 0x40205c
mov esi, 0x41d41c
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 0xc]
push ebx
push edi
call fcn.00407613
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40205c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x402030
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x402030
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c8
je 0x402030
push edi
push 0xf
mov ecx, esi
call fcn.0040324c
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, esi
push 0x115
push 2
call fcn.0040324c
push eax
lea eax, [ebp - 0x128]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 4
je 0x401f9f
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40206f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x40203e
cmp ecx, ebx
je 0x402048
cmp eax, dword [ebp - 0x14]
jne 0x402048
cmp ecx, dword [ebp - 0x18]
je 0x40205c
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00407613
push eax
call fcn.0040209e
pop ecx
mov byte [ebp - 0xd], bl
pop ecx
mov eax, dword [ebp + 0x10]
cmp byte [eax], bl
jne 0x40206a
push edi
call fcn.0040213a
pop ecx
cmp byte [ebp - 0xd], bl
je 0x402085
cmp dword [ebp + 0xc], ebx
je 0x402085
mov ecx, dword [ebp + 0xc]
call fcn.004075fc
push dword [ebp + 0xc]
call fcn.0040b3b8
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40209e
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push esi
mov esi, 0x94
push esi
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.0040b360
add esp, 0xc
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x4020f6
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
push 0
push dword [ebp + 0xc]
call esi
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
jmp 0x40212e
lea eax, [ebp - 0x198]
push 0x41817c
push eax
call fcn.0040b270
lea eax, [ebp - 0x198]
push eax
call fcn.00402099
add esp, 0xc
lea eax, [ebp - 0x198]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x418170
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [0x41dfc4], 1
mov al, 1
pop esi
leave
ret

Function at 0x40213a
Capabilities:
Get file version info

Disassembly:
mov eax, 0x414414
call fcn.0040b7a8
sub esp, 0x218
push esi
lea eax, [ebp - 0x18]
push edi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x402204
push esi
call fcn.0040b3c3
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 0x18]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402204
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4181c0
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x402204
cmp dword [ebp - 0x14], 0
je 0x402204
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x224]
push 0x418194
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x224]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4021fd
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.0040726c
and dword [ebp - 4], 0
push eax
mov ecx, 0x41d40c
call fcn.004073d9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004072e3
push edi
call fcn.0040b3b8
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x402212
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
push esi
mov dword [ebx], esi
push dword [ebp + 8]
mov dword [eax], esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, 1
jbe 0x402288
push edi
call fcn.0040b3c3
pop ecx
mov dword [ebp + 0xc], eax
push eax
push edi
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40227f
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
lea eax, [ebp - 4]
push eax
push 0x4181dc
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40227f
cmp dword [ebp + 8], esi
je 0x40227f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push dword [ebp + 0xc]
call fcn.0040b3b8
pop ecx
pop edi
pop esi
pop ebx
leave
ret