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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x14], edx
test ebx, ebx
je 0x498452
cmp ebx, 0x10000000
jae 0x49856f
mov edi, dword [0x56bbf8]
mov dword [ebp - 0x30], esi
lea esi, [ebx*8]
mov eax, dword [edi]
test eax, eax
jne 0x498416
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x498562
mov dword [edi], eax
push esi
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x498562
mov ecx, dword [ebp - 0x14]
lea edi, [ebx - 1]
add esi, 0xfffffff8
mov dword [ebp - 0x28], eax
and edi, 0x1fffffff
mov dword [ebp - 0x2c], esi
cmp edi, 9
mov dword [ebp - 0x10], edi
lea edx, [ecx + ebx*8]
jae 0x49845e
mov ebx, edx
mov edi, eax
mov edx, ecx
jmp 0x4984ef
xor eax, eax
mov ecx, 4
jmp 0x49853a
cmp eax, edx
mov dword [ebp - 0x18], edx
jae 0x498475
lea edx, [eax + ebx*8]
cmp edx, ecx
jbe 0x498475
mov ebx, dword [ebp - 0x18]
mov edi, eax
mov edx, ecx
jmp 0x4984ef
mov esi, dword [ebp - 0x10]
movdqa xmm0, xmmword [0x51bde0]
xor ebx, ebx
inc esi
mov dword [ebp - 0x10], esi
and esi, 0xfffffffe
lea edi, [eax + esi*8]
lea edx, [ecx + esi*8]
nop
movdqu xmm1, xmmword [ecx + ebx*8]
pshufd xmm3, xmm1, 0xed
pshufd xmm2, xmm1, 0xe8
movdqa xmm5, xmm3
movdqa xmm1, xmm2
movdqa xmm6, xmm2
pxor xmm5, xmm0
pxor xmm1, xmm0
movdqa xmm4, xmm5
pcmpgtd xmm4, xmm1
pcmpgtd xmm1, xmm5
pand xmm6, xmm4
pandn xmm4, xmm3
pand xmm2, xmm1
pandn xmm1, xmm3
por xmm4, xmm6
por xmm1, xmm2
punpckldq xmm4, xmm1
movdqu xmmword [eax + ebx*8], xmm4
add ebx, 2
cmp esi, ebx
jne 0x498490
cmp dword [ebp - 0x10], esi
mov ebx, dword [ebp - 0x18]
je 0x49852a
xor esi, esi
mov dword [ebp - 0x14], edi
nop word cs:[eax + eax]
nop
mov edi, ebx
mov ecx, dword [edx + esi + 4]
mov ebx, dword [edx + esi]
cmp ebx, ecx
mov eax, ecx
cmovb eax, ebx
cmova ecx, ebx
mov ebx, edi
mov edi, dword [ebp - 0x14]
mov dword [edi + esi], eax
mov dword [edi + esi + 4], ecx
lea ecx, [edx + esi + 8]
add esi, 8
cmp ecx, ebx
jne 0x498500
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
shr eax, 3
inc eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x24]
call fcn.00487f90
mov eax, dword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x24]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
push esi
call fcn.004085f0
add esp, 8
ud2
call fcn.004085b0
ud2
Function at 0x4b79e0
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x260
mov eax, dword [edx + 0x38]
call fcn.004b79f7

Function at 0x4bb330
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x640
pxor xmm0, xmm0
mov dword [esp + 0x188], 4
mov dword [esp + 0xac], edx
call fcn.004bb35a

Function at 0x4c14b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov dword [esp + 0x78], ecx
mov ecx, dword [edx + 0x10]
call fcn.004c14cb

Function at 0x4c3310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x42c
mov edi, 0x200
xorps xmm0, xmm0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x1c], 0
movlps qword [ebp - 0x24], xmm0
cmp edi, 0x201
jae 0x4c3370
jmp 0x4c335e
jbe 0x4c33ed
cmp edi, 0x201
jae 0x4c3370
mov dword [ebp - 0x18], 0x200
lea esi, [ebp - 0x438]
mov ebx, edi
jmp 0x4c33a4
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
sub edi, ebx
sub eax, ebx
cmp eax, edi
jae 0x4c3395
mov edx, ebx
lea ecx, [ebp - 0x28]
push edi
call fcn.004b23c0
add esp, 4
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push 0
call sub.kernel32.dll_SetLastError
push esi
push ebx
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
test eax, eax
jne 0x4c33c1
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4c343c
cmp edi, ebx
jne 0x4c3350
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x4c3459
add ebx, ebx
mov eax, 0xffffffff
cmovb ebx, eax
mov edi, ebx
cmp edi, 0x201
jb 0x4c335e
jmp 0x4c3370
mov eax, dword [ebp - 0x18]
cmp edi, eax
ja 0x4c346f
lea eax, [ebp - 0x38]
push edi
push esi
push eax
call fcn.004c5b70
add esp, 0xc
movsd xmm0, qword [ebp - 0x38]
mov eax, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x30]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
cmp dword [ebp - 0x14], 0
je 0x4c342e
push dword [ebp - 0x10]
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp + 8]
add esp, 0x42c
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov dword [ecx], 0
mov byte [ecx + 0xc], 2
cmp dword [ebp - 0x14], 0
jne 0x4c341e
jmp 0x4c342e
push 0x568fe0
push 0x28
push str.internal_error:_entered_unreachable_code_kV
call fcn.00414ad0
add esp, 0xc
jmp 0x4c347e
push 0x568ff0
push eax
push edi
call fcn.00417f20
add esp, 0xc
ud2
Function at 0x4c6420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
movzx ebx, byte [edx + 0x1d]
mov eax, 0
mov edi, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], ecx
cmp bl, 1
setne dl
sbb eax, eax
or al, dl
call 0x4c644d
pop edx
mov dword [ebp - 0x14], edx
cmp al, 0xff
movzx edx, al
je 0x4c645c
test edx, edx
jne 0x4c6486
mov byte [ebp - 0x10], bl
movzx ebx, byte [edi + 0x1c]
cmp al, 0xff
je 0x4c646b
test edx, edx
jne 0x4c6478
mov ecx, edi
call fcn.004c6330
movzx eax, al
mov dword [ebp - 0x1c], eax
mov edx, ebx
movzx ebx, byte [ebp - 0x10]
xor esi, esi
test bl, bl
jne 0x4c64ed
jmp 0x4c648e
xor edx, edx
xor esi, esi
test bl, bl
jne 0x4c64ed
xor esi, esi
cmp byte [edi + 8], 6
lea eax, [edi + 8]
cmove eax, esi
je 0x4c64ed
movzx ecx, byte [eax]
mov ebx, dword [ebp - 0x14]
mov esi, 6
add ebx, dword [ecx*4 + 0x4c65f8]
jmp ebx
mov eax, dword [ebp - 0x1c]
movzx ecx, dl
mov dword [ebp - 0x20], ecx
lea ebx, [eax + ecx]
mov eax, dword [edi + 4]
add ebx, esi
cmp eax, ebx
jb 0x4c65df
mov edx, dword [edi]
mov ecx, edx
lea ecx, [edx + ebx]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edi + 8]
xor edi, edi
cmp eax, ebx
jne 0x4c6525
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
jmp 0x4c6592
cmp cl, 3
jae 0x4c654b
add esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
add esi, dword [ebp - 0x20]
lea edx, [eax + edx - 1]
sub esi, eax
nop dword [eax]
cmp byte [edx], 0x5c
je 0x4c657b
dec edx
inc esi
jne 0x4c6540
jmp 0x4c651d
add esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
add esi, dword [ebp - 0x20]
lea edx, [eax + edx - 1]
sub esi, eax
nop word [eax + eax]
movzx edi, byte [edx]
cmp edi, 0x2f
je 0x4c657b
cmp edi, 0x5c
je 0x4c657b
dec edx
inc esi
jne 0x4c6560
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
xor edi, edi
jmp 0x4c6592
not esi
lea ebx, [ebx + esi + 1]
cmp eax, ebx
jb 0x4c65e6
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov edi, 1
add esi, ebx
sub eax, ebx
je 0x4c65b7
mov ebx, ecx
mov cl, 9
cmp eax, 2
je 0x4c65bb
cmp eax, 1
jne 0x4c65ca
cmp byte [esi], 0x2e
jne 0x4c65ca
xor ecx, ecx
cmp bl, 3
setae cl
lea ecx, [ecx + ecx*2 + 7]
jmp 0x4c65ca
mov cl, 0xa
jmp 0x4c65ca
cmp byte [esi], 0x2e
jne 0x4c65ca
cmp byte [esi + 1], 0x2e
sete cl
xor cl, 9
add edi, eax
mov dword [edx], edi
mov dword [edx + 4], esi
mov dword [edx + 8], eax
mov byte [edx + 0xc], cl
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x567dc8
jmp 0x4c65eb
push 0x567dd8
push eax
push ebx
call fcn.00417ea0
add esp, 0xc
ud2
Function at 0x4cb010
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x1040
call fcn.004fb290
mov esi, edx
mov edi, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
lea ebx, [esp + 0x3c]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [esp + 4]
mov dword [esp + 4], 0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push 0x4d1af0
push eax
push 0x1000
push ebx
push edi
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x4cb16d
mov dword [esp], edi
nop dword [eax]
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [esp + 4], 1
jne 0x4cb080
cmp dword [esp + 8], 0
jne 0x4cb17c
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x34], 4
test ebx, ebx
mov dword [esp + 0x38], ebx
je 0x4cb17c
cmp ebx, 0x1000
ja 0x4cb1a1
xor edi, edi
nop word cs:[eax + eax]
nop dword [eax + eax]
mov eax, ebx
sub eax, edi
jb 0x4cb190
xorps xmm0, xmm0
lea edx, [esp + 4]
lea ecx, [esp + edi + 0x3c]
mov dword [esp + 4], 0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], edx
push 0x4d1af0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push esi
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x4cb174
nop dword [eax]
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [esp + 4], 1
jne 0x4cb110
cmp dword [esp + 8], 0
jne 0x4cb179
add edi, dword [esp + 0xc]
cmp edi, ebx
jne 0x4cb0d0
xorps xmm0, xmm0
lea eax, [esp + 4]
mov dword [esp + 4], 0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], eax
push 0x4d1af0
lea eax, [esp + 0x14]
push eax
push 0x1000
lea eax, [esp + 0x48]
push eax
mov edi, dword [esp + 0x10]
push edi
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x4cb080
call sub.kernel32.dll_GetLastError
jmp 0x4cb17c
call sub.kernel32.dll_GetLastError
mov edi, dword [esp]
push edi
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x568cb0
push ebx
push edi
call fcn.00417fa0
add esp, 0xc
jmp 0x4cb1b4
push 0x568cb0
push 0x1000
push ebx
call fcn.00417f20
add esp, 0xc
ud2
Function at 0x4cb880
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov edi, dword [ebp + 8]
push 0x5880b4
call sub.kernel32.dll_AcquireSRWLockExclusive
mov esi, dword [edi]
test esi, esi
jne 0x4cb905
mov ebx, dword [edi + 4]
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x4cb919
mov esi, eax
test ebx, ebx
je 0x4cb8fd
mov eax, dword [0x5880e0]
test eax, eax
jne 0x4cb8ca
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4cb9bb
mov dword [0x5880e0], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4cb9bb
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], 0
mov ecx, eax
mov eax, dword [0x5880f0]
nop
mov dword [ecx + 8], eax
lock cmpxchg dword [0x5880f0], ecx
jne 0x4cb8f0
mov eax, esi
test esi, esi
xchg dword [edi], eax
je 0x4cb932
push 0x5880b4
call sub.kernel32.dll_ReleaseSRWLockExclusive
mov eax, esi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x568ee4
push 0x2e
push 0x568e84
call fcn.00414ad0
add esp, 0xc
jmp 0x4cb9c7
lea eax, [ebp - 0x54]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x54], 0x56822c
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], str._rustc_59e7a308e40fbc6b0901c9a8ee8ed51b17f9e772librarycore_src_sliceiter.rs
mov dword [ebp - 0x3c], 0x5674a8
mov dword [ebp - 0x38], 2
mov byte [ebp - 0x10], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x415e20
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x3c]
lea esi, [ebp - 0x24]
lea ecx, [ebp - 0x14]
push eax
push ecx
push esi
call fcn.004c5750
add esp, 0xc
cmp byte [ebp - 0x24], 4
je 0x4cb9b2
push esi
call fcn.004ac0b0
add esp, 4
mov ecx, 7
int 0x29
ud2
push 4
push 0xc
call fcn.004085f0
add esp, 8
ud2
Function at 0x4cd700
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x20
mov eax, dword [0x503028]
test eax, eax
je 0x4cd721
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4cd739
jmp 0x4cd746
push 0x503028
call fcn.004cb880
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4cd746
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x4cd8a8
mov eax, dword [0x503028]
test eax, eax
je 0x4cd829
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4cd845
mov esi, eax
test eax, eax
jne 0x4cd7c8
mov eax, dword [0x5880e0]
test eax, eax
jne 0x4cd783
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4cd8b4
mov dword [0x5880e0], eax
push 0x20
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4cd8b4
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x503028
mov esi, eax
mov eax, dword [0x503028]
test eax, eax
jne 0x4cd7c1
push 0x503028
call fcn.004cb880
add esp, 4
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov eax, dword [ebp + 8]
test eax, eax
je 0x4cd7ee
mov ecx, dword [eax]
movups xmm0, xmmword [eax + 8]
mov dword [eax], 0
xor ecx, 1
or ecx, dword [eax + 4]
mov dword [eax + 4], 0
je 0x4cd897
mov edi, dword [0x5880ec]
cmp edi, 0xffffffff
mov dword [esp], edi
je 0x4cd849
test edi, edi
jne 0x4cd869
mov eax, esp
push 0
push 0
push 0x568dd4
push eax
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x4cd850
mov ecx, dword [esp]
xor eax, eax
lock cmpxchg dword [0x5880ec], ecx
jne 0x4cd85c
mov edi, dword [esp]
jmp 0x4cd869
push 0x503028
call fcn.004cb880
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x4cd762
xor esi, esi
jmp 0x4cd8ab
mov eax, 0xc00000bb
jmp 0x4cd887
mov dword [0x5880ec], 0xffffffff
jmp 0x4cd887
mov edi, eax
push 0
push dword [esp + 4]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 0
push 0x10
push eax
push edi
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x4cd887
movaps xmm0, xmmword [esp]
jmp 0x4cd897
lea ecx, [esp + 0x10]
mov edx, eax
call fcn.004d5bb0
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
push 8
push 0x20
call fcn.004085f0
add esp, 8
ud2
Function at 0x4cdbe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x503030]
mov esi, ecx
test eax, eax
je 0x4cdbfe
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4cdc16
jmp 0x4cdc25
push 0x503030
call fcn.004cb880
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4cdc25
cmp dword [eax], 0
mov ebx, eax
je 0x4cdc25
add ebx, 4
jmp 0x4cdd10
mov eax, dword [0x503030]
test eax, eax
je 0x4cdcbe
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4cdcda
mov edi, eax
test eax, eax
jne 0x4cdca0
mov eax, dword [0x5880e0]
test eax, eax
jne 0x4cdc62
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4cdd17
mov dword [0x5880e0], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4cdd17
mov dword [eax], 0
mov dword [eax + 8], 0x503030
mov edi, eax
mov eax, dword [0x503030]
test eax, eax
jne 0x4cdc99
push 0x503030
call fcn.004cb880
add esp, 4
push edi
push eax
call sub.kernel32.dll_TlsSetValue
xor edx, edx
test esi, esi
je 0x4cdcee
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi], 0
test eax, eax
je 0x4cdcee
cmp eax, 1
jne 0x4cdcde
mov edx, ecx
jmp 0x4cdcee
push 0x503030
call fcn.004cb880
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x4cdc41
xor ebx, ebx
jmp 0x4cdd10
test ecx, ecx
je 0x4cdcee
lock dec dword [ecx]
jne 0x4cdcee
call fcn.004b1630
xor edx, edx
mov ecx, dword [edi + 4]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], edx
je 0x4cdd10
test ecx, ecx
je 0x4cdd10
lock dec dword [ecx]
jne 0x4cdd10
call fcn.004b1630
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
push 0xc
call fcn.004085f0
add esp, 8
ud2
Function at 0x4cf0f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push dword [ebp + 0x10]
call fcn.004d0d50
add esp, 4
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test edi, edi
je 0x4cf180
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x1c]
push esi
call fcn.004d0d50
add esp, 4
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
test esi, esi
je 0x4cf187
mov dword [ebp - 0x10], edx
push 1
push esi
push edi
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x4cf194
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x10], 0
mov byte [eax], 4
je 0x4cf169
push esi
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
test ebx, ebx
je 0x4cf17b
push edi
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
mov esi, dword [ebp + 8]
jmp 0x4cf1d5
mov dword [esi], ebx
mov dword [esi + 4], eax
jmp 0x4cf1d5
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [ecx], edx
mov dword [ecx + 4], eax
jmp 0x4cf1c0
call sub.kernel32.dll_GetLastError
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x10], 0
mov byte [ecx], 0
mov byte [ecx + 3], 0
mov word [ecx + 1], 0
mov dword [ecx + 4], eax
je 0x4cf1c0
push esi
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x4cf1d5
push edi
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d1be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx + 0x10], 0
mov edi, edx
jne 0x4d1cb5
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx + 4]
test edx, edx
jne 0x4d1c0e
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x4d1c82
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x4d1c9e
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx]
mov dword [ebp - 0x24], 0
lea ebx, [ebp - 0x24]
push ecx
push ebx
push edx
push eax
push dword [edi]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x4d1c47
mov eax, dword [ebp - 0x24]
mov ecx, 2
test eax, eax
jne 0x4d1c64
jmp 0x4d1c58
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x4d1c5f
cmp eax, 0x6d
jne 0x4d1c77
mov word [esi], 4
jmp 0x4d1c6f
mov ecx, 1
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x4d1c6f
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.004b2460
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x4d1c19
mov ecx, ebx
push 1
call fcn.004b2460
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x4d1c19
add edi, 0x10
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov ecx, edi
call fcn.004ae3a0
ud2
Function at 0x4d53a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
call fcn.004d0d50
add esp, 4
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x4d53e1
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4d542e
mov eax, dword [ebp - 0x10]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
jmp 0x4d5446
cmp byte [ebp - 0x18], 3
jne 0x4d5426
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 4]
mov eax, dword [eax]
push dword [edi]
call eax
add esp, 4
mov ecx, dword [edi + 4]
cmp dword [ecx + 4], 0
je 0x4d5418
mov eax, dword [edi]
cmp dword [ecx + 8], 9
jb 0x4d540a
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
push edi
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
mov dword [esi], 0
jmp 0x4d5446
test ebx, ebx
mov dword [esi], 0
je 0x4d5446
push edi
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4d5bb0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, ecx
xorps xmm0, xmm0
mov dword [esp + 0xc], edx
movaps xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x10]
push 0x10
push eax
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x4d5bfd
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov dword [esp + 0x24], eax
lea edi, [esp + 0x20]
lea eax, [esp + 0xc]
mov dword [esp + 0x38], 0x568e24
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], 0x568e34
mov dword [esp + 0x20], 0
mov dword [esp + 0x44], 2
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], fcn.004c4830
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x34], 0x41a940
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 2
lea eax, [esp + 0x38]
push 0x568e74
push eax
call fcn.00414c50
add esp, 8
ud2
Function at 0x4d5c90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [0x5880e0]
test eax, eax
jne 0x4d5cc0
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4d5d57
mov dword [0x5880e0], eax
push 8
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4d5d57
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push 0x4d5da0
push eax
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x4d5d03
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x4d5d4d
mov eax, dword [esi + 4]
mov eax, dword [eax]
push dword [esi]
call eax
add esp, 4
mov ecx, dword [esi + 4]
cmp dword [ecx + 4], 0
je 0x4d5d31
mov eax, dword [esi]
cmp dword [ecx + 8], 9
jb 0x4d5d23
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
push esi
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
call sub.kernel32.dll_GetLastError
mov dword [edi + 4], eax
mov dword [edi], 0
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
push 8
call fcn.004085f0
add esp, 8
ud2