joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5da304
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x5da36a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.005d87f8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.005d7234
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x5da354
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5da371
lea eax, [ebp - 0x10]
call fcn.005d8588
ret

Function at 0x5de790
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x5de7c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.005d8678
jmp 0x5de7d2
mov eax, ebx
mov edx, esi
call fcn.005d85dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x5de7dc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.dll_GetLocaleInfoA
test eax, eax
jle 0x5de7fd
mov al, byte [esp]
jmp 0x5de7ff
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5dfc58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x5dfcbc
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.005d87f8
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_GetACP
mov edx, eax
pop eax
call fcn.005dbc20
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5dfcc3
lea eax, [ebp - 0xc]
call fcn.005d8588
ret
Function at 0x5e0d84
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0x88433c
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x5e0e48
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x5e0dbc
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x5e0e5f
dec edx
je 0x5e0ea0
jmp 0x5e0efd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x5e0efd
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5e0f60
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
xor esi, esi
xor edi, edi
xor eax, eax
mov ebp, ecx
test ebp, ebp
jns 0x5e0f7d
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x5e108f
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x5e0fb0
je 0x5e0ffc
sub ecx, 0x2b
je 0x5e0ff2
sub ecx, 4
je 0x5e0ff7
dec ecx
sub ecx, 0xa
jb 0x5e0fe1
jmp 0x5e0fff
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x5e0fc2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x5e0fd0
jmp 0x5e0fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x5e0fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x5e0fff
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x5e0fff
mov byte [eax], 0x3e
jmp 0x5e0fff
mov byte [eax], 0x3f
jmp 0x5e0fff
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x5e0f8f
mov al, byte [esp]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi], al
lea eax, [edi + 1]
mov dl, byte [esp + 2]
cmp dl, 0xff
je 0x5e104f
cmp byte [esp + 3], 0xff
jne 0x5e104f
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
lea eax, [edi + 2]
inc edi
jmp 0x5e1087
cmp dl, 0xff
je 0x5e1087
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 2]
shl edx, 6
or dl, byte [esp + 3]
mov byte [eax + edi + 2], dl
lea eax, [edi + 3]
add edi, 2
inc edi
dec ebp
jne 0x5e0f88
add esp, 0xc
pop ebp
pop edi
pop esi
ret

Function at 0x5e111c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
mov ecx, 0x8957a0
mov eax, ebx
mov edx, 8
test al, 1
je 0x5e1138
shr eax, 1
xor eax, 0xedb88320
jmp 0x5e113a
shr eax, 1
dec edx
jne 0x5e112b
mov dword [ecx], eax
inc ebx
add ecx, 4
cmp ebx, 0x100
jne 0x5e1124
pop ebx
ret
Function at 0x5e1150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x5e1159
mov eax, dword [ebp - 4]
add esp, 0xfffffebc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.005d8a38
xor eax, eax
push ebp
push 0x5e1239
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.005e111c
mov eax, dword [0x894e0c]
mov byte [eax], 0
mov dword [ebx], 0xffffffff
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x154]
call fcn.005d6e7c
mov edx, 1
lea eax, [ebp - 0x154]
call fcn.005d7218
call fcn.005d6ba8
test eax, eax
jne 0x5e1216
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x10145]
mov ecx, 0xfff1
lea eax, [ebp - 0x154]
call fcn.005d6fcc
mov dx, word [ebp - 8]
test dx, dx
jbe 0x5e1210
lea eax, [ebp - 0x10145]
xor ecx, ecx
mov cl, byte [eax]
mov esi, dword [ebx]
and esi, 0xff
xor ecx, esi
mov ecx, dword [ecx*4 + 0x8957a0]
mov esi, dword [ebx]
shr esi, 8
xor ecx, esi
mov dword [ebx], ecx
inc eax
dec dx
jne 0x5e11ec
cmp dword [ebp - 8], 0
jne 0x5e11c3
lea eax, [ebp - 0x154]
call fcn.005d6fec
not dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e1240
lea eax, [ebp - 4]
call fcn.005d8588
ret

Function at 0x5ec718
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x5ec738
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x5ec726
pop edi
pop esi
pop ebx
ret
Function at 0x5f4fd4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
mov ebx, 0x895cb4
mov eax, ebp
shr eax, 1
and eax, 0xff
mov dword [esp], eax
mov esi, ebp
and esi, 1
mov eax, ebp
and eax, 0x200
shr eax, 8
or esi, eax
mov edx, dword [esi*4 + 0x88a670]
mov eax, dword [esi*4 + 0x88a6b0]
xor eax, dword [esp]
call fcn.005f4f70
mov edi, eax
shl edi, 0x18
mov eax, edi
call fcn.005f4fac
mov dword [ebx], eax
mov edx, dword [esi*4 + 0x88a680]
mov eax, dword [esi*4 + 0x88a6c0]
xor eax, dword [esp]
call fcn.005f4f70
mov edi, eax
shl edi, 0x10
mov eax, edi
call fcn.005f4fac
mov dword [ebx + 0x1000], eax
mov edx, dword [esi*4 + 0x88a690]
mov eax, dword [esi*4 + 0x88a6d0]
xor eax, dword [esp]
call fcn.005f4f70
mov edi, eax
shl edi, 8
mov eax, edi
call fcn.005f4fac
mov dword [ebx + 0x2000], eax
mov edx, dword [esi*4 + 0x88a6a0]
mov eax, dword [esi*4 + 0x88a6e0]
xor eax, dword [esp]
call fcn.005f4f70
mov edi, eax
mov eax, edi
call fcn.005f4fac
mov dword [ebx + 0x3000], eax
inc ebp
add ebx, 4
cmp ebp, 0x400
jne 0x5f4fe0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5f5138
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0x4c]
mov dword [ebp - 0x14], eax
xor ebx, ebx
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [eax + ebx*4], edx
inc ebx
cmp ebx, 3
jne 0x5f516d
xor ebx, ebx
mov eax, ebx
mov esi, 3
xor edx, edx
div esi
mov eax, dword [ebp - 0x14]
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
xor eax, eax
lea edx, [eax + ecx]
and edx, 3
mov esi, dword [ebp - 8]
lea edx, [esi + edx*2]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dx, word [edx]
and dx, 1
movzx edx, dx
mov esi, dword [ebp - 0x18]
mov esi, dword [esi]
add esi, esi
or esi, edx
mov edi, dword [ebp - 0x18]
mov dword [edi], esi
mov esi, dword [ebp - 0x1c]
movzx esi, word [esi]
shr esi, 1
xor dx, 1
shl edx, 0xf
or si, dx
mov edx, dword [ebp - 0x1c]
mov word [edx], si
inc eax
cmp eax, 4
jne 0x5f5193
inc ebx
cmp ebx, 0xf
jne 0x5f517d
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jne 0x5f514f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5feee0
Capabilities:
Encrypt data using twofish

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov dword [esp + 0x18], 0x100
mov esi, 0x88f0f4
mov ebx, 0x899ce4
movzx edi, byte [esi]
mov dword [esp], edi
mov eax, edi
call fcn.005fde30
mov dword [esp + 8], eax
mov eax, edi
call fcn.005fde40
mov dword [esp + 0x10], eax
movzx edi, byte [esi + 0x100]
mov dword [esp + 4], edi
mov eax, edi
call fcn.005fde30
mov dword [esp + 0xc], eax
mov eax, edi
call fcn.005fde40
mov ebp, eax
mov dword [esp + 0x14], ebp
mov eax, edi
mov edx, dword [esp + 0xc]
shl edx, 8
or eax, edx
mov edx, ebp
shl edx, 0x10
or eax, edx
mov edx, ebp
shl edx, 0x18
or eax, edx
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
mov edx, eax
mov ecx, eax
shl ecx, 8
or edx, ecx
mov ecx, dword [esp + 8]
shl ecx, 0x10
or edx, ecx
mov ecx, dword [esp]
shl ecx, 0x18
or edx, ecx
mov dword [ebx + 0x400], edx
mov edx, dword [esp + 0xc]
shl ebp, 8
or edx, ebp
shl edi, 0x10
or edx, edi
mov ecx, dword [esp + 0x14]
shl ecx, 0x18
or edx, ecx
mov dword [ebx + 0x800], edx
mov edx, dword [esp + 8]
mov ecx, dword [esp]
shl ecx, 8
or edx, ecx
shl eax, 0x10
or edx, eax
mov eax, dword [esp + 8]
shl eax, 0x18
or edx, eax
mov dword [ebx + 0xc00], edx
add ebx, 4
inc esi
dec dword [esp + 0x18]
jne 0x5feef9
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4024d0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40250f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40250f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40250f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40250f
cmp dword [ecx + 0x74], 0xe
jbe 0x40250f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40b2a3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x41f010]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40b2e3
cmp byte [ebx], 0xa
jne 0x40b2e3
or byte [eax + edi + 0x28], 4
jmp 0x40b2e8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x40b3e6
mov al, byte [edx]
cmp al, 0x1a
je 0x40b3c8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x40b317
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x40b33c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x40b346
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x40b2f9
jmp 0x40b3e6
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b3c3
cmp dword [ebp - 0xc], 0
je 0x40b3c3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x41f010]
test byte [eax + edi + 0x28], 0x48
je 0x40b39d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40b388
mov byte [esi], dl
jmp 0x40b399
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41f010]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40b3e6
cmp byte [ebp - 1], 0xa
jne 0x40b3ac
cmp esi, ebx
jne 0x40b3ac
mov byte [esi], 0xa
jmp 0x40b3e5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00412113
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40b3e6
mov byte [esi], 0xd
jmp 0x40b3e5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x41f010]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40b3e2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40b3e6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40b3ef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x41f010]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40b432
cmp word [esi], dx
jne 0x40b432
or byte [edi + eax + 0x28], 4
jmp 0x40b437
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x40b58a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x40b56a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x40b479
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40b4af
cmp eax, edx
jae 0x40b4bb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x40b451
jmp 0x40b58a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b566
cmp dword [ebp - 0x14], 0
je 0x40b566
mov eax, dword [ebx*4 + 0x41f010]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x40b53e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x40b507
mov word [esi], cx
jmp 0x40b53a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x41f010]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x41f010]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x41f010]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x40b58a
pop ebx
cmp word [ebp - 4], bx
jne 0x40b54f
cmp esi, dword [ebp + 0xc]
jne 0x40b54f
mov word [esi], bx
jmp 0x40b587
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00412113
add esp, 0x10
cmp word [ebp - 4], bx
je 0x40b58a
push 0xd
jmp 0x40b583
mov ecx, dword [ebx*4 + 0x41f010]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40b581
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40b58a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40bdab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040bc1c

Function at 0x40c170
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40c1bb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040c30f
test al, al
jne 0x40c1b5
sub edx, 2
cmp edx, edi
jne 0x40c19b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40c1dd
lea eax, [edi + 2]
cmp edx, eax
je 0x40c1dd
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040c0bc
add esp, 0x10
jmp 0x40c2d7
push esi
lea ecx, [ebp - 0x255]
call fcn.0040c30f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c220
push dword [ebp - 0x25c]
jmp 0x40c1cd
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40c25d
cmp word [ebp - 0x226], 0
je 0x40c27e
cmp word [ebp - 0x226], ax
jne 0x40c25d
cmp word [ebp - 0x224], 0
je 0x40c27e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040c0bc
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40c2ca
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40c237
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40c2b2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40c2d7
push 0x40beec
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004121d0
add esp, 0x10
jmp 0x40c2a7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401cd1
leave
ret

Function at 0x40cd15
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40cd26
pop esi
ret
push ebx
push edi
push esi
call fcn.0040ccde
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00408e95
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40cd4e
push ebx
push esi
push edi
call fcn.00403660
add esp, 0xc
push 0
call fcn.00408e5b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40d112
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040cd63
Function at 0x40dff4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4183f4
push 0x4183ec
push str.FlsAlloc
push 0x1e
call fcn.0040ded2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e028
push dword [ebp + 8]
mov ecx, esi
call dword [0x4161b0]
call esi
jmp 0x40e02e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40e072
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418404
push 0x4183fc
push str.FlsGetValue
push 0x20
call fcn.0040ded2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e0a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4161b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x413805
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413781
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41397d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41397d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41392c
jg 0x41385e
test eax, eax
je 0x413922
push 1
push 0x1000
call fcn.0040be8f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x413884
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x413919
push 0x8000
push ebx
call fcn.00408267
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4138b0
jg 0x4138ab
cmp ecx, 0x1000
jb 0x4138b0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00411e90
add esp, 0x10
cmp eax, 0xffffffff
je 0x4138f5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4138ab
jl 0x4138dc
test ecx, ecx
jne 0x41389d
push dword [ebp - 0xc]
push ebx
call fcn.00408267
push esi
call fcn.00408e5b
add esp, 0xc
xor edi, edi
jmp 0x41398e
cmp byte [edi + 0x24], 0
je 0x41390c
cmp dword [edi + 0x20], 5
jne 0x41390c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x413917
mov edi, dword [edi + 0x18]
jmp 0x413919
xor edi, edi
push esi
call fcn.00408e5b
pop ecx
jmp 0x41398e
test ecx, ecx
jg 0x4138ee
jl 0x41392c
test eax, eax
jae 0x4138ee
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412113
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41394f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4138ee
jmp 0x413986
push ebx
call fcn.0040d5b8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4138ee
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x41398e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x41398b
mov edi, dword [edi + 0x18]
jmp 0x41398e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00412113
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4153d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4153fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4153fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret