joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41af30
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
lea eax, [esp + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
push eax
push 0x8004667e
push ebx
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea esi, [edi + 8]
mov dword [esp + 0x20], esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push ebx
test edi, edi
je 0x41af78
mov eax, dword [edi + 0xc]
push dword [esi]
mov eax, dword [eax + 0x18]
call eax
jmp 0x41af88
push dword [0x4531c8]
call dword [0x4531e0]
mov dword [esp + 0x20], esi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x41afa2
call esi
cmp eax, 0x2733
je 0x41afa2
call esi
cmp eax, 0x70
jne 0x41b01a
call esi
test eax, eax
jne 0x41afb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
imul ecx, dword [esp + 0x30], 0x3e8
xorps xmm0, xmm0
movlpd qword [esp + 0x14], xmm0
mov eax, 0x310
mov dword [esp + 0x14], ebx
mov word [esp + 0x18], ax
push ecx
push 1
test edi, edi
je 0x41afeb
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 0x2c]
push dword [ecx]
call eax
jmp 0x41affc
lea eax, [esp + 0x1c]
push eax
push dword [0x4531c8]
call dword [0x4531f4]
test eax, eax
jle 0x41b01a
test byte [esp + 0x1a], 0x10
mov eax, 0xd
pop edi
pop esi
mov ecx, 0
pop ebp
cmovne eax, ecx
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
mov eax, 0xd
pop ebx
add esp, 0xc
ret

Function at 0x41b030
Capabilities:
Encode data using xor

Disassembly:
push ecx
movzx eax, word [0x453398]
xor ecx, ecx
mov dword [esp], eax
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
cdq
push esi
sub eax, edx
push edi
mov edi, eax
sar edi, 1
test edi, edi
jle 0x41b0db
cmp edi, 0x10
jb 0x41b0c7
mov eax, edi
and eax, reloc.WS2_32.dll_ntohs
jns 0x41b06a
dec eax
or eax, 0xfffffff0
inc eax
mov edx, edi
xorps xmm2, xmm2
sub edx, eax
xorps xmm1, xmm1
movups xmm0, xmmword [ebx + ecx*2]
xorps xmm2, xmm0
movups xmm0, xmmword [ebx + ecx*2 + 0x10]
add ecx, 0x10
xorps xmm1, xmm0
cmp ecx, edx
jl 0x41b074
mov ax, word [esp + 0xc]
xorps xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
xorps xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 2
xorps xmm1, xmm0
movd edx, xmm1
xor ax, dx
movzx edx, ax
mov eax, edx
mov dword [esp + 0xc], eax
cmp ecx, edi
jge 0x41b0db
mov si, word [esp + 0xc]
nop dword [eax]
xor si, word [ebx + ecx*2]
inc ecx
cmp ecx, edi
jl 0x41b0d0
jmp 0x41b0e0
mov si, word [esp + 0xc]
call fcn.0042fb41
movzx ecx, si
add eax, ecx
push eax
call fcn.0042fb62
add esp, 4
call fcn.0042fb41
pop edi
pop esi
mov dword [0x453398], eax
pop ebx
add esp, 4
jmp fcn.0042fb41

Function at 0x41c940
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x41d580
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x41de90
Capabilities:
Encode data using base64

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
test edx, edx
jle 0x41df40
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
add esi, 2
nop word [eax + eax]
movzx ecx, byte [esi - 2]
shr ecx, 2
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
cmp edx, 1
jbe 0x41decd
movzx edi, byte [esi - 1]
shr edi, 4
jmp 0x41decf
xor edi, edi
movzx ecx, byte [esi - 2]
and ecx, 3
shl ecx, 4
or ecx, edi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
cmp edx, 1
jbe 0x41df23
cmp edx, 2
jbe 0x41def6
movzx edi, byte [esi]
shr edi, 6
jmp 0x41def8
xor edi, edi
movzx ecx, byte [esi - 1]
and ecx, 0xf
shl ecx, 2
or ecx, edi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
add eax, 3
cmp edx, 2
jbe 0x41df2a
movzx ecx, byte [esi]
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x41df2c
mov byte [eax + 2], 0x3d
add eax, 3
mov cl, 0x3d
mov byte [eax], cl
sub edx, 3
inc eax
add esi, 3
test edx, edx
jg 0x41deb0
pop edi
pop esi
pop ebx
mov byte [eax], 0
ret
Function at 0x41ee30
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x10]
sub esp, 0x14
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x24]
test edx, edx
jle 0x41ef86
push ebx
push edi
mov edi, dword [esp + 0x28]
cmp edx, 8
jb 0x41ef69
lea eax, [ebp - 1]
lea ebx, [edx - 1]
add eax, edx
add ebx, edi
cmp edi, eax
ja 0x41ee70
cmp ebx, ebp
jae 0x41ef69
lea eax, [edx - 1]
add eax, esi
cmp edi, eax
ja 0x41ee81
cmp ebx, esi
jae 0x41ef69
mov ebx, esi
sub ebx, ebp
cmp edx, 0x40
jb 0x41ef2c
mov eax, edx
mov edx, edi
sub edx, ebp
and eax, 0xffffffc0
mov dword [esp + 0x14], edx
mov edx, esi
sub edx, edi
mov dword [esp + 0x20], eax
lea eax, [edi + 0x20]
mov dword [esp + 0x18], edx
lea edx, [esi + 0x30]
mov dword [esp + 0x10], eax
mov edi, eax
lea eax, [ebp + 0x10]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x34]
movups xmm1, xmmword [ecx + esi]
mov esi, dword [esp + 0x18]
lea eax, [eax + 0x40]
movups xmm0, xmmword [eax - 0x50]
lea edi, [edi + 0x40]
xorps xmm1, xmm0
movups xmmword [edi - 0x60], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [ebx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax + ebp - 0x40], xmm1
movups xmm1, xmmword [esi + edi - 0x40]
mov esi, dword [esp + 0x1c]
movups xmm0, xmmword [eax - 0x30]
xorps xmm1, xmm0
movups xmmword [edi - 0x40], xmm1
movups xmm1, xmmword [esi + ecx]
mov esi, dword [esp + 0x2c]
add ecx, 0x40
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
movups xmmword [edi - 0x30], xmm1
cmp ecx, dword [esp + 0x20]
jl 0x41eec2
mov edi, dword [esp + 0x28]
mov eax, edx
mov ebp, dword [esp + 0x30]
and al, 0x3f
cmp al, 8
jb 0x41ef65
mov esi, dword [esp + 0x2c]
mov eax, edx
and eax, 0xfffffff8
sub edi, ebp
mov dword [esp + 0x20], eax
lea eax, [ecx + ebp]
mov dword [esp + 0x34], edi
movq xmm1, qword [eax + ebx]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add ecx, 8
xorps xmm1, xmm0
movq qword [edi + eax - 8], xmm1
cmp ecx, dword [esp + 0x20]
jl 0x41ef42
mov edi, dword [esp + 0x28]
cmp ecx, edx
jge 0x41ef84
sub esi, ebp
lea eax, [ecx + ebp]
sub edi, ebp
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [edi + eax - 1], cl
sub edx, 1
jne 0x41ef72
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x41fb70
Capabilities:
Encode data using xor
Get hostname

Disassembly:
sub esp, 0x488
mov eax, dword [0x4538c0]
xor eax, esp
mov dword [esp + 0x484], eax
push ebp
mov ebp, dword [esp + 0x498]
lea eax, [esp + 0x88]
push edi
mov edi, dword [esp + 0x498]
push 0x400
push 0
push eax
call fcn.00423cf0
add esp, 0xc
mov dword [esp + 0x8c], 0x4d4c544e
lea eax, [esp + 0xc]
mov dword [esp + 0x90], 0x505353
mov byte [esp + 0x94], 2
push 0x80
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp + 0xc]
mov byte [esp + 0x1b], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41fbe5
sub ecx, edx
mov byte [esp + 0x9c], 0x30
push ebx
push esi
mov dword [esp + 0xa8], 0xa0818203
lea ebx, [esp + 0x14]
lea eax, [ecx + ecx]
xor esi, esi
mov dword [esp + 0x10], eax
mov byte [esp + 0xa0], al
mov byte [esp + 0xa2], al
mov al, byte [esp + 0x14]
movsx eax, al
push eax
call fcn.0042fdbe
mov byte [esp + esi + 0xc8], al
lea ebx, [ebx + 1]
mov al, byte [ebx]
add esp, 4
mov byte [esp + esi + 0xc5], 0
add esi, 2
test al, al
je 0x41fc4e
cmp esi, 0x40
jl 0x41fc22
push edi
call fcn.00429f99
mov ecx, dword [esp + 0x4a0]
xor eax, eax
add esp, 4
cmp word [ecx + 0x12c], 0x17
sete al
lea eax, [eax*4 + 0x130]
mov eax, dword [eax + ecx]
mov dword [edi + 4], eax
mov al, byte [ecx + 0x12e]
xor byte [edi + 1], al
xor esi, esi
push 8
push edi
call fcn.0041b030
xor byte [edi + esi], al
add esp, 8
inc esi
cmp esi, 8
jl 0x41fc83
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x10]
pop esi
pop ebx
add eax, 0x30
mov dword [esp + 0xa8], ecx
push eax
lea eax, [esp + 0x90]
push ebp
push eax
call fcn.0041de90
mov ecx, dword [esp + 0x498]
add esp, 0xc
pop edi
pop ebp
xor ecx, esp
call fcn.0042255f
add esp, 0x488
ret

Function at 0x423264
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4538c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x44a07c
push esi
call fcn.00439f64
pop ecx
pop ecx
test eax, eax
jne 0x42975e
xor al, al
jmp 0x4297db
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.00429471
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x429798
push dword [ebp - 0x210]
call fcn.0042eb3a
xor al, al
jmp 0x4297d9
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x42979e
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4297be
push edx
call fcn.00429667
pop ecx
test al, al
je 0x429789
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4297cc
mov bl, 1
push dword [ebp - 0x210]
call fcn.0042eb3a
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042255f
leave
ret
Function at 0x430f87
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00422570
mov eax, dword [0x4538c0]
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.004356c6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x430fc9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x431125
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004436d0
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 + 0x454ba8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004332bb
mov ecx, dword [esi*4 + 0x454ba8]
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 0x43111e
cmp eax, dword [ecx + edi + 0x24]
jne 0x43111e
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 0x43111e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004332bb
add esp, 0x14
test edx, edx
jl 0x43111e
jg 0x431094
test eax, eax
jb 0x43111e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x43111e
jl 0x4310ae
cmp dword [ebp - 0x1008], eax
ja 0x43111e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4310cc
test ebx, ebx
je 0x431105
cmp ecx, edi
jae 0x431105
mov al, byte [ecx]
cmp al, 0xd
jne 0x4310e6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4310f2
cmp byte [ecx + 1], 0xa
jne 0x4310f2
inc ecx
jmp 0x4310f2
movzx eax, al
movsx eax, byte [eax + 0x453a00]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4310cc
cmp edx, ebx
jne 0x4310cc
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x431123
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042255f
leave
ret
Function at 0x434d46
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 + 0x454ba8]
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 0x434d86
cmp byte [ebx], 0xa
jne 0x434d86
or byte [edi + eax + 0x28], 4
jmp 0x434d8b
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 0x434e8a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x434e6d
inc eax
cmp dl, 0xd
je 0x434db7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x434ddd
cmp eax, ecx
jae 0x434deb
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 0x434d9f
jmp 0x434e8a
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 0x434e68
cmp dword [ebp - 0x10], 0
je 0x434e68
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x454ba8]
test byte [eax + edi + 0x28], 0x48
je 0x434e42
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x434e2d
mov byte [esi], dl
jmp 0x434e3e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x454ba8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x434e8a
cmp byte [ebp - 1], 0xa
jne 0x434e51
cmp esi, ebx
jne 0x434e51
mov byte [esi], 0xa
jmp 0x434e89
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004332d9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x434e8a
mov byte [esi], 0xd
jmp 0x434e89
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x454ba8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x434e87
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x434e8a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x434e93
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 + 0x454ba8]
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 0x434ed9
cmp word [ebx], dx
jne 0x434ed9
or byte [eax + edi + 0x28], 4
jmp 0x434ede
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 0x435041
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 0x435021
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x434f1f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x434f55
cmp eax, edx
jae 0x434f63
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 0x434efa
jmp 0x435041
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 0x43501c
cmp dword [ebp - 0x18], 0
je 0x43501c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x454ba8]
test byte [eax + edi + 0x28], 0x48
je 0x434ff2
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 0x434fb6
mov word [esi], cx
jmp 0x434fed
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x454ba8]
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 + 0x454ba8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x454ba8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x435041
pop eax
cmp word [ebp - 4], ax
jne 0x435002
cmp esi, ebx
jne 0x435002
mov word [esi], ax
jmp 0x43503e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004332d9
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x435041
push 0xd
pop eax
jmp 0x434ffd
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x454ba8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43503b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x435041
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 0x4358d7
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00435783
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x435a46
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x435a46
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4359fb
jg 0x435933
test eax, eax
je 0x4359f1
push 1
push 0x1000
call fcn.00435f1b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x435956
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4359e8
push 0x8000
push ebx
call fcn.004326fa
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43597f
jg 0x43597a
cmp ecx, 0x1000
jb 0x43597f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00433c21
add esp, 0x10
cmp eax, 0xffffffff
je 0x4359c4
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 0x43597a
jl 0x4359ab
test ecx, ecx
jne 0x43596c
push dword [ebp - 0xc]
push ebx
call fcn.004326fa
push esi
call fcn.00435f78
add esp, 0xc
xor ebx, ebx
jmp 0x435a54
cmp byte [edi + 0x24], 0
je 0x4359db
cmp dword [edi + 0x20], 5
jne 0x4359db
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4359e6
mov ebx, dword [edi + 0x18]
jmp 0x4359e8
xor ebx, ebx
push esi
call fcn.00435f78
pop ecx
jmp 0x435a54
test ecx, ecx
jg 0x4359bd
jl 0x4359fb
test eax, eax
jae 0x4359bd
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004332d9
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x435a1b
cmp byte [edi + 0x1c], 0
je 0x4359bd
jmp 0x435a4c
push ebx
call fcn.004378fd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4359bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x435a54
cmp byte [edi + 0x1c], 0
je 0x435a51
mov ebx, dword [edi + 0x18]
jmp 0x435a54
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004332d9
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x436266
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44b718
push 0x44b710
push str.FlsAlloc
push 0x1f
call fcn.004360e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43629a
push dword [ebp + 8]
mov ecx, esi
call dword [0x444248]
call esi
jmp 0x4362a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4362e4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44b728
push 0x44b720
push str.FlsGetValue
push 0x21
call fcn.004360e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43631b
push dword [ebp + 8]
mov ecx, esi
call dword [0x444248]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x436323
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x44b730
push 0x44b728
push str.FlsSetValue
push 0x22
call fcn.004360e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43635d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x444248]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43cc3a
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 0x43ccd7
push ebx
push esi
call fcn.0043cc03
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.0043cb97
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43cc84
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43ccd6
push edi
push eax
call fcn.00437967
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43cca4
call fcn.00435f78
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43ccd5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043cb97
add esp, 0x20
test eax, eax
jne 0x43ccc3
push edi
call fcn.00435f78
jmp 0x43cccb
push ebx
call fcn.00435f78
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 0x43ccda
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43cceb
pop esi
ret
push ebx
push edi
push esi
call fcn.0043cc03
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00437967
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43cd13
push ebx
push esi
push edi
call fcn.00423770
add esp, 0xc
push 0
call fcn.00435f78
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43d46d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043cf88
Function at 0x440ccf
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4538c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x440d12
call fcn.00435ef5
mov dword [eax], 0xf
call fcn.00435f08
mov dword [eax], 0xd
call fcn.00435e27
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042255f
leave
ret
test eax, eax
jne 0x440d19
inc eax
jmp 0x440d06
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 0x440d04
xor eax, eax
cmp ecx, 1
setne al
jmp 0x440d06

Function at 0x4435d0
Capabilities:
Parse pe header

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