joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d2390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x104
push 0x6930d0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x6930d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x5d2403
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 0x6930cf]
cmp ecx, 0x5c
je 0x5d2403
mov edi, 0x67cac4
mov edx, 0x6930d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
add edi, 0xffffffff
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5d4d80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], 0
push str.WINFX.ini
push 0x14
lea eax, [ebp - 0x18]
push eax
push 0x688d20
push str.ChopMem
push 0x692fc8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x5d4dcd
lea ecx, [ebp - 0x1c]
push ecx
push 0x67c248
lea edx, [ebp - 0x18]
push edx
call fcn.006671d0
add esp, 0xc
mov dword [ebp - 0x1c], 1
xor eax, eax
cmp dword [ebp - 0x1c], 0
sete al
mov esp, ebp
pop ebp
ret
Function at 0x5ec7e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
mov al, byte [0x6a1224]
mov byte [ebp - 0x110], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 6
mov dword [ebp - 0x114], 0
push str.RNESV_QD
call fcn.005ec720
add esp, 4
push str.OhwdkGd_uxHmctrsqhdr
call fcn.005ec720
add esp, 4
push str.Kdf_bx
call fcn.005ec720
add esp, 4
push str.Bnmshmthsx
call fcn.005ec720
add esp, 4
push 0x698cd0
call fcn.005ec720
add esp, 4
mov dword [ebp - 4], 0
push str.Kdf_bx
push str.OhwdkGd_uxHmctrsqhdr
push str.RNESV_QD
push str._s_s_s
lea ecx, [ebp - 0x110]
push ecx
call fcn.00667e70
add esp, 0x14
push 0
lea edx, [ebp - 0x114]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push reloc.MSVFW32.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5ec90d
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
push str.RNESV_QD
call fcn.005ec780
add esp, 4
push str.OhwdkGd_uxHmctrsqhdr
call fcn.005ec780
add esp, 4
push str.Kdf_bx
call fcn.005ec780
add esp, 4
push str.Bnmshmthsx
call fcn.005ec780
add esp, 4
push 0x698cd0
call fcn.005ec780
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x5ec9c6
mov edi, 0x698cd0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x698cd0
push 1
push 0
push str.Bnmshmthsx
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5ec948
mov eax, dword [ebp - 4]
or al, 2
mov dword [ebp - 4], eax
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push 0x694a48
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5ec975
mov eax, dword [ebp - 4]
or al, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.RNESV_QD
call fcn.005ec780
add esp, 4
push str.OhwdkGd_uxHmctrsqhdr
call fcn.005ec780
add esp, 4
push str.Kdf_bx
call fcn.005ec780
add esp, 4
push str.Bnmshmthsx
call fcn.005ec780
add esp, 4
push 0x698cd0
call fcn.005ec780
add esp, 4
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x5ec9d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 1
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5eca29
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5eca1f
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5f6510
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x74fb08], 0
jne 0x5f6548
mov dword [0x74fb08], 0x5f66d0
push 0
push 0x10
mov eax, dword [0x74fb08]
push eax
push 0x74fb14
call sub.USER32.dll_DdeInitializeA
test eax, eax
je 0x5f6548
xor eax, eax
jmp 0x5f6609
push 0x3ec
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x74fb14]
push edx
call sub.USER32.dll_DdeCreateStringHandleA
mov dword [ebp - 0xc], eax
push 0x3ec
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [0x74fb14]
push ecx
call sub.USER32.dll_DdeCreateStringHandleA
mov dword [0x74fb0c], eax
mov dword [0x74fb10], 0
mov dword [ebp - 8], 0
cmp dword [0x74fb10], 0
jne 0x5f65ee
cmp dword [ebp - 8], 0xa
jge 0x5f65ee
push 0
mov edx, dword [0x74fb0c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [0x74fb14]
push ecx
call sub.USER32.dll_DdeConnect
mov dword [0x74fb10], eax
cmp dword [0x74fb10], 0
jne 0x5f65ec
mov edx, dword [0x74fb14]
push edx
call sub.USER32.dll_DdeGetLastError
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x5f65e3
push 7
push str.winimagemorph.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x5f658b
cmp dword [0x74fb10], 0
jne 0x5f6607
push 0
push 0x61
call fcn.005e0100
add esp, 8
xor eax, eax
jmp 0x5f6609
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x5f67a1
mov ecx, dword [ebp - 8]
and ecx, 0x10
test ecx, ecx
je 0x5f67a1
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x600f10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x600fce
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x92c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x600fce
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x600fce
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x600fc0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x330], 0
jne 0x600fc0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x32c], 0
je 0x600fc0
mov edx, dword [ebp - 4]
add edx, 0x10e
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
add eax, 0x21c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x330], 1
mov edx, dword [ebp - 4]
mov dword [edx + 0x32c], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x84]
sub ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x84], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
jmp 0x600f42
mov edx, dword [ebp + 8]
mov dword [edx + 0xc4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.005f9070
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x601090
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x601176
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x92c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x601176
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x601176
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x601168
mov eax, dword [ebp - 4]
cmp dword [eax + 0x330], 0
jne 0x601168
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x32c], 0
je 0x601168
mov edx, dword [ebp - 4]
add edx, 0x10e
push edx
call fcn.00600ff0
add esp, 4
mov eax, dword [ebp - 4]
add eax, 0x10e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
add ecx, 0x21c
push ecx
call fcn.00600ff0
add esp, 4
mov edx, dword [ebp - 4]
add edx, 0x21c
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
mov dword [eax + 0x330], 1
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x32c], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x84]
sub eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x84], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
jmp 0x6010c2
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc4], 0
mov edx, dword [ebp + 8]
push edx
call fcn.005f9070
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x645480
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
jmp 0x645498
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x100
jge 0x6454f5
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
jmp 0x6454b9
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 8
jge 0x6454e3
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x6454d9
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 4], ecx
jmp 0x6454e1
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ebp - 4], edx
jmp 0x6454b0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + eax*4 + 0x854], edx
jmp 0x64548f
mov eax, dword [ebp + 8]
mov byte [eax + 0xc54], 1
mov esp, ebp
pop ebp
ret

Function at 0x657330
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xca
jne 0x657373
mov ecx, dword [ebp + 8]
push ecx
call fcn.0065a936
add esp, 4
mov edx, dword [ebp + 8]
cmp dword [edx + 0x40], 0
je 0x657369
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xcf
mov eax, 1
jmp 0x65748a
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0xcb
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0xcb
jne 0x65744a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1b4]
cmp dword [ecx + 0x10], 0
je 0x657436
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x6573ae
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
call dword [edx]
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1b4]
call dword [edx]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x6573d0
xor eax, eax
jmp 0x65748a
cmp dword [ebp - 4], 2
jne 0x6573d8
jmp 0x657436
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x657431
cmp dword [ebp - 4], 3
je 0x6573ed
cmp dword [ebp - 4], 1
jne 0x657431
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ecx + 4]
cmp ecx, dword [eax + 8]
jl 0x657431
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x140]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov dword [edx + 8], ecx
jmp 0x657396
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x90]
mov dword [eax + 0x98], edx
jmp 0x65747e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x65747e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [edx + 0x14], 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
call dword [eax]
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0065748e
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x65748e
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0xcc
je 0x6574c7
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a4]
call dword [eax]
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x8c], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0xcc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a4]
cmp dword [ecx + 8], 0
je 0x65759f
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x8c]
cmp ecx, dword [eax + 0x74]
jae 0x657568
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x657524
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x8c]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x74]
mov dword [edx + 8], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
call dword [ecx]
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x8c]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x8c
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a8]
call dword [ecx + 4]
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x8c]
cmp eax, dword [ebp - 4]
jne 0x657563
xor eax, eax
jmp 0x6575bb
jmp 0x6574da
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a4]
call dword [eax + 4]
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1a4]
call dword [eax]
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x8c], 0
jmp 0x6574c7
mov edx, dword [ebp + 8]
xor eax, eax
cmp dword [edx + 0x44], 0
setne al
add eax, 0xcd
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x668cf0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x750c18]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x668d0f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x750c14], 1
mov byte [0x750c10], bl
jne 0x668d69
mov ecx, dword [0xafd414]
test ecx, ecx
je 0x668d57
mov esi, dword [0xafd410]
sub esi, 4
cmp esi, ecx
jb 0x668d57
mov eax, dword [esi]
test eax, eax
je 0x668d50
call eax
mov ecx, dword [0xafd414]
sub esi, 4
cmp esi, ecx
jae 0x668d42
push 0x67c01c
push 0x67c014
call fcn.00668da0
add esp, 8
push 0x67c024
push 0x67c020
call fcn.00668da0
add esp, 8
test ebx, ebx
jne 0x668d90
push ebp
mov dword [0x750c18], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x668f60
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x668f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x668f7e
xor eax, eax
test eax, eax
je 0x668f8f
push eax
call fcn.00670c90
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x669c10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a988
push 0x667d98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x750be8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x750be4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x750be0], ecx
shr eax, 0x10
mov dword [0x750bdc], eax
call fcn.0066b850
test eax, eax
jne 0x669c7a
push 0x1c
call fcn.00669db0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0066eb20
call fcn.006702e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0xafd40c], eax
call fcn.00671d10
mov dword [0x750c50], eax
test eax, eax
je 0x669cad
mov eax, dword [0xafd40c]
test eax, eax
jne 0x669cb7
push 0xffffffffffffffff
call fcn.00668cb0
add esp, 4
call fcn.00671a60
call fcn.00671970
call fcn.00668c80
mov esi, dword [0xafd40c]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x669d96
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x669cfe
test al, al
je 0x669cfe
and eax, 0xff
push eax
call fcn.00671910
add esp, 4
test eax, eax
je 0x669cd8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x669cd8
cmp byte [esi], 0x22
jne 0x669d07
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x669d17
cmp al, 0x20
ja 0x669d17
inc esi
mov dword [ebp - 0x64], esi
jmp 0x669d07
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x669d38
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x669d3d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00668cb0
jmp 0x669d7b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x669d07
inc esi
mov dword [ebp - 0x64], esi
jmp 0x669d96
Function at 0x66c1b0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0xafd400]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x66c35d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0xafd300]
lea edi, [ecx*4 + 0xafd300]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x66c35d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x66c21e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x66c22f
push 2
push ebp
push eax
call fcn.0066ed20
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x66c38e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x66c2d9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x66c28a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x66c277
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x66c25a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x66c37f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x66c2d5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x66c256
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x66c34e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x66c322
cmp eax, 5
jne 0x66c30b
mov dword [0x750bd4], eax
mov dword [0x750bd0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00670c90
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x66c342
cmp byte [ebp], 0x1a
jne 0x66c342
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x750bd0], 0x1c
jmp 0x66c367
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x750bd0], 9
pop edi
pop esi
pop ebp
mov dword [0x750bd4], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x66c2d5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x66c3bf
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x66c2d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x66c2d9
Function at 0x671d10
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x751018]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x671d52
call edi
mov esi, eax
test esi, esi
je 0x671d3c
mov eax, 1
jmp 0x671d4d
call ebp
mov ebx, eax
test ebx, ebx
je 0x671e5f
mov eax, 2
mov dword [0x751018], eax
cmp eax, 1
jne 0x671df2
test esi, esi
jne 0x671d6b
call edi
mov esi, eax
test esi, esi
je 0x671e5f
cmp word [esi], 0
mov eax, esi
je 0x671d85
add eax, 2
cmp word [eax], 0
jne 0x671d73
add eax, 2
cmp word [eax], 0
jne 0x671d73
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x671de4
push edi
call fcn.00668220
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x671de4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x671dd6
push ebx
call fcn.00666790
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x671e5f
test ebx, ebx
jne 0x671e03
call ebp
mov ebx, eax
test ebx, ebx
je 0x671e5f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x671e1b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x671e0b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x671e0b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00668220
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x671e3d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret