joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
pop ds
rol dword [ebx], 1
xor al, 0x76
push ebp
test byte [ecx], dh
xchg edi, eax
pop esp
adc eax, 0xaf34ddb3
invalid
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x87f1f8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x87f202
pushal
call 0x87f208
pop ebp
sub ebp, 0x10
sub ebp, 0x47f1f8
jmp 0x87f21e
mov eax, 0x47f1f8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f7
mov edx, 0x8460bf51
xor byte [eax], dl
inc eax
dec ecx
jne 0x87f235
jmp 0x87f248
ficomp dword [edx + ebx*8 + 0x51516dd8]
push ecx
rcl byte [eax + 0x515151a9]
push edx
pushfd
jmp 0x51d943b4
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x4012e0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x4012f5
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x401304
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x14]
mov dword [edi + 8], esi
lea esi, [edi + 0xc]
push ecx
mov ecx, esi
call fcn.00456860
mov edx, dword [esi + 8]
cmp edx, dword [esi + 4]
jne 0x401325
mov ecx, esi
call fcn.00456170
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, 0x5c
mov word [ecx + eax*2], dx
xor edx, edx
inc eax
mov word [ecx + eax*2], dx
mov dword [esi + 4], eax
lea eax, [esp + 8]
push eax
push edx
push edi
push 0x401270
push edx
push edx
mov dword [0x4b9b74], edi
mov dword [0x4b9b7c], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x4b9cf0], 2
pop edi
mov dword [0x4b9b78], eax
pop esi
je 0x401372
call fcn.00449e00
mov ecx, dword [0x4b9b78]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4b9b7c]
mov dword [0x4b9d8c], 0
test eax, eax
je 0x4013ff
lea ecx, [eax - 1]
cmp ecx, 0x69
ja case.0x4013a3.4
movzx edx, byte [ecx + 0x401498]
jmp dword [edx*4 + 0x401484]
push 0x11
push 0
call fcn.0044ac50
add esp, 8
mov eax, 0x80004005
pop ecx
ret 8
push 0x12
push 0
call fcn.0044ac50
add esp, 8
mov eax, 0x80004005
pop ecx
ret 8
push 0x13
push 0
call fcn.0044ac50
add esp, 8
mov eax, 0x80004005
pop ecx
ret 8
push eax
push 0x14
push 0
call fcn.0044ac50
add esp, 0xc
mov eax, 0x80004005
pop ecx
ret 8
cmp dword [0x4b9d94], 0
jne case.0x4013a3.104
mov ecx, dword [0x4b9b78]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov eax, dword [esp + 8]
je 0x40142a
test eax, eax
jne 0x40142a
pop ecx
ret 8
mov edx, eax
and edx, 0x80070000
cmp edx, 0x80070000
je 0x401450
push eax
push 0x21
push 0
call fcn.0044ac50
add esp, 0xc
mov eax, 0x80004005
pop ecx
ret 8
and eax, 0xffff
cmp eax, 0xe
jne 0x401463
cmp dword [0x4b9cf4], 0xffffffff
je case.0x4013a3.104
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
push eax
push 0x22
push 1
call fcn.0044ac50
add esp, 0xc
mov eax, 0x80004005
pop ecx
ret 8
Function at 0x402460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
mov edi, eax
movzx eax, word [0x4b9b80]
push eax
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x4024a4
push 0x409
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
je 0x4024d1
mov ebx, dword [esp + 0x5c]
test ebx, ebx
je 0x4024b6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4024d1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
cmp dword [0x4b9b90], 0
jne 0x402549
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
push str.kernel32
mov dword [0x4b9b90], 1
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
movzx ecx, word [0x4b9b80]
push 0
push 0x409
push 0
push ecx
lea edx, [esp + 0x20]
push str._04X_c_04X_c
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test esi, esi
jne 0x40253e
push str.SetThreadPreferredUILanguages
push str.kernel32
call edi
push eax
call ebx
mov esi, eax
test esi, esi
je 0x402549
push 0
lea eax, [esp + 0x14]
push eax
push 4
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x4028b0
Capabilities:
Get geographical location
Query environment variable

Disassembly:
sub esp, 0xa0
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0xac]
cmp dword [0x4b4188], esi
je 0x4028e9
mov eax, 0x4b4188
mov edi, edi
cmp dword [eax], edi
je 0x4028e9
inc esi
mov eax, esi
shl eax, 4
cmp dword [eax + 0x4b4188], 0
lea eax, [eax + 0x4b4188]
jne 0x4028d0
shl esi, 4
cmp dword [esi + 0x4b4188], 0
jne 0x402903
pop edi
mov eax, 0x49468c
pop esi
add esp, 0xa0
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
push edi
lea ecx, [esp + 0x14]
push str.7zSfxString_d
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
call ebp
test eax, eax
jne 0x4029b0
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
push ebx
neg ecx
or ecx, eax
push ecx
call fcn.0045bd2a
add esp, 4
mov ebx, eax
lea eax, [edi + 1]
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, edi
ja 0x4029a6
call ebp
test eax, eax
jne 0x4029a6
mov eax, dword [esi + 0x4b4194]
test eax, eax
je 0x40299e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4029a6
mov edx, dword [esi + 0x4b4194]
push edx
call fcn.0046f1aa
mov dword [esi + 0x4b4194], ebx
jmp 0x4029ac
mov dword [esi + 0x4b4194], ebx
jmp 0x4029af
push ebx
call fcn.0046f1aa
add esp, 4
pop ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x4b4194]
test eax, eax
jne 0x402a7b
mov ebp, dword [esi + 0x4b418c]
cmp dword [esi + 0x4b4190], eax
je 0x4029ea
call fcn.00402850
cmp eax, dword [0x497234]
jne 0x4029ea
mov ebp, dword [esi + 0x4b4190]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045bd2a
add esp, 4
cmp dword [0x4b11bc], 0xffffffff
mov dword [esi + 0x4b4194], eax
jne 0x402a59
movzx ecx, word [0x4b9b80]
push 0x1f
lea eax, [esp + 0x70]
push eax
push 0x1004
push ecx
mov dword [0x4b11bc], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x402a59
lea edx, [esp + 0x6c]
push edx
call fcn.00470535
add esp, 4
mov dword [0x4b11bc], eax
mov ecx, dword [esi + 0x4b4194]
mov edx, dword [0x4b11bc]
lea eax, [edi + 1]
push eax
push ecx
push edi
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x4b4194]
pop ebp
pop edi
pop esi
add esp, 0xa0
ret
Function at 0x404350
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4912a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea ecx, [esp]
call fcn.00456260
mov dword [esp + 0x14], 0
cmp dword [esp + 8], 1
jae 0x40438a
push 1
lea ecx, [esp + 4]
call fcn.00456110
mov ecx, dword [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp]
push esi
push 1
push ecx
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x4043b8
mov dword [esp + 0x20], 0xffffffff
mov edx, dword [esp + 0xc]
push edx
jmp 0x404422
push edi
lea edi, [esi + 1]
cmp edi, dword [esp + 0x18]
jbe 0x4043cc
push edi
lea ecx, [esp + 0x14]
call fcn.00456110
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp]
push edi
push ecx
push eax
call ebx
mov ecx, dword [esp + 0x10]
xor edx, edx
xor eax, eax
mov word [ecx + esi*2 + 2], dx
pop edi
cmp word [ecx], ax
je 0x4043f7
jmp 0x4043f0
inc eax
cmp word [ecx + eax*2], dx
jne 0x4043f0
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
xor ecx, ecx
mov dword [esp + 0x10], eax
mov word [edx + eax*2], cx
lea eax, [esp + 0xc]
push eax
mov ecx, ebp
call fcn.00456330
mov dword [esp + 0x20], 0xffffffff
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0046f7da
mov ecx, dword [esp + 0x1c]
add esp, 4
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x404550
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4905d0
push eax
mov dword fs:[0], esp
sub esp, 0x20
cmp dword [0x4b9d9c], 3
jne 0x4045ae
push 0
lea eax, [esp + 8]
push eax
push 3
lea ecx, [esp + 0xc]
push ecx
push 0xfffffffffffffff5
mov byte [esp + 0x14], 0x7a
mov byte [esp + 0x15], 0xd
mov byte [esp + 0x16], 0xa
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push ebp
push esi
lea ecx, [esp + 0x10]
call fcn.00456030
mov dword [esp + 0x30], 0
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov ecx, dword [ebp]
cmp byte [ecx + esi], 0
je 0x404618
mov eax, dword [esp + 0x14]
push ebx
push edi
cmp byte [ecx + esi], 0xa
je 0x404616
cmp byte [ecx + esi], 0xd
je 0x404616
mov bl, byte [ecx + esi]
cmp dword [esp + 0x20], eax
jne 0x4045fa
lea ecx, [esp + 0x18]
call fcn.00455fc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov byte [eax + ecx], bl
inc eax
mov edi, ecx
mov byte [edi + eax], 0
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp]
inc esi
cmp byte [ecx + esi], 0
jne 0x4045d8
pop edi
pop ebx
push 0xfde9
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00404210
add esp, 0xc
mov byte [esp + 0x30], 1
cmp byte [esp + 0x40], 0
pop esi
pop ebp
jne 0x404657
mov ecx, dword [esp + 0x14]
mov edx, dword [0x4b1094]
push ecx
push edx
push 0xb
push 0
call fcn.0044ac50
add esp, 0x10
jmp 0x404668
mov eax, dword [esp + 0x14]
push eax
push 0x20
push 0
call fcn.0044ac50
add esp, 0xc
mov byte [esp + 0x28], 0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0046f7da
mov dword [esp + 0x2c], 0xffffffff
mov edx, dword [esp + 0xc]
push edx
call fcn.0046f7da
mov ecx, dword [esp + 0x28]
add esp, 8
xor al, al
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x404930
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x48bd9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
push ebp
mov ebp, dword [esp + 0x270]
push esi
push edi
push ebp
lea ecx, [esp + 0x10]
call fcn.00456800
mov dword [esp + 0x270], 0
push 0x49482c
lea ecx, [esp + 0x10]
call fcn.004568d0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404a8c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea esp, [esp]
push ebp
lea ecx, [esp + 0x10]
call fcn.00456860
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jne 0x4049c1
lea ecx, [esp + 0xc]
call fcn.00456170
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, 0x5c
mov word [ecx + eax*2], dx
inc eax
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
call fcn.004568d0
test byte [esp + 0x18], 0x10
je 0x404a51
push 0x494828
lea ecx, [esp + 0x48]
push ecx
call edi
test eax, eax
je 0x404a71
push 0x494820
lea edx, [esp + 0x48]
push edx
call edi
test eax, eax
je 0x404a71
mov eax, dword [esp + 0xc]
push eax
call fcn.00404930
add esp, 4
test eax, eax
jne 0x404a71
mov dword [esp + 0x270], 0xffffffff
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0046f7da
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
add esp, 0x268
ret
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404add
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x404add
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4049a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404a1f
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x404a1f
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0xc]
push eax
call fcn.0046f7da
mov ecx, dword [esp + 0x26c]
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x268
ret
mov dword [esp + 0x270], 0xffffffff
mov edx, dword [esp + 0xc]
push edx
jmp 0x404a2f

Function at 0x404b00
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x4b9d9c], 0
je 0x404b0f
mov eax, 1
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404b27
mov eax, 1
pop esi
ret
test al, 0x10
jne 0x404b45
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404b41
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00404930
add esp, 4
pop esi
ret
Function at 0x404c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48bdd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00456260
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x38]
push esi
lea ecx, [esp + 0x10]
call fcn.00456330
push 0x494858
lea ecx, [esp + 0x10]
call fcn.004568d0
push 0x49484c
lea ecx, [esp + 0x1c]
call fcn.00456800
mov byte [esp + 0x2c], 1
mov edi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004569c0
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.0046f7da
add esp, 4
push esi
lea ecx, [esp + 0x10]
call fcn.00456330
push 0x494848
lea ecx, [esp + 0x10]
call fcn.004568d0
push str.__T_
lea ecx, [esp + 0x1c]
call fcn.00456800
mov byte [esp + 0x2c], 2
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004569c0
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.0046f7da
add esp, 4
push 0x494834
lea ecx, [esp + 0x1c]
call fcn.00456800
mov byte [esp + 0x2c], 3
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.004569c0
mov byte [esp + 0x2c], bl
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046f7da
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [esp + 0x10]
push edx
call fcn.0046f7da
mov ecx, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x404d50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48bdd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00456260
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x38]
push esi
lea ecx, [esp + 0x10]
call fcn.00456330
push 0x494858
lea ecx, [esp + 0x10]
call fcn.004568d0
push str.__S_
lea ecx, [esp + 0x1c]
call fcn.00456800
mov byte [esp + 0x2c], 1
mov edi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004569c0
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.0046f7da
add esp, 4
push esi
lea ecx, [esp + 0x10]
call fcn.00456330
push 0x494848
lea ecx, [esp + 0x10]
call fcn.004568d0
push 0x494864
lea ecx, [esp + 0x1c]
call fcn.00456800
mov byte [esp + 0x2c], 2
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.004569c0
mov byte [esp + 0x2c], bl
mov edx, dword [esp + 0x18]
push edx
call fcn.0046f7da
add esp, 4
push 0x49485c
lea ecx, [esp + 0x1c]
call fcn.00456800
mov byte [esp + 0x2c], 3
push esi
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.004569c0
mov byte [esp + 0x2c], bl
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046f7da
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [esp + 0x10]
push edx
call fcn.0046f7da
mov ecx, dword [esp + 0x2c]
add esp, 8
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret