joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4113dd
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
lea esi, [ebp + 0x30]
cmp dword [esi], 0
je 0x411438
push ebx
push edi
lea ebx, [ebp + 0x34]
push dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, 0x1f6
cmp eax, edi
je 0x411436
add ebp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.004110a1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
pop ebp
ret 4

Function at 0x4115c2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.00454c50
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 0x34]
push 0x1f5
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, 0xffff
push edi
mov dword [esi + 0x10], edi
call fcn.0044f496
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
mov dword [esi + 8], eax
jmp 0x4116b0
cmp dword [ebp - 4], 0
jbe 0x4116cb
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
cmp dword [esi + 0x10], eax
jae 0x411687
push dword [esi + 0xc]
call fcn.0044f496
push dword [esi + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 8]
push eax
call fcn.0044f8c0
push dword [esi + 8]
call fcn.0044f500
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
test eax, eax
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
jge 0x411657
fadd qword [0x46eb90]
fmul qword [0x46eba8]
call fcn.004659a6
push eax
mov dword [esi + 0x10], eax
call fcn.0044f496
push dword [esi + 0xc]
mov dword [esi + 8], eax
push dword [ebp - 8]
push dword [esi + 8]
call fcn.0044f8c0
push dword [ebp - 8]
call fcn.0044f500
add esp, 0x28
push dword [ebp - 4]
lea eax, [ebp - 0x10010]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
push eax
call fcn.0044f8c0
mov eax, dword [ebp - 4]
add dword [esi + 0xc], eax
add esp, 0xc
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10010]
push eax
push dword [esi + 0x2c]
call ebx
test eax, eax
jne 0x411603
mov esi, 0x1f6
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x413bf5
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x47d510], eax
push edi
mov edx, esi
mov eax, 0x47d510
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x47decc
jl 0x413c06
pop edi
mov dword [0x474080], esi
mov dword [0x47dee0], esi
pop esi
ret
Function at 0x413c34
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x47dee0], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x47d510
jne 0x413c54
push 0
call fcn.00453c2a
pop ecx
call fcn.00413bf5
mov dword [0x474080], 0x270
mov dword [0x47d50c], esi
mov edx, 0xe3
mov ecx, bind
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x413c73
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x413ca9
mov edx, dword [0x47d510]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x413d03
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x474080]
jne 0x413d10
call fcn.00413c34
mov eax, dword [0x47d50c]
mov ecx, dword [eax]
add dword [0x47d50c], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x413d47
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x474080]
jne 0x413d55
call fcn.00413c34
mov eax, dword [0x47d50c]
mov eax, dword [eax]
add dword [0x47d50c], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [esp], ecx
fild dword [esp]
jge 0x413d9b
fadd qword [0x46eb90]
fmul qword [0x46eb88]
pop ecx
ret

Function at 0x413f44
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x413f66
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.0044f8c0
add esp, 0xc
jmp 0x413f79
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00452ba9
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
add dword [esi + 0xc], 8
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.00451490
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x41404d
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x25c]
test eax, eax
mov ecx, 0x10000
je 0x414060
cmp eax, ecx
jne 0x41407b
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x254]
call fcn.00452ba9
add esp, 0x10
and dword [esi + 0x25c], 0
mov ecx, dword [esi + 0x25c]
mov eax, dword [esi + 0x254]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x25c], ecx
ret

Function at 0x414092
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x23c]
push edi
je 0x414149
cmp eax, dword [esi + 0x234]
jae 0x414115
mov edi, 0x10000
push ebx
mov eax, dword [esi + 0x23c]
mov ecx, dword [esi + 0x230]
mov ebx, dword [esi + 0x258]
mov edx, dword [esi + 0x250]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + ebx], al
inc dword [esi + 0x258]
cmp dword [esi + 0x258], edi
jne 0x4140fd
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x250]
call fcn.0045279d
add esp, 0x10
and dword [esi + 0x258], 0
inc dword [esi + 0x23c]
inc dword [esi + 8]
mov eax, dword [esi + 0x23c]
cmp eax, dword [esi + 0x234]
jb 0x4140b1
pop ebx
and dword [esi + 0x238], 0
pop edi
ret
mov eax, dword [esi + 0x23c]
mov ecx, dword [esi + 0x230]
mov edi, dword [esi + 8]
mov edx, dword [esi]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + edi], al
inc dword [esi + 8]
inc dword [esi + 0x23c]
mov eax, dword [esi + 0x23c]
cmp eax, dword [esi + 0x234]
jb 0x41411e
jmp 0x414115
Function at 0x414153
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x234], eax
push edi
mov dword [esp + 0x10], eax
jae 0x4142b3
mov ebp, 0xff
push 1
mov eax, esi
call fcn.004142e3
cmp eax, 1
mov eax, esi
jne 0x4141af
push 8
call fcn.004142e3
mov ecx, dword [esi + 0x234]
mov edx, dword [esi + 0x230]
and ecx, 0x1ffff
mov byte [ecx + edx], al
inc dword [esi + 0x234]
inc dword [esi + 0x238]
jmp 0x41424e
push 0xf
call fcn.004142e3
mov ebx, eax
push 2
mov eax, esi
xor edi, edi
call fcn.004142e3
cmp eax, 3
jne 0x41420e
push eax
pop edi
push eax
mov eax, esi
call fcn.004142e3
cmp eax, 7
jne 0x41420e
push 0xa
pop edi
push 5
mov eax, esi
call fcn.004142e3
cmp eax, 0x1f
jne 0x41420e
push 0x29
pop edi
push 8
mov eax, esi
call fcn.004142e3
cmp eax, ebp
jne 0x41420e
mov edi, 0x128
jmp 0x414201
add edi, ebp
push 8
mov eax, esi
call fcn.004142e3
cmp eax, ebp
je 0x4141ff
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x234]
sub eax, ebx
jmp 0x41424a
mov ebx, dword [esi + 0x234]
mov ecx, dword [esi + 0x230]
mov edx, eax
and edx, 0x1ffff
mov dl, byte [edx + ecx]
and ebx, 0x1ffff
dec edi
mov byte [ebx + ecx], dl
inc eax
inc dword [esi + 0x234]
inc dword [esi + 0x238]
test edi, edi
jne 0x41421c
call fcn.00414092
cmp dword [0x47f4a8], 0x1000
jbe 0x414294
mov edi, dword [esi + 0x24c]
and dword [0x47f4a8], 0
test edi, edi
je 0x41429a
mov ecx, dword [esi + 8]
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [esi + 0x10]
push eax
push ecx
push dword [esi + 0xc]
call edi
add esp, 0xc
test eax, eax
jne 0x41429a
mov byte [esi + 0x240], 1
jmp 0x41429a
inc dword [0x47f4a8]
cmp byte [esi + 0x240], 0
jne 0x4142de
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x234], eax
jb 0x414172
lea edi, [esi + 0x258]
mov eax, dword [edi]
test eax, eax
je 0x4142d6
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x250]
call fcn.0045279d
add esp, 0x10
and dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
pop eax
jmp 0x4142d8

Function at 0x414373
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004512b0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret
Function at 0x414d58
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
lea eax, [esp + 0xa8]
push 0x46ad3e
push eax
call fcn.0044f340
pop ecx
pop ecx
lea esi, [esp + 0x18]
call fcn.00414373
lea eax, [esp + 0xa8]
push eax
call fcn.00451730
pop ecx
mov ebx, eax
call fcn.00414373
lea eax, [esp + 0xa8]
push eax
mov eax, ebx
call fcn.004143a0
mov eax, esi
call fcn.00414437
and dword [edi + 8], 0
push 0x10
xor ecx, ecx
xor eax, eax
pop ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
inc ecx
cmp ecx, ebx
jl 0x414db9
push 0x46bacc
push dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.004524b4
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x414de0
inc eax
jmp 0x414e3c
mov esi, edi
call fcn.00414e44
push dword [edi]
mov esi, eax
test esi, esi
je 0x414df8
call fcn.00452891
mov eax, esi
jmp 0x414e3b
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00452ba9
add esp, 0x10
push 0x99f2
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.00414f3f
xor ecx, ecx
mov dword [edi + 8], ecx
xor eax, eax
movzx edx, byte [esp + eax + 8]
imul ecx, edx
inc eax
cmp eax, ebx
jl 0x414e1f
push dword [edi]
mov dword [edi + 8], ecx
call fcn.00453e0c
mov dword [edi + 4], eax
xor eax, eax
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x414e44
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00454c50
xor eax, eax
mov cl, byte [eax + 0x474038]
mov byte [ebp + eax - 0x20], cl
mov cl, byte [eax + 0x474030]
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x414e53
push ebx
push edi
lea eax, [ebp - 8]
push str.AU3_
push eax
call fcn.0044f340
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044f8c0
add esp, 0x14
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x10020]
push 0x10000
push 1
push eax
call fcn.00452ba9
add esp, 0x10
cmp eax, 0x18
mov dword [ebp - 0xc], eax
jl 0x414f3a
lea edx, [eax - 0x14]
xor ecx, ecx
test edx, edx
jle 0x414ee6
xor edx, edx
lea eax, [ebp + ecx - 0x10020]
mov bl, byte [ebp + edx - 0x20]
cmp bl, byte [eax + edx]
jne 0x414ed6
inc edx
cmp edx, 0x14
jl 0x414ec7
cmp edx, 0x14
je 0x414efa
mov eax, dword [ebp - 0xc]
inc ecx
lea edx, [eax - 0x14]
cmp ecx, edx
jl 0x414ebe
push 1
push 0xffffffffffffffec
push dword [esi]
lea edi, [edi + eax - 0x14]
call fcn.0045254e
add esp, 0xc
jmp 0x414e91
push 0
lea eax, [edi + ecx + 0x14]
push eax
push dword [esi]
call fcn.0045254e
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.00452ba9
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.00451490
add esp, 0x18
neg eax
sbb eax, eax
and eax, 4
pop edi
pop ebx
leave
ret
push 3
pop eax
jmp 0x414f36
Function at 0x414f3f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.00414bb9
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.00414cf9
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x414f84
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.00414ccb
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x414f6a
pop edi
pop esi
leave
ret 0xc
Function at 0x41526e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x37c
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 0x270]
call fcn.00413df7
push 0
push dword [esi + 4]
xor edi, edi
push dword [esi]
inc edi
mov dword [ebp - 0xc], edi
call fcn.0045254e
add esp, 0xc
lea eax, [ebp - 0x378]
push eax
push str.___AUTOIT_SCRIPT___
call fcn.004153de
test eax, eax
je 0x4152b9
push 6
pop eax
jmp 0x4153d7
push dword [esi]
lea eax, [ebp - 1]
push edi
push edi
push eax
call fcn.00452ba9
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.00452ba9
push dword [esi]
mov edi, dword [ebp - 8]
push 1
lea eax, [ebp - 8]
push 4
mov ebx, 0x87bc
push eax
xor edi, ebx
call fcn.00452ba9
push dword [esi]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
xor eax, ebx
push 1
mov dword [ecx], eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.00452ba9
mov ebx, dword [ebp - 8]
add esp, 0x40
push 1
push 0x10
push dword [esi]
xor ebx, 0xa685
call fcn.0045254e
mov eax, dword [ebp + 0xc]
add esp, 0xc
push dword [eax]
call fcn.00451c62
pop ecx
push edi
mov dword [ebp + 0xc], eax
call fcn.00451c62
pop ecx
push dword [esi]
mov dword [ebp - 0x10], eax
push 1
push edi
push eax
call fcn.00452ba9
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x10]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push esi
call fcn.00414f3f
push edi
push esi
lea edi, [ebp - 0xc]
call fcn.00413da3
cmp ebx, dword [ebp - 0xc]
je 0x41537f
push dword [ebp + 0xc]
call fcn.00451d25
pop ecx
push esi
call fcn.00451d25
pop ecx
push 0xa
jmp 0x4152b3
cmp byte [ebp - 1], 1
jne 0x4153c1
lea eax, [ebp - 0x270]
call fcn.00413df7
xor eax, eax
inc eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x270]
mov dword [ebp - 0x26c], esi
call fcn.00413e23
push esi
call fcn.00451d25
jmp 0x4153cc
push dword [ebp + 0xc]
call fcn.00451d25
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4153de
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
push ebx
push edi
mov byte [ebp - 1], 1
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push 1
push eax
call fcn.00452ba9
add esp, 0x10
push 0x18ee
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00414f3f
lea eax, [ebp - 0x14]
push str.FILE
push eax
mov byte [ebp - 0x10], 0
call fcn.00451490
test eax, eax
pop ecx
pop ecx
jne 0x41555c
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.00452ba9
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.00452ba9
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00414f3f
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
or eax, 0xffffffff
call fcn.0040f96c
pop ecx
mov edi, eax
lea eax, [ebp - 0x330]
push edi
push eax
call fcn.0044f340
push edi
call fcn.0044f500
add esp, 0xc
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.00452ba9
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.00452ba9
add esp, 0x20
add edi, 0xf479
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00414f3f
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
or eax, 0xffffffff
call fcn.0040f96c
pop ecx
mov edi, eax
push edi
push dword [ebp + 0xc]
call fcn.0044f340
push edi
call fcn.0044f500
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x330]
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
je 0x415573
xor edi, edi
inc edi
push edi
push edi
push dword [esi]
call fcn.0045254e
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.00452ba9
xor dword [ebp - 8], 0x87bc
mov eax, dword [ebp - 8]
push edi
add eax, 0x18
push eax
push dword [esi]
call fcn.0045254e
add esp, 0x1c
jmp 0x415560
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 1
je 0x4153ed
push 6
pop eax
pop edi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x41556d
Function at 0x41d48c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp dword [eax + 8], 4
jne 0x41d4f2
push 0x60
call fcn.0044f496
test eax, eax
pop ecx
je 0x41d4b3
call fcn.0040cdf6
mov ebx, eax
jmp 0x41d4b5
xor ebx, ebx
mov eax, dword [edi + 4]
mov esi, dword [eax]
call fcn.00411f94
push eax
xor eax, eax
inc eax
mov ecx, ebx
call fcn.0040ce06
test al, al
jne 0x41d52f
test ebx, ebx
je 0x41d4e0
mov esi, ebx
call fcn.0040cfd8
push ebx
call fcn.0044f500
pop ecx
mov esi, dword [ebp + 8]
push 0
call fcn.00412534
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
call fcn.00412089
mov ecx, eax
dec ecx
js 0x41d4e0
mov eax, dword [edi + 4]
mov eax, dword [eax]
call fcn.0041330f
test al, al
je 0x41d4e0
cmp ecx, dword [esi + 0x274]
jge 0x41d4e0
mov eax, dword [esi + 0x270]
mov ecx, dword [eax + ecx*4]
cmp dword [ecx], 0
je 0x41d4e0
mov ecx, dword [ecx]
cmp dword [ecx], 0
jne 0x41d4e0
mov ebx, dword [ecx + 4]
test byte [ebx], 3
je 0x41d4e0
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp dword [eax + 8], 0xb
je 0x41d5ab
test byte [ebx], 0x10
jne 0x41d5ab
mov esi, eax
call fcn.00411f94
mov ecx, eax
mov esi, ebx
call fcn.0040d09a
cmp byte [ebp + 0xc], 0
je 0x41d5e2
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00411f94
push eax
call fcn.00451730
test eax, eax
pop ecx
mov dword [ebp + 0xc], eax
je 0x41d59d
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00411f94
mov ecx, dword [ebp + 0xc]
cmp byte [eax + ecx - 1], 0xd
je 0x41d5e2
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00411f94
mov ecx, dword [ebp + 0xc]
cmp byte [eax + ecx - 1], 0xa
je 0x41d5e2
mov ecx, 0x46bc20
mov esi, ebx
call fcn.0040d09a
jmp 0x41d5e2
call fcn.00411ff9
push dword [ebx + 4]
mov edx, eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
call fcn.00411f5c
push eax
push 1
push edx
call fcn.0045279d
push dword [ebx + 4]
call fcn.00452bf3
add esp, 0x14
test eax, eax
je 0x41d5e2
mov esi, dword [ebp + 8]
push 0
call fcn.00412534
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp dword [eax + 8], 4
jne 0x41d4ea
mov esi, ebx
call fcn.0040cfd8
call fcn.0040cfd8
push ebx
call fcn.0044f500
pop ecx
jmp 0x41d4ea
Function at 0x41da76
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41daf6
lea eax, [ebp - 0x11c]
push 0x46bb48
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
je 0x41dae4
lea eax, [ebp - 0x11c]
push 0x46d44c
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
je 0x41dae4
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push dword [ebp + 0xc]
push eax
call fcn.0040dd2d
add esp, 0xc
test al, al
je 0x41db0e
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41da9d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41db19
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x41db07
lea eax, [ebp - 0x148]
push eax
push 0x46d448
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41dba7
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test byte [ebp - 0x148], 0x10
je 0x41db93
lea eax, [ebp - 0x11c]
push 0x46bb48
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
je 0x41db93
lea eax, [ebp - 0x11c]
push 0x46d44c
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
je 0x41db93
lea eax, [ebp - 0x11c]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041da76
test al, al
je 0x41dbab
push 0x46d44c
call esi
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41db35
mov bl, 1
jmp 0x41dbad
xor bl, bl
push dword [ebp - 4]
call edi
mov al, bl
jmp 0x41db07
Function at 0x41f01b
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push str.___s
push eax
call fcn.00451879
lea eax, [ebp - 0x104]
lea esi, [ebp - 0x104]
push eax
dec esi
call fcn.00451730
add esp, 0x10
xor ebx, ebx
cmp byte [eax + esi], 0x5c
jne 0x41f083
lea eax, [ebp - 0x104]
push eax
call fcn.00451730
pop ecx
lea ecx, [ebp - 0x104]
dec ecx
dec ecx
cmp byte [eax + ecx], 0x3a
je 0x41f083
lea eax, [ebp - 0x104]
push eax
call fcn.00451730
pop ecx
mov byte [eax + esi], bl
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41f09b
cmp byte [ebp + 8], bl
jne 0x41f09b
xor eax, eax
jmp 0x41f16a
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f0c1
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x41f094
push 0x14
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.004512b0
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x410], 0xa0000003
call fcn.00451730
add eax, eax
mov word [ebp - 0x406], ax
mov eax, dword [ebp - 0x406]
add esp, 0x10
add eax, 2
push 0x104
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x400]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x406]
push ebx
add eax, 0xc
mov word [ebp - 0x40c], ax
lea ecx, [ebp + 0xc]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x410]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
jne 0x41f161
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41f0b8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8