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

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
lea esi, [ebp + 0x30]
cmp dword [esi], 0
je 0x411469
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 0x411467
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.004110d2
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 0x4115f3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.00454c70
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.0044f4b6
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
mov dword [esi + 8], eax
jmp 0x4116e1
cmp dword [ebp - 4], 0
jbe 0x4116fc
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 0x4116b8
push dword [esi + 0xc]
call fcn.0044f4b6
push dword [esi + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 8]
push eax
call fcn.0044f8e0
push dword [esi + 8]
call fcn.0044f520
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
test eax, eax
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
jge 0x411688
fadd qword [0x46eb90]
fmul qword [0x46eba8]
call fcn.004659c6
push eax
mov dword [esi + 0x10], eax
call fcn.0044f4b6
push dword [esi + 0xc]
mov dword [esi + 8], eax
push dword [ebp - 8]
push dword [esi + 8]
call fcn.0044f8e0
push dword [ebp - 8]
call fcn.0044f520
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.0044f8e0
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 0x411634
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 0x413c26
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 0x413c37
pop edi
mov dword [0x474080], esi
mov dword [0x47dee0], esi
pop esi
ret
Function at 0x413c65
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 0x413c85
push 0
call fcn.00453c4a
pop ecx
call fcn.00413c26
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 0x413ca4
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 0x413cda
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 0x413d34
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x474080]
jne 0x413d41
call fcn.00413c65
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 0x413d78
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x474080]
jne 0x413d86
call fcn.00413c65
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 0x413dcc
fadd qword [0x46eb90]
fmul qword [0x46eb88]
pop ecx
ret

Function at 0x413f75
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x413f97
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.0044f8e0
add esp, 0xc
jmp 0x413faa
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00452bc9
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.004514b0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x41407e
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x25c]
test eax, eax
mov ecx, 0x10000
je 0x414091
cmp eax, ecx
jne 0x4140ac
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x254]
call fcn.00452bc9
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 0x4140c3
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x23c]
push edi
je 0x41417a
cmp eax, dword [esi + 0x234]
jae 0x414146
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 0x41412e
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x250]
call fcn.004527bd
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 0x4140e2
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 0x41414f
jmp 0x414146
Function at 0x414184
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 0x4142e4
mov ebp, 0xff
push 1
mov eax, esi
call fcn.00414314
cmp eax, 1
mov eax, esi
jne 0x4141e0
push 8
call fcn.00414314
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 0x41427f
push 0xf
call fcn.00414314
mov ebx, eax
push 2
mov eax, esi
xor edi, edi
call fcn.00414314
cmp eax, 3
jne 0x41423f
push eax
pop edi
push eax
mov eax, esi
call fcn.00414314
cmp eax, 7
jne 0x41423f
push 0xa
pop edi
push 5
mov eax, esi
call fcn.00414314
cmp eax, 0x1f
jne 0x41423f
push 0x29
pop edi
push 8
mov eax, esi
call fcn.00414314
cmp eax, ebp
jne 0x41423f
mov edi, 0x128
jmp 0x414232
add edi, ebp
push 8
mov eax, esi
call fcn.00414314
cmp eax, ebp
je 0x414230
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x234]
sub eax, ebx
jmp 0x41427b
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 0x41424d
call fcn.004140c3
cmp dword [0x47f4a8], 0x1000
jbe 0x4142c5
mov edi, dword [esi + 0x24c]
and dword [0x47f4a8], 0
test edi, edi
je 0x4142cb
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 0x4142cb
mov byte [esi + 0x240], 1
jmp 0x4142cb
inc dword [0x47f4a8]
cmp byte [esi + 0x240], 0
jne 0x41430f
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x234], eax
jb 0x4141a3
lea edi, [esi + 0x258]
mov eax, dword [edi]
test eax, eax
je 0x414307
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x250]
call fcn.004527bd
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 0x414309

Function at 0x4143a4
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004512d0
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 0x414d89
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.0044f360
pop ecx
pop ecx
lea esi, [esp + 0x18]
call fcn.004143a4
lea eax, [esp + 0xa8]
push eax
call fcn.00451750
pop ecx
mov ebx, eax
call fcn.004143a4
lea eax, [esp + 0xa8]
push eax
mov eax, ebx
call fcn.004143d1
mov eax, esi
call fcn.00414468
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 0x414dea
push 0x46bacc
push dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.004524d4
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x414e11
inc eax
jmp 0x414e6d
mov esi, edi
call fcn.00414e75
push dword [edi]
mov esi, eax
test esi, esi
je 0x414e29
call fcn.004528b1
mov eax, esi
jmp 0x414e6c
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00452bc9
add esp, 0x10
push 0x99f2
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.00414f70
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 0x414e50
push dword [edi]
mov dword [edi + 8], ecx
call fcn.00453e2c
mov dword [edi + 4], eax
xor eax, eax
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x414e75
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00454c70
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 0x414e84
push ebx
push edi
lea eax, [ebp - 8]
push str.AU3_
push eax
call fcn.0044f360
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044f8e0
add esp, 0x14
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x10020]
push 0x10000
push 1
push eax
call fcn.00452bc9
add esp, 0x10
cmp eax, 0x18
mov dword [ebp - 0xc], eax
jl 0x414f6b
lea edx, [eax - 0x14]
xor ecx, ecx
test edx, edx
jle 0x414f17
xor edx, edx
lea eax, [ebp + ecx - 0x10020]
mov bl, byte [ebp + edx - 0x20]
cmp bl, byte [eax + edx]
jne 0x414f07
inc edx
cmp edx, 0x14
jl 0x414ef8
cmp edx, 0x14
je 0x414f2b
mov eax, dword [ebp - 0xc]
inc ecx
lea edx, [eax - 0x14]
cmp ecx, edx
jl 0x414eef
push 1
push 0xffffffffffffffec
push dword [esi]
lea edi, [edi + eax - 0x14]
call fcn.0045256e
add esp, 0xc
jmp 0x414ec2
push 0
lea eax, [edi + ecx + 0x14]
push eax
push dword [esi]
call fcn.0045256e
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.00452bc9
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.004514b0
add esp, 0x18
neg eax
sbb eax, eax
and eax, 4
pop edi
pop ebx
leave
ret
push 3
pop eax
jmp 0x414f67
Function at 0x414f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.00414bea
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.00414d2a
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x414fb5
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.00414cfc
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x414f9b
pop edi
pop esi
leave
ret 0xc
Function at 0x41529f
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.00413e28
push 0
push dword [esi + 4]
xor edi, edi
push dword [esi]
inc edi
mov dword [ebp - 0xc], edi
call fcn.0045256e
add esp, 0xc
lea eax, [ebp - 0x378]
push eax
push str.___AUTOIT_SCRIPT___
call fcn.0041540f
test eax, eax
je 0x4152ea
push 6
pop eax
jmp 0x415408
push dword [esi]
lea eax, [ebp - 1]
push edi
push edi
push eax
call fcn.00452bc9
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.00452bc9
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.00452bc9
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.00452bc9
mov ebx, dword [ebp - 8]
add esp, 0x40
push 1
push 0x10
push dword [esi]
xor ebx, 0xa685
call fcn.0045256e
mov eax, dword [ebp + 0xc]
add esp, 0xc
push dword [eax]
call fcn.00451c82
pop ecx
push edi
mov dword [ebp + 0xc], eax
call fcn.00451c82
pop ecx
push dword [esi]
mov dword [ebp - 0x10], eax
push 1
push edi
push eax
call fcn.00452bc9
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x10]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push esi
call fcn.00414f70
push edi
push esi
lea edi, [ebp - 0xc]
call fcn.00413dd4
cmp ebx, dword [ebp - 0xc]
je 0x4153b0
push dword [ebp + 0xc]
call fcn.00451d45
pop ecx
push esi
call fcn.00451d45
pop ecx
push 0xa
jmp 0x4152e4
cmp byte [ebp - 1], 1
jne 0x4153f2
lea eax, [ebp - 0x270]
call fcn.00413e28
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.00413e54
push esi
call fcn.00451d45
jmp 0x4153fd
push dword [ebp + 0xc]
call fcn.00451d45
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 0x41540f
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.00452bc9
add esp, 0x10
push 0x18ee
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00414f70
lea eax, [ebp - 0x14]
push str.FILE
push eax
mov byte [ebp - 0x10], 0
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
jne 0x41558d
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.00452bc9
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.00452bc9
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00414f70
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
or eax, 0xffffffff
call fcn.0040f99d
pop ecx
mov edi, eax
lea eax, [ebp - 0x330]
push edi
push eax
call fcn.0044f360
push edi
call fcn.0044f520
add esp, 0xc
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.00452bc9
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.00452bc9
add esp, 0x20
add edi, 0xf479
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00414f70
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
or eax, 0xffffffff
call fcn.0040f99d
pop ecx
mov edi, eax
push edi
push dword [ebp + 0xc]
call fcn.0044f360
push edi
call fcn.0044f520
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x330]
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x4155a4
xor edi, edi
inc edi
push edi
push edi
push dword [esi]
call fcn.0045256e
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.00452bc9
xor dword [ebp - 8], 0x87bc
mov eax, dword [ebp - 8]
push edi
add eax, 0x18
push eax
push dword [esi]
call fcn.0045256e
add esp, 0x1c
jmp 0x415591
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 1
je 0x41541e
push 6
pop eax
pop edi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x41559e
Function at 0x41d4bd
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 0x41d523
push 0x60
call fcn.0044f4b6
test eax, eax
pop ecx
je 0x41d4e4
call fcn.0040ce27
mov ebx, eax
jmp 0x41d4e6
xor ebx, ebx
mov eax, dword [edi + 4]
mov esi, dword [eax]
call fcn.00411fc5
push eax
xor eax, eax
inc eax
mov ecx, ebx
call fcn.0040ce37
test al, al
jne 0x41d560
test ebx, ebx
je 0x41d511
mov esi, ebx
call fcn.0040d009
push ebx
call fcn.0044f520
pop ecx
mov esi, dword [ebp + 8]
push 0
call fcn.00412565
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
call fcn.004120ba
mov ecx, eax
dec ecx
js 0x41d511
mov eax, dword [edi + 4]
mov eax, dword [eax]
call fcn.00413340
test al, al
je 0x41d511
cmp ecx, dword [esi + 0x274]
jge 0x41d511
mov eax, dword [esi + 0x270]
mov ecx, dword [eax + ecx*4]
cmp dword [ecx], 0
je 0x41d511
mov ecx, dword [ecx]
cmp dword [ecx], 0
jne 0x41d511
mov ebx, dword [ecx + 4]
test byte [ebx], 3
je 0x41d511
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp dword [eax + 8], 0xb
je 0x41d5dc
test byte [ebx], 0x10
jne 0x41d5dc
mov esi, eax
call fcn.00411fc5
mov ecx, eax
mov esi, ebx
call fcn.0040d0cb
cmp byte [ebp + 0xc], 0
je 0x41d613
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00411fc5
push eax
call fcn.00451750
test eax, eax
pop ecx
mov dword [ebp + 0xc], eax
je 0x41d5ce
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00411fc5
mov ecx, dword [ebp + 0xc]
cmp byte [eax + ecx - 1], 0xd
je 0x41d613
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
call fcn.00411fc5
mov ecx, dword [ebp + 0xc]
cmp byte [eax + ecx - 1], 0xa
je 0x41d613
mov ecx, 0x46bc20
mov esi, ebx
call fcn.0040d0cb
jmp 0x41d613
call fcn.0041202a
push dword [ebx + 4]
mov edx, eax
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
call fcn.00411f8d
push eax
push 1
push edx
call fcn.004527bd
push dword [ebx + 4]
call fcn.00452c13
add esp, 0x14
test eax, eax
je 0x41d613
mov esi, dword [ebp + 8]
push 0
call fcn.00412565
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp dword [eax + 8], 4
jne 0x41d51b
mov esi, ebx
call fcn.0040d009
call fcn.0040d009
push ebx
call fcn.0044f520
pop ecx
jmp 0x41d51b
Function at 0x41daa7
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 0x41db27
lea eax, [ebp - 0x11c]
push 0x46bb48
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x41db15
lea eax, [ebp - 0x11c]
push 0x46d44c
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x41db15
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push dword [ebp + 0xc]
push eax
call fcn.0040dd5e
add esp, 0xc
test al, al
je 0x41db3f
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41dace
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41db4a
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 0x41db38
lea eax, [ebp - 0x148]
push eax
push 0x46d448
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41dbd8
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test byte [ebp - 0x148], 0x10
je 0x41dbc4
lea eax, [ebp - 0x11c]
push 0x46bb48
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x41dbc4
lea eax, [ebp - 0x11c]
push 0x46d44c
push eax
call fcn.004514b0
test eax, eax
pop ecx
pop ecx
je 0x41dbc4
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.0041daa7
test al, al
je 0x41dbdc
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 0x41db66
mov bl, 1
jmp 0x41dbde
xor bl, bl
push dword [ebp - 4]
call edi
mov al, bl
jmp 0x41db38
Function at 0x41f04c
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.00451899
lea eax, [ebp - 0x104]
lea esi, [ebp - 0x104]
push eax
dec esi
call fcn.00451750
add esp, 0x10
xor ebx, ebx
cmp byte [eax + esi], 0x5c
jne 0x41f0b4
lea eax, [ebp - 0x104]
push eax
call fcn.00451750
pop ecx
lea ecx, [ebp - 0x104]
dec ecx
dec ecx
cmp byte [eax + ecx], 0x3a
je 0x41f0b4
lea eax, [ebp - 0x104]
push eax
call fcn.00451750
pop ecx
mov byte [eax + esi], bl
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41f0cc
cmp byte [ebp + 8], bl
jne 0x41f0cc
xor eax, eax
jmp 0x41f19b
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 0x41f0f2
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x41f0c5
push 0x14
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.004512d0
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x410], 0xa0000003
call fcn.00451750
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 0x41f192
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41f0e9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8