joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41de60
Capabilities:
Accept command line arguments
Manipulate console buffer
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe98
mov dword [ebp - 4], 0
jmp 0x41de7b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x32d05d76
jge 0x41df15
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x23a7494], 0xfc
jne 0x41deba
mov ecx, dword [ebp - 0x58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push 0
push 0
push str.wacocopusukucacuvimebudojoxixivucaregorigedetadinugevawudihaneyivorucobolilijipomaxexitivabarokupohedulejapuyelehapuxife
push str.kezizokogesihudunerokohovuto
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp dword [0x23a7494], 0x5e4
jne 0x41df05
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x800
lea edx, [ebp - 0x858]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea eax, [ebp - 0xa78]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp dword [ebp - 4], 0x9be51dc
jle 0x41df10
jmp 0x41df15
jmp 0x41de72
push 0x431fb0
mov ecx, dword [0x23a7494]
push ecx
mov edx, dword [0x239f5d8]
push edx
call fcn.0041dd10
mov dword [ebp - 0xa7c], 0
jmp 0x41df48
mov eax, dword [ebp - 0xa7c]
add eax, 1
mov dword [ebp - 0xa7c], eax
cmp dword [ebp - 0xa7c], 0x3e79e
jge 0x41df88
cmp dword [0x23a7494], 0x10
jne 0x41df75
lea ecx, [ebp - 0xa80]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push str.fujovaweliwacaraxexavucexagacahejomiwiladapuyuvoveduhufo
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [ebp - 0xa7c], 0x1e673
jne 0x41df86
call fcn.0041d7a0
jmp 0x41df39
mov dword [ebp - 0xa84], 0
jmp 0x41dfa3
mov edx, dword [ebp - 0xa84]
add edx, 1
mov dword [ebp - 0xa84], edx
cmp dword [ebp - 0xa84], 0xdd9a7
jge 0x41dfc7
cmp dword [0x23a7494], 0xc01
jne 0x41dfc5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapWalk]
jmp 0x41df94
jmp dword [0x239f5d8]
Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x28d9104a
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x5c9c5cc7
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp int.00401219
Function at 0x401b50
Capabilities:
Check if file exists
Create directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401c72
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00412cc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov word [ebp - 0x206], ax
lea eax, [ebp - 0x20c]
push str.IimeFile
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401be1
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00412cc0
add esp, 0xc
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
push 3
lea eax, [ebp - 0x414]
xor esi, esi
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
test eax, eax
je 0x401c53
push 2
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 4
push esi
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
mov ecx, 1
cmovne esi, ecx
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004113fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.004113fe
mov esp, ebp
pop ebp
ret
Function at 0x405000
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x42b8e0]
call fcn.00401fe0
mov eax, dword [0x42b8e0]
push 0
push dword [eax + 0x5b8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x42b8e0]
push dword [eax + 0x5b4]
mov dword [eax + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x10
push eax
mov eax, dword [0x42b8e0]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push dword [eax + 0x5ac]
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x405098
call fcn.00405000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004113fe
mov esp, ebp
pop ebp
ret

Function at 0x405750
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e3b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x42a040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
mov edx, dword [ebp + 8]
mov ecx, edx
mov byte [ebp - 4], 1
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4057c5
sub ecx, dword [ebp + 8]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00401dd0
mov edx, dword [ebp + 0xc]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp + 8], ecx
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4057f0
sub eax, dword [ebp + 8]
lea ecx, [esi + 0x18]
sar eax, 1
push eax
push edx
call fcn.00401dd0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x34], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405a10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x405ab0
push 0
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x405ab0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp + 0xc]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405ab0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
nop
push 0
lea eax, [ebp + 0xc]
push eax
push 0x800
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
jne 0x405a95
call ebx
cmp eax, 0xea
je 0x405a70
xor eax, eax
test esi, esi
pop esi
cmovne eax, dword [ebp + 0xc]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004113fe
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004113fe
mov esp, ebp
pop ebp
ret 8

Function at 0x405dd0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405e48
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405e48
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x564
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004113fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113fe
mov esp, ebp
pop ebp
ret

Function at 0x405e60
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x578
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov ebx, ecx
lea esi, [ebp + 8]
mov ecx, 0x159
lea edi, [ebp - 0x574]
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405eef
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405eef
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x564
lea eax, [ebp - 0x574]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004113fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113fe
mov esp, ebp
pop ebp
ret
Function at 0x405f10
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
mov esi, ecx
push 0
push eax
call fcn.00412cc0
add esp, 0xc
lea ecx, [ebp - 0x210]
mov edx, 0x10
call fcn.00401a50
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405f98
mov ecx, esi
call fcn.00406100
sub esp, 0x150
mov ecx, 0x53
mov edi, esp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.00406020
add esp, 0x150
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004113fe
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405fd3
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004113fe
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0x14e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esi + 0x34], 0xa
mov ebx, eax
jne 0x406002
xor eax, eax
mov word [esi + 0x34], ax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113fe
mov esp, ebp
pop ebp
ret

Function at 0x406020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x53
lea esi, [ebp + 8]
lea edi, [ebp - 0x368]
rep movsd dword es:[edi], dword [esi]
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.00412cc0
add esp, 0xc
lea ecx, [ebp - 0x210]
mov edx, 0x10
call fcn.00401a50
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4060ea
mov eax, 0x14e
mov dword [ebp - 0x214], 0
push 0
mov word [ebp - 0x368], ax
lea eax, [ebp - 0x214]
push eax
push 0x14e
lea eax, [ebp - 0x368]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call fcn.00405ad0
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004113fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004113fe
mov esp, ebp
pop ebp
ret
Function at 0x406100
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
mov eax, dword [0x42a040]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
mov ebx, ecx
mov eax, 0x14e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
mov word [ebx], ax
xor eax, eax
mov dword [ebx + 0x30], eax
mov word [ebx + 0x34], ax
mov dword [ebx + 0xa], eax
mov eax, 2
mov word [ebx + 0x12], ax
xor eax, eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x14a], eax
lea eax, [ebx + 0x36]
push 0x426610
push eax
mov dword [ebx + 2], 0x3a7b60dd
mov dword [ebx + 6], 0x1a50
mov dword [ebx + 0x24], 0x3d002d
mov dword [ebx + 0x28], 0x5c006a
mov dword [ebx + 0x2c], 0x3b
mov dword [ebx + 0x14], 0xd0002
mov dword [ebx + 0xe], 0xc0005
mov dword [ebx + 0x18], 0x10000
mov dword [ebx + 0x142], 0
mov dword [ebx + 0x13e], 0
mov dword [ebx + 0x1c], 0x10000
mov dword [ebx + 0x146], 6
call esi
push 0x426610
lea eax, [ebx + 0x76]
push eax
call esi
push 0x208
lea eax, [esp + 0x264]
push 0
push eax
call fcn.00412cc0
add esp, 0xc
lea ecx, [esp + 0x260]
mov edx, 7
call fcn.00401a50
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x406210
push str.Iime.imc
lea eax, [ebx + 0xb6]
push eax
call esi
jmp 0x406286
lea ecx, [esp + 0x260]
call fcn.00401970
push str..imc
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406280
nop dword [eax]
test byte [esp + 0x10], 0x10
je 0x406265
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x406250
jmp 0x406278
lea eax, [esp + 0x3c]
push eax
lea eax, [ebx + 0xb6]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcpyW]
call eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, 0xb
lea ecx, [esp + 0x260]
call fcn.00401a50
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4062cc
push str.Iime.ims
lea eax, [ebx + 0xf6]
push eax
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.004113fe
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x260]
call fcn.00401970
push str..ims
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406334
test byte [esp + 0x10], 0x10
je 0x40631a
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x406305
jmp 0x40632d
lea eax, [esp + 0x3c]
push eax
lea eax, [ebx + 0xb6]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrcpyW]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004113fe
mov esp, ebp
pop ebp
ret
Function at 0x408c20
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x408c40
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x408c5b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x408c72
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x408c9c
push eax
call edi
lea edi, [esi + 0x6fc]
mov dword [esi + 4], 0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408c9c
mov ecx, edi
call fcn.00401b50
pop edi
mov dword [esi + 0x904], 0
mov dword [esi + 0x90c], 0
pop esi
ret
Function at 0x40e3c0
Capabilities:
Check if file exists
Create directory
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40e3de
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x40e3f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40e422
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
add esi, 0x598
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e422
mov ecx, esi
pop esi
jmp fcn.00401b50
pop esi
ret
Function at 0x40eec0
Capabilities:
Check if file exists
Create directory
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40eede
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x40eef3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40ef22
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
add esi, 0x6dc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ef22
mov ecx, esi
pop esi
jmp fcn.00401b50
pop esi
ret
Function at 0x411f03
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x411f42
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x411f42
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411f42
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x411f42
cmp dword [ecx + 0x74], 0xe
jbe 0x411f42
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4170f4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422e80
push 0x422e78
push str.FlsAlloc
push 0x1f
call fcn.00417010
mov esi, eax
add esp, 0x10
test esi, esi
je 0x417128
push dword [ebp + 8]
mov ecx, esi
call dword [0x420224]
call esi
jmp 0x41712e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x417172
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422e90
push 0x422e88
push str.FlsGetValue
push 0x21
call fcn.00417010
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4171a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x420224]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4171b1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422e98
push 0x422e90
push str.FlsSetValue
push 0x22
call fcn.00417010
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4171eb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x420224]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x419703
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4197a0
push ebx
push esi
call fcn.004196cc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041859d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41974d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41979f
push edi
push eax
call fcn.00416965
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41976d
call fcn.0041692b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41979e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041859d
add esp, 0x20
test eax, eax
jne 0x41978c
push edi
call fcn.0041692b
jmp 0x419794
push ebx
call fcn.0041692b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41d9a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d9cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d9cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x452be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.00452c50
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4