joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4117ff
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x57db70]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411845
cmp word [ebx], dx
jne 0x411845
or byte [eax + edi + 0x28], 4
jmp 0x41184a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4119ad
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41198d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41188b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4118c1
cmp eax, edx
jae 0x4118cf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x411866
jmp 0x4119ad
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411988
cmp dword [ebp - 0x18], 0
je 0x411988
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x57db70]
test byte [eax + edi + 0x28], 0x48
je 0x41195e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x411922
mov word [esi], cx
jmp 0x411959
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x57db70]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x57db70]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x57db70]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4119ad
pop eax
cmp word [ebp - 4], ax
jne 0x41196e
cmp esi, ebx
jne 0x41196e
mov word [esi], ax
jmp 0x4119aa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411622
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4119ad
push 0xd
pop eax
jmp 0x411969
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x57db70]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4119a7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4119ad
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bb70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push esi
push edi
mov dl, byte [eax]
lea ecx, [eax + 1]
cmp dl, 0x2d
mov byte [esp + 0x1f], dl
cmovne ecx, eax
xor esi, esi
mov edi, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edi
mov al, byte [edi]
cmp al, 0x2d
jne 0x41bbfb
movzx eax, byte [edi + 1]
mov dword [esp + 0x10], esi
lea esi, [edi + 1]
push eax
call fcn.00458780
add esp, 4
test eax, eax
je 0x41bbe5
xor edi, edi
nop word [eax + eax]
movsx eax, byte [esi]
lea ecx, [edi - 6]
inc esi
lea ecx, [edi + ecx*4]
lea edi, [eax + ecx*2]
movzx eax, byte [esi]
push eax
call fcn.00458780
add esp, 4
test eax, eax
jne 0x41bbc0
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
cmp esi, edi
jbe 0x41bbf7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41bbf3
neg eax
mov dword [esp + 0x18], eax
sub esi, edi
jmp 0x41bc47
movzx eax, al
push eax
call fcn.00458780
add esp, 4
test eax, eax
je 0x41bc41
nop dword [eax + eax]
movsx eax, byte [edi]
lea ecx, [esi - 6]
inc edi
lea ecx, [esi + ecx*4]
lea esi, [eax + ecx*2]
movzx eax, byte [edi]
push eax
call fcn.00458780
add esp, 4
test eax, eax
jne 0x41bc10
mov edx, dword [esp + 0x14]
mov ecx, edi
mov dword [esp + 0x10], edi
cmp ecx, edx
jbe 0x41bc43
mov dword [esp + 0x18], esi
jmp 0x41bc43
mov edx, edi
mov esi, edi
sub esi, edx
mov eax, dword [esp + 0x18]
xorps xmm1, xmm1
add esi, dword [esp + 0xc]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
cmp byte [esi], 0x2e
addsd xmm0, qword [eax*8 + 0x520270]
addsd xmm0, xmm1
movsd qword [esp + 8], xmm0
jne 0x41bce5
movzx eax, byte [esi + 1]
inc esi
push eax
mov edi, 0xa
call fcn.00458780
add esp, 4
test eax, eax
je 0x41bcdc
nop dword [eax]
movsx eax, byte [esi]
inc esi
sub eax, 0x30
movd xmm0, edi
cvtdq2pd xmm0, xmm0
lea edi, [edi + edi*4]
add edi, edi
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x520270]
movzx eax, byte [esi]
push eax
divsd xmm1, xmm0
movsd xmm0, qword [esp + 0xc]
addsd xmm0, xmm1
movsd qword [esp + 0xc], xmm0
call fcn.00458780
add esp, 4
test eax, eax
jne 0x41bc90
movsd xmm0, qword [esp + 8]
xorps xmm1, xmm1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
test ecx, ecx
je 0x41bd11
cmp esi, edx
jbe 0x41bd11
cmp byte [esp + 0x1f], 0x2d
jne 0x41bd0d
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x41bd0d
xorps xmm0, xmmword [0x520280]
movsd qword [ecx], xmm0
sub esi, edx
pop edi
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x41f5d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
push 0
call fcn.00449940
add esp, 8
mov ebx, eax
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebp, eax
push 1
mov dword [esp + 0x14], ebp
call edi
mov esi, dword [esp + 0x18]
test ax, ax
js 0x41f662
movzx eax, byte [esi + 0x44]
test ebp, ebp
mov ebp, 1
setne cl
lea edx, [ecx*2 + 1]
movzx ecx, dl
dec ecx
mov dword [esp + 0x18], edx
shl ebp, cl
test eax, ebp
je 0x41f64b
push dword [esi]
btr eax, ecx
mov byte [esi + 0x44], al
call fcn.00475740
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043aca0
add esp, 0xc
test eax, eax
je 0x41f65e
mov edx, dword [esp + 0x18]
test ebx, ebp
je 0x41f65e
push edx
push 0
push 0
push dword [esi]
call fcn.0044a920
add esp, 0x10
mov ebp, dword [esp + 0x10]
push 2
call edi
test ax, ax
js 0x41f6c5
test ebp, ebp
mov ebp, 1
sete al
lea edx, [eax*2 + 1]
movzx eax, byte [esi + 0x44]
movzx ecx, dl
dec ecx
mov dword [esp + 0x18], edx
shl ebp, cl
test eax, ebp
je 0x41f6b2
push dword [esi]
btr eax, ecx
mov byte [esi + 0x44], al
call fcn.00475740
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043aca0
add esp, 0xc
test eax, eax
je 0x41f6c5
mov edx, dword [esp + 0x18]
test ebx, ebp
je 0x41f6c5
push edx
push 0
push 0
push dword [esi]
call fcn.0044a920
add esp, 0x10
push 4
call edi
test ax, ax
js 0x41f70c
movzx eax, byte [esi + 0x44]
test al, 2
je 0x41f6f7
push dword [esi]
btr eax, 1
mov byte [esi + 0x44], al
call fcn.00475740
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043aca0
add esp, 0xc
test eax, eax
je 0x41f70c
test bl, 2
je 0x41f70c
push 2
push 0
push 0
push dword [esi]
call fcn.0044a920
add esp, 0x10
push 5
call edi
test ax, ax
js 0x41f753
movzx eax, byte [esi + 0x44]
test al, 8
je 0x41f73e
push dword [esi]
btr eax, 3
mov byte [esi + 0x44], al
call fcn.00475740
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043aca0
add esp, 0xc
test eax, eax
je 0x41f753
test bl, 8
je 0x41f753
push 4
push 0
push 0
push dword [esi]
call fcn.0044a920
add esp, 0x10
push 6
call edi
test ax, ax
js 0x41f79a
movzx eax, byte [esi + 0x44]
test al, 0x10
je 0x41f785
push dword [esi]
btr eax, 4
mov byte [esi + 0x44], al
call fcn.00475740
push 0
push str.SDL_MOUSE_FOCUS_CLICKTHROUGH
call fcn.0043aca0
add esp, 0xc
test eax, eax
je 0x41f79a
test bl, 0x10
je 0x41f79a
push 5
push 0
push 0
push dword [esi]
call fcn.0044a920
add esp, 0x10
pop edi
mov dword [esi + 0x28], 0xffffffff
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x41ffe0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, dword [ebp + 0xa4]
mov esi, dword [edi + 4]
mov dword [esp + 0x18], esi
call fcn.004411d0
xor ebx, ebx
cmp eax, ebp
sete bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
cmp eax, esi
sete cl
cmp ebx, ecx
je 0x4201f4
cmp ecx, dword [esp + 0x38]
jne 0x4201f4
cmp eax, esi
jne 0x420188
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
mov dword [esp + 0x14], eax
call esi
mov ecx, 4
lea ebx, [ecx - 3]
test ax, ax
je 0x420066
cmp dword [esp + 0x10], 0
mov eax, ecx
cmove eax, ebx
or byte [edi + 0x44], al
push 2
call esi
test ax, ax
je 0x42007f
cmp dword [esp + 0x10], 0
mov eax, 4
cmove ebx, eax
or byte [edi + 0x44], bl
push 4
call esi
test ax, ax
je 0x42008c
or byte [edi + 0x44], 2
push 5
call esi
test ax, ax
je 0x420099
or byte [edi + 0x44], 8
push 6
call esi
test ax, ax
je 0x4200a6
or byte [edi + 0x44], 0x10
push ebp
call fcn.00441b80
add esp, 4
call fcn.00449920
cmp dword [eax + 0x54], 0
jne 0x42010a
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ecx
push eax
push dword [edi]
call fcn.00474690
push dword [esp + 0x20]
push dword [esp + 0x20]
push 0
push 0
push ebp
call fcn.0044a940
add esp, 0x20
push edi
call fcn.0041f5d0
push ebp
call fcn.00475740
push dword [edi + 0x7c]
call fcn.0046fa90
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
add esp, 0xc
push 0x14
call esi
and eax, 1
push eax
push 0x2000
call fcn.00441e10
add esp, 8
push 0x90
call esi
and eax, 1
push eax
push 0x1000
call fcn.00441e10
add esp, 8
push 0x91
call esi
and eax, 1
push eax
push 0x8000
call fcn.00441e10
push 1
push dword [edi]
call fcn.00475a10
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00401033
add esp, 0x20
ret
push 0
mov dword [edi + 0x58], 1
call fcn.00441b80
add esp, 4
call fcn.00449920
cmp dword [eax + 0x54], 0
je 0x4201ae
push 0
call fcn.0044ad30
add esp, 4
call fcn.00471b00
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetClipCursor]
test eax, eax
je 0x4201ed
push 0x10
lea esi, [edi + 0x5c]
lea eax, [esp + 0x20]
push esi
push eax
call fcn.0041c1e0
add esp, 0xc
test eax, eax
jne 0x4201ed
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
push 0x10
push 0
push esi
call fcn.004588c0
add esp, 0xc
mov dword [edi + 0x58], 0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401033
add esp, 0x20
ret
Function at 0x4291f0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc4
movaps xmm0, xmmword [0x521f90]
mov eax, 0x7fff
push ebx
push esi
mov esi, dword [esp + 0xd0]
mov word [esp + 0xb8], ax
movups xmmword [esp + 0xbc], xmm0
mov dword [esp + 8], 0x80007
mov al, byte [esi]
mov dword [esp + 0xc], 0xa0009
mov dword [esp + 0x10], 0xc000b
mov dword [esp + 0x14], 0xe000d
mov dword [esp + 0x18], 0x110010
mov dword [esp + 0x1c], 0x150013
mov dword [esp + 0x20], 0x190017
mov dword [esp + 0x24], 0x1f001c
mov dword [esp + 0x28], 0x250022
mov dword [esp + 0x2c], 0x2d0029
mov dword [esp + 0x30], 0x370032
mov dword [esp + 0x34], 0x42003c
mov dword [esp + 0x38], 0x500049
mov dword [esp + 0x3c], 0x610058
mov dword [esp + 0x40], 0x76006b
mov dword [esp + 0x44], 0x8f0082
mov dword [esp + 0x48], 0xad009d
mov dword [esp + 0x4c], 0xd100be
mov dword [esp + 0x50], 0xfd00e6
mov dword [esp + 0x54], 0x1330117
mov dword [esp + 0x58], 0x1730151
mov dword [esp + 0x5c], 0x1c10198
mov dword [esp + 0x60], 0x22001ee
mov dword [esp + 0x64], 0x2920256
mov dword [esp + 0x68], 0x31c02d4
mov dword [esp + 0x6c], 0x3c3036c
mov dword [esp + 0x70], 0x48e0424
mov dword [esp + 0x74], 0x5830502
mov dword [esp + 0x78], 0x6ab0610
mov dword [esp + 0x7c], 0x8120756
mov dword [esp + 0x80], 0x9c308e0
mov dword [esp + 0x84], 0xbd00abd
mov dword [esp + 0x88], 0xe4c0cff
mov dword [esp + 0x8c], 0x114c0fba
mov dword [esp + 0x90], 0x14ee1307
mov dword [esp + 0x94], 0x19541706
mov dword [esp + 0x98], 0x1ea51bdc
mov dword [esp + 0x9c], 0x251521b6
mov dword [esp + 0xa0], 0x2cdf28ca
mov dword [esp + 0xa4], 0x364b315b
mov dword [esp + 0xa8], 0x41b23bb9
mov dword [esp + 0xac], 0x4f7e4844
mov dword [esp + 0xb0], 0x602f5771
mov dword [esp + 0xb4], 0x746269ce
cmp al, 0x58
jle 0x4293af
mov dl, 0x58
jmp 0x4293b9
xor ecx, ecx
movzx edx, al
test al, al
cmovs edx, ecx
mov bl, byte [esp + 0xd8]
movsx eax, dl
movzx ecx, word [esp + eax*2 + 8]
movzx eax, bl
mov al, byte [esp + eax + 0xbc]
add al, dl
mov edx, ecx
shr edx, 3
mov byte [esi], al
test bl, 4
je 0x4293e2
add edx, ecx
test bl, 2
je 0x4293ed
mov eax, ecx
shr eax, 1
add edx, eax
test bl, 1
je 0x4293f7
shr ecx, 2
add edx, ecx
movsx eax, word [esp + 0xd4]
mov ecx, edx
neg ecx
test bl, 8
pop esi
cmove ecx, edx
add ecx, eax
pop ebx
cmp ecx, 0x7fff
jle 0x429421
mov eax, 0x7fff
add esp, 0xc4
ret
mov eax, 0xffff8000
cmp ecx, eax
cmovl ecx, eax
mov ax, cx
add esp, 0xc4
ret
Function at 0x438160
Capabilities:
Hash data using djb2

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x18
or eax, 0xffffffff
test ecx, ecx
jne 0x4382b1
mov ecx, dword [0x57e54c]
test ecx, ecx
jne 0x43818d
push str.no_gesture_touch_devices_registered
call fcn.0041ad60
add esp, 4
add esp, 0x18
ret
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x28], esi
push edi
test ecx, ecx
jle 0x43829e
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov ebx, dword [0x57e548]
mov dword [esp + 0x20], ebx
mov eax, dword [ebx + ebp + 0x201c]
imul edi, eax, 0x208
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edi
lea eax, [edi + 0x208]
push eax
push dword [ebx + ebp + 0x2020]
call fcn.004582b0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4381f0
push eax
call fcn.0041ac90
add esp, 4
jmp 0x43827f
push 0x200
push dword [esp + 0x34]
mov dword [ebx + ebp + 0x2020], eax
add eax, edi
push eax
mov dword [esp + 0x20], eax
call fcn.0041c240
mov ebp, dword [esp + 0x20]
add esp, 0xc
mov edi, 0x1505
xor ebx, ebx
nop word [eax + eax]
movss xmm0, dword [ebp + ebx*8]
mov esi, edi
shl esi, 5
add esi, edi
call fcn.0050d340
movss xmm0, dword [ebp + ebx*8 + 4]
add esi, eax
mov edi, esi
shl edi, 5
add edi, esi
call fcn.0050d340
inc ebx
add edi, eax
cmp ebx, 0x40
jl 0x438220
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
mov dword [ecx + eax + 0x200], edi
mov dword [ecx + eax + 0x204], 0
mov eax, dword [esp + 0x20]
inc dword [eax + ebp + 0x201c]
mov eax, dword [esp + 0x24]
test eax, eax
js 0x4382a6
inc esi
add ebp, 0x2028
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], ebp
cmp esi, dword [0x57e54c]
jl 0x4381a5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
add esp, 0x18
mov dword [esp + 4], ecx
jmp fcn.004382c0

Function at 0x4382c0
Capabilities:
Hash data using djb2

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov eax, dword [ebx + 0x201c]
imul esi, eax, 0x208
mov dword [esp + 8], eax
lea eax, [esi + 0x208]
push eax
push dword [ebx + 0x2020]
call fcn.004582b0
add esp, 8
test eax, eax
jne 0x4382fd
push eax
call fcn.0041ac90
add esp, 4
pop esi
pop ebx
pop ecx
ret
push ebp
push edi
push 0x200
push dword [esp + 0x20]
lea ebp, [esi + eax]
mov dword [ebx + 0x2020], eax
push ebp
call fcn.0041c240
add esp, 0xc
mov edi, 0x1505
xor ebx, ebx
movss xmm0, dword [ebp + ebx*8]
mov esi, edi
shl esi, 5
add esi, edi
call fcn.0050d340
movss xmm0, dword [ebp + ebx*8 + 4]
add esi, eax
mov edi, esi
shl edi, 5
add edi, esi
call fcn.0050d340
inc ebx
add edi, eax
cmp ebx, 0x40
jl 0x438321
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [ebp + 0x200], edi
pop edi
mov dword [ebp + 0x204], 0
inc dword [ecx + 0x201c]
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x458300
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
test esi, esi
je 0x45835f
cmp byte [esi], 0
je 0x45835f
push dword [0x57f304]
push dword [0x57f300]
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x45835f
cmp edi, dword [0x57f304]
jbe 0x458357
push edi
push dword [0x57f300]
call fcn.004582b0
add esp, 8
test eax, eax
je 0x45835f
push edi
push eax
push esi
mov dword [0x57f300], eax
mov dword [0x57f304], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, dword [0x57f300]
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x45ec90
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
mov dword [esp + 8], 0
mov edx, dword [esi + 0x28]
mov ecx, edx
neg ecx
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0xc]
sbb ecx, ecx
and ecx, 0x10000
test eax, eax
je 0x45ecd3
push edi
lea edi, [esp + 0xc]
push edi
push ecx
push esi
push 0x45ec60
push edx
push 0
call eax
add esp, 0x18
pop edi
jmp 0x45ece8
lea eax, [esp + 8]
push eax
push ecx
push esi
push 0x45ec60
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop esi
test eax, eax
jne 0x45ecfe
push str.Not_enough_resources_to_create_thread
call fcn.0041ad60
add esp, 4
ret
xor eax, eax
ret

Function at 0x45f7b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub esp, 8
cmp dword [0x57f3bc], 0
jne 0x45f7f0
push 0
push 0x45f8d0
push str.SDL_TIMER_RESOLUTION
mov dword [0x57f3bc], 1
call fcn.0043aa40
add esp, 0xc
push 0x57f3c8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0x57f3c0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp]
sub ecx, dword [0x57f3c0]
mov eax, dword [esp + 4]
sbb eax, dword [0x57f3c4]
push 0
push 0x3e8
push eax
push ecx
call fcn.0050d060
push dword [0x57f3cc]
push dword [0x57f3c8]
push edx
push eax
call fcn.0050d0d0
add esp, 8
ret
Function at 0x4657b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x46586a
push ebp
nop word [eax + eax]
movzx edx, byte [ebx + edi]
mov ebp, 0
movzx ecx, al
xor edx, ecx
mov ecx, 0xedb88320
test dl, 1
cmovne ecx, ebp
shr edx, 1
xor ecx, edx
mov edx, 0xedb88320
test cl, 1
cmovne edx, ebp
shr ecx, 1
xor edx, ecx
mov ecx, 0xedb88320
test dl, 1
cmovne ecx, ebp
shr edx, 1
xor ecx, edx
mov edx, 0xedb88320
test cl, 1
cmovne edx, ebp
shr ecx, 1
xor edx, ecx
mov ecx, 0xedb88320
test dl, 1
cmovne ecx, ebp
shr edx, 1
xor ecx, edx
mov edx, 0xedb88320
test cl, 1
cmovne edx, ebp
shr ecx, 1
xor edx, ecx
mov ecx, 0xedb88320
test dl, 1
cmovne ecx, ebp
shr edx, 1
xor ecx, edx
shr eax, 7
xor eax, ecx
mov edx, 0xff000000
shr eax, 1
test cl, 1
mov ecx, 0x12b88320
cmovne ecx, edx
inc edi
xor eax, ecx
cmp edi, esi
jb 0x4657d0
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46f1c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
je 0x46f2dd
push ebx
mov ebx, dword [esp + 0x14]
nop word [eax + eax]
mov dl, byte [esi + ebp]
xor dl, bl
mov al, dl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr dl, 1
and eax, 0xa001
movzx ecx, ax
mov al, dl
xor al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
shr dl, 1
xor ax, cx
movzx ecx, ax
mov al, dl
xor al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
shr dl, 1
xor ax, cx
movzx ecx, ax
mov al, dl
xor al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
shr dl, 1
xor ax, cx
movzx ecx, ax
mov al, dl
xor al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
shr dl, 1
xor ax, cx
movzx ecx, ax
mov al, dl
xor al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
shr dl, 1
xor ax, cx
movzx ecx, ax
mov al, dl
xor al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
shr dl, 1
xor ax, cx
movzx ecx, ax
xor dl, cl
and dl, 1
movzx eax, dl
neg eax
sbb eax, eax
shr cx, 1
and eax, 0xa001
xor ax, cx
shr bx, 8
movzx ecx, ax
inc esi
xor bx, cx
movzx ebx, bx
cmp esi, edi
jb 0x46f1e0
mov ax, bx
pop ebx
pop edi
pop esi
pop ebp
ret
mov ax, word [esp + 0x10]
pop edi
pop esi
pop ebp
ret

Function at 0x46f2f0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push esi
push edi
call sub.KERNEL32.dll_GetCurrentThreadId
xor edi, edi
mov esi, eax
cmp dword [0x57ded4], edi
jne 0x41ddc6
push 0x57dedc
call fcn.004267a0
add esp, 4
cmp dword [0x57ded4], edi
jne 0x41ddb9
call fcn.0044b420
nop
mov dword [0x57ded4], eax
test eax, eax
jne 0x41ddb9
push 0x57dedc
call fcn.00426800
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0x57dedc
call fcn.00426800
add esp, 4
nop
push dword [0x57ded4]
call fcn.0044b4e0
mov eax, dword [0x57ded8]
add esp, 4
test eax, eax
je 0x41de01
nop
cmp dword [eax], esi
je 0x41ddfe
mov eax, dword [eax + 8]
test eax, eax
jne 0x41dde0
push dword [0x57ded4]
call fcn.0044b520
add esp, 4
mov eax, edi
pop edi
pop esi
ret
mov edi, dword [eax + 4]
push dword [0x57ded4]
call fcn.0044b520
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp dword [0x569338], 0xffffffff
jne 0x46f34b
cmp dword [0x57f49c], 0
jne 0x46f354
push 0x57f4a0
call fcn.004267a0
add esp, 4
cmp dword [0x569338], 0xffffffff
jne 0x46f33e
cmp dword [0x57f49c], 0
jne 0x46f33e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x46f334
nop
mov dword [0x569338], eax
jmp 0x46f33e
mov dword [0x57f49c], 1
push 0x57f4a0
call fcn.00426800
add esp, 4
cmp dword [0x57f49c], 0
je 0x46f359
jmp 0x41dd70
nop
push dword [0x569338]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
ret
Function at 0x46f370
Capabilities:
Set thread local storage value

Disassembly:
push esi
push edi
call sub.KERNEL32.dll_GetCurrentThreadId
push dword [0x57ded4]
mov edi, eax
call fcn.0044b4e0
mov esi, dword [0x57ded8]
add esp, 4
xor ecx, ecx
test esi, esi
je 0x41de50
cmp dword [esi], edi
je 0x41de8b
mov ecx, esi
mov esi, dword [esi + 8]
test esi, esi
jne 0x41de43
push 0xc
call fcn.00458270
mov esi, eax
add esp, 4
test esi, esi
je 0x41de96
mov ecx, dword [esp + 0xc]
push dword [0x57ded4]
mov dword [esi + 4], ecx
mov ecx, dword [0x57ded8]
mov dword [esi], edi
mov dword [esi + 8], ecx
mov dword [0x57ded8], esi
call fcn.0044b520
add esp, 4
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41deb7
mov dword [esi + 4], eax
push dword [0x57ded4]
call fcn.0044b520
add esp, 4
test esi, esi
jne 0x41de86
pop edi
pop esi
mov dword [esp + 4], 0
jmp fcn.0041ac90
mov eax, dword [esi + 8]
test ecx, ecx
je 0x41decc
push esi
mov dword [ecx + 8], eax
call fcn.00458250
add esp, 4
jmp 0x41de96
push esi
mov dword [0x57ded8], eax
call fcn.00458250
add esp, 4
jmp 0x41de96
cmp dword [0x57f49c], 0
jne 0x41de20
push dword [esp + 4]
push dword [0x569338]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x46f39e
mov dword [esp + 4], str.TlsSetValue___failed
jmp fcn.0041ad60
xor eax, eax
ret