joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b016
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 + 0x43f4e8]
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 0x40b059
cmp word [esi], dx
jne 0x40b059
or byte [edi + eax + 0x28], 4
jmp 0x40b05e
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 0x40b1b1
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 0x40b191
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x40b0a0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40b0d6
cmp eax, edx
jae 0x40b0e2
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 0x40b078
jmp 0x40b1b1
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 0x40b18d
cmp dword [ebp - 0x14], 0
je 0x40b18d
mov eax, dword [ebx*4 + 0x43f4e8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x40b165
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x40b12e
mov word [esi], cx
jmp 0x40b161
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43f4e8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43f4e8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43f4e8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x40b1b1
pop ebx
cmp word [ebp - 4], bx
jne 0x40b176
cmp esi, dword [ebp + 0xc]
jne 0x40b176
mov word [esi], bx
jmp 0x40b1ae
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040f7b0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x40b1b1
push 0xd
jmp 0x40b1aa
mov ecx, dword [ebx*4 + 0x43f4e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40b1a8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40b1b1
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 0x40bee3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x43e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x430f0c
push esi
call fcn.00417b86
pop ecx
pop ecx
test eax, eax
jne 0x40bf11
xor al, al
jmp 0x40bf8e
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.0040bc26
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x40bf4b
push dword [ebp - 0x210]
call fcn.0040facf
xor al, al
jmp 0x40bf8c
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40bf51
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x40bf71
push edx
call fcn.0040be19
pop ecx
test al, al
je 0x40bf3c
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40bf7f
mov bl, 1
push dword [ebp - 0x210]
call fcn.0040facf
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406bb3
leave
ret
Function at 0x40fed9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00424210
mov eax, dword [0x43e004]
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.004155d7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x40ff1b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x410077
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424240
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 + 0x43f4e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040f792
mov ecx, dword [esi*4 + 0x43f4e8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x410070
cmp eax, dword [edi + ecx + 0x24]
jne 0x410070
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410070
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040f792
add esp, 0x14
test edx, edx
jl 0x410070
jg 0x40ffe6
test eax, eax
jb 0x410070
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x410070
jl 0x410000
cmp dword [ebp - 0x1008], eax
ja 0x410070
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41001e
test ebx, ebx
je 0x410057
cmp ecx, edi
jae 0x410057
mov al, byte [ecx]
cmp al, 0xd
jne 0x410038
lea eax, [edi - 1]
cmp ecx, eax
jae 0x410044
cmp byte [ecx + 1], 0xa
jne 0x410044
inc ecx
jmp 0x410044
movzx eax, al
movsx eax, byte [eax + 0x43e040]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41001e
cmp edx, ebx
jne 0x41001e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x410075
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406bb3
leave
ret

Function at 0x416532
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x431ae4
push 0x431adc
push str.FlsAlloc
push 0x1e
call fcn.0041635f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416566
push dword [ebp + 8]
mov ecx, esi
call dword [0x430224]
call esi
jmp 0x41656c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4165b0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x431af4
push 0x431aec
push str.FlsGetValue
push 0x20
call fcn.0041635f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4165e7
push dword [ebp + 8]
mov ecx, esi
call dword [0x430224]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x416eca
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.00416e46
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x417042
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x417042
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x416ff1
jg 0x416f23
test eax, eax
je 0x416fe7
push 1
push 0x1000
call fcn.0041725f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x416f49
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x416fde
push 0x8000
push ebx
call fcn.00414fb2
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 0x416f75
jg 0x416f70
cmp ecx, 0x1000
jb 0x416f75
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040cb61
add esp, 0x10
cmp eax, 0xffffffff
je 0x416fba
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 0x416f70
jl 0x416fa1
test ecx, ecx
jne 0x416f62
push dword [ebp - 0xc]
push ebx
call fcn.00414fb2
push esi
call fcn.00415991
add esp, 0xc
xor edi, edi
jmp 0x417053
cmp byte [edi + 0x24], 0
je 0x416fd1
cmp dword [edi + 0x20], 5
jne 0x416fd1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x416fdc
mov edi, dword [edi + 0x18]
jmp 0x416fde
xor edi, edi
push esi
call fcn.00415991
pop ecx
jmp 0x417053
test ecx, ecx
jg 0x416fb3
jl 0x416ff1
test eax, eax
jae 0x416fb3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040f7b0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x417014
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x416fb3
jmp 0x41704b
push ebx
call fcn.00416ddc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x416fb3
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 0x417053
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x417050
mov edi, dword [edi + 0x18]
jmp 0x417053
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040f7b0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a476
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a2e7
Function at 0x41db97
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43e004]
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 0x41dbe2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041dd36
test al, al
jne 0x41dbdc
sub edx, 2
cmp edx, edi
jne 0x41dbc2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41dc04
lea eax, [edi + 2]
cmp edx, eax
je 0x41dc04
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041dae3
add esp, 0x10
jmp 0x41dcfe
push esi
lea ecx, [ebp - 0x255]
call fcn.0041dd36
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 0x41dc47
push dword [ebp - 0x25c]
jmp 0x41dbf4
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 0x41dc84
cmp word [ebp - 0x226], 0
je 0x41dca5
cmp word [ebp - 0x226], ax
jne 0x41dc84
cmp word [ebp - 0x224], 0
je 0x41dca5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041dae3
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41dcf1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41dc5e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41dcd9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41dcfe
push 0x41d913
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00421660
add esp, 0x10
jmp 0x41dcce
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.00406bb3
leave
ret

Function at 0x41de3c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41de4d
pop esi
ret
push ebx
push edi
push esi
call fcn.0041de05
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004159cb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41de75
push ebx
push esi
push edi
call fcn.004087b0
add esp, 0xc
push 0
call fcn.00415991
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41e239
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041de8a
Function at 0x4265f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x43e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x210]
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x210]
call fcn.00402950
mov esi, eax
cmp dword [0x43fc0c], edi
jne 0x4267e0
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff9
push dword [esi]
call fcn.00410712
push dword [esi]
lea eax, [ebp - 0x238]
push 2
push 1
push eax
call fcn.004102fc
add esp, 0x20
cmp eax, 2
jne 0x426770
push dword [esi]
lea eax, [ebp - 0x231]
push 1
push 1
push eax
call fcn.004102fc
add esp, 0x10
cmp eax, 1
jne 0x426770
push dword [esi]
push 4
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.004102fc
add esp, 0x10
cmp eax, 4
jne 0x426770
mov eax, 0xfffe
cmp word [ebp - 0x238], ax
jne 0x42670d
mov eax, dword [ebp - 0x23c]
push 0
add eax, 0xfffffff9
push 0
push eax
push dword [esi]
call fcn.00410712
push dword [esi]
lea eax, [ebp - 0x238]
push 2
push 1
push eax
call fcn.004102fc
add esp, 0x20
cmp eax, 2
jne 0x426770
push dword [esi]
lea eax, [ebp - 0x231]
push 1
push 1
push eax
call fcn.004102fc
add esp, 0x10
cmp eax, 1
jne 0x426770
push dword [esi]
push 4
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.004102fc
add esp, 0x10
cmp eax, 4
jne 0x426770
push 0
push 0
push dword [ebp - 0x23c]
push dword [esi]
call fcn.00410712
push dword [esi]
lea eax, [ebp - 0x230]
push 1
push 0x20
push eax
call fcn.004102fc
add esp, 0x20
cmp eax, 1
je 0x426761
push 0x40
push str.fread
push 0x43fe18
xor edi, edi
mov dword [0x43fc0c], 0xd5
call fcn.0040bfa6
mov dword [0x43fc08], 0x20
jmp 0x426795
lea ecx, [ebp - 0x230]
call fcn.00402720
mov edi, eax
jmp 0x4267e0
push 0x40
push str.fread
push 0x43fe18
mov dword [0x43fc0c], 0xd5
call fcn.0040bfa6
mov dword [0x43fc08], 4
add esp, 0xc
xor eax, eax
mov word [0x43fe96], ax
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0x43fc10
call fcn.0040bfa6
add esp, 0xc
xor eax, eax
mov word [0x43fe16], ax
push 0x104
push str.C:JenkinsAE_build_workHibun_AE_Current_src_sfslfdec_sfmkcore.c
push 0x43fe98
call fcn.0040bfa6
add esp, 0xc
xor eax, eax
mov word [0x44009e], ax
test esi, esi
je 0x4267f7
push dword [esi]
call fcn.0040ae9a
add esp, 4
push esi
call fcn.0040facf
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00406bb3
mov esp, ebp
pop ebp
ret
Function at 0x4278d0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x43e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov dword [ebp - 0x418], ebx
mov eax, dword [ebx]
mov edx, eax
test eax, eax
je 0x427914
cmp dword [eax], 0
je 0x427907
lea ecx, [eax + 0x418]
call fcn.00404aa0
mov eax, dword [ebx + esi*4 + 4]
inc esi
test eax, eax
jne 0x4278f7
mov eax, dword [ebx]
mov edx, eax
mov dword [ebp - 0x41c], 0
test eax, eax
je 0x427a0a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push edi
mov edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, edi
cmp dword [edx], 0
je 0x4279ef
lea eax, [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4279e9
push 0x4400d8
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4400d8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x427a1a
xor ecx, ecx
mov word [ebp + eax - 0x414], cx
mov eax, dword [edi]
add eax, 8
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x4279e9
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004078b9
add esp, 8
test eax, eax
je 0x4279d5
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x4279b2
mov eax, dword [ebp - 0x418]
mov edx, dword [ebp - 0x41c]
inc edx
mov dword [ebp - 0x41c], edx
lea edi, [eax + edx*4]
mov edx, dword [edi]
test edx, edx
jne 0x427937
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00406bb3
mov esp, ebp
pop ebp
ret
call fcn.00406ce3
int3
Function at 0x42ed30
Capabilities:
Get file version info
Link many functions at runtime

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x43e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push str.sflog.dll
call esi
mov dword [0x43f9b8], eax
test eax, eax
je 0x42ef1b
push str.sfcommon.dll
call esi
mov dword [0x43f998], eax
test eax, eax
je 0x42ef35
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [0x43f9b8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x42ef1b
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x42ef1b
push edi
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x43a200
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x218]
movups xmm1, xmmword [eax]
movups xmm0, xmmword [eax + 0x10]
psrldq xmm1, 8
movd ecx, xmm1
movups xmmword [ebp - 0x250], xmm0
movups xmm0, xmmword [eax + 0x20]
mov eax, ecx
shr eax, 0x10
movups xmmword [ebp - 0x240], xmm0
cmp ax, 7
jb 0x42ef09
jne 0x42ee4d
cmp cx, 0x32
jb 0x42ef09
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sflog_log_init
push dword [0x43f9b8]
call esi
mov dword [0x43f9d0], eax
test eax, eax
je 0x42ef09
push str.sflog_set_UserNameW
push dword [0x43f9b8]
call esi
mov dword [0x43f99c], eax
test eax, eax
je 0x42ef09
push str.sflog_log_writeAccessFltW
push dword [0x43f9b8]
call esi
mov dword [0x43f9bc], eax
test eax, eax
je 0x42ef09
push str.sflog_log_term
push dword [0x43f9b8]
call esi
mov dword [0x43f9c8], eax
test eax, eax
je 0x42ef09
push str.sfcm_reg_GetValueW
push dword [0x43f998]
call esi
mov dword [0x43f9ac], eax
test eax, eax
je 0x42ef09
push str.sfcm_misc_GetUNCPath
push dword [0x43f998]
call esi
mov dword [0x43f9cc], eax
test eax, eax
je 0x42ef09
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ecx
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406bb3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call ecx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x43f998]
test eax, eax
je 0x42ef35
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x43f998], 0
mov eax, dword [0x43f9b8]
test eax, eax
je 0x42ef4f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x43f9b8], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00406bb3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x41fbe0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7e7b30]
xor edx, edx
cmp eax, edx
jne 0x41fc06
xor eax, eax
mov byte [eax + 0x7e7a30], al
inc eax
cmp eax, 0x100
jl 0x41fbee
mov dword [0x7e7b30], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7e7a30
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41fc97
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41fc6a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41fc38
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41fd10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41fd63
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41fd4a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret