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

Disassembly:
push 0x424
mov eax, 0x1011d99
call fcn.01002ad2
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x41c], eax
jne 0x100c9ca
call fcn.0100379d
mov esi, eax
jmp 0x100cacf
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x100c9e3
call fcn.0100379d
jmp 0x100cac1
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x428], eax
je 0x100c9d9
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x420], edi
jae 0x100ca49
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100ca2f
lea ecx, [ebp - 0x418]
call fcn.0100b2b2
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0100b1c1
mov eax, esi
call fcn.010031c6
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0100b867
mov dword [ebp - 4], 1
jmp 0x100ca75
cmp dword [ebp - 0x418], esi
jne 0x100ca84
mov esi, 0x8007000e
jmp 0x100cac3
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x100c9d9
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0100c6c3
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100ca34
lea ecx, [ebp - 0x418]
call fcn.0100b2b2
jmp 0x100ca34

Function at 0x100d7e9
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x100d7fc
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100d7f8
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x100d81d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x100d85c
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x100d852
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x100d85e
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x100d842
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100ed94
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x100761c
push 0x10
xor ebx, ebx
push eax
mov byte [ebp - 0x25], bl
call fcn.01004c25
add esp, 0x10
test eax, eax
jl 0x100ee16
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push 8
lea eax, [ebp - 0x24]
push eax
push edi
push 0x80000002
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x14
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x100ee16
cmp dword [ebp - 0x2c], 0x14
jne 0x100ee16
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.0100ed67
mov byte [ebp - 0x25], al
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x25]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010014d9
leave
ret 4

Function at 0x100ee2f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x100761c
push 0x10
push eax
xor bl, bl
call fcn.01004c25
add esp, 0x10
test eax, eax
jl 0x100ee9f
lea eax, [ebp - 0x28]
push eax
push 2
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100ee9f
push 0x14
push esi
push 3
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x100ee96
inc bl
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.010014d9
leave
ret 4
Function at 0x100eeba
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi], 2
jne 0x100f04c
push edi
xor edi, edi
cmp dword [esi + 0x10], edi
jle 0x100f04b
push dword [esi + 0x14]
lea ecx, [ebp - 0x16c]
call fcn.0100ea7a
push 0x100f070
lea ecx, [ebp - 0x16c]
call fcn.0100ed94
test al, al
je 0x100ef38
mov eax, dword [ebp - 0x16c]
cmp eax, dword [esi]
jne 0x100ef38
mov eax, dword [ebp - 0x168]
cmp eax, dword [esi + 4]
jne 0x100ef38
mov eax, dword [ebp - 0x164]
cmp eax, dword [esi + 8]
jne 0x100ef38
mov eax, dword [ebp - 0x15c]
cmp eax, dword [esi + 0x10]
je 0x100f04b
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x100f064
push 0x10
push eax
call fcn.01004c25
add esp, 0x10
test eax, eax
jl 0x100f04b
push dword [esi + 0x10]
lea eax, [ebp - 0x44]
push 0x100f05c
push 0x10
push eax
call fcn.01004c25
add esp, 0x10
test eax, eax
jl 0x100f04b
push edi
push 0x2710
push dword [esi + 8]
push dword [esi + 4]
call fcn.010051af
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 0x148], edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x100f04b
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x17c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x100f04b
push 0x80
lea eax, [ebp - 0x144]
push eax
push edi
lea eax, [ebp - 0x164]
push eax
push edi
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
jle 0x100f04b
lea eax, [ebp - 0x24]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14c], eax
push 0x10075a0
lea eax, [ebp - 0x144]
push edi
mov dword [ebp - 0x154], 0x1002770
mov dword [ebp - 0x148], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x100f04b
push edi
lea eax, [ebp - 0x154]
push eax
push edi
push 4
push edi
push 0x800003f7
push 1
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010014d9
leave
ret
Function at 0x1010455
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [ebp + 8], 2
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x1010479
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [ebp + 8], 1
je 0x10104be
cmp dword [esi + 0x68], 0
je 0x10104be
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x101049f
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1010491
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
push edi
mov ecx, esi
call fcn.0101037e
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x68]
push edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [esi + 0x6c], edi
test byte [ebp + 8], 8
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
mov edi, 0x1010508
je 0x10104df
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x40
push edi
push eax
call esi
add esp, 0xc
test byte [ebp + 8], 4
je 0x10104f5
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x20
push edi
push eax
call esi
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1010ab4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1010b08
push 3
lea eax, [ebp - 0x44]
push 0x1010b18
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.010014d9
leave
ret

Function at 0x1010cb4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x10155ac], si
jne 0x1010d4c
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x1010e40
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1010d4c
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1010ef8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x1010d4c
push 3
push dword [esi*8 + 0x1010d60]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x1010d3e
inc esi
cmp esi, 0x1c
jae 0x1010d4c
jmp 0x1010d1d
mov ax, word [esi*8 + 0x1010d64]
mov word [0x10155ac], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x10155ac]
xor ecx, ebp
pop esi
call fcn.010014d9
leave
ret
Function at 0x401990
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
lea eax, [esp + 8]
push edi
push eax
push ebx
mov dword [esp + 0x14], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x401a06
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401a06
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push 0x40a400
push edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401a06
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov eax, dword [eax + 8]
shr eax, 0x10
add esp, 8
ret
pop edi
pop esi
mov eax, 0xa
pop ebx
add esp, 8
ret
Function at 0x4047f0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x40acdc
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x4048af
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call ebx
push edi
push 1
lea edx, [esp + 0x28]
push 4
push edx
call ebx
mov eax, dword [esp + 0x3c]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x40]
mov esi, eax
mov dword [esp + 0x38], esi
lea eax, [edx*4]
push eax
call sub.MFC42.DLL_operatornew
add esp, 0x28
mov ebp, eax
test ebp, ebp
push edi
jne 0x404877
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x20]
push ecx
push 4
push esi
call ebx
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp eax, ecx
jne 0x40489f
mov edx, dword [esp + 0x10]
push edx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x4048b9
push ebp
call sub.MFC42.DLL_operatordelete
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push edi
push eax
push 1
push esi
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp eax, ecx
jae 0x4048ef
push ebp
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor eax, eax
test ecx, ecx
jbe 0x404907
mov bl, byte [eax + esi]
xor bl, 0x75
mov byte [eax + esi], bl
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
jb 0x4048f5
mov eax, dword [esp + 0x1c]
xor ecx, ecx
test eax, eax
jbe 0x40492d
mov edx, dword [esp + 0x14]
mov eax, ebp
sub edx, ebp
mov ebx, dword [edx + eax]
add eax, 4
add ebx, esi
inc ecx
mov dword [eax - 4], ebx
mov ebx, dword [esp + 0x1c]
cmp ecx, ebx
jb 0x404919
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x18]
push ecx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
je 0x40494d
mov dword [eax], ebp
jmp 0x404953
mov dword [0x41d03c], ebp
mov eax, dword [ebp + 0xab0]
mov esi, 0x40abd8
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x404998
test cl, cl
je 0x404982
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x404998
add eax, 2
add esi, 2
test cl, cl
jne 0x40495e
mov ecx, dword [esp + 0x1c]
xor eax, eax
neg eax
sbb eax, eax
pop edi
not eax
pop esi
pop ebp
and eax, ecx
pop ebx
add esp, 8
ret
sbb eax, eax
mov ecx, dword [esp + 0x1c]
sbb eax, 0xffffffff
pop edi
neg eax
sbb eax, eax
pop esi
not eax
pop ebp
and eax, ecx
pop ebx
add esp, 8
ret
Function at 0x405ba0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x804
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x818]
test eax, eax
jle 0x405bfe
cmp eax, 0x7ee
jge 0x405bfe
mov edi, dword [esp + 0x81c]
test edi, edi
mov eax, edi
jne 0x405bde
mov eax, 0x40b1d0
push esi
push 0
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x405c05
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret
mov edi, dword [esp + 0x81c]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, 0x43
mov dword [esp + 0x10], 0
jmp 0x405c32
mov edi, dword [esp + 0x81c]
mov dword [esp + 0x10], 0
jmp 0x405c32
mov edi, dword [esp + 0x81c]
test edi, edi
jne 0x405c3b
mov edi, 0x40b1d0
call dword [sym.imp.MSVCRT.dll_rand]
and eax, 0x800fffff
jns 0x405c4f
dec eax
or eax, 0xfff00000
inc eax
push eax
push ebx
push edi
push str._c:_s_05X.TMP
push esi
call ebp
push esi
call fcn.00406220
add esp, 0x18
test al, al
jne 0x405c7a
push 0x40a4b4
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
test eax, eax
jne 0x405c9b
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 5
mov dword [esp + 0x10], eax
jl 0x405c2b
inc ebx
cmp ebx, 0x5a
jle 0x405c1a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x804
ret
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret
Function at 0x406200
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406213
xor al, al
ret
shr eax, 4
and eax, 1
ret

Function at 0x406220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406233
xor al, al
ret
not eax
shr eax, 4
and eax, 1
ret

Function at 0x406240
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push ebx
call fcn.00404c20
add esp, 4
test al, al
je 0x40627b
mov al, byte [ebx + 2]
lea edi, [ebx + 2]
test al, al
je 0x406269
cmp al, 0x5c
jne 0x4062d4
mov al, byte [ebx + 3]
test al, al
jne 0x4062d4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4062c6
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebx
call fcn.00404c00
add esp, 4
test al, al
je 0x406398
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebx + 2]
push 0x5c
push eax
call esi
add esp, 8
test eax, eax
je 0x406398
inc eax
push 0x5c
push eax
call esi
mov edi, eax
add esp, 8
test edi, edi
jne 0x4062d4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4062c6
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xffffffffffffffff
call fcn.00404eb0
add esp, 4
pop edi
pop esi
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406389
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
jb 0x406305
cmp eax, 0x578
ja 0x406305
push eax
call fcn.00404eb0
add esp, 4
pop edi
pop esi
pop ebx
ret
push 0x5c
push ebx
xor esi, esi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x406320
pop edi
pop esi
mov eax, 0x35
pop ebx
ret
cmp eax, edi
je 0x40636a
sub eax, ebx
push ebp
mov ebp, eax
mov esi, ebx
lea ecx, [ebp + 1]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebp
mov edi, eax
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x1c], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebp], 0
call fcn.00406240
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0xc
test esi, esi
pop ebp
jne 0x406383
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x406383
push 0xffffffffffffffff
call fcn.00404eb0
add esp, 4
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
ret
and al, 0x10
pop edi
neg al
sbb eax, eax
pop esi
and al, 0xd2
pop ebx
add eax, 0x2e
ret
pop edi
pop esi
mov eax, 0x2e
pop ebx
ret
Function at 0x4064d0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406506
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406540
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406545
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406545
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406540
mov dword [eax], 0
pop edi
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40655a
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov eax, edi
pop edi
pop esi
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.CreateToolhelp32Snapshot
push esi
call edi
push str.Process32First
push esi
mov ebx, eax
call edi
push str.Process32Next
push esi
mov ebp, eax
call edi
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x4066f5
test ebp, ebp
je 0x4066f5
test eax, eax
je 0x4066f5
push 0
push 2
call ebx
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push ebx
xor edi, edi
mov dword [esp + 0x1c], 0x128
call ebp
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea ecx, [esp + 0x38]
push 0x5c
push ecx
call esi
add esp, 8
test eax, eax
je 0x406644
lea edx, [esp + 0x38]
push 0x5c
push edx
call esi
add esp, 8
inc eax
jmp 0x406648
lea eax, [esp + 0x38]
mov ebp, dword [esp + 0x140]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x406664
mov edi, dword [esp + 0x1c]
jmp 0x4066ac
lea eax, [esp + 0x14]
push eax
push ebx
call dword [esp + 0x18]
test eax, eax
je 0x4066ac
lea ecx, [esp + 0x38]
push 0x5c
push ecx
call esi
add esp, 8
test eax, eax
je 0x406691
lea edx, [esp + 0x38]
push 0x5c
push edx
call esi
add esp, 8
inc eax
jmp 0x406695
lea eax, [esp + 0x38]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4066a8
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x406664
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov al, byte [esp + 0x144]
test al, al
je 0x4066e8
test edi, edi
je 0x4066e8
mov eax, dword [esp + 0x1c]
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4066e8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x12c
ret
Function at 0x406710
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40673f
mov cl, byte [esp + 0xc]
test cl, cl
je 0x40672d
or al, 1
jmp 0x40672f
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40673f
xor eax, eax
pop esi
ret
push 0xffffffffffffffff
call fcn.00404eb0
add esp, 4
pop esi
ret

Function at 0x406750
Capabilities:
Copy file

Disassembly:
sub esp, 0x404
push ebx
push esi
mov esi, dword [esp + 0x414]
push edi
push 0
push esi
call fcn.00406710
mov edi, dword [esp + 0x41c]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 8
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x4067c7
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00404dc0
lea ecx, [esp + 0x14]
push ecx
call fcn.00406240
add esp, 0xc
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x4067c7
push esi
push edi
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x4067c7
push 0xffffffffffffffff
call fcn.00404eb0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x404
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x404
ret