joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001807
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push edx
add esp, 4
call 0x10001543
mov dword [esp], ebx
nop
mov eax, eax
push esi
sub esp, 4
mov dword [esp], 0x443694b5
add esp, 4
push ecx
add esp, 4
push ecx
mov dword [esp], edi
mov dword [esp - 4], 0xf3624963
sub esp, 4
mov dword [esp], 0xd327d9e8
add esp, 4
xor eax, eax
push edx
add esp, 4
mov esi, dword fs:[eax + 0x30]
nop
nop
mov esi, dword [esi + 0xc]
nop
nop
mov esi, dword [esi + 0xc]
mov eax, eax
lodsd eax, dword [esi]
push 0x89f5043a
add esp, 4
mov eax, dword [eax]
nop
push 0xe039a113
add esp, 4
mov ebx, dword [eax + 0x18]
mov dword [esp - 4], 0xf0c92ea8
push esi
add esp, 4
mov edi, dword [ebx + 0x3c]
sub esp, 4
mov dword [esp], 0x8dec381e
add esp, 4
sub esp, 4
mov dword [esp], 0x60d6b87b
add esp, 4
mov edi, dword [ebx + edi + 0x78]
push ebx
add esp, 4
sub esp, 4
mov dword [esp], 0xbbca665a
add esp, 4
mov esi, dword [ebx + edi + 0x20]
mov dword [esp - 4], 0x70258234
push ecx
add esp, 4
add esi, ebx
mov dword [esp - 4], 0x6e6d1a15
mov edx, dword [ebx + edi + 0x24]
nop
mov dword [esp - 4], 0x98e5b73f
add edx, ebx
push edi
add esp, 4
xor ecx, ecx
nop
dec ecx
push eax
add esp, 4
push 0x339fca52
add esp, 4
add ecx, 2
dec ecx
push ecx
add esp, 4
mov dword [esp - 4], 0xbd5f6ddd
mov eax, dword [esi]
mov eax, eax
sub esp, 4
mov dword [esp], 0x11636c84
add esp, 4
add esi, 4
cmp word [ebx + eax + 0xb], 0x63
jne 0x10001614
cmp byte [ebx + eax + 1], 0x69
jne 0x10001614
movzx eax, word [edx + ecx*2]
mov esi, dword [ebx + edi + 0x1c]
add esi, ebx
add ebx, dword [esi + eax*4]
mov dword [esp - 4], 0x26487596
mov dword [esp - 4], 0x40
sub esp, 4
sub esp, 4
mov dword [esp], 0x8d70ffbd
add esp, 4
push esi
add esp, 4
push 0x3000
nop
mov eax, eax
push eax
mov dword [esp], 0x1336e2
nop
mov dword [esp - 4], 0x436c7e28
call 0x1000169f
mov dword [esp], 0
mov dword [esp - 4], 0x4212fbef
nop
call ebx
sub esp, 4
mov dword [esp], 0xc1a199ef
add esp, 4
sub esp, 4
mov dword [esp], 0x7331976f
add esp, 4
mov edi, dword [esp]
add esp, 4
sub esp, 4
mov dword [esp], 0xa9bbdddd
add esp, 4
nop
mov esi, dword [esp]
add esp, 4
mov dword [esp - 4], 0xdcc5ebd1
mov eax, eax
add esp, 4
xchg dword [esp - 4], ebx
mov dword [esp - 4], 0x179f966b
ret
jmp 0x1000153a
Function at 0x405498
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00405739
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4054ce
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4247e8], eax
jmp 0x405653
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x4054e9
test eax, eax
je 0x4055fe
test cl, 2
je 0x4055fe
mov esi, 0x421d70
push ebx
push esi
call fcn.00405b66
cmp dword [ebp + 8], 0
je 0x405508
push 0x409318
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40550e
push ebx
call fcn.004056a0
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4055f4
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405684
cmp byte [eax], 0
je 0x40555f
cmp byte [ebp - 0x18], 0
je 0x40555f
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405575
mov al, byte [esi + 1]
test al, al
je 0x4055d3
cmp al, 0x2e
jne 0x405575
cmp byte [esi + 2], 0
je 0x4055d3
push esi
push edi
call fcn.00405b66
test byte [ebp - 0x148], 0x10
je 0x40559a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055d3
push dword [ebp + 0xc]
push ebx
call fcn.00405498
jmp 0x4055d3
push ebx
call fcn.0040581d
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055cb
test byte [ebp + 0xc], 4
je 0x4055c3
push ebx
push 0xfffffffffffffff1
call fcn.00404efa
push 0
push ebx
call fcn.004058b3
jmp 0x4055d3
inc dword [0x4247e8]
jmp 0x4055d3
push ebx
push 0xfffffffffffffff2
call fcn.00404efa
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40553d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055fe
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x405653
cmp dword [ebp - 8], esi
jne 0x405613
inc dword [0x4247e8]
jmp 0x405653
push ebx
call fcn.00405e3b
test eax, eax
je 0x405653
push ebx
call fcn.00405659
push ebx
call fcn.0040581d
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40564b
test byte [ebp + 0xc], 4
je 0x40560b
push ebx
push 0xfffffffffffffff1
call fcn.00404efa
push esi
push ebx
call fcn.004058b3
jmp 0x405653
push ebx
push 0xffffffffffffffe5
call fcn.00404efa
pop esi
pop ebx
leave
ret 8
Function at 0x4058b3
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x409348
push 0x4092e0
call fcn.00405e79
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058df
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a1e
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ef8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ef8
je 0x405923
push 1
push 0
push esi
call fcn.0040583c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a24
cmp eax, edi
jg 0x405a24
mov esi, 0x422970
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a24
cmp eax, edi
jg 0x405a24
push esi
push ebp
push 0x409340
push 0x422570
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x409330
push esi
call sub.KERNEL32.dll_lstrcatA
push 4
push 0xc0000000
push esi
call fcn.0040583c
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a1e
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a17
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a17
cmp edi, dword [esp + 0x18]
jne 0x405a17
push 0x409324
push esi
call fcn.004057b1
test eax, eax
jne 0x405a2b
lea eax, [esi + edi]
push 0x409324
push eax
call fcn.00405b66
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x422570
push eax
call fcn.004057fd
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4247f0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409320
push eax
call fcn.004057b1
test eax, eax
je 0x4059e2
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a52
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a47
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4059e4
Function at 0x405b88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405ba9
mov ecx, dword [0x423f3c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x424798]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x423700
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405d7c
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405d7c
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405d89
inc ebx
cmp cl, 0xfc
jbe 0x405d6f
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405d1a
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405c3d
mov dword [ebp + 0xc], 0x4093b4
jmp 0x405cb5
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405c5c
push edi
push 0x4093a4
push 0x409378
push 0x80000002
call fcn.00405a5a
jmp 0x405cb0
cmp eax, 0x26
jne 0x405c8c
push edi
push 0x409368
push 0x409378
push 0x80000002
call fcn.00405a5a
cmp byte [edi], 0
jne 0x405d12
push 0x409354
push edi
call fcn.00405b66
jmp 0x405cb0
cmp eax, 0x25
jne 0x405c9f
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405cb0
cmp eax, 0x24
jne 0x405cb5
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405d12
cmp dword [0x4247e4], 0
jne 0x405cc1
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x424764]
call dword [sym.imp.SHEL_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405cf7
push edi
push dword [ebp - 4]
call dword [sym.imp.SHEL_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.004053b3
cmp dword [ebp - 8], 0
jne 0x405cfe
jmp 0x405cfa
and byte [edi], 0
test esi, esi
jne 0x405cc1
cmp byte [edi], 0
je 0x405d12
cmp dword [ebp + 0xc], 0
je 0x405d12
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405da2
jmp 0x405d60
cmp byte [ebp + 0xf], 0xfd
jne 0x405d4e
cmp esi, 0x1b
jne 0x405d33
push dword [0x424764]
push edi
call fcn.00405ac4
jmp 0x405d44
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00405b66
add esi, 0xffffffeb
cmp esi, 6
jae 0x405d60
jmp 0x405d12
cmp byte [ebp + 0xf], 0xff
jne 0x405d60
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405b88
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x423700
jmp 0x405d7c
jne 0x405d79
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405d7c
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405bd4
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405d9e
push eax
push dword [ebp + 8]
call fcn.00405b66
leave
ret 8
Function at 0x403f86
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
push str._tWinMain___n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
mov ebx, 0x4cb934
mov ecx, ebx
mov dword [esp + 0x10], ebx
call fcn.00403eca
mov eax, dword [0x4c5990]
inc eax
mov dword [0x4c5990], eax
cmp eax, 1
jne 0x403fc9
call fcn.0040481b
mov ecx, eax
call fcn.0043bda2
lea ecx, [esp + 0x10]
call fcn.004047ef
mov ecx, ebx
mov byte [esp + 0xf], 1
mov dword [esp + 0x14], ebx
call fcn.00403eca
xor esi, esi
lea eax, [esp + 0x54]
push esi
push eax
call fcn.0040481b
mov ecx, eax
call fcn.0043bd09
push eax
lea ecx, [esp + 0x48]
call fcn.0043630b
lea ecx, [esp + 0x54]
call fcn.0043634f
lea ecx, [esp + 0x14]
call fcn.004047ef
push esi
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x34]
call fcn.0043630b
lea ecx, [esp + 0x40]
call fcn.0043634f
lea ecx, [esp + 0x2c]
call fcn.0043fe40
cmp eax, 0x7d1
jl 0x404047
lea ecx, [esp + 0x2c]
call fcn.0043fe40
mov edi, eax
jmp 0x4040b9
push 0x42ca05
call fcn.00437bca
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push ecx
lea ecx, [esp + 0x28]
mov dword [0x4c42e4], eax
call fcn.0042c0ef
lea eax, [esp + 0x1c]
mov byte [0x4c1008], 1
push eax
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], 0x8000
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [0x4c59c4]
call fcn.00406a16
mov esi, dword [esp + 0x24]
mov edi, eax
test esi, esi
je 0x4040b9
cmp byte [esp + 0x28], 0
je 0x4040b2
push esi
push str.__COMPAT_LAYER
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push esi
call fcn.0046b1a7
pop ecx
lea ecx, [esp + 0x2c]
call fcn.0043634f
mov ecx, ebx
mov dword [esp + 0x18], ebx
call fcn.00403eca
mov eax, dword [0x4c5990]
dec eax
mov dword [0x4c5990], eax
test eax, eax
jg 0x4040e8
call fcn.0040481b
mov ecx, eax
call fcn.0043bdc3
lea ecx, [esp + 0x18]
call fcn.004047ef
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4056e7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov eax, ecx
xor ecx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
mov esi, ecx
push edi
mov edi, ecx
test ebx, ebx
je 0x4057dd
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add esi, eax
mov eax, dword [ebp - 4]
inc edi
cmp edi, ebx
jb 0x405708
test esi, esi
je 0x4057dd
inc esi
lea eax, [esi + esi]
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x40574c
call fcn.004069c4
mov edi, eax
mov dword [ebp - 8], eax
test edi, edi
je 0x4057dd
xor eax, eax
xor ecx, ecx
mov word [edi], ax
mov ebx, ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + ebx*4]
mov eax, ecx
mov dword [ebp - 0xc], edx
test esi, esi
je 0x40576c
cmp esi, 0x7fffffff
jbe 0x405771
mov eax, 0x80070057
test eax, eax
js 0x4057cb
xor eax, eax
mov edx, esi
mov ecx, edi
test esi, esi
je 0x405799
xor edi, edi
cmp word [ecx], di
je 0x40578c
add ecx, 2
dec edx
jne 0x405781
mov edi, dword [ebp - 8]
test edx, edx
je 0x405799
mov ecx, esi
sub ecx, edx
jmp 0x4057a0
mov eax, 0x80070057
xor ecx, ecx
mov edx, dword [ebp - 0xc]
test eax, eax
js 0x4057cb
push 0x7ffffffe
push edx
mov edx, esi
push ecx
sub edx, ecx
lea ecx, [edi + ecx*2]
call fcn.004056a2
test eax, eax
js 0x4057cb
inc ebx
push 0
pop ecx
cmp ebx, dword [ebp - 0x10]
jb 0x405755
mov eax, edi
jmp 0x4057df
push str.StringCchCat_error_in_joinStr
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405bda
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
cmp word [ecx], di
je 0x405bf1
add esi, 2
cmp word [esi], di
jne 0x405be9
push 0x5c
pop eax
cmp word [esi], ax
je 0x405c0a
cmp esi, ecx
jbe 0x405c05
sub esi, 2
cmp word [esi], ax
jne 0x405bf9
cmp word [esi], ax
jne 0x405c0d
add esi, 2
cmp word [esi], di
jne 0x405c21
push 0x4a3ec8
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
xor eax, eax
jmp 0x405c9a
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
mov dword [ebp - 4], eax
add eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x405c48
call fcn.004069c4
mov ebx, eax
test ebx, ebx
je 0x405c93
mov eax, dword [ebp - 4]
test eax, eax
je 0x405c56
cmp eax, 0x7fffffff
jbe 0x405c5b
mov edi, 0x80070057
test edi, edi
js 0x405c73
push 0x7ffffffe
push esi
push ecx
mov edx, eax
mov ecx, ebx
call fcn.004056a2
mov edi, eax
jmp 0x405c7c
test eax, eax
je 0x405c7c
xor eax, eax
mov word [ebx], ax
test edi, edi
jns 0x405c97
mov edx, edi
mov ecx, str.StringCchCopy
call fcn.00405961
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor eax, eax
jmp 0x405c99
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405f4c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov esi, eax
cmp word [eax], di
je 0x405f68
add esi, 2
cmp word [esi], di
jne 0x405f60
push 0x5c
pop ecx
jmp 0x405f74
cmp esi, eax
jbe 0x405f7b
sub esi, 2
cmp word [esi], cx
jne 0x405f6d
cmp esi, eax
jne 0x405f8f
push str.getDirPathOfFile_invalid_input_n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
xor eax, eax
jmp 0x406017
sub esi, eax
sar esi, 1
push ebx
lea eax, [esi*2 + 2]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x405fb4
call fcn.004069c4
mov ebx, eax
test ebx, ebx
je 0x406010
lea eax, [esi + 1]
mov ecx, 0x80070057
test eax, eax
je 0x405fc7
cmp eax, 0x7fffffff
jbe 0x405fc9
mov edi, ecx
test edi, edi
js 0x405ff0
cmp esi, 0x7ffffffe
jbe 0x405fde
xor eax, eax
mov edi, ecx
mov word [ebx], ax
jmp 0x405ffd
push esi
push dword [ebp - 4]
mov edx, eax
push ecx
mov ecx, ebx
call fcn.004056a2
mov edi, eax
jmp 0x405ff9
test eax, eax
je 0x405ff9
xor eax, eax
mov word [ebx], ax
test edi, edi
jns 0x406014
mov edx, edi
mov ecx, str.StringCchCopyN
call fcn.00405961
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor eax, eax
jmp 0x406016
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40601d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov edx, ecx
push esi
push edi
mov ecx, eax
mov dword [ebp - 0x26c], eax
call fcn.0040581b
mov esi, eax
test esi, esi
jne 0x40604e
or eax, 0xffffffff
jmp 0x4060c9
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp edi, 0xffffffff
jne 0x406079
call dword [sym.imp.KERNEL32.DLL_GetLastError]
sub eax, 2
neg eax
sbb eax, eax
jmp 0x4060c9
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x18], str.Found_suspicious_file__
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x26c]
push 5
pop edx
mov dword [ebp - 0x10], str.__in_directory__
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x4a426c
call fcn.004056e7
mov esi, eax
test esi, esi
je 0x4060bf
push esi
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046a6d5
mov esp, ebp
pop ebp
ret
Function at 0x4060d9
Capabilities:
Create directory
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push 0x20c
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x406103
call fcn.004069c4
mov esi, eax
test esi, esi
je 0x40620b
push edi
push esi
mov edi, 0x106
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x406119
cmp eax, edi
jbe 0x406134
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
mov ecx, str.GetTempPath
call fcn.00405961
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor esi, esi
test esi, esi
je 0x40620a
xor edi, edi
jmp 0x406148
push 0x14
call dword [sym.imp.KERNEL32.DLL_Sleep]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x406140
push 0x12
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x406177
call fcn.004069c4
mov edi, eax
test edi, edi
je 0x406203
push edi
push 4
pop edx
lea ecx, [ebp - 4]
call fcn.004058ec
pop ecx
test eax, eax
je 0x40619d
mov edx, eax
mov ecx, str.binaryToHexStringW
call fcn.00405961
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor edi, edi
test edi, edi
je 0x406203
mov edx, edi
mov ecx, esi
call fcn.0040581b
mov ebx, eax
test ebx, ebx
je 0x406203
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push str.CreateDirectory..._n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x406203
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [ebp - 8]
cmp eax, 0xb7
je 0x406148
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
mov ecx, str.CreateDirectory
call fcn.00405961
jmp 0x406148
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406213
Capabilities:
Accept command line arguments
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x40
mov dword [ebp - 0x18], eax
xor edi, edi
lea eax, [ebp - 0x70]
mov dword [ebp - 0x20], edx
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x14], ebx
call fcn.0046e5c0
add esp, 0xc
mov dword [ebp - 0x74], 0x44
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
xorps xmm0, xmm0
mov dword [ebp - 0x10], str.CreateProcessW:
push 3
pop edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
movdqu xmmword [ebp - 0x30], xmm0
mov dword [ebp - 8], 0x4a3d60
call fcn.004056e7
mov esi, eax
test esi, esi
je 0x40628e
push esi
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
call fcn.00405ec9
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4062e3
push 3
pop edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], str.___initialPath
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x4a4074
call fcn.004056e7
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push 2
pop edx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], esi
call fcn.004056e7
push dword [ebp - 0x1c]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push esi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x4062eb
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x20]
push edi
push edi
push edi
push edi
push edi
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 1
je 0x406317
call esi
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
cmp dword [ebp - 0x14], 0
jne 0x406334
mov edx, edi
mov ecx, str.CreateProcess
call fcn.00405961
xor al, al
jmp 0x40638e
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call edi
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x406362
call esi
mov edx, eax
mov ecx, 0x4a431c
call fcn.00405961
mov ebx, dword [ebp - 0x18]
jmp 0x406381
mov ebx, dword [ebp - 0x18]
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x406387
call esi
mov edx, eax
mov ecx, 0x4a4344
call fcn.00405961
mov dword [ebx], 0x103
push dword [ebp - 0x30]
call edi
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046a6d5
mov esp, ebp
pop ebp
ret