joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486bf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [ebp + 8], 0
je 0x486ccf
mov esi, dword [ecx + 4]
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx + 0x74], 0
je 0x486ccf
add ecx, esi
xor eax, eax
cmp word [ecx + 0x14], 0x68
jb 0x486cf8
add ecx, 0x78
je 0x486cf8
mov ecx, dword [ecx]
test ecx, ecx
je 0x486ccf
add ecx, esi
je 0x486ccf
cmp edx, 0xffff
jbe 0x486cf0
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ecx + 0x20]
mov dword [ebp - 0x14], esi
lea edi, [esi + ecx]
test ecx, ecx
cmove edi, ecx
test eax, eax
je 0x486ccf
lea ecx, [edi + eax*4]
mov al, byte [edx]
mov byte [ebp - 0xd], al
mov eax, ecx
inc edx
mov esi, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov ebx, eax
sub ebx, edi
mov eax, ebx
sar eax, 2
shr ebx, 0x1f
add ebx, eax
and ebx, 0xfffffffe
mov eax, dword [edi + ebx*2]
mov ecx, dword [ebp - 0x14]
add ecx, eax
test eax, eax
cmove ecx, eax
mov dl, byte [ebp - 0xd]
test dl, dl
je 0x486ca9
cmp dl, byte [ecx]
jne 0x486cab
inc ecx
mov dl, byte [esi]
inc esi
test dl, dl
jne 0x486c9d
xor edx, edx
lea ebx, [edi + ebx*2]
movzx eax, byte [ecx]
cmp dl, al
je 0x486cd3
movzx ecx, dl
sub ecx, eax
mov eax, dword [ebp - 0x24]
cmovs eax, ebx
add ebx, 4
test ecx, ecx
cmovg edi, ebx
cmp edi, eax
mov esi, dword [ebp - 0x20]
jne 0x486c75
xor eax, eax
jmp 0x486cf8
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0x14]
add ecx, eax
test eax, eax
cmove ecx, eax
sub ebx, dword [ebp - 0x18]
sar ebx, 1
movzx edx, word [ecx + ebx]
add dx, word [esi + 0x10]
mov eax, dword [ebp + 8]
mov word [eax], dx
mov al, 1
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x486fb0
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, 0x140c
call fcn.00497600
mov eax, dword [0x511014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x514c54]
cmp eax, 0xffffffff
je 0x487101
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x487101
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.00498400
add esp, 0xc
mov ecx, dword [0x514c54]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test ebx, ebx
je 0x487029
push ebx
call fcn.00495b42
add esp, 4
mov eax, dword [0x524a18]
mov ecx, dword [0x514f00]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x487116
mov esi, dword [0x524a14]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x487157
lea eax, [ebp - 0x1410]
push 0xc00
push 0x523e14
push eax
call fcn.00498400
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x101
test al, 1
je 0x4870f3
mov dword [ebp - 0x1418], ecx
xor ebx, ebx
lea edi, [ebp - 0x1408]
xor eax, eax
jmp 0x4870ac
inc ebx
add edi, 0xc
cmp ebx, 0x100
je 0x4870ea
mov esi, dword [ebp + ebx*8 - 0x810]
test esi, esi
je 0x4870a0
cmp dword [edi - 8], 0
je 0x4870a0
mov ecx, dword [ebp + ebx*8 - 0x80c]
cmp ecx, dword [edi]
jne 0x4870a0
mov ecx, dword [edi - 4]
test ecx, ecx
je 0x4870a0
mov dword [ebp + ebx*8 - 0x810], 0
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov al, 1
jmp 0x4870a0
mov ecx, dword [ebp - 0x1418]
dec ecx
jne 0x487086
push 2
push dword [ebp - 0x1414]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496ce3
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x524a18
call fcn.00494ba0
add esp, 4
cmp dword [0x524a18], 0xffffffff
jne 0x48704a
push 4
call fcn.00494aa6
add esp, 4
mov dword [eax], 0
mov dword [0x524a14], eax
push 0x524a18
call fcn.00495b95
add esp, 4
jmp 0x48704a
mov ecx, esi
call fcn.004597a0
jmp 0x48705f
Function at 0x487550
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x511014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5168bc]
mov ecx, dword [0x514f00]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4875a0
mov esi, dword [0x5168b8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496ce3
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5168bc
call fcn.00494ba0
add esp, 4
cmp dword [0x5168bc], 0xffffffff
jne 0x487583
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.00498980
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.00494aa6
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x516904]
mov ecx, dword [0x514f00]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x487649
mov ecx, esi
push ebx
push 0x5168e0
push edi
call fcn.00416200
mov dword [0x5168b8], esi
push 0x5168bc
call fcn.00495b95
add esp, 4
jmp 0x487583
push 0x516904
call fcn.00494ba0
add esp, 4
cmp dword [0x516904], 0xffffffff
jne 0x487623
xorps xmm0, xmm0
movups xmmword [0x5168f0], xmm0
movups xmmword [0x5168e0], xmm0
mov dword [0x516900], 0
push 0x5168e0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x516904
call fcn.00495b95
add esp, 4
jmp 0x487623
Function at 0x488060
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ecx - 4], esp
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x447170
mov edx, dword fs:[0]
mov dword [ecx], edx
mov dword fs:[0], ecx
mov dword [esi + 0x18], eax
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 0x10], ecx
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x1002
mov dword [esi + 0xc], eax
mov dword [esi + 8], 6
xorps xmm0, xmm0
movups xmmword [esi + 0x20], xmm0
movups xmmword [esi + 0x30], xmm0
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], eax
mov eax, dword [0x51612c]
mov ecx, dword [0x514f00]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x488104
mov eax, dword [0x516128]
mov eax, dword [eax]
mov dword [esi + 0x1c], eax
lock inc dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0x51612c
call fcn.00494ba0
add esp, 4
cmp dword [0x51612c], 0xffffffff
jne 0x4880e3
mov eax, dword [0x516120]
mov ecx, dword [0x514f00]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x488160
mov eax, dword [0x51611c]
mov eax, dword [eax]
mov dword [0x516124], eax
lock inc dword [eax + 4]
mov dword [0x516128], 0x516124
push 0x51612c
call fcn.00495b95
add esp, 4
jmp 0x4880e3
push 0x516120
call fcn.00494ba0
add esp, 4
cmp dword [0x516120], 0xffffffff
jne 0x488137
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 0
mov ecx, 0x516770
push 1
call fcn.0040fd30
mov dword [0x516118], 0x516770
mov dword [0x51611c], 0x516118
push 0x516120
call fcn.00495b95
add esp, 4
mov esi, dword [ebp - 0x20]
jmp 0x488137
Function at 0x48c980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x48c9b8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x48c9c2
lea eax, [ebx + 1]
cmp eax, 2
jb 0x48c9b1
mov dword [esi], ebx
call fcn.00459380
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00459380
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
cmp dword [0x523df0], 0
je 0x48c9fb
mov eax, dword [0x523df0]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
call dword [section..00cfg]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [ebp - 0x10]
mov dword [esi], 0
jmp 0x48c9a2
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x50511c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48ca37
mov ecx, eax
cmp eax, sym.opera.exe_GetHandleVerifier
je 0x48ca31
call dword [section..00cfg]
call ecx
push 0
push eax
call fcn.00426270
add esp, 8
jmp 0x48c9d5
push 1
push 0
jmp 0x48ca27
xor eax, eax
push eax
jmp 0x48ca26
Function at 0x48dd90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x511014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x5168bc]
mov ecx, dword [0x514f00]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x48dde2
mov eax, dword [0x5168b8]
mov esi, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496ce3
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5168bc
call fcn.00494ba0
add esp, 4
cmp dword [0x5168bc], 0xffffffff
jne 0x48ddc3
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.00498980
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.00494aa6
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x516904]
mov ecx, dword [0x514f00]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x48de8b
mov ecx, esi
push ebx
push 0x5168e0
push edi
call fcn.00416200
mov dword [0x5168b8], esi
push 0x5168bc
call fcn.00495b95
add esp, 4
jmp 0x48ddc3
push 0x516904
call fcn.00494ba0
add esp, 4
cmp dword [0x516904], 0xffffffff
jne 0x48de65
xorps xmm0, xmm0
movups xmmword [0x5168f0], xmm0
movups xmmword [0x5168e0], xmm0
mov dword [0x516900], 0
push 0x5168e0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x516904
call fcn.00495b95
add esp, 4
jmp 0x48de65
Function at 0x4925c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x511014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
je 0x4925f0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496ce3
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea eax, [ebp - 0x14]
mov dword [eax], 0x450710
push 0
push eax
push 0x4506f0
push 0x526180
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x492759
cmp dword [0x526184], 0
jne 0x4925dc
push dword [0x526188]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4925dc
mov esi, eax
mov dword [ebp - 0x18], eax
mov eax, 0x52618c
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x526190]
mov ebx, dword [0x526194]
mov eax, dword [0x526198]
mov dword [ebp - 0x20], eax
mov eax, dword [0x52619c]
mov dword [ebp - 0x24], eax
mov eax, dword [0x5261a0]
mov dword [ebp - 0x28], eax
mov eax, 0x52618c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x49268a
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov ecx, edi
call dword [section..00cfg]
push dword [ebp - 0x1c]
call edi
add esp, 4
test ebx, ebx
je 0x4926a2
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
mov ecx, dword [ebp - 0x20]
test ecx, ecx
mov ebx, dword [ebp - 0x18]
je 0x4926bb
mov edi, dword [ebx + 8]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4926d1
mov edi, dword [ebx + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4926e7
mov edi, dword [ebx + 0x10]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
add esi, 0xfffffff8
mov ecx, dword [ebx - 8]
mov eax, ecx
add eax, 8
je 0x492740
mov edx, ecx
and edx, 7
je 0x492755
xor edi, edi
mov byte [esi + edi], 0
inc edi
cmp edx, edi
jne 0x4926fd
lea edx, [esi + edi]
sub eax, edi
cmp ecx, 0xfffffff8
ja 0x492740
xor ecx, ecx
mov byte [edx + ecx], 0
mov byte [edx + ecx + 1], 0
mov byte [edx + ecx + 2], 0
mov byte [edx + ecx + 3], 0
mov byte [edx + ecx + 4], 0
mov byte [edx + ecx + 5], 0
mov byte [edx + ecx + 6], 0
mov byte [edx + ecx + 7], 0
add ecx, 8
cmp eax, ecx
jne 0x492712
push 0
push esi
push 0x504ee4
call fcn.004684e0
add esp, 0xc
jmp 0x4925dc
mov edx, esi
jmp 0x49270b
call fcn.004a8580
int3
Function at 0x492af0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
movzx ebx, byte [eax + 0xb]
test bl, bl
jns 0x492b08
mov ebx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x492b0b
and ebx, 0x7f
cmp ebx, 4
jb 0x492bd9
lea edx, [ebx - 4]
test dl, 4
jne 0x492b3e
imul ecx, dword [eax], 0x5bd1e995
mov esi, ecx
shr esi, 0x18
xor esi, ecx
imul esi, esi, 0x5bd1e995
imul ecx, ebx, 0x5bd1e995
xor ecx, esi
add eax, 4
mov ebx, edx
jmp 0x492b40
mov ecx, ebx
cmp edx, 4
jb 0x492b92
mov edx, ebx
nop word [eax + eax]
imul esi, dword [eax], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, esi
imul esi, dword [eax + 4], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, esi
add eax, 8
add edx, 0xfffffff8
cmp edx, 3
ja 0x492b50
cmp edx, 1
je 0x492bb3
cmp edx, 2
je 0x492baa
cmp edx, 3
jne 0x492bbe
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, ebx
mov edx, ebx
jmp 0x492b92
Function at 0x4a8152
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 + 0x5158e0]
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 0x4a8192
cmp byte [ebx], 0xa
jne 0x4a8192
or byte [eax + edi + 0x28], 4
jmp 0x4a8197
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a8295
mov al, byte [edx]
cmp al, 0x1a
je 0x4a8277
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a81c6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a81eb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a81f5
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 0x4a81a8
jmp 0x4a8295
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 0x4a8272
cmp dword [ebp - 0xc], 0
je 0x4a8272
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5158e0]
test byte [eax + edi + 0x28], 0x48
je 0x4a824c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a8237
mov byte [esi], dl
jmp 0x4a8248
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5158e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a8295
cmp byte [ebp - 1], 0xa
jne 0x4a825b
cmp esi, ebx
jne 0x4a825b
mov byte [esi], 0xa
jmp 0x4a8294
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b2560
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a8295
mov byte [esi], 0xd
jmp 0x4a8294
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5158e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a8291
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a8295
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a829e
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 + 0x5158e0]
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 0x4a82e1
cmp word [esi], dx
jne 0x4a82e1
or byte [edi + eax + 0x28], 4
jmp 0x4a82e6
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 0x4a841f
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 0x4a83ff
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a8328
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a835e
cmp eax, edx
jae 0x4a836a
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 0x4a8300
jmp 0x4a841f
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 0x4a83fb
cmp dword [ebp - 0x14], 0
je 0x4a83fb
mov eax, dword [ebx*4 + 0x5158e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a83d3
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4a8419
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5158e0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x5158e0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5158e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4a841c
pop ebx
cmp word [ebp - 4], bx
jne 0x4a83e4
cmp esi, dword [ebp + 0xc]
jne 0x4a83e4
mov word [esi], bx
jmp 0x4a841c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b2560
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a841f
push 0xd
jmp 0x4a8418
mov ecx, dword [ebx*4 + 0x5158e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a8416
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a841f
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 0x4afda6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f95e8
push 0x4f95e0
push 0x4f95e8
push 0x1e
call fcn.004b0302
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4afdda
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4afde0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4afe24
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f960c
push 0x4f9604
push 0x4f960c
push 0x20
call fcn.004b0302
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4afe5b
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 0x4b4f82
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x511014]
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 0x4b4fcd
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004b50f8
test al, al
jne 0x4b4fc7
sub edx, 2
cmp edx, edi
jne 0x4b4fad
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4b4fef
lea eax, [edi + 2]
cmp edx, eax
je 0x4b4fef
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b4ece
add esp, 0x10
jmp 0x4b50e9
push esi
lea ecx, [ebp - 0x255]
call fcn.004b50f8
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 0x4b5032
push dword [ebp - 0x25c]
jmp 0x4b4fdf
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 0x4b506f
cmp word [ebp - 0x226], 0
je 0x4b5090
cmp word [ebp - 0x226], ax
jne 0x4b506f
cmp word [ebp - 0x224], 0
je 0x4b5090
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004b4ece
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4b50dc
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4b5049
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4b50c4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4b50e9
push 0x4b5120
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004ac080
add esp, 0x10
jmp 0x4b50b9
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.00496ce3
leave
ret
Function at 0x4b6121
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 0x4b61be
push ebx
push esi
call fcn.004b620f
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.004b606a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b616b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b61bd
push edi
push eax
call fcn.0044a0a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4b618b
call fcn.00493090
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b61bc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004b606a
add esp, 0x20
test eax, eax
jne 0x4b61aa
push edi
call fcn.00493090
jmp 0x4b61b2
push ebx
call fcn.00493090
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 0x4b61c1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b61d2
pop esi
ret
push ebx
push edi
push esi
call fcn.004b620f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044a0a0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b61fa
push ebx
push esi
push edi
call fcn.00498400
add esp, 0xc
push 0
call fcn.00493090
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4b6251
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b64ba

Function at 0x4b8df0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b8dfb