joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ade0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fde4c
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x52c1c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 8]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x42af8a
cmp eax, 0xffffffff
je 0x42af8a
mov esi, dword [edi + 0xc]
push esi
mov dword [ebp - 0x120], esi
call fcn.004bcbcb
add esp, 4
test eax, eax
je 0x42ae46
push eax
call fcn.004bd01d
add esp, 4
lea eax, [ebp - 0x10c]
mov dword [ebp - 4], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - fcn.0042a1c0], vtable.fmt::v8::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], 0xfa
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x11c]
push edx
push ebx
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0x10], 0
je 0x42af3a
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
jbe 0x42af3a
test eax, eax
je 0x42aec7
push 0
push 0
push eax
push dword [ebp - 0x118]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebx + 8]
mov ecx, edi
movzx eax, word [edi + eax*2 + 0x18]
push eax
call fcn.0042d390
mov ecx, dword [ebx + 0x1c]
movzx eax, ax
mov dword [ebp - 0x120], eax
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x42af03
push 0
sub eax, ecx
push 0
push eax
mov eax, dword [ebp - 0x118]
add eax, ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push dword [ebp - 0x120]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebp - 0x114]
cmp eax, ecx
jbe 0x42af62
push 0
sub eax, ecx
push 0
push eax
mov eax, dword [ebp - 0x118]
add eax, ecx
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x42af62
push 0
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0
push eax
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x11c]
call fcn.00414d30
push esi
mov dword [ebp - 4], 2
call fcn.004bcbf0
add esp, 4
test eax, eax
je 0x42af8a
push eax
call fcn.004bd01d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bedf5
mov esp, ebp
pop ebp
ret 4
Function at 0x42b020
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebx + 0x10]
mov dword [ebp - 4], eax
jb 0x42b03e
mov esi, dword [ebx]
jmp 0x42b040
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
test eax, eax
je 0x42b064
mov ebx, eax
nop dword [eax]
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x42b050
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 0x18]
and ecx, edx
mov edx, dword [edi + 0xc]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov esi, dword [edx + ecx*4]
inc ecx
mov dword [ebp - 0xc], esi
mov esi, dword [edi + 4]
mov dword [ebp - 8], esi
lea ecx, [edx + ecx*4]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0xc], esi
jne 0x42b08d
mov ecx, esi
jmp 0x42b091
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x42b1cd
cmp dword [ebx + 0x14], 0x10
lea edx, [eax + 8]
jb 0x42b0a6
mov edi, dword [ebx]
jmp 0x42b0a8
mov edi, ebx
cmp dword [edx + 0x14], 0x10
lea ecx, [edx + 0x10]
jb 0x42b0b3
mov edx, dword [edx]
mov ecx, dword [ecx]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 4]
mov esi, ecx
cmp dword [ebp + 0xc], ecx
cmovb esi, dword [ebp + 0xc]
test esi, esi
je 0x42b123
sub esi, 4
jb 0x42b0e1
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [edi]
jne 0x42b0e6
add edx, 4
add edi, 4
sub esi, 4
jae 0x42b0d0
cmp esi, 0xfffffffc
je 0x42b11a
mov cl, byte [edx]
cmp cl, byte [edi]
jne 0x42b113
cmp esi, 0xfffffffd
je 0x42b11a
mov cl, byte [edx + 1]
cmp cl, byte [edi + 1]
jne 0x42b113
cmp esi, 0xfffffffe
je 0x42b11a
mov cl, byte [edx + 2]
cmp cl, byte [edi + 2]
jne 0x42b113
cmp esi, 0xffffffff
je 0x42b11a
mov cl, byte [edx + 3]
cmp cl, byte [edi + 3]
je 0x42b11a
sbb ecx, ecx
or ecx, 1
jmp 0x42b11c
xor ecx, ecx
test ecx, ecx
jne 0x42b12c
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
cmp edx, ecx
jb 0x42b12c
jbe 0x42b139
mov eax, dword [eax]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
jmp 0x42b084
cmp dword [eax + 0x1c], 0x10
lea edx, [eax + 8]
lea edi, [edx + 0x10]
jb 0x42b147
mov edx, dword [edx]
cmp dword [ebx + 0x14], 0x10
jb 0x42b14f
mov ebx, dword [ebx]
mov edi, dword [edi]
cmp ecx, edi
mov esi, edi
cmovb esi, ecx
test esi, esi
je 0x42b1b4
sub esi, 4
jb 0x42b172
mov ecx, dword [ebx]
cmp ecx, dword [edx]
jne 0x42b177
add ebx, 4
add edx, 4
sub esi, 4
jae 0x42b161
cmp esi, 0xfffffffc
je 0x42b1ab
mov cl, byte [ebx]
cmp cl, byte [edx]
jne 0x42b1a4
cmp esi, 0xfffffffd
je 0x42b1ab
mov cl, byte [ebx + 1]
cmp cl, byte [edx + 1]
jne 0x42b1a4
cmp esi, 0xfffffffe
je 0x42b1ab
mov cl, byte [ebx + 2]
cmp cl, byte [edx + 2]
jne 0x42b1a4
cmp esi, 0xffffffff
je 0x42b1ab
mov cl, byte [ebx + 3]
cmp cl, byte [edx + 3]
je 0x42b1ab
sbb ecx, ecx
or ecx, 1
jmp 0x42b1ad
xor ecx, ecx
test ecx, ecx
jne 0x42b1ba
mov ecx, dword [ebp - 4]
cmp ecx, edi
jb 0x42b1ba
jbe 0x42b1bd
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42f680
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x52c1c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x52b090]
mov ecx, 0x30
cmp cx, ax
jne 0x42f72e
push ebx
push esi
xorps xmm0, xmm0
xor esi, esi
movlpd qword [ebp - 0xc], xmm0
mov ebx, dword [ebp - 0xc]
push edi
mov edi, dword [ebp - 8]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0xa], 0x5c003a
mov word [ebp - 6], ax
lea eax, [esi + 0x41]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x42f71f
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x42f71f
mov ecx, dword [ebp - 0x10]
cmp ecx, edi
jb 0x42f71f
mov eax, dword [ebp - 0x14]
ja 0x42f711
cmp eax, ebx
jbe 0x42f71f
mov ebx, eax
mov edi, ecx
mov ax, word [ebp - 0xc]
mov word [0x52b090], ax
inc esi
cmp esi, 0x1a
jl 0x42f6c0
mov ax, word [0x52b090]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bedf5
mov esp, ebp
pop ebp
ret
Function at 0x450680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov ecx, dword [eax + 0xc]
push edi
test ecx, ecx
je 0x4506d3
mov al, byte [ebx]
xor esi, esi
mov edi, ebx
test al, al
je 0x4506be
nop dword [eax]
movzx eax, al
lea ecx, [esi*8]
lea edi, [edi + 1]
movzx edx, byte [eax + 0x5070b0]
mov al, byte [edi]
xor edx, ecx
xor esi, edx
test al, al
jne 0x4506a0
mov ecx, dword [ebp + 8]
mov eax, esi
xor edx, edx
div dword [ecx]
mov edi, dword [ecx + 0xc]
mov esi, dword [edi + edx*8 + 4]
mov edi, dword [edi + edx*8]
jmp 0x4506db
mov esi, dword [eax + 8]
xor edx, edx
mov edi, dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
test edi, edi
je 0x4506fb
push ebx
push dword [esi + 0xc]
dec edi
call fcn.0043f170
add esp, 8
test eax, eax
je 0x450702
mov esi, dword [esi]
test edi, edi
jne 0x4506e4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x45ecf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx*8]
mov edi, 0x80
cmp eax, 0x400
cmovbe edi, ecx
cmp edi, dword [esi]
jne 0x45ed1c
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5315a0]
test eax, eax
je 0x45ed27
call eax
push ebx
lea eax, [edi*8]
push 0
push eax
call fcn.00479a90
mov ecx, dword [0x5315a4]
add esp, 8
mov ebx, eax
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x45ed4b
call ecx
test ebx, ebx
jne 0x45ed58
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0xc]
call fcn.0043cb20
push ebx
mov dword [esi + 0xc], ebx
call dword [0x52bce0]
shr eax, 3
mov dword [ebp + 0xc], eax
mov dword [esi], eax
lea ecx, [eax*8]
push ecx
push 0
push ebx
call fcn.004d8600
mov ecx, dword [esi + 8]
add esp, 0x14
mov dword [esi + 8], 0
test ecx, ecx
je 0x45ee31
mov edi, dword [ecx + 0xc]
xor ebx, ebx
mov al, byte [edi]
test al, al
je 0x45edc0
movzx eax, al
lea edx, [ebx*8]
lea edi, [edi + 1]
movzx esi, byte [eax + 0x5070b0]
mov al, byte [edi]
xor esi, edx
xor ebx, esi
test al, al
jne 0x45eda2
xor edx, edx
mov edi, dword [ecx]
mov eax, ebx
div dword [ebp + 0xc]
mov eax, dword [ebp - 4]
lea esi, [eax + edx*8]
test esi, esi
je 0x45ee0b
mov eax, dword [esi]
test eax, eax
je 0x45edde
mov edx, dword [esi + 4]
jmp 0x45ede0
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x45ee0b
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x45ee00
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x45ee27
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x45ee27
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x45ee1d
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [esi + 8], ecx
mov ecx, edi
test edi, edi
jne 0x45ed97
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47c780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
jbe 0x47c7a0
mov dword [ebp + 8], edx
pop ebp
jmp fcn.0045b0d0
mov dword [ebp + 8], edx
pop ebp
jmp fcn.0045c290
Function at 0x485d00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
cmp dword [0x52bcb0], 0
je 0x485d52
mov eax, dword [0x531498]
test eax, eax
je 0x485d2a
push eax
call dword [0x52bd04]
add esp, 4
lea eax, [ebp + 8]
push eax
push 0x14
call fcn.00456af0
mov eax, dword [0x531498]
add esp, 8
test eax, eax
je 0x485d4d
push eax
call dword [0x52bd0c]
mov esi, dword [ebp + 8]
jmp 0x485d5c
mov esi, dword [ebp + 8]
jmp 0x485d5f
push 0x14
call dword [0x52bcd4]
mov esi, eax
add esp, 4
test esi, esi
jne 0x485d6a
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
ret
cmp dword [0x52bcb4], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x485d9e
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x485e30
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.004e60bf
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x485dab
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x485dc4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp + 0xc]
add esp, 4
mov dword [esi + 0x10], eax
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x491e20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
movsx eax, word [ebx + 0x4c]
mov esi, dword [ebx + 0x20]
mov eax, dword [ebx + eax*4 + 0x78]
mov edx, dword [eax + 0x3c]
movzx eax, word [ebx + 0x28]
sub edx, esi
cmp eax, edx
cmovb edx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edi]
cmp ecx, edx
ja 0x491e6b
mov edx, dword [ebp + 0x18]
lea ecx, [esi + eax]
xor eax, eax
mov dword [edx + 0xc], edi
pop edi
mov dword [edx + 0x10], ecx
mov ecx, 0x1010
pop esi
mov word [edx + 8], cx
pop ebx
pop ebp
ret
mov esi, dword [ebp + 0x18]
lea eax, [edi + 2]
mov ecx, 1
mov word [esi + 8], cx
cmp dword [esi + 0x18], eax
jge 0x491e94
push 0
push eax
push esi
call fcn.00491f10
add esp, 0xc
test eax, eax
je 0x491e9e
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], eax
mov word [esi + 8], cx
cmp dword [ebp + 0x14], 0
je 0x491eb8
push 0
push dword [esi + 0x10]
push edi
push dword [ebp + 0xc]
push ebx
call fcn.00441630
add esp, 0x14
jmp 0x491ec8
push dword [esi + 0x10]
push edi
push dword [ebp + 0xc]
push ebx
call fcn.004675a0
add esp, 0x10
mov ebx, eax
test ebx, ebx
jne 0x491eee
mov eax, dword [esi + 0x10]
mov byte [edi + eax], bl
mov eax, dword [esi + 0x10]
mov byte [eax + edi + 1], bl
mov eax, 0x210
mov dword [esi + 0xc], edi
pop edi
mov word [esi + 8], ax
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
mov eax, 0x2460
test word [esi + 8], ax
jne 0x491eff
cmp dword [esi + 0x18], 0
je 0x491f08
push esi
call fcn.0049ada0
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x498400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x49842e
nop
movzx ecx, cl
lea esi, [esi + 1]
movzx edx, byte [ecx + 0x5070b0]
lea ecx, [eax*8]
xor edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x498410
pop esi
pop ebp
ret
Function at 0x4a9da0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [ebp + 0xc]
je 0x4a9e4e
push ebx
push edi
mov edi, dword [ebp + 0x10]
add esi, 0x48
lea ecx, [edi + 4]
lea ebx, [edi + 0x1c]
nop
mov eax, dword [edi]
mov dword [esi - 0x48], eax
lea eax, [esi - 0x44]
cmp eax, ecx
je 0x4a9dd9
push 0xffffffffffffffff
push 0
push ecx
lea ecx, [esi - 0x44]
call fcn.00422170
lea eax, [esi - 0x2c]
cmp eax, ebx
je 0x4a9ded
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esi - 0x2c]
call fcn.00422170
mov eax, dword [edi + 0x38]
lea ecx, [esi + 0x10]
mov dword [esi - 0x10], eax
mov eax, dword [edi + 0x3c]
mov dword [esi - 0xc], eax
mov eax, dword [edi + 0x40]
mov dword [esi - 8], eax
mov eax, dword [edi + 0x44]
mov dword [esi - 4], eax
mov al, byte [edi + 0x48]
mov byte [esi], al
mov eax, dword [edi + 0x4c]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0xc], eax
lea eax, [edi + 0x58]
push eax
call fcn.004b1d70
mov eax, dword [edi + 0x68]
lea ecx, [edi + 4]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x70]
mov dword [esi + 0x28], eax
add esi, 0x78
lea eax, [esi - 0x48]
cmp eax, dword [ebp + 0xc]
jne 0x4a9dc0
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x4b5a80
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x490
mov eax, dword [0x52c1c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x50f600
push eax
call fcn.004e0c7b
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b5aba
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bedf5
mov esp, ebp
pop ebp
ret
push esi
push 0x400
lea eax, [ebp - 0x438]
mov dword [ebp - 0x47c], 0
push 1
push eax
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x490], 0x67452301
mov dword [ebp - 0x48c], 0xefcdab89
mov dword [ebp - 0x488], 0x98badcfe
mov dword [ebp - 0x484], 0x10325476
call fcn.004e0f8b
add esp, 0x10
test eax, eax
je 0x4b5b40
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.004b63c0
push esi
push 0x400
lea eax, [ebp - 0x438]
push 1
push eax
call fcn.004e0f8b
add esp, 0x1c
test eax, eax
jne 0x4b5b11
push ebx
push edi
lea eax, [ebp - 0x490]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004b5bc0
push esi
call fcn.004e0789
add esp, 0xc
lea edi, [ebp - 0x37]
xor esi, esi
mov bl, byte [ebp + esi - 0x14]
movzx eax, bl
push eax
lea eax, [edi - 1]
push str._02x
push eax
call fcn.0042ef50
shl bl, 4
movzx eax, bl
push eax
push str._02x
push edi
call fcn.0042ef50
inc esi
add esp, 0x18
add edi, 2
cmp esi, 0x10
jl 0x4b5b60
push 0x20
lea eax, [ebp - 0x38]
push eax
push 0x531860
call fcn.004d8080
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x531860
pop edi
pop ebx
pop esi
call fcn.004bedf5
mov esp, ebp
pop ebp
ret
Function at 0x4b6720
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
push esi
push edi
xor edi, edi
lea esi, [ecx + 2]
mov dword [ebp - 4], edi
xor ebx, ebx
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b6740
sub ecx, esi
sar ecx, 1
je 0x4b67e2
mov edi, 2
mov esi, edi
nop dword [eax]
cmp word [edx + edi - 2], 0x5c
jne 0x4b67b1
xor ecx, ecx
lea eax, [ebx + 1]
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bef3d
push edi
mov esi, eax
push 0
push esi
call fcn.004d8600
lea eax, [edi - 2]
push eax
push dword [ebp + 8]
push esi
call fcn.004d8080
add esp, 0x1c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push esi
mov dword [ebp - 4], eax
call fcn.004bef2f
mov edx, dword [ebp + 8]
add esp, 8
mov ecx, edx
inc ebx
add edi, 2
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b67c0
sub ecx, esi
mov esi, 2
sar ecx, 1
cmp ebx, ecx
jb 0x4b6760
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b67f0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x52c1c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x838], 0
call fcn.004d8600
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x618
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.004d8600
add esp, 0xc
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4b68fa
movzx eax, byte [ebp - 0x825]
push eax
movzx eax, byte [ebp - 0x826]
push eax
movzx eax, byte [ebp - 0x827]
push eax
movzx eax, byte [ebp - 0x828]
push eax
movzx eax, byte [ebp - 0x829]
push eax
movzx eax, byte [ebp - 0x82a]
push eax
movzx eax, byte [ebp - 0x82b]
push eax
movzx eax, byte [ebp - 0x82c]
push eax
movzx eax, word [ebp - 0x82e]
push eax
movzx eax, word [ebp - 0x830]
push eax
push dword [ebp - 0x834]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push str._sbaiduaabbcc_08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x824]
push eax
call fcn.004b6720
add esp, 0x3c
lea eax, [ebp - 0x824]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x824]
push eax
jmp 0x4b68ff
push 0x502b5c
mov ecx, esi
call fcn.00413130
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004bedf5
mov esp, ebp
pop ebp
ret
Function at 0x4b6920
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe84
mov eax, dword [0x52c1c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc34]
push 0x618
push 0
push eax
call fcn.004d8600
push edi
lea eax, [ebp - 0xc34]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0xe84]
push eax
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4b6a72
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop word [eax + eax]
mov ecx, 0x503c80
lea eax, [ebp - 0xe58]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4b69c6
test dx, dx
je 0x4b69c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4b69c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4b69a0
xor eax, eax
jmp 0x4b69cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4b6a5b
mov eax, 0x503c84
lea ecx, [ebp - 0xe58]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4b6a06
test dx, dx
je 0x4b6a02
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4b6a06
add ecx, 4
add eax, 4
test dx, dx
jne 0x4b69e0
xor eax, eax
jmp 0x4b6a0b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4b6a5b
push 0x618
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004d8600
lea eax, [ebp - 0xe58]
push eax
push edi
lea eax, [ebp - 0x61c]
push 0x503c8c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x61c]
test byte [ebp - 0xe84], 0x10
push eax
je 0x4b6a59
call fcn.004b6920
add esp, 4
jmp 0x4b6a5b
call ebx
lea eax, [ebp - 0xe84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4b6990
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004bedf5
mov esp, ebp
pop ebp
ret
Function at 0x4b6e50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffbb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x52c1c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push eax
sub esp, 0x18
mov dword [ebp - 4], eax
mov ecx, esp
push 0xd
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
push str.filetrace.ini
mov word [ecx], ax
call fcn.00422560
lea eax, [ebp - 0x28]
push eax
call fcn.004b7020
add esp, 0x20
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push str.Indexd
push str.fileTrace
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 8
jb 0x4b6ef2
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004237a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bedf5
mov esp, ebp
pop ebp
ret

Function at 0x4b78e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x4b78ee
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0x10
jb 0x4b78f9
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4b792b
push str.File_moved_successfully.
push 0x531bb0
call fcn.004018f0
push eax
call fcn.00404d50
push str.File_moved_successfully.
call fcn.004b7470
add esp, 0x10
mov al, 1
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.Failed_to_move_file._Error_code:
push 0x531c60
call fcn.004018f0
add esp, 8
mov ecx, eax
call fcn.004b64e0
push eax
call fcn.00404d50
push esi
push str.Failed_to_move_file._Error_code:_d_n
call fcn.004b7470
add esp, 0xc
xor al, al
pop esi
pop ebp
ret

Function at 0x4b7cc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffde3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x52c1c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x5318c8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x5318c8
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x5038fa
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004bb450
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret