joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409620
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41a220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
mov esi, ecx
cmp eax, edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
je 0x409663
mov dword [esi], 0x41c3d8
mov dword [esi + 0x54], 0x41b448
mov dword [esp + 8], 1
mov eax, dword [esi]
mov dword [esi + 4], 0xffffffff
mov ecx, dword [eax + 4]
mov dword [ecx + esi], 0x41ba98
mov edx, dword [esi]
mov eax, dword [edx + 4]
lea ecx, [eax - 0xc]
mov dword [eax + esi - 4], ecx
mov edx, dword [esp + 0x20]
lea ecx, [esi + 8]
push edx
mov dword [esp + 0x1c], 1
call fcn.0040aef0
lea edx, [esp + 0x24]
mov dword [esp + 0x24], edi
mov al, byte [esp + 0x24]
lea ecx, [esi + 0x20]
push edx
push 1
mov byte [ecx], al
sub esp, 0x10
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x1c], edi
mov dword [ecx + 0x20], edi
mov edx, dword [ecx + 4]
mov eax, esp
mov byte [esp + 0x30], 2
mov dword [ecx + 0x24], edi
mov dword [eax], edx
mov edx, dword [ecx + 8]
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], edi
mov dword [eax + 4], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0xc], edx
call fcn.00409880
mov eax, dword [esi]
pop edi
mov ecx, dword [eax + 4]
mov dword [ecx + esi], 0x41c338
mov edx, dword [esi]
mov eax, dword [edx + 4]
lea ecx, [eax - 0x54]
mov dword [eax + esi - 4], ecx
mov ecx, dword [esp + 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 8
Function at 0x412265
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4247c0
cmp edx, dword [eax]
je 0x412287
add eax, 8
inc ecx
cmp eax, 0x424850
jl 0x412278
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4247c0]
jne 0x4123b5
mov eax, dword [0x426bd0]
cmp eax, 1
je 0x41238f
test eax, eax
jne 0x4122b8
cmp dword [0x421e34], 1
je 0x41238f
cmp edx, 0xfc
je 0x4123b5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4122ef
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004116a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00411800
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x412332
lea eax, [ebp - 0x1a4]
push eax
call fcn.00411800
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41d5d8
push edi
call fcn.00413270
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004116a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004116b0
lea eax, [ebp - 0xa0]
push 0x41d5b8
push eax
call fcn.004116b0
push dword [esi + 0x4247c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004116b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004131e0
add esp, 0x2c
pop edi
jmp 0x4123b5
lea eax, [ebp + 8]
lea esi, [esi + 0x4247c4]
push 0
push eax
push dword [esi]
call fcn.00411800
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401ca0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x401ded
mov edi, dword [0x405054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401d34
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401de6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401d20
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401e2a
lea ebx, [esi + esi*2]
mov esi, dword [0x405054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401e0a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401ddf
sub eax, 0x40
and eax, 0xffffffbf
je 0x401ddf
mov eax, dword [esp + 0x20]
add ebx, dword [0x405054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401df4
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401d3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x4022f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402345
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40233e
test esi, esi
je 0x40233e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402320
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402560
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402598
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40258e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40259a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402580
xor eax, eax
pop ebx
pop esi
ret
Function at 0x104e760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12b000]
push edi
jmp 0x104e77a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x104e781
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x104e770
mov eax, 1
add ebx, ebx
jne 0x104e793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x104e7a4
jne 0x104e7c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x104e7c3
dec eax
add ebx, ebx
jne 0x104e7b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x104e788
add ebx, ebx
jne 0x104e7bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x104e815
xor ecx, ecx
sub eax, 3
jb 0x104e7db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x104e84a
sar eax, 1
mov ebp, eax
jmp 0x104e7e6
add ebx, ebx
jne 0x104e7e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x104e7b4
inc ecx
add ebx, ebx
jne 0x104e7f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x104e7b4
add ebx, ebx
jne 0x104e801
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x104e7f6
jne 0x104e812
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x104e7f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x104e834
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x104e826
jmp 0x104e776
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x104e834
add edi, ecx
jmp 0x104e776
pop esi
mov edi, esi
mov ecx, 0x6d4f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x104e852
cmp byte [edi], 0x24
jne 0x104e852
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x104e857
lea edi, [esi + 0xc4b000]
mov eax, dword [edi]
or eax, eax
je 0x104e8cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc94b74]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc94ca0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x104e884
mov ecx, edi
jns 0x104e8b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc94ca4]
or eax, eax
je 0x104e8c9
mov dword [ebx], eax
add ebx, 4
jmp 0x104e8a1
call dword [esi + 0xc94cb4]
mov ebp, dword [esi + 0xc94ca8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x104e903
sub esp, 0xffffff80
jmp 0x50ab53
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x61435aed
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x1dbb2ff3
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x4010c0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401028
sub eax, edx
sar eax, 1
je 0x4010c0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401058
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x401058
xor eax, eax
inc eax
jmp 0x4010c2
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004320e0
add esp, 0xc
push 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push edi
push eax
call section..text
pop ecx
pop ecx
test eax, eax
je 0x4010c0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x4010c2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004319f9
leave
ret

Function at 0x401760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
test ebx, ebx
je 0x401828
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
jne 0x401828
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401789
sub eax, edx
sar eax, 1
je 0x401828
push dword [ebp + 0x10]
and dword [ebp - 4], 0
push dword [ebp + 0xc]
and dword [ebp + 0x14], 0
push dword [ebp + 8]
lea esi, [ebp + 0x14]
lea edi, [ebp - 4]
call fcn.004016f0
add esp, 0xc
test eax, eax
je 0x401828
xor eax, eax
cmp dword [ebp + 0x14], eax
jbe 0x401828
push eax
push 0x20
push 2
push eax
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401828
and dword [ebp - 8], 0
mov edi, dword [ebp - 4]
mov esi, 0x1000
cmp dword [ebp + 0x14], esi
ja 0x4017f7
mov esi, dword [ebp + 0x14]
sub dword [ebp + 0x14], esi
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401821
add edi, esi
cmp dword [ebp + 0x14], 0
jne 0x4017ea
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x40182a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40182f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, edi
jne 0x40185a
xor al, al
jmp 0x4018de
push ebx
push esi
call fcn.00431d05
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4018ac
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4018ac
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x466a10
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4018ac
mov esi, dword [ebp - 8]
push 0xd
pop ecx
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x44], 0xfeef04bd
sete byte [ebp - 1]
push ebx
call fcn.00431bdf
cmp byte [ebp - 1], 0
pop ecx
pop ebx
je 0x401853
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x10
mov dword [eax], ecx
movzx ecx, word [ebp - 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x38]
shr ecx, 0x10
mov dword [eax + 8], ecx
movzx ecx, word [ebp - 0x38]
mov dword [eax + 0xc], ecx
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x401d2f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 1
push esi
call fcn.00401928
pop ecx
pop ecx
test al, al
je 0x401d57
mov al, 1
jmp 0x401eda
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.00401a63
cmp dword [ebp - 0x10], 2
jae 0x401d7a
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040318e
xor al, al
jmp 0x401eda
mov eax, dword [ebp - 0x20]
push 8
pop esi
cmp dword [ebp - 0xc], esi
jae 0x401d88
lea eax, [ebp - 0x20]
push edi
push 0x5c
pop edi
cmp word [eax], di
jne 0x401da6
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x401d9c
lea eax, [ebp - 0x20]
cmp word [eax + 2], di
jne 0x401da6
push 2
jmp 0x401e0d
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x401db1
lea eax, [ebp - 0x20]
push 2
add eax, 2
push 0x466a1c
push eax
call fcn.004326d8
add esp, 0xc
test eax, eax
jne 0x401e10
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x401dd5
lea eax, [ebp - 0x20]
cmp word [eax], 0x61
jb 0x401deb
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x401de5
lea eax, [ebp - 0x20]
cmp word [eax], 0x7a
jbe 0x401e0b
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x401df5
lea eax, [ebp - 0x20]
cmp word [eax], 0x41
jb 0x401e10
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x401e05
lea eax, [ebp - 0x20]
cmp word [eax], 0x5a
ja 0x401e10
push 3
pop eax
jmp 0x401e12
xor eax, eax
push ebx
push 1
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], edi
call fcn.004023c6
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e99
mov dword [ebp - 0x24], 0x5c
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x401e4b
lea eax, [ebp - 0x20]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x401e5d
lea eax, [ebp - 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x401e6f
call ebx
cmp eax, 0xb7
jne 0x401eca
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x401e7b
lea eax, [ebp - 0x20]
push 0x5c
pop ecx
mov word [eax + esi*2], cx
push 1
inc esi
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.004023c6
mov esi, eax
cmp esi, 0xffffffff
jne 0x401e3f
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x401ea5
lea eax, [ebp - 0x20]
xor esi, esi
push esi
push eax
call edi
test eax, eax
jne 0x401ebb
call ebx
cmp eax, 0xb7
je 0x401ebb
push esi
jmp 0x401ecc
push esi
push 1
lea ecx, [ebp - 0x20]
call fcn.0040318e
mov al, 1
jmp 0x401ed8
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040318e
xor al, al
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004319f9
leave
ret
Function at 0x401ee7
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x475668]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401fb8
mov ecx, 0x466a24
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401f48
test dx, dx
je 0x401f44
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401f48
add eax, 4
add ecx, 4
test dx, dx
jne 0x401f22
xor eax, eax
jmp 0x401f4d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401f9b
mov ecx, 0x466a28
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401f82
test dx, dx
je 0x401f7e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401f82
add eax, 4
add ecx, 4
test dx, dx
jne 0x401f5c
xor eax, eax
jmp 0x401f87
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401f9b
mov eax, dword [ebx]
lea ecx, [ebp - 0x254]
push ecx
push eax
push ebx
call fcn.0040254a
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401f17
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004319f9
leave
ret

Function at 0x4021c5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402207
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 0x6400000
jb 0x40220e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
add eax, 0xa
push eax
call fcn.00430a14
mov esi, eax
pop ecx
cmp esi, ebx
je 0x402200
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov byte [esi + eax], bl
mov eax, esi
jmp 0x402209

Function at 0x403429
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and dword [ebp - 0xc], 0
cmp dword [eax + 0x24], 0
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax + 0x14]
jle 0x4034ab
mov ecx, dword [eax + 0x20]
and dword [ebp - 8], 0
test ecx, ecx
jle 0x4034a0
mov al, byte [esi]
mov dl, byte [edi + 1]
mov cl, byte [edi]
mov byte [ebp - 3], al
mov al, byte [esi + 1]
sub cl, byte [ebp - 3]
mov byte [ebp - 2], al
mov al, byte [esi + 2]
sub dl, byte [ebp - 2]
mov byte [ebp - 1], al
mov al, byte [edi + 2]
sub al, byte [ebp - 1]
movzx edx, dl
movzx eax, al
movzx ecx, cl
add eax, edx
add eax, ecx
cdq
push 3
pop ecx
idiv ecx
or cl, 0xff
add esi, 4
add edi, 4
sub cl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 8]
mov byte [esi - 1], cl
mov ecx, dword [eax + 0x20]
cmp dword [ebp - 8], ecx
jl 0x40344f
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
cmp edx, dword [eax + 0x24]
jl 0x403447
pop edi
pop esi
leave
ret 4