joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cd885
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004cd801
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4cd9fd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4cd9fd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4cd9ac
jg 0x4cd8de
test eax, eax
je 0x4cd9a2
push 1
push 0x1000
call fcn.004c065d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4cd904
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4cd999
push 0x8000
push ebx
call fcn.004bbaec
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4cd930
jg 0x4cd92b
cmp ecx, 0x1000
jb 0x4cd930
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004c00e6
add esp, 0x10
cmp eax, 0xffffffff
je 0x4cd975
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4cd92b
jl 0x4cd95c
test ecx, ecx
jne 0x4cd91d
push dword [ebp - 0xc]
push ebx
call fcn.004bbaec
push esi
call fcn.004be31a
add esp, 0xc
xor edi, edi
jmp 0x4cda0e
cmp byte [edi + 0x24], 0
je 0x4cd98c
cmp dword [edi + 0x20], 5
jne 0x4cd98c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4cd997
mov edi, dword [edi + 0x18]
jmp 0x4cd999
xor edi, edi
push esi
call fcn.004be31a
pop ecx
jmp 0x4cda0e
test ecx, ecx
jg 0x4cd96e
jl 0x4cd9ac
test eax, eax
jae 0x4cd96e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c8251
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4cd9cf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4cd96e
jmp 0x4cda06
push ebx
call fcn.004b062d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4cd96e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4cda0e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4cda0b
mov edi, dword [edi + 0x18]
jmp 0x4cda0e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004c8251
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b140
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x426138], 0
jne 0x41b1c1
cmp dword [0x426158], 0
jne 0x41b170
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x426158], eax
test eax, eax
jne 0x41b170
push str.GetEnvironmentStrings_failed
call fcn.0041a95c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x426158]
jmp 0x41b184
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004154e4
pop ecx
mov edi, eax
test eax, eax
jne 0x41b17c
lea edi, [ebp + 1]
push edi
call fcn.00414de8
pop ecx
mov ebx, eax
mov dword [0x42613c], ebx
test ebx, ebx
jne 0x41b1ae
xor eax, eax
jmp 0x41b284
push edi
mov edx, dword [0x426158]
push edx
push ebx
call fcn.00415394
add esp, 0xc
jmp 0x41b1e1
xor esi, esi
mov ebx, dword [0x426138]
jmp 0x41b1db
push eax
call fcn.004154e4
pop ecx
test eax, eax
jne 0x41b1d7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41b1cb
lea ebx, [esi + 4]
push 4
mov dword [0x426140], ebx
inc ebx
push ebx
call fcn.004148c0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41b204
xor eax, eax
jmp 0x41b284
cmp dword [0x426138], 0
jne 0x41b235
xor esi, esi
mov ebx, dword [0x42613c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41b226
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004154e4
pop ecx
mov edi, eax
test eax, eax
jne 0x41b21c
jmp 0x41b266
xor esi, esi
mov ebx, dword [0x426138]
mov eax, dword [esp]
mov edi, eax
jmp 0x41b260
push eax
call fcn.004154e4
pop ecx
test eax, eax
je 0x41b255
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41b259
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41b244
mov eax, dword [0x426138]
test eax, eax
je 0x41b276
push eax
call fcn.00414df8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x426138], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
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 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 0x1001a460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1001a46f
pop dword [ebp - 0x3c]
mov eax, 0x23ea13b4
add eax, 0xec1790bb
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xec64919c
sub dword [ebp - 0x4c], 0x9e124c51
mov dword [ebp - 0x48], 0xa97e9186
add dword [ebp - 0x48], 0x88b4babf
mov dword [ebp - 0x44], 0xd77a5a73
sub dword [ebp - 0x44], 0x8b2e1645
mov dword [ebp - 0x40], 0xadc8ad0a
add dword [ebp - 0x40], 0x523752f6
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xf08a93ca
add eax, 0x1f795c6a
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xd4582dae
sub dword [ebp - 0x4c], 0x5fe5c458
mov dword [ebp - 0x48], 0xb2c68565
sub dword [ebp - 0x48], 0x715a23f0
mov dword [ebp - 0x44], 0x4c814e91
add dword [ebp - 0x44], 0x16ee1ddb
mov dword [ebp - 0x40], 0xc869e4f9
add dword [ebp - 0x40], 0x37961b07
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xf541dfe2
add eax, 0x1ac2106a
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x487fc
push 0
call eax
mov ecx, 0x6893c1a5
sub ecx, 0x68936fc8
mov esi, eax
mov edx, 0x10054e00
add edx, dword [ebp - 0x3c]
mov ebx, 0x4cfa95da
sub dword [ebp - 0x30], 0xb2ca5897
mov edi, dword [edx]
xor dword [ebp - 0x30], 0x82372baa
xor edi, ebx
sub dword [ebp - 0x24], eax
mov dword [esi], edi
sub dword [ebp - 8], eax
add esi, 4
add edx, 0xc75d35c7
add edx, 0x38a2ca3d
loop 0x1001a585
add eax, 0x13a47
mov ebx, eax
add eax, 0x94ed03cb
add eax, 0x6b12fc3a
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x100366e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e348
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004e2d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1004e28c]
cmp eax, 0xffffffff
jne 0x10036716
xor ebx, ebx
jmp 0x1003671f
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003675f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003679e
test esi, esi
jne 0x100367a2
push 0x10035270
push 0x1004fad8
call fcn.1001a460
mov eax, dword [0x1004e28c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003675f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003678c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003678c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100367e4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x100367cd
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x100367a2
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10036730
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10036809
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x10036809
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1001a460
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100367f0
jmp 0x10036730
Function at 0x405e90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
movzx ebx, word [eax]
test bx, bx
je 0x405f88
mov esi, eax
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x405eb0
sub eax, esi
sar eax, 1
lea eax, [eax*8 + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x405f9b
add esi, 2
xor eax, eax
lea esi, [esi]
lea ecx, [eax + eax]
lea edx, [edi + ecx]
mov dword [ebp - 0x10], edx
lea edx, [edi + ecx + 2]
mov dword [ebp - 0x14], edx
lea edx, [ebx - 9]
cmp dx, 0x75
ja case.0x405efc.2
movzx edx, dx
jmp dword [edx*4 + 0x40d0f8]
mov ecx, dword [ebp - 0x10]
mov edx, 0x5c
add eax, 2
mov word [ecx], dx
mov ecx, dword [ebp - 0x14]
mov edx, 0x5c
mov word [ecx], dx
mov word [edi + eax*2], bx
inc eax
movzx ebx, word [esi]
add esi, 2
test bx, bx
jne 0x405ee0
lea eax, [edi + eax*2]
xor edx, edx
mov word [eax], dx
mov eax, edi
call sym._wchars_to_utf8_chars
mov dword [esp], edi
mov ebx, eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x10]
mov edx, 0x5c
add eax, 4
mov word [ebx], dx
lea ebx, [edi + ecx + 2]
mov edx, 0x5c
mov word [ebx], dx
mov ebx, 0x5c
mov edx, 0x5c
mov word [edi + ecx + 4], bx
mov word [edi + ecx + 6], dx
jmp 0x405f26
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
jne 0x405f34
test byte [section..data], 2
jne 0x405fb1
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40c000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x405fa4
Function at 0x46e388
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00447718
test al, al
je 0x46e3ea
cmp bl, 7
jne 0x46e3bf
push 2
lea eax, [esp + 4]
push eax
push 0x100c
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
movzx edi, byte [esp]
sub edi, 0x30
jmp 0x46e3c4
mov edi, ebx
and edi, 0x7f
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xe0]
test eax, eax
je 0x46e3ea
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xe0]
push edi
push 0
push 0x100f
push eax
call sub.user32.dll_SendMessageA
mov byte [esi + 0x268], bl
pop edx
pop edi
pop esi
pop ebx
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 0x401160
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x35c
mov eax, dword [0x411034]
xor eax, esp
mov dword [esp + 0x358], eax
push ebp
mov ebp, dword [esp + 0x364]
push esi
push edi
push ebp
lea eax, [esp + 0x25c]
push 0x104
push eax
call fcn.00403ed9
add esp, 0xc
push str..
lea ecx, [esp + 0x25c]
push 0x104
push ecx
call fcn.00403f41
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x4012ab
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ebx, [ebx]
lea ecx, [esp + 0x3c]
push 0x40ebf0
push ecx
call fcn.00404163
add esp, 8
test eax, eax
je 0x401288
lea edx, [esp + 0x3c]
push 0x40ebf4
push edx
call fcn.00404163
add esp, 8
test eax, eax
je 0x401288
push 0x103
lea eax, [esp + 0x155]
push 0
push eax
mov byte [esp + 0x15c], 0
call fcn.00404770
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
push ebp
lea edx, [esp + 0x158]
push str._s_s
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x150]
push eax
call edi
test al, 0x10
je 0x401267
lea ecx, [esp + 0x150]
push ecx
call fcn.00401160
add esp, 4
jmp 0x401288
push 0x80
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4011e0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00403998
add esp, 0x35c
ret
Function at 0x4038c0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x20
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403972
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40395e
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
push 0
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40394a
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x24
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffff31c
add esp, 0x24
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffff3e4
add esp, 0x24
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffff3e4
add esp, 0x24
ret

Function at 0x403998
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411034]
jne 0x4039a2
repz ret
jmp fcn.004045ce
Function at 0x409962
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.00405da3
and dword [ebp - 4], 0
cmp dword [0x4129a8], 0
mov ebx, eax
jne 0x409a13
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409ac4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40eaac
push edi
call esi
test eax, eax
je 0x409ac4
push eax
call fcn.00405d31
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4129a8], eax
call esi
push eax
call fcn.00405d31
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4129ac], eax
call esi
push eax
call fcn.00405d31
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4129b0], eax
call esi
push eax
call fcn.00405d31
pop ecx
mov dword [0x4129b8], eax
test eax, eax
je 0x409a13
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405d31
pop ecx
mov dword [0x4129b4], eax
mov eax, dword [0x4129b4]
cmp eax, ebx
je 0x409a6b
cmp dword [0x4129b8], ebx
je 0x409a6b
push eax
call fcn.00405dac
push dword [0x4129b8]
mov esi, eax
call fcn.00405dac
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409a6b
test edi, edi
je 0x409a6b
call esi
test eax, eax
je 0x409a62
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409a62
test byte [ebp - 0xc], 1
jne 0x409a6b
or dword [ebp + 0x10], 0x200000
jmp 0x409aa4
mov eax, dword [0x4129ac]
cmp eax, ebx
je 0x409aa4
push eax
call fcn.00405dac
pop ecx
test eax, eax
je 0x409aa4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409aa4
mov eax, dword [0x4129b0]
cmp eax, ebx
je 0x409aa4
push eax
call fcn.00405dac
pop ecx
test eax, eax
je 0x409aa4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4129a8]
call fcn.00405dac
pop ecx
test eax, eax
je 0x409ac4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409ac6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x444a39
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x494100]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x444a84
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00444ffa
test al, al
jne 0x444a7e
sub edx, 2
cmp edx, edi
jne 0x444a64
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x444aa6
lea eax, [edi + 2]
cmp edx, eax
je 0x444aa6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00444632
add esp, 0x10
jmp 0x444ba0
push esi
lea ecx, [ebp - 0x255]
call fcn.00444ffa
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x444ae9
push dword [ebp - 0x25c]
jmp 0x444a96
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x444b26
cmp word [ebp - 0x226], 0
je 0x444b47
cmp word [ebp - 0x226], ax
jne 0x444b26
cmp word [ebp - 0x224], 0
je 0x444b47
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00444632
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x444b93
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x444b00
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x444b7b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x444ba0
push 0x443f18
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004036ac
add esp, 0x10
jmp 0x444b70
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040222a
leave
ret
Function at 0x4579e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4961c8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x457a29
cmp byte [ebx], 0xa
jne 0x457a29
or byte [eax + edi + 0x28], 4
jmp 0x457a2e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x457b2c
mov al, byte [edx]
cmp al, 0x1a
je 0x457b0e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x457a5d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x457a82
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x457a8c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x457a3f
jmp 0x457b2c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x457b09
cmp dword [ebp - 0xc], 0
je 0x457b09
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4961c8]
test byte [eax + edi + 0x28], 0x48
je 0x457ae3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x457ace
mov byte [esi], dl
jmp 0x457adf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4961c8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x457b2c
cmp byte [ebp - 1], 0xa
jne 0x457af2
cmp esi, ebx
jne 0x457af2
mov byte [esi], 0xa
jmp 0x457b2b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040150a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x457b2c
mov byte [esi], 0xd
jmp 0x457b2b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4961c8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x457b28
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x457b2c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret