joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457d00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x457d3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x457d52
lea eax, [ebx + 1]
cmp eax, 2
jb 0x457d34
mov dword [esi], ebx
call fcn.00460ce0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x457d69
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00460ce0
push dword [esi]
call fcn.004611a0
add esp, 4
mov dword [esi], 0
jmp 0x457d25
int3

Function at 0x457dc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
xor ecx, ecx
cmp dword [ebp + 8], ebx
sete cl
push ebx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], ebx
test eax, eax
je 0x457e3e
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x457e27
lea eax, [edi + 1]
cmp eax, 2
jb 0x457e0b
mov dword [esi], edi
call fcn.00460ce0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
inc eax
cmp eax, 1
jbe 0x457e42
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.00460ce0
push dword [esi]
call fcn.004611a0
add esp, 4
mov dword [esi], 0
jmp 0x457dfc
mov byte [esi + 4], 1
int3
Function at 0x463220
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4fb9dc]
mov ecx, dword [0x4ebde8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x463271
mov eax, dword [0x4fb9d8]
mov esi, dword [eax]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f8c3
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4fb9dc
call fcn.0046ed57
add esp, 4
cmp dword [0x4fb9dc], 0xffffffff
jne 0x463253
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.00472db0
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.0046ecad
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x4fba0c]
mov ecx, dword [0x4ebde8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46331a
mov ecx, esi
push ebx
push 0x4fb9e8
push edi
call fcn.00440a80
mov dword [0x4fb9d8], esi
push 0x4fb9dc
call fcn.0046edcd
add esp, 4
jmp 0x463253
push 0x4fba0c
call fcn.0046ed57
add esp, 4
cmp dword [0x4fba0c], 0xffffffff
jne 0x4632f4
xorps xmm0, xmm0
movups xmmword [0x4fb9f8], xmm0
movups xmmword [0x4fb9e8], xmm0
mov dword [0x4fba08], 0
push 0x4fb9e8
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x4fba0c
call fcn.0046edcd
add esp, 4
jmp 0x4632f4
Function at 0x463590
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.004704c0
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4ebd54]
cmp eax, 0xffffffff
je 0x4635c2
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
jne 0x4635d7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f8c3
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, ebx
and eax, 0xfffffffc
lea ecx, [ebp - 0x810]
push 0x800
push eax
push ecx
call fcn.004722b0
add esp, 0xc
mov ecx, dword [0x4ebd54]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.00446280
add esp, 8
and ebx, 0xfffffffc
je 0x46361b
push ebx
call fcn.0046ed1c
add esp, 4
mov eax, dword [0x4fc618]
mov ecx, dword [0x4ebde8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x463703
mov esi, dword [0x4fc614]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x463748
lea eax, [ebp - 0x1410]
push 0xc00
push 0x4fba14
push eax
call fcn.004722b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x100
lea edx, [ebp - 0x1408]
test al, 1
je 0x4636ee
mov dword [ebp - 0x1418], ecx
xor esi, esi
mov edi, edx
xor eax, eax
mov ebx, dword [ebp + esi*8 - 0x810]
test ebx, ebx
jne 0x4636a7
inc esi
add edi, 0xc
cmp esi, 0x100
jne 0x46368e
jmp 0x4636e0
cmp dword [edi - 8], 0
je 0x463699
mov ecx, dword [ebp + esi*8 - 0x80c]
cmp ecx, dword [edi]
jne 0x463699
mov ecx, dword [edi - 4]
test ecx, ecx
je 0x463699
mov dword [ebp + esi*8 - 0x810], 0
call dword [section..00cfg]
push ebx
call ecx
lea edx, [ebp - 0x1408]
add esp, 4
mov al, 1
jmp 0x463699
mov esi, dword [ebp - 0x1418]
lea ecx, [esi - 1]
cmp esi, 2
jae 0x46367e
push 2
push dword [ebp - 0x1414]
call fcn.00446280
add esp, 8
jmp 0x4635c2
push 0x4fc618
call fcn.0046ed57
add esp, 4
cmp dword [0x4fc618], 0xffffffff
jne 0x46363c
push 4
call fcn.0046ecad
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.0045ab90
mov dword [0x4fc614], esi
push 0x4fc618
call fcn.0046edcd
add esp, 4
jmp 0x46363c
mov ecx, esi
call fcn.0045aba0
jmp 0x463651
Function at 0x464820
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x464858
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word cs:[eax + eax]
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x4de418]
inc esi
cmp ecx, esi
jne 0x464840
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x465a60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
movzx eax, byte [ecx + 0x27]
test al, al
js 0x465b1a
test eax, eax
jne 0x465b0f
cmp dword [esi + 0x28], 0
jne 0x465b0f
mov byte [esi + 0x2c], 0
mov eax, dword [esi + 8]
mov dword [esi + 4], eax
cmp eax, dword [esi + 0xc]
je 0x465b49
lea edi, [esi + 0x10]
lea ecx, [eax + 1]
mov dword [esi + 8], ecx
movsx eax, byte [eax]
mov ecx, edi
push 0
push eax
call fcn.00451f70
cmp eax, 0xffffffff
jne 0x465b3a
cmp dword [esi + 0x30], 1
je 0x465b22
mov eax, dword [esi + 8]
mov bl, 1
cmp eax, dword [esi + 0xc]
je 0x465b4f
nop dword [eax]
movsx eax, byte [eax]
mov ecx, edi
push 0
push eax
call fcn.00451f70
cmp eax, 0xffffffff
jne 0x465b4f
mov eax, dword [esi + 8]
cmp dword [esi + 0x30], 1
je 0x465af6
inc eax
mov dword [esi + 8], eax
cmp eax, dword [esi + 0xc]
jne 0x465ad0
jmp 0x465b4f
mov cl, byte [eax]
add cl, 0xf7
cmp cl, 0x17
ja 0x465aeb
movzx ecx, cl
mov edx, 0x80001b
bt edx, ecx
jae 0x465aeb
jmp 0x465b4f
mov ecx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004c5400
mov eax, dword [esi + 0x20]
jmp 0x465a74
mov eax, dword [esi + 4]
mov al, byte [eax]
add al, 0xf7
cmp al, 0x17
ja 0x465abe
movzx eax, al
mov ecx, 0x80001b
bt ecx, eax
jae 0x465abe
mov eax, dword [esi + 8]
mov dword [esi + 4], eax
cmp eax, dword [esi + 0xc]
jne 0x465a9c
mov byte [esi + 0x2c], 1
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46b970
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4fc778]
mov ecx, dword [0x4ebde8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46b99b
mov ecx, 0x4fc770
pop ebp
jmp fcn.00463760
push 0x4fc778
call fcn.0046ed57
add esp, 4
cmp dword [0x4fc778], 0xffffffff
jne 0x46b990
xor eax, eax
mov dword [0x4fc774], eax
mov dword [0x4fc770], eax
mov ecx, 0x4fc770
push eax
call fcn.00441430
push 0x4fc778
call fcn.0046edcd
add esp, 4
jmp 0x46b990

Function at 0x481db2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4cefb8
push esi
call fcn.0048ee78
pop ecx
pop ecx
test eax, eax
jne 0x481de0
xor al, al
jmp 0x481e5d
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.00481b43
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x481e1a
push dword [ebp - 0x210]
call fcn.00458360
xor al, al
jmp 0x481e5b
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x481e20
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x481e40
push edx
call fcn.00481d03
pop ecx
test al, al
je 0x481e0b
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x481e4e
mov bl, 1
push dword [ebp - 0x210]
call fcn.00458360
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046f8c3
leave
ret
Function at 0x48368d
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 + 0x4ec890]
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 0x4836cd
cmp byte [ebx], 0xa
jne 0x4836cd
or byte [eax + edi + 0x28], 4
jmp 0x4836d2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4837d0
mov al, byte [edx]
cmp al, 0x1a
je 0x4837b2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x483701
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x483726
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x483730
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 0x4836e3
jmp 0x4837d0
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 0x4837ad
cmp dword [ebp - 0xc], 0
je 0x4837ad
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ec890]
test byte [eax + edi + 0x28], 0x48
je 0x483787
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x483772
mov byte [esi], dl
jmp 0x483783
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ec890]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4837d0
cmp byte [ebp - 1], 0xa
jne 0x483796
cmp esi, ebx
jne 0x483796
mov byte [esi], 0xa
jmp 0x4837cf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048de70
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4837d0
mov byte [esi], 0xd
jmp 0x4837cf
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ec890]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4837cc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4837d0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4837d9
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 + 0x4ec890]
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 0x48381c
cmp word [esi], dx
jne 0x48381c
or byte [edi + eax + 0x28], 4
jmp 0x483821
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 0x48395a
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 0x48393a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x483863
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x483899
cmp eax, edx
jae 0x4838a5
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 0x48383b
jmp 0x48395a
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 0x483936
cmp dword [ebp - 0x14], 0
je 0x483936
mov eax, dword [ebx*4 + 0x4ec890]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x48390e
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x483954
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ec890]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4ec890]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ec890]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x483957
pop ebx
cmp word [ebp - 4], bx
jne 0x48391f
cmp esi, dword [ebp + 0xc]
jne 0x48391f
mov word [esi], bx
jmp 0x483957
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0048de70
add esp, 0x10
cmp word [ebp - 4], bx
je 0x48395a
push 0xd
jmp 0x483953
mov ecx, dword [ebx*4 + 0x4ec890]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x483951
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48395a
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 0x48b916
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d01ec
push 0x4d01e4
push 0x4cc21c
push 0x1e
call fcn.0048be72
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48b94a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x48b950
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48b994
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d01fc
push 0x4d01f4
push str.FlsGetValue
push 0x20
call fcn.0048be72
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48b9cb
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x490802
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e8024]
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 0x49084d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00490978
test al, al
jne 0x490847
sub edx, 2
cmp edx, edi
jne 0x49082d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49086f
lea eax, [edi + 2]
cmp edx, eax
je 0x49086f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049074e
add esp, 0x10
jmp 0x490969
push esi
lea ecx, [ebp - 0x255]
call fcn.00490978
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 0x4908b2
push dword [ebp - 0x25c]
jmp 0x49085f
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 0x4908ef
cmp word [ebp - 0x226], 0
je 0x490910
cmp word [ebp - 0x226], ax
jne 0x4908ef
cmp word [ebp - 0x224], 0
je 0x490910
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049074e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49095c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4908c9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x490944
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x490969
push 0x4909a0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00487680
add esp, 0x10
jmp 0x490939
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.0046f8c3
leave
ret
Function at 0x491bc1
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 0x491c5e
push ebx
push esi
call fcn.00491caf
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.00491b0a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x491c0b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x491c5d
push edi
push eax
call fcn.0042bea0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x491c2b
call fcn.00458360
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x491c5c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00491b0a
add esp, 0x20
test eax, eax
jne 0x491c4a
push edi
call fcn.00458360
jmp 0x491c52
push ebx
call fcn.00458360
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 0x491c61
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x491c72
pop esi
ret
push ebx
push edi
push esi
call fcn.00491caf
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042bea0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x491c9a
push ebx
push esi
push edi
call fcn.004722b0
add esp, 0xc
push 0
call fcn.00458360
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x491cf1
Capabilities:
Set environment variable

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

Function at 0x494c40
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00494c4b
Function at 0x4b55e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 8
call fcn.0046ecad
add esp, 4
mov dword [eax], ebx
mov dword [eax + 4], edi
xor ecx, ecx
push ecx
push ecx
push eax
push 0x4b5630
push ecx
push ecx
call fcn.0047ec2a
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4b561f
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x4b5e00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x4f8d84], 0
je 0x4b5e38
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f8c3
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x4f8d74]
test esi, esi
je 0x4b5ed2
test byte [0x4eac40], 1
je 0x4b5e21
cmp byte [esi + 0xb], 0
jns 0x4b5e57
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x4d95e0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4f8d84], eax
inc eax
cmp eax, 1
ja 0x4b5e21
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.00472db0
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x4b5f78
xor ebx, ebx
jmp 0x4b5e21
push 0xc
call fcn.0046ecad
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.00472db0
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
dec edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, esi
lea eax, [ebp - 0x218]
push eax
call fcn.00422360
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4b5f29
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.00452d40
cmp eax, edi
je 0x4b5f61
movzx ecx, byte [esi + 0xb]
mov edx, ecx
test cl, cl
jns 0x4b5f44
mov edx, dword [esi + 4]
cmp edx, eax
jbe 0x4b6028
mov edx, eax
inc edx
test cl, cl
js 0x4b600d
mov word [esi + eax*2 + 2], 0
mov byte [esi + 0xb], dl
mov ecx, esi
push 0x4d9668
call fcn.00423e90
mov dword [0x4f8d74], esi
jmp 0x4b5e46
mov ecx, dword [0x4f8d74]
push esi
call fcn.00423810
mov ecx, dword [0x4f8d74]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x4b601e
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
je 0x4b5fb0
push 0x4d9664
call fcn.00423e90
mov ecx, dword [0x4f8d74]
push 0x4d9668
call fcn.00423e90
mov eax, dword [0x4f8d74]
cmp byte [eax + 0xb], 0
jns 0x4b5fc7
mov eax, dword [eax]
movaps xmm0, xmmword [0x4d95e0]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4f8d84], eax
inc eax
cmp eax, 1
ja 0x4b5e21
mov dword [0x4f8d84], 0
jmp 0x4b5ecb
mov ecx, dword [esi]
mov word [ecx + eax*2 + 2], 0
mov dword [esi + 4], edx
jmp 0x4b5f61
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
jmp 0x4b5f98
mov ecx, esi
call fcn.004b4140
int3
Function at 0x4bfef0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
cmp esi, ebx
je 0x4bff42
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.004bf930
test al, al
jne 0x4bff2f
add esi, 0x58
cmp esi, ebx
jne 0x4bff1a
mov esi, ebx
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax + 0x2c]
je 0x4bff42
cmp byte [esi + 0x1b], 0
jns 0x4bff59
mov eax, dword [esi + 0x10]
jmp 0x4bff5c
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f8c3
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
xor edi, edi
inc edi
cmp eax, 0xffffffff
cmovne edi, ecx
test edi, edi
jne 0x4bff45
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
jmp 0x4bff45

Function at 0x4c00b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
cmp edi, ebx
je 0x4c010d
mov dword [ebp - 0x24], ecx
lea esi, [ebp - 0x20]
mov ecx, edi
push esi
call fcn.004bf930
test al, al
jne 0x4c00ef
add edi, 0x58
cmp edi, ebx
jne 0x4c00da
mov edi, ebx
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 0x24]
cmp edi, dword [esi + 0x2c]
je 0x4c0110
mov eax, dword [edi + 0x50]
cmp eax, dword [ebp + 8]
jne 0x4c0124
cmp byte [edi + 0x1b], 0
jns 0x4c0132
mov eax, dword [edi + 0x10]
jmp 0x4c0135
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f8c3
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
cmp eax, 1
sete cl
lea ebx, [ecx + ecx*2]
inc ebx
jmp 0x4c0110
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c0110
shr eax, 3
and eax, 2
mov ebx, eax
jne 0x4c0110
mov byte [esi + 0x24], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor ebx, ebx
jmp 0x4c0110