joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10125ca
Capabilities:
Encode data using xor

Disassembly:
pop ds
aad 0xf
xor cl, ch
mov dl, 0x17
mov ah, 0x2a
mov ch, 0xe
adc esi, edi
sbb dword [ebp + 0x293e8f78], esp
dec edi
dec edx
push edi
in eax, 0x88
push cs
sbb al, 0x54
jmp 0x2bb53ce6
push esp
jecxz 0x101252b
mov cs, word [ebx]
push eax
invalid
jmp 0x1012545
outsd dx, dword [esi]
and al, 1
imul ebp, esi, 0x26d968a8
fldenv [esi]
add ecx, dword [edx]
jg 0x101256d
dec esi
sbb dh, byte [ecx + 0x12]
jno 0x1012589
mov eax, dword [0x7c50bc41]
enter 0xffffffffffff840b, 0xffffffffffffff9f
lodsb al, byte [esi]
in al, dx
cmp cl, bh
lea ecx, [esi - 0x3a37300d]
xor al, 0xbd
xor al, 0x28
invalid
lds esi, [edi*4 - 0x6c0fd7cc]
and byte [esp + ebp*4], 0xd9
das
jbe 0x1012565
loop 0x101252f
sbb esp, ebp
jmp 0xfc1f342b
jecxz 0x101254e
jge 0x1012613
cmp byte [eax + 0x4f], cl
aaa
push esi
mov edx, 0x8e98cd26
out 0x76, al
dec eax
dec ebx
jns 0x1012600
sub dword [edi + 0x44], 0x59
push ss
lodsd eax, dword [esi]
cmp esi, dword [edi]
push ss
mov eax, dword [ecx]
dec ecx
pop edi
mov al, bl
js 0x1012575
sub al, 0x82
js 0x1012602
push 0xf3f0db3c
pop eax
stosb byte es:[edi], al
inc esi
dec edx
inc ecx
mov bl, 0x7a
test eax, 0x889881dc
pop eax
shr esp, 1
push 0xffffffffffffffba
invalid
mov ebx, 0x6093d4cd
aam 0x93
pushal
or eax, 0x7ca03a29
movsb byte es:[edi], byte [esi]
dec ebx
adc eax, dword [eax + 0x64]
faddp st(5)
pop esp
jae 0x10125b7
mov dword [0x24def981], eax
jecxz 0x1012646
cmp ecx, 0x2ce324de
dec edx
cmpsd dword [esi], dword es:[edi]
push ecx
lea ecx, [edx]
cwde
sub edx, dword [esi + ebx*4 - 0x4cc5a5cf]
sti
cdq
xchg esp, eax
test ch, ch
and dword [ebp - 0x237de151], edi
sti
adc di, bp
js 0x1012643
daa
push ebx
je 0x10126a4
neg byte [ecx + eax*8]
mov esp, 0x24d10e32
mov edx, 0xca25e408
test byte [eax + 0x49], 0x89
lcall 0xfbcd, 0xb7775847
shl dword [edx + edi*4], 1
or ah, ah
and eax, 0x4948f6ca
mov dword [edx - 0x4888a7b9], ebx
int 0xfb
retf 0x48f6
xlatb
add byte [edx - 0x76], 0xd3
mov cl, byte [esi]
sub al, 0xf8
jb 0x1012649
jns 0x101260c
test dl, ah
outsd dx, dword [esi]
call 0x56e76cf3
adc dword [ecx], ebx
or byte [ecx], bl
inc eax
invalid
mov ebx, 0xf175c6ab
int1
sbb esi, ebp
invalid
add al, 0xf7
out 0x90, al
jbe 0x10126ca
in al, dx
pop eax
inc esp
jecxz 0x1012709
sbb byte [ebp + ebp*2 - 0x343f8068], 0xc2
lea bp, [edi]
and eax, dword [ecx + edi*8 + 0x70f046fd]
fsubr dword [eax]
pop ebp
push ecx
inc dword [ebx + 0x3946f885]
imul ebx, dword [eax - 0x74], 0x48f54243
cmp dword [ecx + 0x58], ebp
mov word [ebx + 0x42], es
cmc
dec eax
add al, 0x68
cmpsd dword [esi], dword es:[edi]
push 0x2c96c930
imul edx, dword [edx], 0xfffffffa
mov cl, 0xda
aas
pop es
fstp dword [ecx + 0x4154df57]
xchg ebp, eax
out 0x5a, al
call 0x8b5fc32f
out 5, al
test eax, 0xb37076a4
bnd jle 0x1012713
xor cl, byte [edx - 0x54]
mov ebp, 0x80d1133e
loopne 0x101268f
mov dl, 0xe4
shr dword [edi + 0x61f09216], 1
add dword [ecx], 0x22f86f24
push ss
xchg edx, eax
invalid
push esi
out 0x92, al
cmp eax, esp
invalid
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x6a7008], 0x8088405
inc edx
mov dword [ebx + 0x6a7008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cc40
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cc71
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc59
add dl, dl
jne 0x41cc7c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cccd
xor eax, eax
add dl, dl
jne 0x41cc89
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd6a
add dl, dl
jne 0x41cc98
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cca3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccb9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41ccc3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cc68
mov eax, 1
add dl, dl
jne 0x41ccdb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cce6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccd2
sub eax, ebx
mov ebx, 1
jne 0x41cd19
mov ecx, 1
add dl, dl
jne 0x41ccff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccf6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cd30
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd3b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd27
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cd8b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cc68
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e214
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6906d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e2c5
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e2ae
test esi, esi
jbe 0x41e2c5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e2a0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e2c5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e27d
jmp 0x41e2c5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e2c5
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6906da
ret
Function at 0x41eb1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x6910cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eb57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb70
lea eax, [ebp - 0x10]
mov edx, dword [0x6a9258]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb83
lea eax, [ebp - 0x10]
mov edx, dword [0x6a9258]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb8f
adc edx, 0
mov edx, dword [edx*4 + 0x6a80e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41ec9d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec90
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec90
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec90
cmp dx, 0x150
ja 0x41ec90
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec90
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ecb5
inc ebx
cmp ebx, 0x19
jne 0x41eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6910d2
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x402772
Capabilities:
Parse pe header

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

Function at 0x406cb8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x419b6c
push str.FlsAlloc
push 0x1f
call fcn.00406b80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406cec
push dword [ebp + 8]
mov ecx, esi
call dword [0x419160]
call esi
jmp 0x406cf2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x406d36
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x419b90
push str.FlsGetValue
push 0x21
call fcn.00406b80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406d6d
push dword [ebp + 8]
mov ecx, esi
call dword [0x419160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x406d75
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x419ba4
push str.FlsSetValue
push 0x22
call fcn.00406b80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x406daf
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x419160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4087e5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408882
push ebx
push esi
call fcn.004087ae
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408742
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40882f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408881
push edi
push eax
call fcn.00405ad1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40884f
call fcn.00405a97
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408880
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408742
add esp, 0x20
test eax, eax
jne 0x40886e
push edi
call fcn.00405a97
jmp 0x408876
push ebx
call fcn.00405a97
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40b5cb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00406550
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40b63a
cmp esi, dword [ebp - 4]
je 0x40b635
cmp dword [ebp + 0xc], 0
je 0x40b635
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40b612
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0040b11d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x40b63c
xor eax, eax
inc eax
jmp 0x40b63c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40b6a1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x421514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00406550
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00406550
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x40b718
cmp word [ecx], dx
je 0x40b718
mov eax, dword [0x41ae4c]
push edi
dec eax
push eax
push 0x41ad38
call fcn.0040b640
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x40b78b
cmp word [eax], dx
je 0x40b78b
mov eax, dword [edi]
test eax, eax
je 0x40b73c
cmp word [eax], dx
je 0x40b73c
lea eax, [ebp - 0x10]
push eax
call fcn.0040b023
jmp 0x40b745
lea eax, [ebp - 0x10]
push eax
call fcn.0040b0be
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x40b7b5
mov eax, dword [0x41ad34]
push dword [ebp - 0x14]
dec eax
push eax
push 0x41aa28
call fcn.0040b640
add esp, 0xc
test al, al
je 0x40b7b5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x40b780
cmp word [eax], di
je 0x40b780
lea eax, [ebp - 0x10]
push eax
call fcn.0040b023
pop ecx
jmp 0x40b7b7
lea eax, [ebp - 0x10]
push eax
call fcn.0040b0be
jmp 0x40b77d
mov eax, dword [edi]
test eax, eax
je 0x40b7a2
cmp word [eax], dx
je 0x40b7a2
lea eax, [ebp - 0x10]
push eax
call fcn.0040afd8
pop ecx
jmp 0x40b7b5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x40b880
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0040b4c5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40b880
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x40b880
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x40b880
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40b80d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00406eb5
test ebx, ebx
je 0x40b87b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00406eb5
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40b880
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40b880
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0040d6c8
add esp, 0x10
xor eax, eax
inc eax
jmp 0x40b882
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402aa5
leave
ret
Function at 0x413aed
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x413c35
xor ecx, ecx
cmp word [eax], cx
je 0x413c35
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00416858
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.00409e1a
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x413b46
cmp eax, 3
jne 0x413b80
cmp word [esp + 0xa], 0x3a
jne 0x413b80
cmp eax, 2
jne 0x413b64
lea eax, [esp + 8]
push 0x419480
push eax
call fcn.00416898
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x413c35
push 0xfffffffffffffffe
pop edi
jmp 0x413c35
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x413b95
cmp ax, bx
jne 0x413b9f
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x413b88
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x413bde
test byte [esp + 0x21c], 0x10
je 0x413bc5
push 0xfffffffffffffffe
pop edi
jmp 0x413bd5
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x413c33
cmp word [esp + 0x10], bp
jne 0x413bec
cmp word [esp + 0x12], bp
je 0x413c0b
cmp word [esp + 0x10], bx
jne 0x413bfa
cmp word [esp + 0x12], bx
je 0x413c0b
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x413c33
cmp word [esp + 0x12], ax
jne 0x413c33
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x413c20
test al, 0x10
je 0x413c33
jmp 0x413c30
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x413c33
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x413c60
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x413c79
push dword [0x42293c]
call fcn.00414ebe
pop edi
ret 4
push esi
push edi
push dword [0x42293c]
call fcn.00414f26
mov esi, eax
test esi, esi
je 0x413ce3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x413ccf
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x413cbe
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x421e00]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x42293c]
call fcn.00414eec
pop esi
pop edi
ret 4
Function at 0x413cf0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x413d2c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x413f10
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x42293c]
call fcn.00414f26
mov esi, eax
test esi, esi
je 0x413f8f
cmp dword [esi + 4], 0
je 0x413f60
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.004140c0
test eax, eax
je 0x413f54
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413f9a
cmp dword [esp + 8], 0
je 0x413f9a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4
Function at 0x4140c0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x4140e2
push ebx
call fcn.00413cf0
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x1c]
sub ecx, ebp
add ecx, dword [ebx + 0x10]
cmp ebp, esi
jl 0x41415e
mov eax, esi
sub eax, 1
je 0x41414a
sub eax, 1
je 0x414134
sub eax, 2
je 0x414120
push esi
push ecx
push dword [esp + 0x20]
call fcn.00411aa0
add esp, 0xc
mov eax, esi
sub dword [ebx + 0xc], esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx]
pop edi
mov dword [eax], ecx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
mov cx, word [ecx]
pop edi
mov word [eax], cx
mov eax, esi
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov dl, byte [ecx]
mov eax, esi
mov ecx, dword [esp + 0x18]
pop edi
mov byte [ecx], dl
sub dword [ebx + 0xc], esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
push ebp
push ecx
push eax
call fcn.00411aa0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, ebp
mov ecx, dword [ebx]
sub esi, ebp
mov dword [esp + 0x18], eax
push 0
cmp esi, edx
jl 0x4141a6
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
add eax, ebp
mov dword [ebx + 0xc], 0
pop ebp
pop ebx
ret 0xc
lea eax, [esp + 0x18]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
cmp esi, eax
jle 0x4141c6
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push dword [ebx + 4]
push eax
call fcn.00411aa0
sub dword [ebx + 0xc], esi
lea eax, [esi + ebp]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4141f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x421e00]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x414380
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x41423e
test ebp, ebp
je 0x4142e6
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x41425a
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004140c0
mov dword [esp + 0x10], eax
jmp 0x414274
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x4142e9
test cl, cl
je 0x414288
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x4142c3
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x421e00]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x4142e6
cmp dword [esp + 0x28], 0
jne 0x414230
cmp cl, 0xd
je 0x4142f2
cmp cl, 0xa
jne 0x414230
dec esi
jmp 0x414363
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x414363
jmp 0x4142f5
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x4142fd
dec esi
jmp 0x414363
cmp cl, 0xd
jne 0x414363
dec esi
cmp dword [edi], 0
je 0x41431b
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.004140c0
mov dword [esp + 0x10], eax
jmp 0x414331
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x414363
cmp dword [edi], 0
je 0x414342
inc dword [ebx + 0xc]
jmp 0x414363
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10