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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x100
mov edx, dword [esi + 0x4c]
cmp edx, 1
mov ebx, dword [esi + 0x1a8]
sete al
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edx
mov byte [ebx + 0x1c], al
mov eax, 0x2fe
push dword [esi + 0x64]
mov ecx, dword [esi + 4]
cmovne eax, edi
push eax
push 1
push esi
mov eax, dword [ecx + 8]
call eax
mov dword [ebx + 0x18], eax
xor edi, edi
mov eax, dword [ebx + 0x14]
add esp, 0x10
cmp dword [esi + 0x64], edi
jle 0x58cb13
mov ecx, dword [ebx + edi*4 + 0x20]
cdq
idiv ecx
cmp dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x58ca71
mov eax, dword [ebx + 0x18]
add dword [eax + edi*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov eax, dword [eax + edi*4]
mov dword [ebp - 8], eax
lea eax, [ecx - 1]
push eax
push ebx
push edi
push esi
call fcn.0058cda0
add esp, 0x10
mov edx, eax
xor esi, esi
nop
cmp esi, edx
jle 0x58caad
mov eax, dword [ebp - 0x10]
inc ebx
dec eax
push eax
push ebx
push edi
push dword [ebp + 8]
call fcn.0058cda0
mov edx, eax
add esp, 0x10
cmp esi, edx
jg 0x58ca94
mov ecx, dword [ebp - 0xc]
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov eax, dword [ebp - 8]
mov byte [esi + eax], cl
inc esi
cmp esi, 0xff
jle 0x58ca90
cmp dword [ebp - 4], 1
jne 0x58cb00
mov ebx, eax
mov ecx, 1
lea edx, [ebx - 1]
nop dword [eax + eax]
movzx eax, byte [ebx]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebx + 0xff]
mov byte [ebx + ecx + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x58cae0
mov esi, dword [ebp + 8]
inc edi
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
cmp edi, dword [esi + 0x64]
jl 0x58ca54
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x599fb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00599f90
pop esi
leave
ret 8

Function at 0x59c956
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x59c995
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x59c995
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x59c995
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x59c995
cmp dword [ecx + 0x74], 0xe
jbe 0x59c995
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5a9f50
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0059bbc0
mov eax, dword [0x6229a0]
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.005bb672
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5a9f92
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5aa0ee
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0059bbf0
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 + 0x669468]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.005bcd0a
mov ecx, dword [esi*4 + 0x669468]
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 0x5aa0e7
cmp eax, dword [edi + ecx + 0x24]
jne 0x5aa0e7
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 0x5aa0e7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005bcd0a
add esp, 0x14
test edx, edx
jl 0x5aa0e7
jg 0x5aa05d
test eax, eax
jb 0x5aa0e7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5aa0e7
jl 0x5aa077
cmp dword [ebp - 0x1008], eax
ja 0x5aa0e7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5aa095
test ebx, ebx
je 0x5aa0ce
cmp ecx, edi
jae 0x5aa0ce
mov al, byte [ecx]
cmp al, 0xd
jne 0x5aa0af
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5aa0bb
cmp byte [ecx + 1], 0xa
jne 0x5aa0bb
inc ecx
jmp 0x5aa0bb
movzx eax, al
movsx eax, byte [eax + 0x622c50]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5aa095
cmp edx, ebx
jne 0x5aa095
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5aa0ec
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0059b734
leave
ret
Function at 0x5bc00e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x669468]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5bc04e
cmp byte [ebx], 0xa
jne 0x5bc04e
or byte [eax + edi + 0x28], 4
jmp 0x5bc053
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5bc151
mov al, byte [edx]
cmp al, 0x1a
je 0x5bc133
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5bc082
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5bc0a7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5bc0b1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x5bc064
jmp 0x5bc151
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5bc12e
cmp dword [ebp - 0xc], 0
je 0x5bc12e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x669468]
test byte [eax + edi + 0x28], 0x48
je 0x5bc108
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5bc0f3
mov byte [esi], dl
jmp 0x5bc104
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x669468]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5bc151
cmp byte [ebp - 1], 0xa
jne 0x5bc117
cmp esi, ebx
jne 0x5bc117
mov byte [esi], 0xa
jmp 0x5bc150
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005bcd28
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5bc151
mov byte [esi], 0xd
jmp 0x5bc150
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x669468]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5bc14d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5bc151
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5bc15a
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 + 0x669468]
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 0x5bc19d
cmp word [esi], dx
jne 0x5bc19d
or byte [edi + eax + 0x28], 4
jmp 0x5bc1a2
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 0x5bc2f5
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 0x5bc2d5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x5bc1e4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5bc21a
cmp eax, edx
jae 0x5bc226
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 0x5bc1bc
jmp 0x5bc2f5
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 0x5bc2d1
cmp dword [ebp - 0x14], 0
je 0x5bc2d1
mov eax, dword [ebx*4 + 0x669468]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5bc2a9
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x5bc272
mov word [esi], cx
jmp 0x5bc2a5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x669468]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x669468]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x669468]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x5bc2f5
pop ebx
cmp word [ebp - 4], bx
jne 0x5bc2ba
cmp esi, dword [ebp + 0xc]
jne 0x5bc2ba
mov word [esi], bx
jmp 0x5bc2f2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005bcd28
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5bc2f5
push 0xd
jmp 0x5bc2ee
mov ecx, dword [ebx*4 + 0x669468]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5bc2ec
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5bc2f5
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 0x5bcb16
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005bc987
Function at 0x5bfe5f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x601a74
push 0x601a6c
push str.FlsAlloc
push 0x1e
call fcn.005bfc8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5bfe93
push dword [ebp + 8]
mov ecx, esi
call dword [0x5d945c]
call esi
jmp 0x5bfe99
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5bfedd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x601a84
push 0x601a7c
push str.FlsGetValue
push 0x20
call fcn.005bfc8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5bff14
push dword [ebp + 8]
mov ecx, esi
call dword [0x5d945c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x5c4352
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 0x5c43ef
push ebx
push esi
call fcn.005c431b
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.005c0aba
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5c439c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5c43ee
push edi
push eax
call fcn.005bdbf0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5c43bc
call fcn.005bb18f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5c43ed
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005c0aba
add esp, 0x20
test eax, eax
jne 0x5c43db
push edi
call fcn.005bb18f
jmp 0x5c43e3
push ebx
call fcn.005bb18f
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 0x5c43f2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5c4403
pop esi
ret
push ebx
push edi
push esi
call fcn.005c431b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005bdbf0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5c442b
push ebx
push esi
push edi
call fcn.0059d280
add esp, 0xc
push 0
call fcn.005bb18f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5c4b77
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c469e
Function at 0x5cbde2
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.005cbd5e
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5cbf5a
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5cbf5a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5cbf09
jg 0x5cbe3b
test eax, eax
je 0x5cbeff
push 1
push 0x1000
call fcn.005bb132
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5cbe61
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x5cbef6
push 0x8000
push ebx
call fcn.005b829d
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 0x5cbe8d
jg 0x5cbe88
cmp ecx, 0x1000
jb 0x5cbe8d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005bd673
add esp, 0x10
cmp eax, 0xffffffff
je 0x5cbed2
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 0x5cbe88
jl 0x5cbeb9
test ecx, ecx
jne 0x5cbe7a
push dword [ebp - 0xc]
push ebx
call fcn.005b829d
push esi
call fcn.005bb18f
add esp, 0xc
xor edi, edi
jmp 0x5cbf6b
cmp byte [edi + 0x24], 0
je 0x5cbee9
cmp dword [edi + 0x20], 5
jne 0x5cbee9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5cbef4
mov edi, dword [edi + 0x18]
jmp 0x5cbef6
xor edi, edi
push esi
call fcn.005bb18f
pop ecx
jmp 0x5cbf6b
test ecx, ecx
jg 0x5cbecb
jl 0x5cbf09
test eax, eax
jae 0x5cbecb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005bcd28
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5cbf2c
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5cbecb
jmp 0x5cbf63
push ebx
call fcn.005c50f0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5cbecb
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 0x5cbf6b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5cbf68
mov edi, dword [edi + 0x18]
jmp 0x5cbf6b
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005bcd28
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5cc250
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5cc27d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5cc27d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x84752f
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x8472a2
add ecx, ebx
call fcn.00847562
or ecx, ecx
and ebx, ecx
sub ecx, 1
xor dword [eax], esi
add ecx, 0xef8f0526
or ebx, ebx
inc ebx
inc eax
or ecx, ebx
cmp eax, edi
jne fcn.0084752f
and ebx, ebx
ret
Function at 0x401840
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor bl, bl
test esi, esi
je 0x40189a
push esi
call fcn.004021a0
add esp, 4
test eax, eax
je 0x40189a
push dword [esp + 0x14]
mov eax, dword [esp + 0x14]
push eax
push 0x40f558
push eax
push esi
call fcn.00402150
add esp, 0xc
push eax
call fcn.00402150
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
je 0x40189a
cmp eax, 0xffffffff
je 0x40189a
test al, 0x10
mov ecx, 1
movzx eax, bl
pop esi
cmove eax, ecx
pop ebx
ret
pop esi
mov al, bl
pop ebx
ret
Function at 0x401f50
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x1d8
push esi
push str.SOFTWARENational_InstrumentsLabVIEW_Run_Time
lea eax, [esp + 0x14]
push 0xc8
push eax
call fcn.00402180
add esp, 0xc
mov dword [esp + 0xc], 0x104
lea eax, [esp + 4]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
push eax
push 1
push 0
lea eax, [esp + 0x1c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402014
mov esi, dword [esp + 0x1e0]
lea eax, [esp + 0xc]
push eax
push esi
lea eax, [esp + 0x10]
push eax
push 0
push str.NILVRunTimeManagerPath
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402014
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 8], 2
mov dword [esp + 4], 0
jne 0x40200a
push esi
lea eax, [esp + 0xdc]
push 0x104
push eax
call fcn.00402180
add esp, 0xc
lea eax, [esp + 0xd8]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
xor eax, eax
pop esi
add esp, 0x1d8
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x402023
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x485
pop esi
add esp, 0x1d8
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40ed5d
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x40eae0
and ecx, ebx
call fcn.0040ed75
xor dword [esi], eax
inc esi
cmp esi, edi
jne fcn.0040ed5d
mov ebx, ecx
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40596d
pop dword [ebp - 0x18]
mov eax, 0x9463ac45
sub eax, 0x942352d8
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x7776bf08
sub dword [ebp - 0x28], 0x292479bd
mov dword [ebp - 0x24], 0x92ccc42b
sub dword [ebp - 0x24], 0x609977e6
mov dword [ebp - 0x20], 0x6a82df7f
sub dword [ebp - 0x20], 0x1e369b51
mov dword [ebp - 0x1c], 0xc5207eec
sub dword [ebp - 0x1c], 0xc5207eec
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x12ae2026
sub dword [ebp - 0x28], 0x9e3bb6d0
mov dword [ebp - 0x24], 0x43d8ca78
sub dword [ebp - 0x24], 0x26c6903
mov dword [ebp - 0x20], 0x84ae9d00
sub dword [ebp - 0x20], 0x213f3094
mov dword [ebp - 0x1c], 0xdf59ceb1
add dword [ebp - 0x1c], 0x20a6314f
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x8de0cead
add eax, 0x725fa253
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x35fff
push 0
call eax
mov ecx, 0x8feb4b29
add ecx, 0x7014f9f9
xor ebx, ebx
add ebx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x18]
mov edi, 0xd1ecb5e5
sub edi, 0xf31726e6
xor dword [ebp - 0xc], 0xf66924b8
mov edx, dword [esi]
xor dword [ebp - 0x14], 0x9da357a
xor edx, edi
xor dword [ebp - 0xc], 0x4883595a
mov dword [ebx], edx
xor dword [ebp - 8], 0x2a896ced
add ebx, 0xaded9621
add ebx, 0x521269e3
add esi, 4
loop 0x405a86
add eax, 0x1075b
mov ebx, eax
add eax, 0xd2e60fff
sub eax, 0xd2e60ffa
mov ecx, 0xd963f350
sub ecx, 0xd923f350
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x10004f80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d18da
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x10116404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 0
cmp dword [esi + 0x200b4], 0
mov dword [ebp - 4], 2
jne 0x10004fec
push 0
push 0
push esi
push 0x10008930
push 0
push 0
call fcn.100b05ff
add esp, 0x18
mov dword [esi + 0x200b4], eax
push 0x14
call fcn.10086e10
mov edi, eax
add esp, 4
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 3
test edi, edi
je 0x10005021
push dword [ebp - 0x40]
lea eax, [ebp + 0x3c]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10006ae0
push edi
mov ecx, esi
call fcn.10005ce0
mov dword [ebp - 0x40], eax
jmp 0x10005028
mov dword [ebp - 0x40], 0
push 0xc
mov byte [ebp - 4], 2
call fcn.10086e10
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x1000504c
mov ecx, eax
call fcn.10006bc0
mov edi, eax
jmp 0x1000504e
xor edi, edi
push ebx
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.1000a820
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x88], 0x100047e0
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp + 0x38]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x10005097
mov eax, dword [ecx]
lea edx, [ebp - 0x78]
push edx
call dword [eax]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 7
push eax
call fcn.10006350
mov ecx, dword [ebp - 0x54]
add esp, 4
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x100050dd
mov edx, dword [ecx]
lea eax, [ebp - 0x78]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0x2008c]
call fcn.1000af70
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10005108
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x10005127
mov edx, dword [ecx]
lea eax, [ebp + 0x14]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp + 0x38], 0
mov edx, dword [ebp + 0x50]
cmp edx, 0x10
jb 0x10005157
mov ecx, dword [ebp + 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000514d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005177
push edx
push ecx
call fcn.1008f7e1
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008fb60
mov esp, ebp
pop ebp
ret 0x50
call fcn.100adb49
int3
Function at 0x10012210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10012269
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10012269
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1001225a
cmp esi, edx
jae 0x10012269
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10012248
cmp esi, edx
jae 0x10012269
cmp word [esi], 0
je 0x10012269
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret