joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d127
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor edi, edi
call fcn.0040d2cb
mov esi, eax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push str.Control_PanelMouse
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0xc], 3
mov byte [ebp - 4], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d183
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push str.SwapMouseButtons
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 7
ja case.default.0x40d188
jmp dword [esi*4 + 0x40d1d7]
xor eax, eax
jmp 0x40d1d1
push 2
pop edi
jmp case.default.0x40d188
push 8
jmp 0x40d195
push 0x20
jmp 0x40d195
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 6
inc eax
inc eax
jmp 0x40d1c1
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 0xfffffffa
add eax, 8
mov edi, eax
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_mouse_event]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d1f7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor edi, edi
call fcn.0040d2cb
push 4
pop esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push str.Control_PanelMouse
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0xc], esi
mov byte [ebp - 4], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d253
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push str.SwapMouseButtons
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
cmp eax, 7
ja case.default.0x40d25b
jmp dword [eax*4 + 0x40d2ab]
xor eax, eax
jmp 0x40d2a4
mov edi, esi
jmp case.default.0x40d25b
push 0x10
pop edi
jmp case.default.0x40d25b
push 0x40
jmp 0x40d26c
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 0xc
add eax, esi
jmp 0x40d294
xor eax, eax
cmp byte [ebp - 4], 0x31
setne al
dec eax
and eax, 0xfffffff4
add eax, 0x10
mov edi, eax
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_mouse_event]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41162d
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x472b8c]
jne 0x41163b
call fcn.0041151a
mov eax, dword [0x47c50c]
mov eax, dword [eax]
add dword [0x47c50c], 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 0x411681
fadd qword [0x46d7e8]
fmul qword [0x46d7e0]
pop ecx
ret

Function at 0x41182a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x41184c
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00450220
add esp, 0xc
jmp 0x41185f
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0045156a
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.0044e470
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4

Function at 0x411933
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x25c]
test eax, eax
mov ecx, 0x10000
je 0x411946
cmp eax, ecx
jne 0x411961
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x254]
call fcn.0045156a
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 0x411978
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x23c]
push edi
je 0x411a2f
cmp eax, dword [esi + 0x234]
jae 0x4119fb
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 0x4119e3
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x250]
call fcn.0045115e
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 0x411997
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 0x411a04
jmp 0x4119fb
Function at 0x411a39
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 0x411b99
mov ebp, 0xff
push 1
mov eax, esi
call fcn.00411bc9
cmp eax, 1
mov eax, esi
jne 0x411a95
push 8
call fcn.00411bc9
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 0x411b34
push 0xf
call fcn.00411bc9
mov ebx, eax
push 2
mov eax, esi
xor edi, edi
call fcn.00411bc9
cmp eax, 3
jne 0x411af4
push eax
pop edi
push eax
mov eax, esi
call fcn.00411bc9
cmp eax, 7
jne 0x411af4
push 0xa
pop edi
push 5
mov eax, esi
call fcn.00411bc9
cmp eax, 0x1f
jne 0x411af4
push 0x29
pop edi
push 8
mov eax, esi
call fcn.00411bc9
cmp eax, ebp
jne 0x411af4
mov edi, 0x128
jmp 0x411ae7
add edi, ebp
push 8
mov eax, esi
call fcn.00411bc9
cmp eax, ebp
je 0x411ae5
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x234]
sub eax, ebx
jmp 0x411b30
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 0x411b02
call fcn.00411978
cmp dword [0x480240], 0x1000
jbe 0x411b7a
mov edi, dword [esi + 0x24c]
and dword [0x480240], 0
test edi, edi
je 0x411b80
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 0x411b80
mov byte [esi + 0x240], 1
jmp 0x411b80
inc dword [0x480240]
cmp byte [esi + 0x240], 0
jne 0x411bc4
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x234], eax
jb 0x411a58
lea edi, [esi + 0x258]
mov eax, dword [edi]
test eax, eax
je 0x411bbc
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x250]
call fcn.0045115e
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 0x411bbe

Function at 0x411c59
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00450c80
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 0x41263e
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 0x469cee
push eax
call fcn.0044ddf0
pop ecx
pop ecx
lea esi, [esp + 0x18]
call fcn.00411c59
lea eax, [esp + 0xa8]
push eax
call fcn.0044e5e0
pop ecx
mov ebx, eax
call fcn.00411c59
lea eax, [esp + 0xa8]
push eax
mov eax, ebx
call fcn.00411c86
mov eax, esi
call fcn.00411d1d
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 0x41269f
push 0x46a7e4
push dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.00450e75
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x4126c6
inc eax
jmp 0x412722
mov esi, edi
call fcn.0041272a
push dword [edi]
mov esi, eax
test esi, esi
je 0x4126de
call fcn.00451252
mov eax, esi
jmp 0x412721
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0045156a
add esp, 0x10
push 0x99f2
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.00412825
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 0x412705
push dword [edi]
mov dword [edi + 8], ecx
call fcn.004527f9
mov dword [edi + 4], eax
xor eax, eax
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41272a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00453650
xor eax, eax
mov cl, byte [eax + 0x473038]
mov byte [ebp + eax - 0x20], cl
mov cl, byte [eax + 0x473030]
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x412739
push ebx
push edi
lea eax, [ebp - 8]
push str.AU3_
push eax
call fcn.0044ddf0
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00450220
add esp, 0x14
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x10020]
push 0x10000
push 1
push eax
call fcn.0045156a
add esp, 0x10
cmp eax, 0x18
mov dword [ebp - 0xc], eax
jl 0x412820
lea edx, [eax - 0x14]
xor ecx, ecx
test edx, edx
jle 0x4127cc
xor edx, edx
lea eax, [ebp + ecx - 0x10020]
mov bl, byte [ebp + edx - 0x20]
cmp bl, byte [eax + edx]
jne 0x4127bc
inc edx
cmp edx, 0x14
jl 0x4127ad
cmp edx, 0x14
je 0x4127e0
mov eax, dword [ebp - 0xc]
inc ecx
lea edx, [eax - 0x14]
cmp ecx, edx
jl 0x4127a4
push 1
push 0xffffffffffffffec
push dword [esi]
lea edi, [edi + eax - 0x14]
call fcn.00450f0f
add esp, 0xc
jmp 0x412777
push 0
lea eax, [edi + ecx + 0x14]
push eax
push dword [esi]
call fcn.00450f0f
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.0045156a
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.0044e470
add esp, 0x18
neg eax
sbb eax, eax
and eax, 4
pop edi
pop ebx
leave
ret
push 3
pop eax
jmp 0x41281c
Function at 0x412825
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.0041249f
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.004125df
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x41286a
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.004125b1
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x412850
pop edi
pop esi
leave
ret 0xc
Function at 0x412b54
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.004116dd
push 0
push dword [esi + 4]
xor edi, edi
push dword [esi]
inc edi
mov dword [ebp - 0xc], edi
call fcn.00450f0f
add esp, 0xc
lea eax, [ebp - 0x378]
push eax
push str.___AUTOIT_SCRIPT___
call fcn.00412cc4
test eax, eax
je 0x412b9f
push 6
pop eax
jmp 0x412cbd
push dword [esi]
lea eax, [ebp - 1]
push edi
push edi
push eax
call fcn.0045156a
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.0045156a
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.0045156a
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.0045156a
mov ebx, dword [ebp - 8]
add esp, 0x40
push 1
push 0x10
push dword [esi]
xor ebx, 0xa685
call fcn.00450f0f
mov eax, dword [ebp + 0xc]
add esp, 0xc
push dword [eax]
call fcn.00450159
pop ecx
push edi
mov dword [ebp + 0xc], eax
call fcn.00450159
pop ecx
push dword [esi]
mov dword [ebp - 0x10], eax
push 1
push edi
push eax
call fcn.0045156a
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x10]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push esi
call fcn.00412825
push edi
push esi
lea edi, [ebp - 0xc]
call fcn.00411689
cmp ebx, dword [ebp - 0xc]
je 0x412c65
push dword [ebp + 0xc]
call fcn.0045007c
pop ecx
push esi
call fcn.0045007c
pop ecx
push 0xa
jmp 0x412b99
cmp byte [ebp - 1], 1
jne 0x412ca7
lea eax, [ebp - 0x270]
call fcn.004116dd
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.00411709
push esi
call fcn.0045007c
jmp 0x412cb2
push dword [ebp + 0xc]
call fcn.0045007c
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 0x412cc4
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.0045156a
add esp, 0x10
push 0x18ee
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00412825
lea eax, [ebp - 0x14]
push str.FILE
push eax
mov byte [ebp - 0x10], 0
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
jne 0x412e42
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.0045156a
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.0045156a
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00412825
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
or eax, 0xffffffff
call fcn.0040dcbd
pop ecx
mov edi, eax
lea eax, [ebp - 0x330]
push edi
push eax
call fcn.0044ddf0
push edi
call fcn.0044dfb0
add esp, 0xc
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.0045156a
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.0045156a
add esp, 0x20
add edi, 0xf479
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00412825
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
or eax, 0xffffffff
call fcn.0040dcbd
pop ecx
mov edi, eax
push edi
push dword [ebp + 0xc]
call fcn.0044ddf0
push edi
call fcn.0044dfb0
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x330]
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x412e59
xor edi, edi
inc edi
push edi
push edi
push dword [esi]
call fcn.00450f0f
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.0045156a
xor dword [ebp - 8], 0x87bc
mov eax, dword [ebp - 8]
push edi
add eax, 0x18
push eax
push dword [esi]
call fcn.00450f0f
add esp, 0x1c
jmp 0x412e46
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 1
je 0x412cd3
push 6
pop eax
pop edi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x412e53
Function at 0x41a32e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
cmp byte [ebp + 0xc], 0
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x190]
push edi
lea edi, [esi + 0x56c]
mov ebx, dword [edi]
mov dword [esp + 0xc], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
je 0x41a365
call fcn.0040deb5
cmp byte [ebp + 0x10], 0
je 0x41a4de
lea eax, [esi + 0x5b0]
push eax
lea ebx, [esp + 0x7c]
mov dword [esp + 0x14], eax
call fcn.0040f5de
lea edi, [esi + 0x5c0]
lea esi, [esp + 0x5c]
mov dword [esp + 0x14], edi
call fcn.0040e0ee
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x670]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x5cc]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x678]
lea edi, [ebx + 0x6c4]
lea esi, [esp + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
call fcn.0040e0ee
mov eax, dword [ebx + 0x6d0]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x6d4]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x254]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x258]
add ebx, 0x240
push ebx
mov dword [esp + 0x44], ebx
lea ebx, [esp + 0x6c]
mov dword [esp + 0x40], eax
call fcn.0040f5de
mov edi, dword [esp + 0xc]
push dword [ebp + 8]
mov eax, edi
call fcn.004190b3
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x78]
push eax
call fcn.0040fca9
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x5c]
call fcn.0040e184
mov eax, dword [esp + 0x18]
push dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x670], eax
call fcn.0040392b
mov eax, dword [esp + 0x28]
mov dword [edi + 0x678], eax
mov eax, dword [esp + 0x2c]
lea ebx, [esp + 0x50]
call fcn.0040e184
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
mov dword [edi + 0x6d0], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x6d4], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x254], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x258], eax
lea eax, [esp + 0x68]
push eax
call fcn.0040fca9
lea ecx, [esp + 0x68]
call fcn.0040f830
push dword [esp + 0x50]
call fcn.0044dfb0
push dword [esp + 0x60]
call fcn.0044dfb0
pop ecx
pop ecx
lea ecx, [esp + 0x78]
call fcn.0040f830
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0xc]
jmp 0x41a4e8
push dword [ebp + 8]
mov eax, esi
call fcn.004190b3
cmp byte [ebp + 0xc], 0
je 0x41a4fa
call fcn.0040df0f
jmp 0x41a4fa
call fcn.0041a56c
cmp ebx, dword [edi]
jl 0x41a4f5
mov eax, dword [esp + 0x4c]
pop edi
mov dword [esi + 0x190], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b708
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
xor eax, eax
mov ecx, ebx
call fcn.004059cd
cmp dword [eax + 8], 4
jne 0x41b783
push 0x60
call fcn.0044df46
test eax, eax
pop ecx
je 0x41b737
call fcn.0040b1b5
mov edi, eax
jmp 0x41b739
xor edi, edi
xor eax, eax
mov ecx, ebx
call fcn.004059cd
mov esi, eax
call fcn.0040f8e0
xor ebx, ebx
push eax
inc ebx
mov eax, ebx
mov ecx, edi
call fcn.0040b1c5
test al, al
jne 0x41b80f
test edi, edi
je 0x41b770
mov esi, edi
call fcn.0040b390
push edi
call fcn.0044dfb0
pop ecx
mov esi, dword [ebp + 0xc]
push 0
call fcn.0040fe5d
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
xor eax, eax
mov ecx, ebx
call fcn.004059cd
call fcn.0040f9b2
mov esi, eax
dec esi
js 0x41b770
xor eax, eax
mov ecx, ebx
call fcn.004059cd
call fcn.00410bf5
test al, al
je 0x41b770
cmp esi, dword [edi + 0x580]
jge 0x41b770
jb 0x41b7b9
call fcn.004073be
jmp 0x41b7c2
mov eax, dword [edi + 0x57c]
mov eax, dword [eax + esi*4]
cmp dword [eax], 0
je 0x41b770
cmp esi, dword [edi + 0x580]
jb 0x41b7d6
call fcn.004073be
jmp 0x41b7df
mov eax, dword [edi + 0x57c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x41b770
cmp esi, dword [edi + 0x580]
jb 0x41b7f5
call fcn.004073be
jmp 0x41b7fe
mov eax, dword [edi + 0x57c]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
test byte [edi], 3
je 0x41b770
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004059cd
cmp dword [eax + 8], 0xb
je 0x41b8ae
test byte [edi], 0x10
jne 0x41b8ae
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004059cd
mov esi, eax
call fcn.0040f8e0
mov ecx, eax
mov esi, edi
call fcn.0040b452
cmp byte [ebp + 0x10], 0
je 0x41b8f4
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004059cd
mov esi, eax
call fcn.0040f8e0
push eax
call fcn.0044e5e0
mov ebx, eax
test ebx, ebx
pop ecx
je 0x41b8a0
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
call fcn.004059cd
mov esi, eax
call fcn.0040f8e0
cmp byte [eax + ebx - 1], 0xd
je 0x41b8f4
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
call fcn.004059cd
mov esi, eax
call fcn.0040f8e0
cmp byte [eax + ebx - 1], 0xa
je 0x41b8f4
mov ecx, 0x46a938
mov esi, edi
call fcn.0040b452
jmp 0x41b8f4
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.004059cd
call fcn.0040f922
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, ebx
call fcn.004059cd
mov ecx, eax
call fcn.0040f8a8
push dword [edi + 4]
push eax
push ebx
push esi
call fcn.0045115e
push dword [edi + 4]
call fcn.004515b4
add esp, 0x14
test eax, eax
je 0x41b8f4
mov esi, dword [ebp + 0xc]
push 0
call fcn.0040fe5d
mov ecx, dword [ebp + 8]
xor eax, eax
call fcn.004059cd
cmp dword [eax + 8], 4
jne 0x41b77a
mov esi, edi
call fcn.0040b390
call fcn.0040b390
push edi
call fcn.0044dfb0
pop ecx
jmp 0x41b77a
Function at 0x41bdb9
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 0x41be39
lea eax, [ebp - 0x11c]
push 0x46a860
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x41be27
lea eax, [ebp - 0x11c]
push 0x46c120
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x41be27
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push dword [ebp + 0xc]
push eax
call fcn.0040c06b
add esp, 0xc
test al, al
je 0x41be51
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41bde0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41be5c
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 0x41be4a
lea eax, [ebp - 0x148]
push eax
push 0x46c11c
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41beea
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test byte [ebp - 0x148], 0x10
je 0x41bed6
lea eax, [ebp - 0x11c]
push 0x46a860
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x41bed6
lea eax, [ebp - 0x11c]
push 0x46c120
push eax
call fcn.0044e470
test eax, eax
pop ecx
pop ecx
je 0x41bed6
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.0041bdb9
test al, al
je 0x41beee
push 0x46c120
call esi
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41be78
mov bl, 1
jmp 0x41bef0
xor bl, bl
push dword [ebp - 4]
call edi
mov al, bl
jmp 0x41be4a
Function at 0x41d467
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.0044e66b
lea eax, [ebp - 0x104]
lea esi, [ebp - 0x104]
push eax
dec esi
call fcn.0044e5e0
add esp, 0x10
xor ebx, ebx
cmp byte [eax + esi], 0x5c
jne 0x41d4cf
lea eax, [ebp - 0x104]
push eax
call fcn.0044e5e0
pop ecx
lea ecx, [ebp - 0x104]
dec ecx
dec ecx
cmp byte [eax + ecx], 0x3a
je 0x41d4cf
lea eax, [ebp - 0x104]
push eax
call fcn.0044e5e0
pop ecx
mov byte [eax + esi], bl
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41d4e7
cmp byte [ebp + 8], bl
jne 0x41d4e7
xor eax, eax
jmp 0x41d5b6
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 0x41d50d
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x41d4e0
push 0x14
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.00450c80
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x410], 0xa0000003
call fcn.0044e5e0
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 0x41d5ad
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41d504
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8