joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406bdc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x406be4
push ecx
xor eax, eax
push ebp
push 0x406ce4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00405270
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x406cf4
call fcn.00403da0
lea edx, [ebp - 0x18]
mov eax, 0x406d1c
call fcn.0040593c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.00403d14
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00405a94
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.004038f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00405038
test al, al
je 0x406c67
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, 0x406d28
call fcn.00403da0
mov eax, dword [ebp - 0x1c]
call fcn.00404ecc
push 0x32
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004041b8
mov eax, dword [ebp - 0x20]
call fcn.00403d24
push eax
call sub.kernel32.dll_DeleteFileW
call fcn.00406aac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ceb
lea eax, [ebp - 0x24]
call fcn.00403658
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403b90
lea eax, [ebp - 0x18]
call fcn.00403658
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403b90
lea eax, [ebp - 0xc]
call fcn.00403658
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b90
ret

Function at 0x407310
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x407318
push ecx
xor eax, eax
push ebp
push 0x407442
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00405270
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x407454
call fcn.00403da0
lea eax, [ebp - 0x10]
mov edx, dword [0x40a68c]
call fcn.00403d14
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x407474
call fcn.0040593c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.00403d14
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00405a94
mov edx, dword [ebp - 0x14]
pop eax
call fcn.00403d40
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.004038f0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00405038
test al, al
je 0x4073f0
push 0
push 0x407480
push dword [ebp - 4]
push 0x4074a0
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.00402b04
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.00403d14
push dword [ebp - 0x28]
push 0x4074c0
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00403e08
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00404e80
mov eax, dword [ebp - 0x20]
call fcn.00403a4c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407449
lea eax, [ebp - 0x2c]
call fcn.00403658
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00403b90
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040367c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403b90
lea eax, [ebp - 0xc]
call fcn.00403658
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b90
ret
Function at 0x407808
Capabilities:
Print debug messages

Disassembly:
push ebx
push ecx
mov eax, 0x407974
call fcn.00405cc8
test al, al
je 0x407846
push 0
push 0
lea eax, [esp + 8]
push eax
mov ecx, fcn.004067b4
xor edx, edx
xor eax, eax
call fcn.00403614
push eax
call sub.kernel32.dll_CloseHandle
push 0x1f4
call sub.kernel32.dll_Sleep
push 0
call sub.kernel32.dll_ExitProcess_1
mov eax, 0x40798c
call fcn.00405cc8
test al, al
je 0x40785b
mov byte [0x40a670], 0
call fcn.004074c4
mov eax, 0x4079a0
call fcn.00405cc8
test al, al
je 0x40789a
push 0
push 0
lea eax, [esp + 8]
push eax
mov ecx, 0x406ebc
xor edx, edx
xor eax, eax
call fcn.00403614
push eax
call sub.kernel32.dll_CloseHandle
push 0x4079ac
call sub.kernel32.dll_OutputDebugStringA
jmp 0x407955
mov eax, 0x4079c8
call fcn.00405cc8
test al, al
je 0x4078c5
push 0
push 0
lea eax, [esp + 8]
push eax
mov ecx, fcn.00407038
xor edx, edx
xor eax, eax
call fcn.00403614
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x4079dc
call fcn.00405cc8
test al, al
jne 0x4078d8
call fcn.00406d48
mov eax, 0x4079ec
call fcn.00405cc8
test al, al
jne 0x4078eb
call fcn.00406bdc
mov edx, 1
xor eax, eax
call fcn.004061ec
mov ebx, eax
mov edx, 2
xor eax, eax
call fcn.004061ec
or ebx, eax
mov edx, 3
xor eax, eax
call fcn.004061ec
or ebx, eax
mov edx, 4
xor eax, eax
call fcn.004061ec
or ebx, eax
mov eax, ebx
cmp eax, 1
jne 0x40793b
push 0x4079f4
call sub.kernel32.dll_OutputDebugStringA
call fcn.00407794
jmp 0x407955
test eax, eax
jne 0x40794b
push 0x407a04
call sub.kernel32.dll_OutputDebugStringA
jmp 0x407955
push 0x407a18
call sub.kernel32.dll_OutputDebugStringA
mov eax, 0x407a34
call fcn.00405cc8
test al, al
je 0x407968
call fcn.00407310
pop edx
pop ebx
ret
Function at 0x4089c4
Capabilities:
Get session integrity level

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4089cc
push ecx
push ebx
mov eax, 0x40897c
call fcn.004044d4
xor eax, eax
push ebp
push 0x408b4d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x408b5c
push 0xffffffffffffffff
push 0
call fcn.004045e0
mov ebx, eax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x408afd
test ebx, ebx
je 0x408afd
mov eax, 0x408b74
call fcn.00405cc8
test al, al
je 0x408a3e
push 0x40040
push 0x408b7c
mov eax, dword [0x4090bc]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
push 0
call sub.kernel32.dll_ExitProcess_1
push 0x408b88
mov ecx, 0x408b90
mov edx, 0x408ba4
mov eax, 0x80000001
call fcn.004054f0
call fcn.00404e48
call fcn.00405e0c
call fcn.0040755c
call fcn.00405744
lea edx, [ebp - 0x1c]
mov eax, 0x408c0c
call fcn.0040593c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.00403d14
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00405a94
mov edx, dword [ebp - 0x14]
mov eax, 0x40a68c
call fcn.004038f0
lea eax, [ebp - 0x20]
call fcn.00405270
mov edx, dword [ebp - 0x20]
mov eax, 0x40a684
mov ecx, 0x408c18
call fcn.00403da0
lea eax, [ebp - 0x24]
mov edx, dword [0x40a684]
call fcn.004038f0
mov edx, dword [ebp - 0x24]
mov eax, 0x408c3c
call fcn.00405814
mov eax, 0x408c50
call fcn.00405cc8
test al, al
je 0x408ae5
call fcn.00407808
jmp 0x408b10
push 0
push 0x407ecc
push 0
push 0x65
push dword [0x40a650]
call sub.user32.dll_DialogBoxParamA
jmp 0x408b10
push 0x40010
push 0
push 0x408c58
push 0
call sub.user32.dll_MessageBoxA_1
test ebx, ebx
je 0x408b1a
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b54
lea eax, [ebp - 0x24]
call fcn.00403658
lea eax, [ebp - 0x20]
call fcn.00403b78
lea eax, [ebp - 0x1c]
call fcn.00403658
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403b90
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401090
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4032ec], eax
mov eax, dword [ebp + 4]
mov dword [0x40313a], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bb
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40313a]
mov dword [ebp - 0x48], eax
mov eax, 0x4021c7
mov dword [ebp - 0x54], eax
mov ecx, 0x4031e6
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40313a]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403338], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403338]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401179
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116b
mov esp, ebp
ret
Function at 0x404f81
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc48
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
xor esi, esi
cmp dword [0x5a0138], 0x594
mov dword [ebp - 0xc], eax
jne 0x404fcd
push 0x404890
push 0x4048b0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x4048bc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x42c4e8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x42c4ec]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00404f7a
mov eax, dword [str.eZe]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42c4f4]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0x5a0138], 0xc
mov dword [ebp - 4], ecx
jne 0x405074
push esi
lea eax, [ebp - 0xc48]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x448]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add dword [ebp - 4], ecx
mov ecx, dword [0x5a0138]
cmp ecx, 0xfa9
jne 0x405092
mov dword [0x59f6d4], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x4050a0
mov dword [0x59f088], esi
lea ecx, [ebx + eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr eax, cl
mov dword [0x59f6d0], 0xf4ea3dee
add eax, dword [ebp - 0x20]
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x5a0138], 0x213
mov dword [ebp - 0x14], ecx
jne 0x4050dd
push 0x4048d0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ebx + eax]
shr eax, cl
add eax, dword [ebp - 0x2c]
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
add ebx, 0x61c88647
dec dword [ebp - 0x1c]
jne 0x405009
cmp dword [0x5a0138], 0xa6d
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
pop ebx
jne 0x40513c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
pop edi
pop esi
leave
ret 4
Function at 0x405556
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x5a0138], 0x400
push edi
jne 0x4055af
push esi
push esi
call fcn.00405846
push esi
push esi
call fcn.00405846
push esi
call fcn.00405a10
add esp, 0x14
push esi
push esi
push esi
call fcn.004065e8
pop ecx
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00404f55
fstp st(0)
push esi
call fcn.0040666d
pop ecx
push esi
call fcn.004063ff
pop ecx
mov eax, dword [0x42cb74]
mov dword [0x5a0138], eax
mov eax, dword [0x42cb4c]
mov dword [0x5a013c], eax
call fcn.0040521b
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x405616
cmp dword [esp + 0x18], 0x785074d5
jne 0x405624
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x4055d1
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x404da0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x404dec
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x405653
cmp dword [esp + 0x18], 0x785074d5
jne 0x40565c
inc edi
cmp edi, 0x11915
jl 0x405626
mov eax, dword [0x59f08c]
mov dword [0x59f6cc], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40cfdd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b6e0]
jne 0x40cfe7
repz ret
jmp fcn.004112d6
Function at 0x41102f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409108
and dword [ebp - 4], 0
cmp dword [0x42d494], 0
mov ebx, eax
jne 0x4110e0
push 0x4046fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411191
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4046f0
push edi
call esi
test eax, eax
je 0x411191
push eax
call fcn.00409096
mov dword [esp], 0x4046e0
push edi
mov dword [0x42d494], eax
call esi
push eax
call fcn.00409096
mov dword [esp], 0x4046cc
push edi
mov dword [0x42d498], eax
call esi
push eax
call fcn.00409096
mov dword [esp], 0x4046b0
push edi
mov dword [0x42d49c], eax
call esi
push eax
call fcn.00409096
pop ecx
mov dword [0x42d4a4], eax
test eax, eax
je 0x4110e0
push 0x404698
push edi
call esi
push eax
call fcn.00409096
pop ecx
mov dword [0x42d4a0], eax
mov eax, dword [0x42d4a0]
cmp eax, ebx
je 0x411138
cmp dword [0x42d4a4], ebx
je 0x411138
push eax
call fcn.00409111
push dword [0x42d4a4]
mov esi, eax
call fcn.00409111
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411138
test edi, edi
je 0x411138
call esi
test eax, eax
je 0x41112f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41112f
test byte [ebp - 0xc], 1
jne 0x411138
or dword [ebp + 0x10], 0x200000
jmp 0x411171
mov eax, dword [0x42d498]
cmp eax, ebx
je 0x411171
push eax
call fcn.00409111
pop ecx
test eax, eax
je 0x411171
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411171
mov eax, dword [0x42d49c]
cmp eax, ebx
je 0x411171
push eax
call fcn.00409111
pop ecx
test eax, eax
je 0x411171
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42d494]
call fcn.00409111
pop ecx
test eax, eax
je 0x411191
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411193
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001f5b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001f78
push 0
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
jmp 0x1001f7b
and eax, 0x10
ret 4

Function at 0x100264f
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
jne 0x1002660
call fcn.01002623
cmp eax, 2
jne 0x100269e
test byte [esp + 4], 4
jne 0x1002683
push 4
push 0x40
push 0
push 0x1001251
push 0x522
push 0
call fcn.010030b7
cmp eax, 6
jne 0x100269e
cmp word [0x100aa64], 0
jne 0x1002699
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100269e
call fcn.010030b7
ret 4

Function at 0x1002b44
Capabilities:
Create directory

Disassembly:
push edi
mov edi, dword [esp + 8]
mov cl, byte [edi]
test cl, cl
je 0x1002ba9
push ebx
push esi
lea esi, [edi + 1]
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x3a
jne 0x1002b67
cmp byte [edi + 2], 0x5c
jne 0x1002b67
lea esi, [edi + 3]
jmp 0x1002ba2
cmp cl, 0x5c
jne 0x1002ba2
cmp al, cl
jne 0x1002ba2
push 2
lea esi, [edi + 2]
pop ebx
jmp 0x1002ba2
cmp byte [esi], 0x5c
jne 0x1002b99
cmp byte [esi - 1], 0x3a
je 0x1002b99
test ebx, ebx
je 0x1002b8a
dec ebx
jmp 0x1002b99
and byte [esi], 0
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x1002b78
pop esi
pop ebx
pop edi
ret 4

Function at 0x1002ebf
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [0x100ac40]
xor ebp, ebp
cmp esi, ebp
push edi
mov edi, esi
je 0x1002f13
push ebx
mov ebx, dword [sym.imp.kernel32.dll_LocalFree]
cmp dword [0x100b884], ebp
jne 0x1002f02
cmp dword [0x100b490], ebp
jne 0x1002f02
push 0x80
push dword [esi]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.kernel32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call ebx
push edi
call ebx
cmp esi, ebp
mov edi, esi
jne 0x1002edd
pop ebx
cmp dword [0x100b880], ebp
je 0x1002f63
cmp dword [0x100b884], ebp
jne 0x1002f63
cmp dword [0x100b490], ebp
jne 0x1002f63
push 0x100ac44
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1002f4e
lea eax, [esp + 0xc]
push eax
call fcn.01005bf7
push 0x1001284
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.010030b7
cmp word [0x100aa64], 1
je 0x1002f7a
cmp dword [0x100b880], ebp
je 0x1002f7a
call fcn.010030b7
pop edi
pop esi
mov dword [0x100b880], ebp
pop ebp
add esp, 0x104
ret
Function at 0x1002f8a
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor edi, edi
xor ebp, ebp
push edi
lea eax, [esp + 0x14]
push 0x1001348
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esp + 0x118]
inc edi
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.01005bb8
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryA]
je 0x1003025
cmp edi, 0x190
jl 0x1002f9f
push esi
push 0
push 0x1001344
push dword [esp + 0x124]
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x1003016
xor ebp, ebp
push esi
inc ebp
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0
push esi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x104
ret 8
xor ebp, ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1002fee
xor eax, eax
inc eax
mov dword [0x100b880], eax
mov ebp, eax
jmp 0x1003016

Function at 0x10030b7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x10030c6
pop dword [ebp - 0x28]
mov eax, 0x91efc43e
sub eax, 0x90ef9378
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xe902f25
add dword [ebp - 0x38], 0x3fc21626
mov dword [ebp - 0x34], 0xdfe01519
add dword [ebp - 0x34], 0x5253372c
mov dword [ebp - 0x30], 0x5f2cfc4b
add dword [ebp - 0x30], 0xed1f47e3
mov dword [ebp - 0x2c], 0x5ee4d711
add dword [ebp - 0x2c], 0xa11b28ef
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x568b5f2
sub dword [ebp - 0x38], 0x90f64c9c
mov dword [ebp - 0x34], 0x232c512a
sub dword [ebp - 0x34], 0xe1bfefb5
mov dword [ebp - 0x30], 0xfb5d9baa
add dword [ebp - 0x30], 0x6811d0c2
mov dword [ebp - 0x2c], 0x91fb9c81
add dword [ebp - 0x2c], 0x6e04637f
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x3a7f776a
add eax, 0xc6809956
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x34d15
push 0
call eax
mov ecx, 0xf50137cc
add ecx, 0xaff05c1
xor ebx, ebx
add ebx, eax
mov esi, 0x10e6000
add esi, dword [ebp - 0x28]
mov edx, 0xd2a23ead
sub edx, 0x7310bd20
xor dword [ebp - 8], edi
mov edi, dword [esi]
sub edi, edx
mov dword [ebp - 0xc], 0x63d6160c
mov dword [ebx], edi
xor dword [ebp - 0x1c], edi
add ebx, 0xad996580
add ebx, 0x52669a84
add esi, 4
loop 0x10031df
add eax, 0xf1c465ba
sub eax, 0xf1c37cb3
mov ebx, eax
add eax, 0x738aa7aa
sub eax, 0x738aa7a5
mov ecx, 0xfa4fa693
add ecx, 0x6b0596d
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x1003e8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push ebx
call dword [sym.imp.kernel32.dll_lstrlenA]
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1003ecc
push ebp
push 0x10
push ebp
push ebp
push 0x4b5
push ebp
call fcn.010030b7
call fcn.01003573
mov dword [0x100aa5c], eax
xor eax, eax
jmp 0x1003f33
push edi
push ebx
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
push 0x10013c4
push esi
call fcn.01005bb8
push ebp
push 0x4000080
push 1
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x1003f26
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1003f26
test al, 0x10
je 0x1003f26
xor eax, eax
mov dword [0x100aa5c], ebp
inc eax
jmp 0x1003f32
call fcn.01003573
mov dword [0x100aa5c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x1004835
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebx, ebx
inc ebx
push esi
mov edi, ebx
call fcn.01005c50
test eax, eax
jne 0x100484f
mov eax, ebx
jmp 0x10048aa
cmp dword [0x100ac3c], 0
jne 0x100489c
test byte [0x100b898], bl
jne 0x100489c
push 6
push 0
push 0x1003869
push dword [0x100aa4c]
mov dword [0x100ae64], esi
push 0x7d3
push dword [0x100b4a4]
call fcn.010030b7
sub eax, 6
je 0x100489a
dec eax
je 0x10048b0
sub eax, 0x832
jne 0x100489c
mov dword [0x100ac3c], ebx
mov edi, ebx
push 0x80
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
xor edi, edi
jmp 0x10048a8

Function at 0x1005ae4
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x1005b0b
inc esi
mov al, byte [esi]
test al, al
je 0x1005b04
cmp al, 0x22
jne 0x1005af9
cmp byte [esi], 0x22
jne 0x1005b1c
jmp 0x1005b1b
cmp al, 0x20
jle 0x1005b1c
inc esi
cmp byte [esi], 0x20
jg 0x1005b0f
jmp 0x1005b1c
cmp al, 0x20
jg 0x1005b22
inc esi
mov al, byte [esi]
test al, al
jne 0x1005b17
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x1005b3c
movzx eax, word [ebp - 0x14]
jmp 0x1005b3f
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.kernel32.dll_ExitProcess]

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005c63
xor eax, eax
jmp 0x1005c6b
shr eax, 4
not eax
and eax, 1
ret 4