joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010a0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x408450]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 1
push str.ServicesActive
push 0
mov byte [ebp - 0x21], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x40111d
push esi
push edi
xor edi, edi
mov edi, edi
cmp edi, 0x18
jae 0x401114
mov eax, dword [edi + 0x40801c]
push 4
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40110b
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401104
cmp dword [ebp - 0x1c], 4
jne 0x401104
mov byte [ebp - 0x21], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add edi, 4
cmp byte [ebp - 0x21], 0
je 0x4010d0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
xor ecx, ebp
pop ebx
call fcn.0040423b
mov esp, ebp
pop ebp
ret

Function at 0x401330
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x408450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, 0x10624dd3
mul ecx
push ebx
push esi
mov esi, edx
shr esi, 6
mov edx, esi
imul edx, edx, 0x3e8
sub ecx, edx
push edi
mov dword [ebp - 0x28], esi
je 0x401368
inc esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x23], 0
mov dword [ebp - 0x2c], 0
jmp 0x401380
cmp byte [ebp - 0x23], 0
jne 0x401439
cmp dword [ebp - 0x2c], esi
jae 0x401439
push 1
push str.ServicesActive
push 0
mov byte [ebp - 0x22], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x40140a
xor edi, edi
mov edi, edi
cmp edi, 0x18
jae 0x4013f4
mov eax, dword [edi + 0x40801c]
push 4
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4013eb
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4013e4
cmp dword [ebp - 0x1c], 4
jne 0x4013e4
mov byte [ebp - 0x22], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add edi, 4
cmp byte [ebp - 0x22], 0
je 0x4013b0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp byte [ebp - 0x22], 0
mov esi, dword [ebp - 0x28]
je 0x40140a
mov byte [ebp - 0x23], 1
jmp 0x40142c
mov edx, dword [ebp - 0x30]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401428
cmp eax, 0x102
setne byte [ebp - 0x21]
jmp 0x40142c
mov byte [ebp - 0x21], 1
inc dword [ebp - 0x2c]
cmp byte [ebp - 0x21], 0
je 0x401380
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040423b
mov esp, ebp
pop ebp
ret
Function at 0x401780
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x408450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
cmp byte [ebp - 0x10], 1
jne 0x401997
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x40849c], eax
sete al
test al, al
jne 0x401997
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_strstr]
push 0x4053cc
push esi
call ebx
add esp, 8
test eax, eax
je 0x40180a
mov ecx, dword [0x40849c]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401996
cmp eax, 0x102
jne 0x401996
lea edx, [ebp - 0x14]
push edx
call fcn.00401250
add esp, 4
mov dword [0x408498], eax
test eax, eax
je 0x401996
mov eax, dword [str.Acrobat_Viewer]
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x40196e
push 0x401130
push 0x1f4
push eax
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x40196e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x40849c], eax
test eax, eax
je 0x401965
push 0x408480
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4053cc
push esi
mov byte [0x4084a4], 0
call ebx
add esp, 8
neg eax
lea ecx, [ebp - 0x20]
push ecx
push 0
sbb eax, eax
inc eax
push eax
push 0x401450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4084a0], eax
test eax, eax
je 0x401944
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
call esi
test eax, eax
je 0x401904
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ebx, [ebx]
cmp eax, 0xffffffff
je 0x401901
lea eax, [ebp - 0x3c]
push eax
call edi
lea ecx, [ebp - 0x3c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
call esi
test eax, eax
jne 0x4018e0
mov edi, dword [ebp - 0x1c]
call fcn.00401170
mov eax, dword [0x4084a0]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40192d
mov ecx, dword [0x4084a0]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x4084a0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4084a0], 0
mov eax, dword [0x40849c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x408480
mov dword [0x40849c], 0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [0x408498]
test eax, eax
je 0x40197e
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp word [ebp - 0x14], 0
je 0x401996
mov ecx, dword [ebp - 0x18]
mov edx, dword [str.AdobeReaderSpeedLaunchCmdWnd]
push ecx
push edx
call dword [sym.imp.USER32.dll_UnregisterClassA]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040423b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4021b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404c80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x408450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
xor cl, cl
mov byte [ebp - 0x11], cl
test cl, cl
jne 0x402397
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebx + 4]
jae 0x402397
mov edx, dword [ebx]
mov esi, dword [ebx + 0x2c]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*4 + 4]
lea edi, [edx + ecx*4]
mov ecx, eax
shl ecx, 4
add ecx, eax
cmp byte [esi + ecx*4 + 0x1c], 0
lea esi, [esi + ecx*4]
mov dword [ebp - 0x18], esi
jne 0x40224a
cmp byte [ebx + 0x20], 0
mov dword [ebp - 4], 0
je 0x402271
mov edi, dword [edi]
cmp edi, 2
jl case.default.0x40227c
cmp edi, 5
jle 0x402254
cmp edi, 6
jne case.default.0x40227c
mov ecx, esi
call fcn.00401cf0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
inc dword [eax]
mov cl, byte [ebp - 0x11]
jmp 0x4021e5
mov byte [ebp - 0x11], 1
call fcn.00401fe0
mov eax, dword [ebp + 8]
inc dword [eax]
mov cl, byte [ebp - 0x11]
mov dword [ebp - 4], 0xffffffff
jmp 0x4021e5
mov eax, dword [edi]
mov byte [ebp - 0x11], 1
cmp eax, 6
ja case.default.0x40227c
jmp dword [eax*4 + 0x4023b0]
cmp dword [esi + 0x14], 0x10
jb 0x40228b
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp + 8]
inc dword [eax]
mov cl, byte [ebp - 0x11]
mov dword [ebp - 4], 0xffffffff
jmp 0x4021e5
mov edi, dword [edi + 8]
push esi
call fcn.00402140
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x11]
add esp, 4
inc dword [eax]
mov dword [ebp - 4], 0xffffffff
jmp 0x4021e5
lea edx, [esi + 0x24]
push 1
push edx
mov eax, esi
call fcn.00402030
add esp, 8
test al, al
je case.default.0x40227c
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
mov edx, dword [edi + 8]
push eax
mov eax, dword [ebx + 0x10]
push ecx
lea ecx, [eax + edx*8]
push ecx
call fcn.00401b10
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x11]
add esp, 0xc
inc dword [eax]
mov dword [ebp - 4], 0xffffffff
jmp 0x4021e5
lea edx, [esi + 0x34]
push 0
push edx
mov eax, esi
call fcn.00402030
add esp, 8
test al, al
je case.default.0x40227c
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
jmp 0x4022e4
call fcn.00401fe0
test al, al
je case.default.0x40227c
mov eax, dword [ebx + 0x24]
test eax, eax
je case.default.0x40227c
mov edx, dword [ebx + 0x28]
mov ecx, dword [esi + 0x20]
push edx
push eax
mov eax, dword [edi + 8]
shl eax, 4
add eax, dword [ebx + 0x18]
push eax
push ecx
call fcn.00401d60
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x11]
add esp, 0x10
inc dword [eax]
mov dword [ebp - 4], 0xffffffff
jmp 0x4021e5
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403a90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404de1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x408450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [esi + 0x24], edi
mov dword [ebp - 4], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x14], ecx
mov cl, byte [ebp + 0x28]
mov dword [esi + 8], edx
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], edi
test cl, cl
jne 0x403b63
mov dword [ebp + 0x28], edi
test eax, eax
je 0x403b30
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x403b1a
mov edi, eax
add ecx, 0x10
dec edx
jne 0x403b12
mov dword [ebp + 0x28], edi
mov eax, 0x406644
cmp edi, 0x100000
ja 0x403b33
lea eax, [ebp + 0x28]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.00404230
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x403b59
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x24], edi
push 0
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
xor ecx, ecx
mov eax, ebx
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00404230
add esp, 4
mov dword [ebp + 0x28], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x403baf
push 0x402640
push 0x402600
push ebx
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebx
call fcn.0040438d
jmp 0x403bb1
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [ebp - 4], 1
cmp eax, edi
je 0x403be0
test eax, eax
je 0x403bdd
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402640
push ecx
push 0x44
push eax
call fcn.0040432a
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.004036d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x403c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x408450]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
push ecx
push 0
mov byte [ebp - 0x13d], 0
mov dword [ebp - 0x144], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x403d00
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x13c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x403cc7
push ebx
lea ecx, [ebp - 0x13c]
push ecx
push 1
push esi
call edi
add esp, 0x10
mov byte [ebp - 0x13d], 1
lea edx, [ebp - 0x148]
push edx
mov dword [ebp - 0x148], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x403cf7
mov eax, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp byte [ebp - 0x13d], 0
jne 0x403d0b
push ebx
push 0
push 1
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040423b
mov esp, ebp
pop ebp
ret

Function at 0x403ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x408450]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x144]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403f6e
mov ecx, dword [ebp - 0x144]
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x13c]
push eax
push 0
push ecx
mov dword [ebp - 0x148], 0x136
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x403f41
mov byte [ebp - 0x13d], 0
jmp 0x403f58
push ebx
lea edx, [ebp - 0x13c]
push edx
push 0
push esi
mov byte [ebp - 0x13d], 1
call edi
add esp, 0x10
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x13d], 0
jne 0x403f79
push ebx
push 0
push 0
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040423b
mov esp, ebp
pop ebp
ret

Function at 0x40423b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408450]
jne 0x404245
repz ret
jmp fcn.004046da
Function at 0x401048
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax - 1]
cmp ecx, 0x100
mov dword [ebp - 0xc], eax
ja 0x4011bb
cmp byte [eax + edi - 1], 0x5c
je 0x40107f
mov byte [eax + edi], 0x5c
inc eax
mov dword [ebp - 0xc], eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea esi, [eax + edi]
lea eax, [ebp - 0x14c]
push eax
push edi
mov byte [esi], 0x2a
mov byte [esi + 1], 0
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x401119
test byte [ebp - 0x14c], 0x10
je 0x4010fc
push 0x404104
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4010fc
push 0x404108
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4010fc
mov eax, 0x104
sub eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.00401048
add esp, 0xc
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4010a1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x14c]
push eax
push edi
mov byte [esi], 0x2a
mov byte [esi + 1], 0
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4011a0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test byte [ebp - 0x14c], 0x10
jne 0x401183
mov eax, 0x104
sub eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x120]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
call ebx
test eax, eax
jne 0x401172
cmp dword [ebp + 8], eax
jne 0x401172
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
cmp dword [ebp + 0x10], 0
je 0x401183
test eax, eax
jne 0x401183
push 4
push eax
push edi
call dword [ebp + 0x10]
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401138
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
mov byte [esi - 1], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4011bb
cmp dword [ebp + 0x10], eax
je 0x4011bb
push 4
push eax
push edi
call dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40120d
Capabilities:
Create directory
Delete file
Get common file path
Set current directory

Disassembly:
push ecx
push ecx
cmp dword [esi], 2
push ebx
push ebp
mov ebp, dword [esp + 0x14]
jge 0x4012c9
mov ebx, 0x104
cmp dword [esi], 0
mov byte [edi], 0
mov byte [ebp], 0
jne 0x401254
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4012b5
cmp eax, 0x103
ja 0x4012b5
cmp byte [eax + edi - 1], 0x5c
je 0x401264
mov byte [eax + edi], 0x5c
mov byte [eax + edi + 1], 0
jmp 0x401264
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4012b5
cmp eax, ebx
ja 0x4012b5
push ebp
push 0
push str.LMIR
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40127c
push 2
pop eax
jmp 0x4012b8
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401277
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4012c5
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebp
call fcn.004011c0
pop ecx
push 3
jmp 0x401279
xor eax, eax
inc eax
inc dword [esi]
cmp dword [esi], 2
jl 0x401223
jmp 0x4012cd
xor eax, eax
jmp 0x4012cd
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4015dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
cmp byte [esi], bl
push edi
setne al
push ebx
push 0x80
mov word [ebp - 4], 0x20
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0x40000000
push str.params.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40166d
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jbe 0x401666
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push edi
call esi
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402694
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00402cc0
cmp dword [ebp + 8], 0x1c
push ebx
push edi
lea edi, [esi + 0x10]
jb 0x40277b
cmp dword [esi], 0x80000001
jne 0x40277b
and dword [ebp - 4], 0
cmp dword [esi + 4], 0
jbe 0x40276f
mov eax, dword [edi]
mov edx, dword [ebp + 8]
mov ecx, eax
jmp 0x4026da
cmp byte [ecx + esi], 0
je 0x4026e1
inc ecx
cmp edx, ecx
mov dword [ebp - 8], ecx
ja 0x4026d3
mov ebx, dword [edi + 4]
add ebx, dword [edi + 8]
cmp edx, ebx
jb 0x40277b
cmp edx, ecx
je 0x40277b
add eax, esi
push eax
lea eax, [ebp - 0x1008]
push eax
mov byte [ebp - 0x1008], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40277b
push 0
lea eax, [ebp - 8]
push eax
push dword [edi + 8]
mov eax, dword [edi + 4]
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402774
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 8]
jne 0x402774
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0xc
cmp eax, dword [esi + 4]
jb 0x4026ca
xor eax, eax
inc eax
jmp 0x402785
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x402aa8
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 0x402ace
cmp al, 0x22
je 0x402ade
inc esi
mov al, byte [esi]
test al, al
jne 0x402abd
cmp al, 0x22
jne 0x402adf
jmp 0x402ade
cmp al, 0x20
jle 0x402adf
inc esi
cmp byte [esi], 0x20
jg 0x402ad2
jmp 0x402adf
cmp al, 0x20
jg 0x402ae5
inc esi
mov al, byte [esi]
test al, al
jne 0x402ada
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402b53
push 0x405004
push section..data
call fcn.00402b39
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x402b15
movzx eax, word [ebp - 0x14]
jmp 0x402b18
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00402b6b
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402ba1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x405010]
jne 0x402bab
repz ret
jmp fcn.00402bb0

Function at 0x710c76
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x7109ec
and edi, edi
and edi, edx
call fcn.00710cb0
dec edx
or edi, edi
xor dword [ebx], eax
or edi, edi
mov edi, 0xdb8b2f9d
inc ebx
sub edx, edx
and edx, edx
and edi, edi
cmp ebx, ecx
jne fcn.00710c76
add edx, 0x72cb4122
sub edx, 0x5cffdad0
ret
Function at 0x422e30
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
shr eax, 0xf
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
imul ecx, dword [ebp + 8], 0x85ebca77
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
shr edx, 0xd
xor edx, dword [ebp + 8]
mov dword [ebp + 8], edx
imul eax, dword [ebp + 8], 0xc2b2ae3d
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
shr ecx, 0x10
xor ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 8]
pop ebp
ret