joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101a1f7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebx + 0x2d0]
call fcn.0101b00e
test eax, eax
jl 0x101a1ff
mov ecx, dword [ebp - 4]
push 3
call fcn.0101b0fc
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
and eax, 1
push 0
mov dword [ebp - 8], eax
call fcn.0101b0fc
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
push 1
mov dword [ebp - 0x10], eax
call fcn.0101b0fc
sub esp, 0x10
mov edi, esp
mov eax, dword [eax]
lea esi, [ebx + 0x118]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebx + 0x128]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x9c]
movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
and eax, esi
push eax
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 0x8c]
push eax
call fcn.0101dffb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebx + 0x220]
xor edi, edi
cmp eax, edi
jne 0x101a1b2
cmp dword [ebp - 8], edi
je 0x101a1ae
mov ecx, dword [ebp - 4]
push 0x17
mov dword [ebx + 0x220], esi
call fcn.0101b0fc
mov eax, dword [eax]
push dword [ebp + 8]
mov ecx, ebx
mov dword [ebx + 0x318], eax
call fcn.01017d4c
push esi
push dword [ebp + 8]
mov ecx, ebx
call fcn.01019ffb
jmp 0x101a1fd
cmp eax, edi
je 0x101a1dc
cmp dword [ebp - 8], edi
jne 0x101a1e1
mov ecx, dword [ebp - 4]
push 0x17
mov dword [ebx + 0x220], edi
call fcn.0101b0fc
mov ecx, dword [ebx + 0x318]
push dword [ebp + 8]
mov dword [eax], ecx
mov ecx, ebx
call fcn.01017f63
push edi
jmp 0x101a1a2
cmp dword [ebp - 8], edi
je 0x101a1f3
mov ecx, dword [ebp - 4]
push 0x17
call fcn.0101b0fc
mov ecx, dword [ebx + 0x318]
mov dword [eax], ecx
push dword [ebp + 8]
mov ecx, ebx
call fcn.010196d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x101cfcc
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
push esi
push ebx
xor edi, edi
mov eax, dword [esp + 0x14]
or eax, eax
jge 0x101cfd1
inc edi
mov edx, dword [esp + 0x10]
neg eax
neg edx
sbb eax, 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x1c]
or eax, eax
jge 0x101cfed
inc edi
mov edx, dword [esp + 0x18]
neg eax
neg edx
sbb eax, 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
or eax, eax
jne 0x101d009
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor edx, edx
div ecx
mov ebx, eax
mov eax, dword [esp + 0x10]
div ecx
mov edx, ebx
jmp 0x101d04a
mov ebx, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
shr ebx, 1
rcr ecx, 1
shr edx, 1
rcr eax, 1
or ebx, ebx
jne 0x101d017
div ecx
mov esi, eax
mul dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x18]
mul esi
add edx, ecx
jb 0x101d045
cmp edx, dword [esp + 0x14]
ja 0x101d045
jb 0x101d046
cmp eax, dword [esp + 0x10]
jbe 0x101d046
dec esi
xor edx, edx
mov eax, esi
dec edi
jne 0x101d054
neg edx
neg eax
sbb edx, 0
pop ebx
pop esi
pop edi
ret 0x10
Function at 0x10652058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x106521a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1065207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1065206a
add dl, dl
jne 0x10652089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106520dc
xor eax, eax
add dl, dl
jne 0x10652096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1065217d
add dl, dl
jne 0x106520a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106520b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106520bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106520c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x106520d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10652075
mov eax, 1
add dl, dl
jne 0x106520ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106520f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106520e1
sub eax, ebx
mov ebx, 1
jne 0x10652128
mov ecx, 1
add dl, dl
jne 0x1065210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10652119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10652105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10652075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1065213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1065214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10652136
cmp eax, 0x7d00
jae 0x1065216d
cmp eax, 0x500
jb 0x10652168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10652075
cmp eax, 0x7f
ja 0x10652170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10652075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1065219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10652075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x403203
pop dword [ebp - 0x2c]
mov eax, 0x6e690691
add eax, 0x91d72b72
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x9a90697a
add dword [ebp - 0x3c], 0xb3c1dbd1
mov dword [ebp - 0x38], 0xe2d3b6ef
add dword [ebp - 0x38], 0x4f5f9556
mov dword [ebp - 0x34], 0x50ffb16d
add dword [ebp - 0x34], 0xfb4c92c1
mov dword [ebp - 0x30], 0xb8f4d3be
sub dword [ebp - 0x30], 0xb8f4d3be
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x5b2823ec
add eax, 0xa5184c78
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x36e34412
sub dword [ebp - 0x3c], 0xc270dabc
mov dword [ebp - 0x38], 0x58c72b39
sub dword [ebp - 0x38], 0x175ac9c4
mov dword [ebp - 0x34], 0xad8a9a71
sub dword [ebp - 0x34], 0x4a1b2e05
mov dword [ebp - 0x30], 0xc1429d9c
add dword [ebp - 0x30], 0x3ebd6264
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a375
push 0
call eax
mov ecx, 0xb9780b4c
add ecx, 0x46884b31
xor edx, edx
add edx, eax
mov edi, 0x410000
add edi, dword [ebp - 0x2c]
mov esi, 0x381e781f
xor dword [ebp - 4], 0xff8d8964
mov ebx, dword [edi]
add dword [ebp - 0x14], 0xd7c33dc5
xor ebx, esi
mov dword [edx], ebx
mov dword [ebp - 8], 0x1bc229c9
add edx, 4
add edi, 0x99cbc3a6
sub edi, 0x99cbc3a2
loop 0x403316
add eax, 0xd6c929ee
sub eax, 0xd6c7dd27
xor ebx, ebx
add ebx, eax
add eax, 0x61b1beca
sub eax, 0x61b1bec5
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x403574
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
push 0
lea edi, [ebp - 0xc]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_WriteFile
mov dword [ebp - 8], eax
test eax, eax
jne 0x4035b4
call sub.kernel32.dll_GetLastError
mov dword [0x2ff1e300], eax
call fcn.00403a84
jmp 0x4035dd
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4035dd
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x403588
mov eax, dword [ebp - 0x10]
leave
ret 0xc

Function at 0x4035e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
push dword [ebp + 8]
call sub.kernel32.dll_GetFileType
cmp eax, 2
jne 0x403635
push 0
lea edi, [ebp - 0x10]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_ReadFile
mov dword [ebp - 8], eax
test eax, eax
jne 0x40369b
call sub.kernel32.dll_GetLastError
mov dword [0x2ff1e300], eax
call fcn.00403a84
jmp 0x40369b
push 0
lea edi, [ebp - 0xc]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_ReadFile
mov dword [ebp - 8], eax
test eax, eax
jne 0x403672
call sub.kernel32.dll_GetLastError
mov dword [0x2ff1e300], eax
cmp eax, 0x6d
jne 0x40366b
mov dword [0x2ff1e300], 0
jmp 0x40369b
call fcn.00403a84
jmp 0x40369b
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40369b
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x403635
mov eax, dword [ebp - 0x10]
leave
ret 0xc
Function at 0x421100
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x421122
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421129
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421118
mov eax, 1
add ebx, ebx
jne 0x42113b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421130
jne 0x42114c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421130
xor ecx, ecx
sub eax, 3
jb 0x421160
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4211d2
mov ebp, eax
add ebx, ebx
jne 0x42116b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421178
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42119c
inc ecx
add ebx, ebx
jne 0x421188
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42117d
jne 0x421199
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42117d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4211bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4211ad
jmp 0x42111e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4211bc
add edi, ecx
jmp 0x42111e
pop esi
mov edi, esi
mov ecx, 0xc58
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4211da
cmp byte [edi], 2
jne 0x4211da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4211df
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421257
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x27dd8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x27e64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42120c
mov ecx, edi
jns 0x42123b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x27e68]
or eax, eax
je 0x421251
mov dword [ebx], eax
add ebx, 4
jmp 0x421229
call dword [esi + 0x27e70]
mov ebp, dword [esi + 0x27e6c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42128b
sub esp, 0xffffff80
jmp 0x4121ff
Function at 0x40645c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406480
xor eax, eax
test eax, eax
je 0x406492
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406492
xor ecx, ecx
jmp 0x406495
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406581
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232bc], 0
push esi
jne 0x4065b8
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406592
mov dword [ecx*4 + 0x4232b8], eax
inc ecx
cmp ecx, 0x100
jl 0x40658d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065e9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232b8]
xor eax, esi
inc ecx
dec edx
jne 0x4065cb
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x74f77143
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x27d177d1
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4032a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x240], ebx
mov edi, ecx
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x238], edi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x238], edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push 0x426780
push eax
call fcn.00401010
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x230], 0
add esp, 0xc
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x230], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403345
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403fd0
mov esi, ebx
mov dword [ebp - 4], 0
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x403370
mov edx, dword [ebp - 0x220]
mov eax, 0x7fffffff
sub esi, ecx
sub eax, edx
cmp eax, esi
jb 0x4034fe
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
mov ebx, 0xf
mov dword [edi], 0
cmovae eax, dword [ebp - 0x230]
mov dword [ebp - 0x23c], eax
lea eax, [edx + esi]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [ebp - 0x238], eax
cmp eax, ebx
jbe 0x403466
mov ebx, eax
or ebx, 0xf
cmp ebx, 0x7fffffff
jbe 0x4033e6
mov ebx, 0x7fffffff
jmp 0x4033f0
mov eax, 0x16
cmp ebx, eax
cmovb ebx, eax
xor ecx, ecx
mov eax, ebx
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x1000
jb 0x40343b
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x403503
push eax
call fcn.0040583c
add esp, 4
test eax, eax
je 0x403508
mov edx, dword [ebp - 0x220]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x234]
mov dword [eax], edi
jmp 0x40346c
test ecx, ecx
je 0x40345a
push ecx
call fcn.0040583c
mov edx, dword [ebp - 0x220]
mov edi, eax
mov eax, dword [ebp - 0x234]
add esp, 4
mov dword [eax], edi
jmp 0x40346c
mov eax, dword [ebp - 0x234]
xor edi, edi
mov dword [eax], edi
jmp 0x40346c
mov eax, dword [ebp - 0x234]
push edx
push dword [ebp - 0x23c]
lea ecx, [edx + esi]
mov dword [eax + 0x14], ebx
push edi
mov dword [eax + 0x10], ecx
call fcn.00408540
mov eax, dword [ebp - 0x220]
push esi
push dword [ebp - 0x240]
add eax, edi
push eax
call fcn.00408540
mov eax, dword [ebp - 0x238]
add esp, 0x18
mov byte [edi + eax], 0
mov eax, dword [ebp - 0x21c]
cmp eax, 0x10
jb 0x4034dc
mov edx, dword [ebp - 0x230]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4034d2
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403508
push ecx
push edx
call fcn.0040586c
add esp, 8
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040582e
mov esp, ebp
pop ebp
ret
call fcn.004011f0
call fcn.00401150
call fcn.0040af86
int3
Function at 0x403510
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x429004]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40355f
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040582e
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4035c5
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [eax]
lea eax, [esp + 0x34]
mov ecx, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4035a6
test dl, dl
je 0x4035a2
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4035a6
add ecx, 2
add eax, 2
test dl, dl
jne 0x403586
xor eax, eax
jmp 0x4035ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x4035bd
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x403580
jmp 0x4035c5
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040582e
mov esp, ebp
pop ebp
ret
Function at 0x40f75f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421310
push 0x421308
push str.FlsAlloc
push 0x1e
call fcn.0040f5cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f793
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f174]
call esi
jmp 0x40f799
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f7dd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x421320
push 0x421318
push str.FlsGetValue
push 0x20
call fcn.0040f5cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f814
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x412ad0
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 0x412b6d
push ebx
push esi
call fcn.00412a99
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.004129e2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x412b1a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x412b6c
push edi
push eax
call fcn.0040e569
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x412b3a
call fcn.0040e52f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x412b6b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004129e2
add esp, 0x20
test eax, eax
jne 0x412b59
push edi
call fcn.0040e52f
jmp 0x412b61
push ebx
call fcn.0040e52f
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 0x100014d0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push 0
push 0
mov esi, ecx
push 0
mov dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x2800
mov dword [esi + 0x14], eax
mov dword [esi], 0x2800
call fcn.10005932
mov edi, dword [esi + 0x14]
add esp, 4
push 0xffffffffffffffff
push edi
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 0
push ecx
mov dword [esi + 4], 0
call fcn.10009ae0
mov edx, dword [esi + 8]
add esp, 0xc
test edi, edi
mov dword [esi + 0xc], edx
je 0x10001538
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, esi
pop esi
ret

Function at 0x10001540
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
push edi
je 0x10001562
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x10001562
mov dword [esi + 0x18], 1
mov dword [esi], eax
mov dword [esi + 8], ecx
jmp 0x1000157f
push 0x2800
mov dword [esi + 0x18], 0
mov dword [esi], 0x2800
call fcn.10005932
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
push 0
push 0
push 0
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
push 0xffffffffffffffff
push edi
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
push ecx
push 0
push edx
mov dword [esi + 4], 0
call fcn.10009ae0
mov eax, dword [esi + 8]
add esp, 0xc
test edi, edi
mov dword [esi + 0xc], eax
je 0x100015c8
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, esi
pop esi
ret 8