joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456f30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x4ad014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.0043c770
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x456f5e
mov esi, dword [ebp - 0x1c]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
js 0x456f7c
cmp dword [ebp + 8], 0
jne 0x456f91
jmp 0x45702c
push dword [ebp - 0x1c]
call fcn.0046f880
add esp, 4
cmp dword [ebp + 8], 0
je 0x45702c
test esi, esi
je 0x45702c
lea eax, [esi + esi]
test esi, esi
mov ecx, 0xffffffff
cmovns ecx, eax
push ecx
call fcn.0046f8b3
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.0043c770
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x456fcc
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x456fe6
push dword [ebp - 0x1c]
call fcn.0046f880
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x457045
push edi
call fcn.00485180
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.0043c7b0
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x457014
push dword [ebx]
call fcn.0046f880
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.0046f8bc
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470273
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3
Function at 0x45c3f0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esi + 0xb]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
test bl, bl
mov dword [ebp - 0x14], ecx
lea ecx, [eax + ecx]
lea edx, [esi + ebx]
cmovs edx, ecx
cmovs esi, eax
sub edx, esi
cmp edx, 4
mov dword [ebp - 0x20], ebx
jb 0x45c45d
mov ecx, esi
mov eax, edx
nop word [eax + eax]
imul edi, dword [ecx], 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul edi, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x45c430
cmp edx, 1
jne 0x45c466
jmp 0x45c482
mov eax, edx
mov ecx, esi
cmp edx, 1
je 0x45c482
cmp edx, 2
je 0x45c479
cmp edx, 3
jne 0x45c48d
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 4]
xor ecx, ecx
test ebx, ebx
je 0x45c5ee
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov edi, eax
shr edi, 0xf
xor edi, eax
mov edx, ebx
shr edx, 1
and edx, 0x55555555
mov eax, ebx
sub eax, edx
mov edx, eax
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x24], eax
cmp eax, 1
ja 0x45c4f6
lea edx, [ebx - 1]
and edx, edi
jmp 0x45c502
mov edx, edi
cmp edi, ebx
jb 0x45c502
mov eax, edi
xor edx, edx
div ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x45c5ee
mov dword [ebp - 0x18], ebx
mov ebx, dword [eax]
test ebx, ebx
je 0x45c5ee
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
test cl, cl
mov eax, dword [ebp - 0x14]
cmovns eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x45c555
and eax, dword [ebp - 0x1c]
cmp eax, edx
jne 0x45c5ec
mov ebx, dword [ebx]
test ebx, ebx
je 0x45c5ec
mov eax, dword [ebx + 4]
cmp edi, eax
jne 0x45c5b0
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x45c569
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x14]
jne 0x45c54b
lea ecx, [ebx + 8]
test al, al
jns 0x45c577
mov ecx, dword [ecx]
js 0x45c5ce
cmp dword [ebp - 0x14], 0
je 0x45c5e8
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [ebx + ecx + 8]
cmp dl, byte [esi + ecx]
jne 0x45c54b
inc ecx
cmp eax, ecx
jne 0x45c590
jmp 0x45c5e8
cmp dword [ebp - 0x24], 1
mov edx, dword [ebp - 0x10]
jbe 0x45c540
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jb 0x45c543
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [ebp - 0x10]
jmp 0x45c543
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45c5e8
push eax
push esi
push ecx
call fcn.0047193d
add esp, 0xc
test eax, eax
jne 0x45c54b
mov ecx, ebx
jmp 0x45c5ee
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4658b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x4658c1
test eax, eax
jne 0x465911
test eax, eax
jne 0x4658d7
mov ecx, dword [0x4c1c7c]
test ecx, ecx
je 0x4658d7
call dword [section..00cfg]
call ecx
cmp dword [0x4c1c74], 0
je 0x465911
mov esi, dword [0x4c1c78]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x465917
test esi, esi
je 0x465911
mov ecx, dword [0x4c1c74]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
pop esi
pop edi
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x4658ff
jmp 0x465911

Function at 0x466350
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c1ca0]
mov ecx, dword [0x4b0cc8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46637b
mov ecx, 0x4c1c98
pop ebp
jmp fcn.004520e0
push 0x4c1ca0
call fcn.0046f8f7
add esp, 4
cmp dword [0x4c1ca0], 0xffffffff
jne 0x466370
mov dword [0x4c1c9c], 0
mov dword [0x4c1c98], 0
mov ecx, 0x4c1c98
push 0
call fcn.00452150
push 0x4c1ca0
call fcn.0046f96d
add esp, 4
jmp 0x466370

Function at 0x4673d0
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 [0x4ad014]
xor eax, ebp
mov dword [esp + 0x18], eax
mov edi, dword [ecx + 0x38]
test edi, edi
jne 0x467495
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 0x467427
lea eax, [esp + 0x15]
cmp eax, str.discarded
ja 0x4674ac
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.00467340
push 0x48
call fcn.0046f850
add esp, 4
mov ebx, eax
mov ecx, eax
push edi
push dword [esi + 0x28]
lea eax, [esp + 0x14]
push eax
call fcn.00467b60
mov edi, dword [esi + 0x38]
mov dword [esi + 0x38], ebx
test edi, edi
je 0x46747f
mov ecx, edi
call fcn.00467c50
push edi
call fcn.0046f880
add esp, 4
cmp byte [esp + 0x17], 0
jns 0x467492
push dword [esp + 0xc]
call fcn.0046f880
add esp, 4
mov edi, dword [esi + 0x38]
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.00470273
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.00413750
int3
Function at 0x46d410
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 0x46d51b
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 0x46d461
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 0x46d4eb
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
jmp 0x46d4ed
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 0x46d540
mov eax, 0x80000007
xor ecx, ecx
cpuid
and dh, 1
mov byte [edi + 0x19], dh
test dh, dh
jne 0x46d572
jmp 0x46d547
mov dh, byte [edi + 0x19]
test dh, dh
jne 0x46d572
cmp byte [edi + 0x1a], 0
je 0x46d572
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp ebx, 0x7263694d
jne 0x46d572
cmp ecx, 0x666f736f
jne 0x46d572
cmp edx, 0x76482074
jne 0x46d572
mov byte [edi + 0x19], 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46dbe0
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 [0x4ad014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x46dc5c
mov eax, dword [ebp + 8]
cmp dword [0x4c1cfc], eax
jg 0x46dc5c
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 0x46dc4b
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 0x46dc4b
mov eax, dword [ebp - 0x18]
add ebx, eax
test eax, eax
jne 0x46dc20
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
mov eax, dword [ebp + 0xc]
je 0x46dc5c
cmp byte [ecx + eax - 1], 0xa
jne 0x46dc74
cmp dword [ebp + 8], 3
je 0x46dcc1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470273
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0x49f294
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea ebx, [ebp - 0x14]
nop word cs:[eax + eax]
cmp edi, 0x49f295
jae 0x46dc5c
mov dword [ebp - 0x14], 0
mov eax, 0x49f295
sub eax, edi
push 0
push ebx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46dc5c
mov eax, dword [ebp - 0x14]
add edi, eax
test eax, eax
jne 0x46dc90
jmp 0x46dc5c
int3
Function at 0x46e6e0
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 [0x4ad014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
jne 0x46e7fd
mov dword [ebp - 0x14], 0x46e820
lea eax, [ebp - 0x14]
push 0
push eax
push 0x46e6c0
push 0x4c1d10
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x46e811
cmp dword [0x4c1d14], 0
jne 0x46e7fd
push dword [0x4c1d18]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e7fd
mov esi, eax
push 0x4c1d1c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov edi, dword [0x4c1d20]
mov ebx, dword [0x4c1d24]
mov eax, dword [0x4c1d28]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4c1d2c]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4c1d30]
mov dword [ebp - 0x24], eax
push 0x4c1d1c
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test edi, edi
je 0x46e79b
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 0x46e7b0
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 0x46e7c6
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 0x46e7df
mov edi, dword [esi + 0xc]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test ebx, ebx
je 0x46e7f4
mov edi, dword [esi + 0x10]
mov ecx, ebx
call dword [section..00cfg]
push edi
call ebx
add esp, 4
push esi
call fcn.0046eab0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00470273
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.00480190
int3
Function at 0x47fd6a
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 + 0x4b16a0]
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 0x47fdaa
cmp byte [ebx], 0xa
jne 0x47fdaa
or byte [eax + edi + 0x28], 4
jmp 0x47fdaf
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x47fead
mov al, byte [edx]
cmp al, 0x1a
je 0x47fe8f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x47fdde
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x47fe03
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x47fe0d
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 0x47fdc0
jmp 0x47fead
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 0x47fe8a
cmp dword [ebp - 0xc], 0
je 0x47fe8a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4b16a0]
test byte [eax + edi + 0x28], 0x48
je 0x47fe64
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47fe4f
mov byte [esi], dl
jmp 0x47fe60
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4b16a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47fead
cmp byte [ebp - 1], 0xa
jne 0x47fe73
cmp esi, ebx
jne 0x47fe73
mov byte [esi], 0xa
jmp 0x47feac
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00489db0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47fead
mov byte [esi], 0xd
jmp 0x47feac
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4b16a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47fea9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47fead
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47feb6
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 + 0x4b16a0]
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 0x47fef9
cmp word [esi], dx
jne 0x47fef9
or byte [edi + eax + 0x28], 4
jmp 0x47fefe
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 0x480037
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 0x480017
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x47ff40
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x47ff76
cmp eax, edx
jae 0x47ff82
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 0x47ff18
jmp 0x480037
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 0x480013
cmp dword [ebp - 0x14], 0
je 0x480013
mov eax, dword [ebx*4 + 0x4b16a0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x47ffeb
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x480031
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4b16a0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4b16a0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4b16a0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x480034
pop ebx
cmp word [ebp - 4], bx
jne 0x47fffc
cmp esi, dword [ebp + 0xc]
jne 0x47fffc
mov word [esi], bx
jmp 0x480034
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00489db0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x480037
push 0xd
jmp 0x480030
mov ecx, dword [ebx*4 + 0x4b16a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48002e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x480037
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 0x4875f6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4995b8
push 0x4995b0
push 0x4995b8
push 0x1e
call fcn.00487b52
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48762a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x487630
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x487674
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4995dc
push 0x4995d4
push 0x4995dc
push 0x20
call fcn.00487b52
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4876ab
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 0x48c7d2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ad014]
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 0x48c81d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0048c948
test al, al
jne 0x48c817
sub edx, 2
cmp edx, edi
jne 0x48c7fd
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x48c83f
lea eax, [edi + 2]
cmp edx, eax
je 0x48c83f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0048c71e
add esp, 0x10
jmp 0x48c939
push esi
lea ecx, [ebp - 0x255]
call fcn.0048c948
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 0x48c882
push dword [ebp - 0x25c]
jmp 0x48c82f
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 0x48c8bf
cmp word [ebp - 0x226], 0
je 0x48c8e0
cmp word [ebp - 0x226], ax
jne 0x48c8bf
cmp word [ebp - 0x224], 0
je 0x48c8e0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0048c71e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x48c92c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x48c899
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x48c914
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x48c939
push 0x48c970
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00483d80
add esp, 0x10
jmp 0x48c909
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.00470273
leave
ret
Function at 0x48dae1
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 0x48db7e
push ebx
push esi
call fcn.0048dbcf
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.0048da2a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x48db2b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48db7d
push edi
push eax
call fcn.0043b870
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x48db4b
call fcn.0043b8c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x48db7c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0048da2a
add esp, 0x20
test eax, eax
jne 0x48db6a
push edi
call fcn.0043b8c0
jmp 0x48db72
push ebx
call fcn.0043b8c0
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 0x48db81
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x48db92
pop esi
ret
push ebx
push edi
push esi
call fcn.0048dbcf
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043b870
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x48dbba
push ebx
push esi
push edi
call fcn.00472850
add esp, 0xc
push 0
call fcn.0043b8c0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x48dc11
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048de7a

Function at 0x4907b0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004907bb

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219