joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1d0
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [esp + 0x1c8], eax
test ebx, ebx
je 0x4840fe
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
movdqa xmmword [esp + 0x1a0], xmm0
call fcn.004930c0
test eax, eax
je 0x483ec5
pxor xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
movdqa xmmword [esp + 0x1a0], xmm0
jmp 0x483ed7
lea eax, [esp + 0x1a0]
push 0x20
push eax
call fcn.004930f0
add esp, 8
xor eax, eax
nop dword [eax]
movzx ecx, byte [esi + eax]
xor byte [esp + eax + 0x1a0], cl
inc eax
cmp eax, 0x20
jne 0x483ee0
lea eax, [esp + 0x78]
push 0x128
push 0xff
push eax
call fcn.0049bea0
add esp, 0xc
push 1
call fcn.00492f20
add esp, 4
test eax, eax
je 0x483f36
mov esi, eax
add eax, 0x120
mov dword [esp + 4], eax
cmp dword [esi + 0x120], 0xfff
jbe 0x483feb
jmp 0x483ff9
push 0x128
call fcn.00492770
add esp, 4
test eax, eax
je 0x483f5d
mov esi, eax
push 0x485430
push eax
push 1
call fcn.00492fc0
add esp, 0xc
test eax, eax
jne 0x483f61
lea esi, [esp + 0x78]
mov dword [esi + 0x124], 0
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x40]
push 0x30
push eax
call fcn.004930f0
add esp, 8
lea eax, [esp + 0x10]
push 0
push eax
lea eax, [esp + 0x48]
push eax
push esi
call fcn.00484cb0
add esp, 0x10
test eax, eax
je 0x484114
lea eax, [esi + 0x120]
mov dword [esp + 4], eax
mov dword [esi + 0x120], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x118], 0
mov eax, dword [esi + 0x118]
or eax, dword [esi + 0x11c]
je 0x484068
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
lea eax, [esp + 0x40]
push 0x30
push eax
call fcn.004930f0
add esp, 8
mov ecx, esi
lea edx, [esp + 0x40]
push 0x30
call fcn.00484f40
add esp, 4
test eax, eax
je 0x484114
mov dword [esi + 0x110], 1
mov dword [esi + 0x114], 0
mov eax, dword [esp + 4]
mov dword [eax], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x118], 0
cmp ebx, 0x10000
mov ecx, 0x10000
cmovb ecx, ebx
lea eax, [esp + 0x1a0]
push 0x20
push eax
mov dword [esp + 0x14], ecx
push ecx
push edi
mov dword [esp + 0x18], esi
push esi
call fcn.00485200
add esp, 0x14
test eax, eax
je 0x484114
mov eax, dword [esp + 4]
inc dword [eax]
mov eax, dword [esp + 0xc]
sub ebx, eax
je 0x4840e6
add edi, eax
nop word [eax + eax]
cmp ebx, 0x10000
mov esi, 0x10000
cmovb esi, ebx
push 0
lea eax, [esp + 0x1a4]
push eax
push esi
push edi
push dword [esp + 0x18]
call fcn.00485200
add esp, 0x14
test eax, eax
je 0x484114
add edi, esi
mov eax, dword [esp + 4]
inc dword [eax]
sub ebx, esi
jne 0x4840b0
lea eax, [esp + 0x78]
cmp dword [esp + 8], eax
jne 0x4840fe
push 0x118
push eax
call fcn.004927f0
add esp, 8
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.00499333
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004ad590
int3
Function at 0x484cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov eax, dword [ebp + 0x14]
mov ecx, dword [0x4e3014]
xor ecx, ebp
mov dword [esp + 0x88], ecx
xor esi, esi
cmp eax, 0x30
ja 0x484f05
mov ecx, dword [ebp + 0xc]
movups xmm0, xmmword [ecx + 0x20]
movaps xmmword [esp + 0x40], xmm0
movdqu xmm0, xmmword [ecx]
movdqu xmm1, xmmword [ecx + 0x10]
movdqa xmmword [esp + 0x30], xmm1
movdqa xmmword [esp + 0x20], xmm0
test eax, eax
je 0x484d1d
mov ecx, dword [ebp + 0x10]
xor edx, edx
nop word cs:[eax + eax]
movzx ebx, byte [ecx + edx]
xor byte [esp + edx + 0x20], bl
inc edx
cmp eax, edx
jne 0x484d10
mov esi, dword [ebp + 8]
xor eax, eax
nop word cs:[eax + eax]
movzx ecx, byte [eax + 0x4d98a2]
xor byte [esp + eax + 0x20], cl
inc eax
cmp eax, 0x30
jne 0x484d30
lea edi, [esi + 0xf4]
mov eax, dword [0x5f7fc0]
test eax, 0x2000000
jne 0x484e9b
test eax, 0x200
jne 0x484eba
mov dword [esp + 0xc], edi
mov dword [esi + 0xf0], 0xe
movaps xmm0, xmmword [esp + 0x20]
movaps xmmword [esp + 0x70], xmm0
movups xmmword [esi], xmm0
movaps xmm0, xmmword [esp + 0x30]
movaps xmmword [esp + 0x60], xmm0
movups xmmword [esi + 0x10], xmm0
mov edi, 0x30
mov ebx, 0x4d98f2
movdqa xmm0, xmmword [esp + 0x70]
movdqa xmmword [esp + 0x10], xmm0
lea esi, [esp + 0x50]
nop word cs:[eax + eax]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
mov ecx, esi
lea edx, [esp + 0x60]
call fcn.004856a0
movzx eax, byte [ebx]
movd xmm1, eax
pxor xmm1, xmmword [esp + 0x10]
movdqa xmm0, xmmword [esp + 0x50]
movdqa xmm2, xmm0
psrld xmm2, 8
pslld xmm0, 0x18
por xmm0, xmm2
psrldq xmm0, 0xc
pxor xmm0, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 4
movdqa xmm2, xmm0
pslldq xmm2, 8
pxor xmm2, xmm1
movdqa xmm1, xmm0
pslldq xmm1, 0xc
pxor xmm1, xmm2
pxor xmm1, xmm0
movdqa xmmword [esp + 0x70], xmm1
movaps xmm0, xmmword [esp + 0x70]
mov eax, dword [ebp + 8]
movups xmmword [eax + edi - 0x10], xmm0
cmp edi, 0xf0
je 0x484f1d
movdqa xmmword [esp + 0x10], xmm1
mov ecx, esi
lea edx, [esp + 0x70]
call fcn.004856a0
movdqa xmm0, xmmword [esp + 0x50]
psrldq xmm0, 0xc
pxor xmm0, xmmword [esp + 0x60]
movdqa xmm1, xmm0
movdqa xmm2, xmm0
pslldq xmm2, 0xc
pxor xmm2, xmm0
pslldq xmm0, 4
pslldq xmm1, 8
pxor xmm1, xmm0
pxor xmm2, xmm1
movdqa xmmword [esp + 0x60], xmm2
movdqa xmm0, xmmword [esp + 0x60]
mov eax, dword [ebp + 8]
movdqu xmmword [eax + edi], xmm0
add edi, 0x20
inc ebx
jmp 0x484db0
lea eax, [esp + 0x20]
push esi
push 0x100
push eax
call fcn.00403500
add esp, 0xc
mov ecx, 0x401180
mov eax, fcn.00401d10
jmp 0x484ed4
lea eax, [esp + 0x20]
push esi
push 0x100
push eax
call fcn.00404020
add esp, 0xc
mov ecx, fcn.004040d0
xor eax, eax
test edi, edi
je 0x484eda
mov dword [edi], ecx
mov dword [esi + 0xf8], eax
movaps xmm0, xmmword [esp + 0x40]
movups xmmword [esi + 0xfc], xmm0
mov dword [esi + 0x114], 0
mov dword [esi + 0x110], 1
mov esi, 1
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.00499333
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x47fd10
mov eax, 0x481f20
mov edi, dword [esp + 0xc]
test edi, edi
mov esi, dword [ebp + 8]
jne 0x484ed8
jmp 0x484eda
Function at 0x48f7f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5f9410]
mov ecx, dword [0x4e71b8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x48f81b
mov ecx, 0x5f9408
pop ebp
jmp fcn.00471190
push 0x5f9410
call fcn.004989b7
add esp, 4
cmp dword [0x5f9410], 0xffffffff
jne 0x48f810
mov dword [0x5f940c], 0
mov dword [0x5f9408], 0
mov ecx, 0x5f9408
push 0
call fcn.00471200
push 0x5f9410
call fcn.00498a2d
add esp, 4
jmp 0x48f810

Function at 0x490670
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [esp + 0x18], eax
mov edi, dword [ecx + 0x38]
test edi, edi
jne 0x490735
mov esi, ecx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0x9ffffff
lea edx, [esp + 0xc]
cmp edx, str.discarded
ja 0x4906c7
lea eax, [esp + 0x15]
cmp eax, str.discarded
ja 0x49074c
mov dword [esp + 0x10], 0x65647261
mov dword [esp + 0xc], 0x63736964
mov word [esp + 0x14], 0x64
mov edi, esp
mov ecx, esi
push edx
push edi
call fcn.004905e0
push 0x48
call fcn.0049890c
add esp, 4
mov ebx, eax
mov ecx, eax
push edi
push dword [esi + 0x28]
lea eax, [esp + 0x14]
push eax
call fcn.004909a0
mov edi, dword [esi + 0x38]
mov dword [esi + 0x38], ebx
test edi, edi
je 0x49071f
mov ecx, edi
call fcn.00490a90
push edi
call fcn.0049893c
add esp, 4
cmp byte [esp + 0x17], 0
jns 0x490732
push dword [esp + 0xc]
call fcn.0049893c
add esp, 4
mov edi, dword [esi + 0x38]
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.00499333
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.char_traits::copy_overlapped_range
push str.__s2_____s1____s2_____s1__n
push 0xec
push str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
push str._s:_d:_assertion__s_failed:__s
call fcn.00414fd8
int3
Function at 0x492de0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4e3014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
jne 0x492efd
mov dword [ebp - 0x14], 0x492fa0
lea eax, [ebp - 0x14]
push 0
push eax
push 0x492da0
push 0x5f9458
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x492f11
cmp dword [0x5f945c], 0
jne 0x492efd
push dword [0x5f9460]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492efd
mov esi, eax
push 0x5f9464
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x5f9468]
mov ebx, dword [0x5f946c]
mov eax, dword [0x5f9470]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5f9474]
mov dword [ebp - 0x20], eax
mov eax, dword [0x5f9478]
mov dword [ebp - 0x24], eax
push 0x5f9464
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x492e9b
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, edi
call dword [section..00cfg]
push dword [ebp - 0x18]
call edi
add esp, 4
test ebx, ebx
je 0x492eb0
mov edi, dword [esi + 4]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x492ec6
mov edi, dword [esi + 8]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov ebx, dword [ebp - 0x24]
je 0x492edf
mov edi, dword [esi + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x492ef4
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
push esi
call fcn.004927b0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.004ad590
int3

Function at 0x492f20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x492fa0
lea eax, [ebp - 0x14]
push 0
push eax
push 0x492da0
push 0x5f9458
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x492f9a
xor esi, esi
cmp dword [0x5f945c], 0
jne 0x492f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x5f9460]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x492f86
mov eax, dword [ebp + 8]
mov esi, dword [edi + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004ad590
int3
Function at 0x492fc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x492fa0
lea eax, [ebp - 0x14]
push 0
push eax
push 0x492da0
push 0x5f9458
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x4930b8
mov esi, dword [ebp + 0x10]
cmp dword [0x5f945c], 0
je 0x493018
mov ecx, esi
call dword [section..00cfg]
push dword [ebp + 0xc]
call esi
add esp, 4
xor esi, esi
jmp 0x493064
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [0x5f9460]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
je 0x493078
mov ebx, dword [ebp + 8]
push 0x5f9464
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [ebx*4 + 0x5f9468], esi
push 0x5f9464
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp + 0xc]
mov dword [edi + ebx*4], eax
mov esi, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x14
call fcn.00492770
add esp, 4
test eax, eax
je 0x493004
mov edi, eax
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
push eax
push dword [0x5f9460]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x493039
push edi
call fcn.004927b0
add esp, 4
jmp 0x493004
call fcn.004ad590
int3
Function at 0x496a60
Capabilities:
Reference processor manufacturer constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, ecx
xor eax, eax
xor ecx, ecx
cpuid
test eax, eax
jle 0x496b6b
mov esi, eax
mov dword [ebp - 0x14], edi
mov eax, 1
xor ecx, ecx
cpuid
mov edi, eax
mov dword [ebp - 0x10], ecx
mov ecx, 0
cmp esi, 7
mov ebx, 0
jb 0x496ab1
mov eax, 7
xor ecx, ecx
mov esi, edx
cpuid
mov edx, esi
and ebx, 0x20
shr cl, 3
and cl, 1
mov esi, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edi
mov eax, edi
and eax, 0xf
mov dword [ecx + 8], eax
shr edi, 0xc
and edi, 3
mov dword [ecx + 4], edi
mov edi, ecx
mov eax, edx
shr eax, 0x17
and al, 1
mov byte [ecx + 0xc], al
mov eax, edx
shr eax, 0x19
and al, 1
mov byte [ecx + 0xd], al
shr edx, 0x1a
and dl, 1
mov byte [ecx + 0xe], dl
mov ecx, dword [ebp - 0x10]
mov eax, ecx
and al, 1
mov byte [edi + 0xf], al
mov eax, ecx
shr eax, 9
and al, 1
mov byte [edi + 0x10], al
mov eax, ecx
shr eax, 0x13
and al, 1
mov byte [edi + 0x11], al
mov eax, ecx
shr eax, 0x14
and al, 1
mov byte [edi + 0x12], al
mov eax, ecx
shr eax, 0x17
and al, 1
mov byte [edi + 0x13], al
mov eax, ecx
shr eax, 0x1f
mov byte [edi + 0x1a], al
mov eax, ecx
not eax
test eax, 0x1c000000
jne 0x496b3b
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
jmp 0x496b3d
xor eax, eax
mov byte [edi + 0x14], al
mov edx, dword [ebp - 0x10]
mov ecx, edx
shr ecx, 0x19
and cl, 1
mov byte [edi + 0x17], cl
shr edx, 0xc
and dl, 1
mov byte [edi + 0x15], dl
test al, al
setne al
test ebx, ebx
setne cl
and cl, al
mov byte [edi + 0x16], cl
mov eax, esi
mov byte [edi + 0x18], al
mov eax, 0x80000000
xor ecx, ecx
cpuid
cmp eax, 0x80000006
jle 0x496b90
mov eax, 0x80000007
xor ecx, ecx
cpuid
and dh, 1
mov byte [edi + 0x19], dh
test dh, dh
jne 0x496bc2
jmp 0x496b97
mov dh, byte [edi + 0x19]
test dh, dh
jne 0x496bc2
cmp byte [edi + 0x1a], 0
je 0x496bc2
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp ebx, 0x7263694d
jne 0x496bc2
cmp ecx, 0x666f736f
jne 0x496bc2
cmp edx, 0x76482074
jne 0x496bc2
mov byte [edi + 0x19], 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x497210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x49728c
mov eax, dword [ebp + 8]
cmp dword [0x5f94bc], eax
jg 0x49728c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
mov dword [ebp - 0x1c], esi
add esi, ebx
nop dword [eax]
cmp ebx, esi
jae 0x49727b
mov dword [ebp - 0x18], 0
mov eax, esi
sub eax, ebx
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49727b
mov eax, dword [ebp - 0x18]
add ebx, eax
test eax, eax
jne 0x497250
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
mov eax, dword [ebp + 0xc]
je 0x49728c
cmp byte [ecx + eax - 1], 0xa
jne 0x4972a4
cmp dword [ebp + 8], 3
je 0x4972f1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499333
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0x4cfe20
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea ebx, [ebp - 0x14]
nop word cs:[eax + eax]
cmp edi, 0x4cfe21
jae 0x49728c
mov dword [ebp - 0x14], 0
mov eax, 0x4cfe21
sub eax, edi
push 0
push ebx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49728c
mov eax, dword [ebp - 0x14]
add edi, eax
test eax, eax
jne 0x4972c0
jmp 0x49728c
int3

Function at 0x497eac
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00497ec8
add esp, 4
test al, al
je 0x497ec2
mov al, 1
pop ebp
ret
pop ebp
jmp fcn.004982c6
Function at 0x498638
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x49866c
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call fcn.0043fe50
lea eax, [ebx + 1]
cmp eax, 2
jb 0x498665
mov dword [esi], ebx
call fcn.004546d0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4988ec
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00474590
Function at 0x4a85e1
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.004a8784
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4a8759
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4a8759
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4a8708
jg 0x4a863a
test eax, eax
je 0x4a86fe
push 1
push 0x1000
call fcn.00440b50
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4a8660
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4a86f5
push 0x8000
push ebx
call fcn.004ad653
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 0x4a868c
jg 0x4a8687
cmp ecx, 0x1000
jb 0x4a868c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b0018
add esp, 0x10
cmp eax, 0xffffffff
je 0x4a86d1
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 0x4a8687
jl 0x4a86b8
test ecx, ecx
jne 0x4a8679
push dword [ebp - 0xc]
push ebx
call fcn.004ad653
push esi
call fcn.00440ad0
add esp, 0xc
xor edi, edi
jmp 0x4a876a
cmp byte [edi + 0x24], 0
je 0x4a86e8
cmp dword [edi + 0x20], 5
jne 0x4a86e8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4a86f3
mov edi, dword [edi + 0x18]
jmp 0x4a86f5
xor edi, edi
push esi
call fcn.00440ad0
pop ecx
jmp 0x4a876a
test ecx, ecx
jg 0x4a86ca
jl 0x4a8708
test eax, eax
jae 0x4a86ca
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b8c40
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4a872b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4a86ca
jmp 0x4a8762
push ebx
call fcn.004abb8a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4a86ca
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 0x4a876a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4a8767
mov edi, dword [edi + 0x18]
jmp 0x4a876a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b8c40
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ab6e1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e3014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4c83d4
push esi
call fcn.004b9be5
pop ecx
pop ecx
test eax, eax
jne 0x4ab70f
xor al, al
jmp 0x4ab78c
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.004ab472
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4ab749
push dword [ebp - 0x210]
call fcn.00440ad0
xor al, al
jmp 0x4ab78a
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4ab74f
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4ab76f
push edx
call fcn.004ab632
pop ecx
test al, al
je 0x4ab73a
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4ab77d
mov bl, 1
push dword [ebp - 0x210]
call fcn.00440ad0
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00499333
leave
ret
Function at 0x4ad162
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 + 0x4e7ba8]
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 0x4ad1a2
cmp byte [ebx], 0xa
jne 0x4ad1a2
or byte [eax + edi + 0x28], 4
jmp 0x4ad1a7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4ad2a5
mov al, byte [edx]
cmp al, 0x1a
je 0x4ad287
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4ad1d6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4ad1fb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4ad205
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 0x4ad1b8
jmp 0x4ad2a5
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 0x4ad282
cmp dword [ebp - 0xc], 0
je 0x4ad282
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e7ba8]
test byte [eax + edi + 0x28], 0x48
je 0x4ad25c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4ad247
mov byte [esi], dl
jmp 0x4ad258
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e7ba8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4ad2a5
cmp byte [ebp - 1], 0xa
jne 0x4ad26b
cmp esi, ebx
jne 0x4ad26b
mov byte [esi], 0xa
jmp 0x4ad2a4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b8c40
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4ad2a5
mov byte [esi], 0xd
jmp 0x4ad2a4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e7ba8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4ad2a1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4ad2a5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret