joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ff94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, str.Cn_Unassigned
call fcn.0040f804
mov esi, eax
test esi, esi
jns 0x40ffae
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
ret
cmp esi, 0x1d
jg 0x40ffca
xor edx, edx
xor eax, eax
bts edx, esi
cmp esi, 0x20
cmovae eax, edx
xor edx, eax
cmp esi, 0x40
cmovae eax, edx
jmp 0x40ffd1
mov edx, dword [esi*4 + 0x4a71c4]
mov ecx, edi
pop edi
pop esi
jmp fcn.0040fa8a

Function at 0x411c4a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x4b0188
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edi
call fcn.004730aa
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x411caa
push ebx
push 2
push 0
push esi
call fcn.004783d8
add esp, 0xc
test eax, eax
js 0x411ca0
push esi
call fcn.00477569
mov ebx, eax
pop ecx
test ebx, ebx
js 0x411ca0
cmp ebx, 0x7fffffff
jne 0x411cae
call fcn.0047a547
mov dword [eax], 0x15
push esi
call fcn.00476776
xor eax, eax
pop ecx
pop ebx
pop edi
pop esi
leave
ret
push 0
push 0
push esi
call fcn.004783d8
add esp, 0xc
test eax, eax
js 0x411ca0
lea eax, [ebx + 1]
test edi, edi
je 0x411cd1
mov edx, eax
mov ecx, edi
call fcn.00414e36
jmp 0x411cd8
push eax
call fcn.0047caf2
pop ecx
mov edi, eax
test edi, edi
je 0x411ca0
push esi
push ebx
push 1
push edi
call fcn.0047c1c8
add esp, 0x10
cmp eax, ebx
je 0x411d17
call fcn.0047a547
mov ecx, dword [ebp - 4]
push edi
mov dword [eax], 5
test ecx, ecx
je 0x411d10
mov ecx, dword [ecx + 0x14]
lea eax, [ecx + 0x10]
push eax
call dword [ecx + 4]
pop ecx
pop ecx
jmp 0x411ca0
call fcn.00476b70
jmp 0x411d0d
push esi
mov byte [edi + ebx], 0
call fcn.00476776
mov eax, dword [ebp - 8]
mov dword [eax], ebx
mov eax, edi
jmp 0x411ca8
Function at 0x4190fc
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0xc], edi
cmp dword [edi + 0x30], 0
je 0x41912a
mov eax, edi
cdq
and edx, 0xffff
or edx, 0x80000
push edx
push eax
call fcn.0046c3a2
pop ecx
pop ecx
mov esi, dword [edi + 0x14]
xor ecx, ecx
or byte [edi + 5], 2
mov dword [ebp - 8], ecx
lea eax, [esi + 0x34]
mov dword [ebp - 4], eax
cmp dword [esi + 0x24], ecx
jle 0x41916a
mov eax, dword [eax]
shr eax, 0x1a
push eax
mov eax, dword [edi + 0x18]
lea edx, [eax + ecx*8]
mov ecx, ebx
call fcn.00418d5c
mov eax, dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 8]
add eax, 8
inc ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [esi + 0x24]
jl 0x419141
push dword [edi + 0x18]
lea eax, [ebx + 0x10]
push eax
call dword [ebx + 4]
dec dword [esi]
cmp dword [esi], 0
pop ecx
pop ecx
jg 0x419186
mov edx, esi
mov ecx, ebx
call fcn.00417f1e
mov edx, dword [edi + 0x1c]
xor esi, esi
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], esi
test edx, edx
je 0x4191ee
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x1c]
mov dword [ecx + 4], eax
mov dword [eax], ecx
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
mov dword [edx + 0x18], esi
mov dword [edx + 0x1c], esi
mov dword [ecx + 4], eax
mov dword [eax], ecx
mov dword [edx + 0x10], esi
mov dword [edx + 0x14], esi
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x419195
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4191eb
mov edi, eax
push dword [edi + 0x2c]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push dword [edi + 0x28]
call fcn.00411628
lea eax, [ebx + 0x10]
push edi
push eax
call dword [ebx + 4]
add esp, 0x10
mov edi, esi
test esi, esi
jne 0x4191c7
mov edi, dword [ebp - 0xc]
mov dword [edi + 0x1c], esi
movzx eax, word [edi + 6]
imul ecx, eax, 0x18
mov eax, dword [ebx + 0x44]
mov ecx, dword [ecx + eax + 8]
test ecx, ecx
je 0x419217
mov eax, edi
cdq
and edx, 0xffff
or edx, 0x80000
push edx
push eax
push ebx
call ecx
add esp, 0xc
lea edx, [edi + 0xc]
mov dword [edi + 0x20], esi
mov ecx, dword [edx]
xor eax, eax
mov word [edi + 6], ax
mov eax, dword [edx + 4]
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], esi
mov dword [ecx + 4], eax
mov dword [eax], ecx
mov dword [edx], esi
mov dword [edx + 4], esi
cmp byte [ebx + 0x68], 2
jne 0x419253
cmp dword [edi], esi
je 0x419253
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [edx + 4], ecx
mov dword [ecx], edx
jmp 0x41925d
lea eax, [ebx + 0x10]
push edi
push eax
call dword [ebx + 4]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419400
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, edx
xor ebx, ebx
push edi
mov edi, ecx
mov eax, dword [esi + 4]
shl eax, 0x1c
sar eax, 0x1c
sub eax, ebx
je 0x4194dc
sub eax, 1
je 0x4194a3
sub eax, 1
je 0x419495
sub eax, 1
je 0x419483
sub eax, 1
je 0x41944d
sub eax, 1
jne 0x4195db
push dword [ebp + 8]
call fcn.00415802
jmp 0x4194d6
cmp dword [esi + 0x28], ebx
je 0x41945e
push dword [ebp + 8]
lea edx, [esi + 0x30]
call fcn.0042c4cc
pop ecx
push dword [esi + 0x1c]
mov edx, dword [ebp + 8]
mov ecx, edi
push dword [esi + 0x18]
call fcn.004193c0
push dword [esi + 0x24]
mov edx, dword [ebp + 8]
mov ecx, edi
push dword [esi + 0x20]
call fcn.004193c0
jmp 0x4195d1
mov eax, dword [esi + 0x14]
mov edx, dword [ebp + 8]
push dword [eax + 4]
push dword [eax]
call fcn.004193c0
jmp 0x4194d5
cmp dword [esi + 0x30], ebx
je 0x4195d4
push dword [esi + 0x30]
jmp 0x4194d1
cmp dword [esi + 0x3c], ebx
jle 0x4194c4
mov eax, dword [esi + 0x38]
mov ecx, edi
mov edx, dword [ebp + 8]
push dword [eax + ebx*8 + 4]
push dword [eax + ebx*8]
call fcn.004193c0
inc ebx
pop ecx
pop ecx
cmp ebx, dword [esi + 0x3c]
jl 0x4194a8
cmp dword [esi + 0x34], 0
je 0x4195d4
push dword [esi + 0x34]
push edi
call dword [ebp + 8]
pop ecx
pop ecx
jmp 0x4195d4
mov eax, dword [esi + 0x14]
push eax
push edi
mov dword [esp + 0x18], eax
call dword [ebp + 8]
mov edx, dword [esp + 0x18]
pop ecx
pop ecx
mov dword [esp + 0x14], ebx
lea eax, [edx + 0x34]
mov dword [esp + 0x18], eax
cmp dword [edx + 0x24], ebx
jle 0x4195a3
mov ecx, edx
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x1c], edx
cmp dword [eax + 4], ebx
mov eax, dword [esp + 0x14]
je 0x419590
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx]
and ecx, 0xc0000000
je 0x419575
cmp ecx, 0x40000000
jne 0x419553
mov ecx, dword [edx + eax*8]
test ecx, ecx
je 0x419544
push ecx
push edi
call dword [ebp + 8]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
pop ecx
pop ecx
mov ecx, dword [edx + eax*8 + 4]
test ecx, ecx
je 0x41958c
push ecx
push edi
call dword [ebp + 8]
jmp 0x419586
cmp ecx, 0x80000000
jne 0x419564
mov ecx, dword [edx + eax*8]
test byte [ecx + 5], 1
jmp 0x41954a
cmp ecx, 0xc0000000
jne 0x41958c
mov eax, dword [edx + eax*8]
and eax, 0xfffffffc
push eax
jmp 0x41954d
push dword [edx + eax*8 + 4]
mov ecx, edi
push dword [edx + eax*8]
mov edx, dword [ebp + 8]
call fcn.004193c0
mov eax, dword [esp + 0x1c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
add dword [esp + 0x18], 8
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [ecx + 0x24]
jl 0x419504
movzx eax, word [esi + 6]
cmp eax, 1
je 0x4195d4
imul ecx, eax, 0x18
mov eax, dword [edi + 0x44]
mov ecx, dword [ecx + eax + 0xc]
test ecx, ecx
je 0x4195d4
push dword [ebp + 8]
mov eax, esi
cdq
and edx, 0xffff
or edx, 0x80000
push edx
push eax
push edi
call ecx
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0047293b
int3
Function at 0x4446ea
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ebp + 0xc], 0xfffff
push ebx
push esi
push edi
mov dword [esp + 0x1c], edx
mov esi, ecx
ja 0x444823
mov edi, dword [ebp + 8]
jb 0x444717
cmp edi, 0xffffffff
ja 0x444823
mov eax, dword [ebp + 0xc]
push 8
shr eax, 0x10
pop ecx
cmp eax, ecx
jne 0x444823
push dword [ebp + 0xc]
lea edx, [esp + 0x14]
mov ecx, esi
push edi
call fcn.0044460d
pop ecx
pop ecx
test eax, eax
jne 0x444830
mov edx, dword [esp + 0x10]
cmp edx, 0x10000
jbe 0x44475d
push str.too_many_arguments
push esi
call fcn.00419fc5
jmp 0x44482e
xor eax, eax
mov ecx, esi
inc eax
cmp edx, eax
cmovb edx, eax
shl edx, 3
call fcn.00414e56
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x444830
movzx eax, word [edi + 6]
mov ecx, dword [esp + 0x10]
cmp eax, 2
je 0x444792
push 8
pop edx
cmp ax, dx
jne 0x4447c6
test byte [edi + 5], 8
je 0x4447c6
cmp ecx, dword [edi + 0x28]
jne 0x4447c6
xor esi, esi
test ecx, ecx
je 0x444819
mov eax, dword [edi + 0x24]
push dword [eax + esi*8 + 4]
push dword [eax + esi*8]
call fcn.00411662
pop ecx
mov dword [ebx + esi*8], eax
mov dword [ebx + esi*8 + 4], edx
inc esi
pop ecx
mov ecx, dword [esp + 0x10]
cmp esi, ecx
jb 0x4447a3
jmp 0x444819
xor ebx, ebx
test ecx, ecx
je 0x444815
push dword [ebp + 0xc]
mov edx, ebx
mov ecx, esi
push edi
call fcn.0041bc5e
push edx
push eax
mov dword [esp + 0x28], eax
call fcn.004105cd
add esp, 0x10
test eax, eax
jne 0x444807
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [eax + ebx*8], ecx
mov dword [eax + ebx*8 + 4], edx
inc ebx
mov ecx, dword [esp + 0x10]
cmp ebx, ecx
jb 0x4447cc
mov ebx, eax
jmp 0x444819
mov edx, dword [esp + 0x14]
mov ecx, esi
push ebx
call fcn.004446b1
jmp 0x44482f
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov eax, ebx
jmp 0x444832
push str.not_a_object
push esi
call fcn.00419e81
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466396
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], ecx
xor edi, edi
mov ecx, dword [ebp + 8]
lea edx, [ebx - 1]
mov esi, ecx
test edx, edx
js 0x4663bf
movzx eax, byte [esi]
shl edi, 2
xor edi, eax
inc esi
sub edx, 1
jns 0x4663b1
mov esi, 0x3f5
mov eax, edi
xor edx, edx
div esi
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], edx
mov eax, dword [eax]
mov esi, dword [eax + edx*4]
jmp 0x4663f7
cmp dword [esi + 0x10], edi
jne 0x4663f5
cmp dword [esi + 0xc], ebx
jne 0x4663f5
push ebx
push ecx
push dword [esi + 8]
call fcn.00493207
add esp, 0xc
test eax, eax
je 0x466432
mov ecx, dword [ebp + 8]
mov esi, dword [esi]
test esi, esi
jne 0x4663d7
push 0x14
call fcn.0046cf3b
mov edx, eax
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp + 0x10]
and dword [edx], esi
mov esi, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
mov dword [edx + 0x10], edi
mov dword [edx + 0xc], ebx
mov dword [edx + 4], ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + esi*4]
mov dword [edx], ecx
mov eax, dword [eax]
mov dword [eax + esi*4], edx
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
jmp 0x46642b

Function at 0x46643a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea edx, [ebx - 1]
xor edi, edi
test edx, edx
js 0x46645d
movzx eax, byte [esi]
shl edi, 2
xor edi, eax
inc esi
sub edx, 1
jns 0x46644f
mov esi, 0x3f5
mov eax, edi
xor edx, edx
div esi
mov eax, dword [ecx]
mov esi, dword [eax + edx*4]
jmp 0x46648e
cmp dword [esi + 0x10], edi
jne 0x46648c
cmp dword [esi + 0xc], ebx
jne 0x46648c
push ebx
push dword [ebp + 8]
push dword [esi + 8]
call fcn.00493207
add esp, 0xc
test eax, eax
je 0x46649b
mov esi, dword [esi]
test esi, esi
jne 0x46646f
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
jmp 0x466494

Function at 0x4664a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov edx, ebx
push esi
push edi
push 3
xor esi, esi
pop edi
movzx eax, byte [edx]
shl esi, 2
xor esi, eax
inc edx
sub edi, 1
jns 0x4664b0
xor edx, edx
mov eax, esi
mov edi, 0x3f5
div edi
mov eax, dword [ecx]
lea edx, [eax + edx*4]
mov ecx, dword [edx]
jmp 0x4664ea
cmp dword [ecx + 0x10], esi
jne 0x4664e6
cmp dword [ecx + 0xc], 4
jne 0x4664e6
mov eax, dword [ecx + 8]
mov eax, dword [eax]
cmp eax, dword [ebx]
je 0x4664f7
mov edx, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4664d2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ecx]
push 0x14
mov dword [edx], eax
mov esi, dword [ecx + 4]
push ecx
call fcn.0046cf6b
pop ecx
pop ecx
mov eax, esi
jmp 0x4664f0
Function at 0x472e97
Capabilities:
Parse pe header

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

Function at 0x477362
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00492ef0
mov eax, dword [0x4c1004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00481e8e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4773a4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x477500
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00492e40
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4c21e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00483f35
mov ecx, dword [esi*4 + 0x4c21e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4774f9
cmp eax, dword [ecx + edi + 0x24]
jne 0x4774f9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4774f9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00483f35
add esp, 0x14
test edx, edx
jl 0x4774f9
jg 0x47746f
test eax, eax
jb 0x4774f9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4774f9
jl 0x477489
cmp dword [ebp - 0x1008], eax
ja 0x4774f9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4774a7
test ebx, ebx
je 0x4774e0
cmp ecx, edi
jae 0x4774e0
mov al, byte [ecx]
cmp al, 0xd
jne 0x4774c1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4774cd
cmp byte [ecx + 1], 0xa
jne 0x4774cd
inc ecx
jmp 0x4774cd
movzx eax, al
movsx eax, byte [eax + 0x4c1100]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4774a7
cmp edx, ebx
jne 0x4774a7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4774fe
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046cdfd
leave
ret
Function at 0x47a06f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c1004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x49ca20
push esi
call fcn.00489352
pop ecx
pop ecx
test eax, eax
jne 0x47a09d
xor al, al
jmp 0x47a11a
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00479db0
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x47a0d7
push dword [ebp - 0x210]
call fcn.00476b70
xor al, al
jmp 0x47a118
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x47a0dd
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x47a0fd
push edx
call fcn.00479fa6
pop ecx
test al, al
je 0x47a0c8
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x47a10b
mov bl, 1
push dword [ebp - 0x210]
call fcn.00476b70
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046cdfd
leave
ret
Function at 0x482e66
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x4c21e0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x482ea6
cmp byte [ebx], 0xa
jne 0x482ea6
or byte [edi + eax + 0x28], 4
jmp 0x482eab
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x482faa
mov dl, byte [eax]
cmp dl, 0x1a
je 0x482f8d
inc eax
cmp dl, 0xd
je 0x482ed7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x482efd
cmp eax, ecx
jae 0x482f0b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x482ebf
jmp 0x482faa
push 0
lea eax, [ebp - 0x10]
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 0x482f88
cmp dword [ebp - 0x10], 0
je 0x482f88
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4c21e0]
test byte [eax + edi + 0x28], 0x48
je 0x482f62
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x482f4d
mov byte [esi], dl
jmp 0x482f5e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c21e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x482faa
cmp byte [ebp - 1], 0xa
jne 0x482f71
cmp esi, ebx
jne 0x482f71
mov byte [esi], 0xa
jmp 0x482fa9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00483f53
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x482faa
mov byte [esi], 0xd
jmp 0x482fa9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4c21e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x482fa7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x482faa
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x482fb3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4c21e0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x482ff9
cmp word [ebx], dx
jne 0x482ff9
or byte [eax + edi + 0x28], 4
jmp 0x482ffe
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x483161
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x483141
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x48303f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x483075
cmp eax, edx
jae 0x483083
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x48301a
jmp 0x483161
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48313c
cmp dword [ebp - 0x18], 0
je 0x48313c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4c21e0]
test byte [eax + edi + 0x28], 0x48
je 0x483112
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4830d6
mov word [esi], cx
jmp 0x48310d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4c21e0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4c21e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4c21e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x483161
pop eax
cmp word [ebp - 4], ax
jne 0x483122
cmp esi, ebx
jne 0x483122
mov word [esi], ax
jmp 0x48315e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00483f53
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x483161
push 0xd
pop eax
jmp 0x48311d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4c21e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x48315b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x483161
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x483a68
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c1004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x483aab
call fcn.0047a534
mov dword [eax], 0xf
call fcn.0047a547
mov dword [eax], 0xd
call fcn.004853d9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046cdfd
leave
ret
test eax, eax
jne 0x483ab2
inc eax
jmp 0x483a9f
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x483a9d
xor eax, eax
cmp ecx, 1
setne al
jmp 0x483a9f
Function at 0x487289
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49da30
push 0x49da28
push str.FlsAlloc
push 0x1f
call fcn.00487148
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4872bd
push dword [ebp + 8]
mov ecx, esi
call dword [0x49b19c]
call esi
jmp 0x4872c3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x487307
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49da40
push 0x49da38
push str.FlsGetValue
push 0x21
call fcn.00487148
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48733e
push dword [ebp + 8]
mov ecx, esi
call dword [0x49b19c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x487346
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x49da48
push 0x49da40
push str.FlsSetValue
push 0x22
call fcn.00487148
mov esi, eax
add esp, 0x10
test esi, esi
je 0x487380
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x49b19c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x487388
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x49d9a8
push str.GetTempPath2W
push 5
call fcn.00487148
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4873c2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x49b19c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]

Function at 0x488925
Capabilities:
Set environment variable

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