joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40743a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444248]
jne 0x407444
repz ret
jmp fcn.0040cbc8

Function at 0x40d6bf
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.00409bd5
and dword [ebp - 4], 0
cmp dword [0x447918], 0
mov ebx, eax
jne 0x40d770
push 0x4024dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d821
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024d0
push edi
call esi
test eax, eax
je 0x40d821
push eax
call fcn.00409b63
mov dword [esp], 0x4024c0
push edi
mov dword [0x447918], eax
call esi
push eax
call fcn.00409b63
mov dword [esp], 0x4024ac
push edi
mov dword [0x44791c], eax
call esi
push eax
call fcn.00409b63
mov dword [esp], 0x402490
push edi
mov dword [0x447920], eax
call esi
push eax
call fcn.00409b63
pop ecx
mov dword [0x447928], eax
test eax, eax
je 0x40d770
push 0x402478
push edi
call esi
push eax
call fcn.00409b63
pop ecx
mov dword [0x447924], eax
mov eax, dword [0x447924]
cmp eax, ebx
je 0x40d7c8
cmp dword [0x447928], ebx
je 0x40d7c8
push eax
call fcn.00409bde
push dword [0x447928]
mov esi, eax
call fcn.00409bde
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d7c8
test edi, edi
je 0x40d7c8
call esi
test eax, eax
je 0x40d7bf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d7bf
test byte [ebp - 0xc], 1
jne 0x40d7c8
or dword [ebp + 0x10], 0x200000
jmp 0x40d801
mov eax, dword [0x44791c]
cmp eax, ebx
je 0x40d801
push eax
call fcn.00409bde
pop ecx
test eax, eax
je 0x40d801
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d801
mov eax, dword [0x447920]
cmp eax, ebx
je 0x40d801
push eax
call fcn.00409bde
pop ecx
test eax, eax
je 0x40d801
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447918]
call fcn.00409bde
pop ecx
test eax, eax
je 0x40d821
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d823
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002aba0
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push 0x11
mov dword [0x100800c0], eax
call dword [sym.imp.MSDART.DLL_FXMemAttach]
push 0x100800ac
push dword [0x100800b0]
push 0x1000b290
push 0x1000b3b8
call dword [sym.imp.MSDATL3.dll_long_int___cdecl_LoadResourceDLL_unsigned_short_int___unsigned_short_int___void___void___]
mov esi, eax
add esp, 0x14
test esi, esi
jns 0x1002ac20
test byte [0x10080290], 2
je 0x1002adbe
cmp dword [0x10084300], 0
je 0x1002adbe
mov eax, dword [0x10084300]
push 0x49
push esi
push 0x1000b3d4
push eax
mov eax, dword [0x100840e0]
push 0x16fc00
push eax
call fcn.1002c410
add esp, 0x18
jmp 0x1002adbe
push 0x10080098
push 1
call dword [sym.imp.ole32.dll_CoGetMalloc]
mov esi, eax
test esi, esi
jns 0x1002ac47
test byte [0x10080290], 2
je 0x1002adbe
push 0x52
jmp 0x1002adaf
cmp dword [0x100800a8], 0
jne 0x1002ac8d
push 0
push 0x100800a8
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSectionAndSpinCount]
add esp, 8
test eax, eax
jne 0x1002ac8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1002ac79
movzx esi, si
or esi, 0x80070000
test byte [0x10080290], 2
je 0x1002adbe
push 0x5e
jmp 0x1002adaf
cmp dword [0x10080090], 0
jne 0x1002ad8f
push 0x48
push 0x1100000
push dword [0x100800c0]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
mov ecx, eax
add esp, 0xc
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x1002ad13
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x3c], 1
mov eax, dword [0x10003010]
mov dword [ecx + 8], eax
mov eax, dword [0x10003014]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10003018]
mov dword [ecx + 0x10], eax
mov eax, dword [0x1000301c]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x30], 0
jmp 0x1002ad15
xor ecx, ecx
mov dword [0x10080090], ecx
test ecx, ecx
jne 0x1002ad4e
test byte [0x10080290], 2
mov esi, 0x8007000e
je 0x1002adc2
push 0x69
mov edx, 0x1000b3d4
mov ecx, esi
call fcn.10017ab0
add esp, 4
call fcn.1002c482
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.100287c0
mov esi, eax
test esi, esi
jns 0x1002ad8f
test byte [0x10080290], 2
je 0x1002ad73
push 0x6e
mov edx, 0x1000b3d4
mov ecx, esi
call fcn.10017ab0
add esp, 4
mov ecx, dword [0x10080090]
test ecx, ecx
je 0x1002ad83
push ecx
call fcn.1002add0
mov dword [0x10080090], 0
jmp 0x1002adbe
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call fcn.100229b0
mov esi, eax
test esi, esi
jns 0x1002adc7
test byte [0x10080290], 2
je 0x1002adbe
push 0x7d
mov edx, 0x1000b3d4
mov ecx, esi
call fcn.10017ab0
add esp, 4
test esi, esi
jns 0x1002adc7
call fcn.1002ae30
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
lea esi, [ebp - 0xc]
push 0x400000
push esi
call fcn.004029b3
add esp, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401092
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x4010af
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], 0
xor eax, eax
mov dword [esi + 4], str.8A69D345_D564_463c_AFF1_A69D9E530F96
mov ecx, esi
mov dword [esi + 0x18], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x13], eax
mov dword [esi + 0xf], eax
push edi
call fcn.004010e4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, esi
push eax
call fcn.0040114c
pop esi
pop edi
pop ebp
ret 4

Function at 0x4010e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push 0xa
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401141
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x401141
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x401141
mov eax, edi
and eax, 1
jne 0x401141
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401141
and edi, 0xfffffffe
cmp word [eax + edi - 2], 0
jne 0x401141
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x40114c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [esi + 8], eax
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
mov dword [esi], eax
je 0x40126e
cmp dword [esi + 0xc], 2
jl 0x40122c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, 2
jmp 0x40118f
mov eax, dword [esi]
inc ebx
push str.__system_level
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x4011f9
mov eax, dword [esi]
push str.__chrome_beta
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x4011ff
mov eax, dword [esi]
push str.__chrome_dev
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x401208
mov eax, dword [esi]
push str.__chrome_sxs
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x401211
mov eax, dword [esi]
push str.__cleanup
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
je 0x40121a
mov eax, dword [esi]
push str.__chrome_frame
push dword [eax + ebx*4 - 4]
call edi
test eax, eax
jne 0x401221
mov byte [esi + 0x16], 1
jmp 0x401221
mov byte [esi + 0x14], 1
jmp 0x401221
mov dword [esi + 4], str.8237E44A_0054_442C_B6B6_EA0509993955
jmp 0x401221
mov dword [esi + 4], str.401C381F_E0DE_4B85_8BD8_3F3F14FBDA57
jmp 0x401221
mov dword [esi + 4], str.4ea16ac7_fd5a_47c3_875b_dbf4a2008c20
jmp 0x401221
mov dword [esi + 0x10], 1
mov eax, dword [ebp - 0x10]
cmp ebx, dword [eax]
jl 0x40118c
cmp byte [esi + 0x14], 0
jne 0x401260
xor eax, eax
lea edi, [ebp - 0x18]
mov word [edi + 4], ax
mov word [edi], ax
push 2
push edi
push str.GoogleUpdateIsMachine
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx ecx, word [edi]
cmp eax, 1
sete al
cmp ecx, 0x31
sete cl
and cl, al
mov byte [esi + 0x14], cl
mov ecx, esi
call fcn.0040127a
mov byte [esi + 0x15], al
mov al, 1
jmp 0x401270
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x40135c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x40500c]
test eax, eax
jne 0x4013d2
lea esi, [esp + 0x10]
push 0x208
push 0
push esi
call fcn.00401020
add esp, 0xc
xor edi, edi
mov ebx, 0x104
mov word [esp + 0x10], 0
push ebx
push esi
push dword [edi*4 + 0x404364]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, ebx
jae 0x4013bc
push 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x40500c], eax
jmp 0x4013c1
mov eax, dword [0x40500c]
test eax, eax
jne 0x4013d2
inc edi
cmp edi, 3
jb 0x40138f
mov eax, dword [0x405004]
jmp 0x401409
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
call esi
mov dword [section..data], eax
push str.FDIDestroy
push dword [0x40500c]
call esi
mov dword [0x405008], eax
push str.FDICopy
push dword [0x40500c]
call esi
mov dword [0x405004], eax
xor ebx, ebx
cmp dword [section..data], 0
je 0x401526
mov ecx, dword [0x405008]
test ecx, ecx
je 0x401526
test eax, eax
je 0x401526
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebx + eax*2]
test eax, eax
jle 0x40144e
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40144e
add esi, 0xfffffffe
cmp esi, ebx
ja 0x40143f
cmp esi, ebx
je 0x401524
add esi, 2
xor edx, edx
dec edx
mov ecx, esi
call fcn.00401530
sub esi, ebx
mov edi, eax
mov ecx, ebx
sar esi, 1
mov dword [esp + 0xc], edi
mov edx, esi
call fcn.00401530
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov esi, eax
dec edx
mov dword [esp + 8], esi
call fcn.00401530
xor ebx, ebx
test esi, esi
mov dword [esp + 4], eax
je 0x401507
test edi, edi
je 0x401507
test eax, eax
je 0x401507
xor ebx, ebx
lea eax, [esp + 0x10]
mov dword [esp], edi
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
push eax
push 0xffffffffffffffff
push 0x4015aa
push 0x4015c0
push 0x4015d3
push 0x40160e
push 0x401649
push 0x40171e
push 0x401738
call dword [section..data]
add esp, 0x24
mov edi, eax
test edi, edi
je 0x401507
push dword [ebp + 0xc]
push ebx
push 0x401752
push ebx
push esi
push dword [esp + 0x14]
push edi
call dword [0x405004]
add esp, 0x1c
test eax, eax
setne bl
push edi
call dword [0x405008]
add esp, 4
lea ecx, [esp + 4]
call fcn.004017fa
lea ecx, [esp + 8]
call fcn.004017fa
lea ecx, [esp + 0xc]
call fcn.004017fa
jmp 0x401526
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401b0e
Capabilities:
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
lea edx, [esp + 0x10]
xorps xmm0, xmm0
xor eax, eax
lea ecx, [esp + 0x28]
mov dword [ecx + 8], eax
mov dword [ecx + 4], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x3c], eax
mov dword [ecx], 0x44
movaps xmmword [edx], xmm0
push edx
push ecx
push eax
push eax
push 0x8000000
push eax
push eax
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401bb0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], 0
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401bce
mov edi, 0x6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401bf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp edi, 3
je 0x401bf5
cmp edi, 2
jne 0x401c07
mov ecx, dword [ebp + 0x14]
jmp 0x401bf8
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401ba3
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esi], edi
jmp 0x401bfa
mov ecx, dword [ebp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov dword [esi], eax
mov dword [esi + 4], edi
jmp 0x401bfd
Function at 0x402320
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x210
mov eax, dword [ebp + 8]
xor ebx, ebx
lea esi, [ebp - 0x218]
mov dword [ebp - 0xc], 0
mov word [esi + 0x208], bx
mov word [esi], bx
push 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x402376
lea eax, [ebp - 0xc]
push ebx
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x402376
mov bl, byte [ebp - 0xc]
and bl, 8
shr bl, 3
mov eax, ebx
add esp, 0x210
pop esi
pop ebx
pop ebp
ret

Function at 0x4024dc
Capabilities:
Create directory
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0x6c
push esi
push 0x104
push edi
call fcn.00402c0c
add esp, 0xc
test al, al
je 0x402616
push 0x404632
push 0x104
push edi
call fcn.00402c46
add esp, 0xc
test al, al
je 0x402616
mov eax, edi
mov edi, 0x104
push edi
push eax
call fcn.00402be8
add esp, 8
mov ecx, eax
xor eax, eax
sub edi, ecx
cmp edi, 0xb
jb 0x402618
lea edx, [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov dword [edx + 4], eax
mov dword [edx], eax
mov dword [edx - 4], 0xc
push edx
push esi
call fcn.0040241c
add esp, 8
test al, al
je 0x402604
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
mov esi, 0xfffffff6
mov dword [eax + 4], 0
mov dword [eax], 0x6d
mov eax, dword [ebp - 0x10]
lea ecx, [ecx + eax*2]
add eax, 5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov ebx, 4
push ebx
lea edi, [ebp - 0x2c]
push edi
call sub.ADVAPI32.dll_SystemFunction036
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push ebx
push edi
call fcn.00402b8c
add esp, 0x10
cmp dword [ebp - 0x18], 0x103
ja 0x4025d0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov word [ecx + eax*2 + 0xa], 0
push str..tmp
push 0x104
mov eax, dword [ebp + 0xc]
mov ebx, eax
push ebx
call fcn.00402c46
add esp, 0xc
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
test eax, eax
cmovne eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402620
inc esi
jne 0x40259b
jmp 0x40263f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov dword [ecx], 0x75
xor eax, eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x404554
push 0x104
push dword [ebp + 0xc]
call fcn.00402c46
add esp, 0xc
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40264d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
sete al
jmp 0x402618
Function at 0x402658
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov edi, dword [ebp + 0xc]
lea esi, [ebp - 0x218]
xor eax, eax
mov word [esi + 0x208], ax
mov word [esi], ax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4026a0
mov bl, 1
push dword [ebp + 0x10]
push edi
push esi
call fcn.004024dc
add esp, 0xc
test al, al
jne 0x4026e8
push 0x104
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x4026e6
push eax
push esi
call fcn.00402e29
add esp, 8
xor ebx, ebx
cmp eax, esi
je 0x4026e8
mov word [eax], 0
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], ebx
mov dword [eax], ebx
push eax
push edi
push esi
call fcn.004024dc
add esp, 0xc
mov ebx, eax
jmp 0x4026e8
xor ebx, ebx
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4026f5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x254
mov ebx, dword [ebp + 8]
mov esi, 0x104
push esi
push ebx
call fcn.00402be8
add esp, 8
mov edi, eax
push 0x404558
push esi
push ebx
call fcn.00402c46
add esp, 0xc
test al, al
je 0x402802
mov dword [ebp - 0x10], edi
lea esi, [ebp - 0x260]
push 0x250
push 0
push esi
call fcn.00401020
add esp, 0xc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4027eb
mov eax, dword [ebp - 0x10]
lea esi, [eax + 1]
cmp word [ebp - 0x2c], 0
lea eax, [ebp - 0x234]
je 0x40276e
lea eax, [ebp - 0x2c]
movzx ecx, word [eax]
cmp ecx, 0x2e
jne 0x40278e
movzx ecx, word [eax + 2]
test cx, cx
je 0x4027ce
movzx ecx, cx
cmp ecx, 0x2e
jne 0x40278e
cmp word [eax + 4], 0
je 0x4027ce
cmp esi, 0x103
ja 0x4027a0
mov ecx, dword [ebp - 0x10]
mov word [ebx + ecx*2 + 2], 0
push eax
push 0x104
push ebx
call fcn.00402c46
add esp, 0xc
test al, al
je 0x4027ce
test byte [ebp - 0x260], 0x10
jne 0x4027c5
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4027ce
push ebx
call fcn.004026f5
add esp, 4
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40275e
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x10]
cmp eax, 0x103
ja 0x4027fb
mov word [ebx + eax*2], 0
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0x254
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40280d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x668
lea esi, [ebp - 0x674]
xor eax, eax
mov word [esi + 0x208], ax
mov word [esi], ax
push dword [ebp + 8]
push 0x104
push esi
call fcn.00402c0c
add esp, 0xc
test al, al
je 0x402954
push dword [ebp + 0xc]
push 0x104
push esi
call fcn.00402c46
add esp, 0xc
test al, al
je 0x402954
push 0x404562
push 0x104
push esi
call fcn.00402c46
add esp, 0xc
test al, al
je 0x402954
xor edi, edi
lea ebx, [ebp - 0x25c]
push 0x250
push edi
push ebx
call fcn.00401020
add esp, 0xc
push edi
push edi
push 1
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402954
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor eax, eax
lea ecx, [ebp - 0x468]
mov word [ecx + 0x208], ax
mov word [ecx], ax
test byte [ebp - 0x25c], 0x10
je 0x40293b
cmp word [ebp - 0x28], 0
lea ebx, [ebp - 0x230]
je 0x4028d8
lea ebx, [ebp - 0x28]
movzx eax, word [ebx]
cmp eax, 0x2e
jne 0x4028f8
movzx eax, word [ebx + 2]
test ax, ax
je 0x40293b
movzx eax, ax
cmp eax, 0x2e
jne 0x4028f8
cmp word [ebx + 4], 0
je 0x40293b
push dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x468]
push eax
call fcn.00402c0c
add esp, 0xc
test al, al
je 0x40293b
push ebx
push 0x104
lea eax, [ebp - 0x468]
push eax
call fcn.00402c46
add esp, 0xc
test al, al
je 0x40293b
lea eax, [ebp - 0x468]
push eax
call fcn.004026f5
add esp, 4
lea eax, [ebp - 0x25c]
push eax
push esi
call edi
test eax, eax
jne 0x4028bf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
add esp, 0x668
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40295f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20c
lea esi, [ebp - 0x214]
xor eax, eax
mov word [esi + 0x208], ax
mov word [esi], ax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4029a9
mov edi, 0xfffffff8
push dword [edi + 0x404574]
push esi
call fcn.0040280d
add esp, 8
add edi, 4
jne 0x402995
add esp, 0x20c
pop esi
pop edi
pop ebp
ret