joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b750
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00413632
xor ebx, ebx
cmp dword [0x42fb58], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41b825
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41b790
xor eax, eax
jmp 0x41b8e9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x425700
push edi
call esi
cmp eax, ebx
je 0x41b789
push eax
call fcn.004135cf
mov dword [esp], 0x4256f0
push edi
mov dword [0x42fb58], eax
call esi
push eax
call fcn.004135cf
mov dword [esp], 0x4256dc
push edi
mov dword [0x42fb5c], eax
call esi
push eax
call fcn.004135cf
mov dword [0x42fb60], eax
lea eax, [ebp - 8]
push eax
call fcn.00410a33
test eax, eax
pop ecx
pop ecx
je 0x41b7f3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004134af
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41b825
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004135cf
cmp eax, ebx
pop ecx
mov dword [0x42fb68], eax
je 0x41b825
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004135cf
pop ecx
mov dword [0x42fb64], eax
mov eax, dword [0x42fb64]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41b89e
cmp dword [0x42fb68], esi
je 0x41b89e
push eax
call fcn.0041363b
pop ecx
call eax
cmp eax, ebx
je 0x41b86b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x42fb68]
call fcn.0041363b
pop ecx
call eax
test eax, eax
je 0x41b86b
test byte [ebp - 0x18], 1
jne 0x41b89e
lea eax, [ebp - 0xc]
push eax
call fcn.00410a6a
test eax, eax
pop ecx
je 0x41b886
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004134af
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41b895
or dword [ebp + 0x10], 0x200000
jmp 0x41b8cf
or dword [ebp + 0x10], 0x40000
jmp 0x41b8cf
mov eax, dword [0x42fb5c]
cmp eax, esi
je 0x41b8cf
push eax
call fcn.0041363b
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41b8cf
mov eax, dword [0x42fb60]
cmp eax, esi
je 0x41b8cf
push dword [ebp - 4]
push eax
call fcn.0041363b
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x42fb58]
call fcn.0041363b
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4208d8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42bbe8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042086d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00410910
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x420927
cmp dword [ebp - 0x1c], 5
jb 0x42093f
jmp 0x42093b
cmp dword [ebp - 0x10], 1
jne 0x42093f
cmp dword [ebp - 0x1c], 4
ja 0x42093b
jne 0x42093f
cmp dword [ebp - 0x18], 0
jbe 0x42093f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x425790
call fcn.0042075e
test eax, eax
jge 0x420960
mov byte [0x42fca4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040f82a
add ebp, 0x78
leave
ret
Function at 0x467d60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x417015
lea edi, [esi - 0x16015]
push edi
jmp 0x467d7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x467d81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467d70
mov eax, 1
add ebx, ebx
jne 0x467d93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x467da4
jne 0x467dc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467dc3
dec eax
add ebx, ebx
jne 0x467db0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x467d88
add ebx, ebx
jne 0x467dbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x467e15
xor ecx, ecx
sub eax, 3
jb 0x467ddb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x467e4a
sar eax, 1
mov ebp, eax
jmp 0x467de6
add ebx, ebx
jne 0x467de6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467db4
inc ecx
add ebx, ebx
jne 0x467df4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x467db4
add ebx, ebx
jne 0x467e01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x467df6
jne 0x467e12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x467df6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x467e34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x467e26
jmp 0x467d76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x467e34
add edi, ecx
jmp 0x467d76
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x467e52
cmp byte [edi], 0
jne 0x467e52
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 0x467e57
mov ebp, dword [esi + 0x676d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x467eb2
sub esp, 0xffffff80
jmp 0x407c28
Function at 0x422a50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x422a72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x422a79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x422a68
mov eax, 1
add ebx, ebx
jne 0x422a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x422a80
jne 0x422a9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422a80
xor ecx, ecx
sub eax, 3
jb 0x422ab0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x422b22
mov ebp, eax
add ebx, ebx
jne 0x422abb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x422ac8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x422aec
inc ecx
add ebx, ebx
jne 0x422ad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x422acd
jne 0x422ae9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422acd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x422b0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x422afd
jmp 0x422a6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422b0c
add edi, ecx
jmp 0x422a6e
pop esi
mov edi, esi
mov ecx, 0x52d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x422b2a
cmp byte [edi], 4
jne 0x422b2a
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 eax, ebx
loop 0x422b2f
lea edi, [esi + 0x20000]
mov eax, dword [edi]
or eax, eax
je 0x422ba7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2393c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x239dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x422b5c
mov ecx, edi
jns 0x422b8b
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 + 0x239e0]
or eax, eax
je 0x422ba1
mov dword [ebx], eax
add ebx, 4
jmp 0x422b79
call dword [esi + 0x239e4]
popal
jmp section.UPX0

Function at 0x438c95
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x438a14
mov eax, eax
dec eax
mov ecx, 0x988865e0
call fcn.00438cdb
sub eax, 1
add eax, 0xe1bbec29
xor dword [edx], ebx
add ecx, 0x90e44791
inc ecx
inc edx
mov eax, eax
cmp edx, esi
jne fcn.00438c95
add eax, 0x60eddf47
sub eax, 0x994082eb
sub ecx, 0x56be3420
ret
Function at 0x40a720
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xbceb083b]
push esi
test eax, eax
push edi
subps xmm5, xmm1
add esp, esp
add byte [esi + 0x41d5f8], bl
mov dword [0xac6007f8], 0xc2
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [0x410837]
cmp eax, 0x2b
jne 0x9140a88d
sbb cl, byte [esp + ebx*8]
outsb dx, byte [esi]
add byte [esi + 0xf6080c], bh
test al, al
je 0x40a79e
mov edi, dword [sym.imp.MSVCRT.dll__isctype]
mov eax, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [eax], 1
jle 0x40a7f0
xor ecx, ecx
push 4
mov cl, byte [esi]
push ecx
xlatb
adc dword [eax - 0x5aee14f8], 0x78
rol dword [eax - 0x6e], 0x33
ror byte [edx + 0x26088b16], cl
add al, 0x51
and eax, 4
test dword [edx + 0x4627b775], ecx
add ebp, ebp
test al, al
push 0xe00d8bcb
jo 0x40a7e4
mov ecx, dword [0x4170e0]
mov eax, dword [0x4107fc]
add byte [ecx + 0x4107fc], ah
cmp eax, 3
jb 0x40a911
je 0x40a911
cmp eax, 4
jne 0x40a822
cmp ecx, 2
jae 0x40a7e5
mov eax, 0x28
jmp 0x40a916
xor esp, esp
or bh, byte [eax + 0x38]
in al, 0xa
mov eax, 0x38
jmp 0x40a916
add byte [ebx + 0xa7703e4], al
mov eax, 0x2b
jmp 0x9540a916
cmp eax, 5
inc ebp
inc edx
mov eax, dword [0x410800]
test eax, eax
jne 0x40a84e
push edx
leave
xchg ecx, eax
or cl, byte [edx + 0xd6f6]
mov esp, 0xced8
xor eax, eax
add edx, 0xffffffc1
pop gs
rol byte [ebx - 0x37e2cc90], 0
add byte [eax], al
cmp eax, 0xffffffb1
jne 0x40a85d
mov eax, 0x7d000046
jmp 0x40a90e
cmp ecx, 1
xchg edi, eax
xor ebx, dword [esi - 0x3f]
xchg dword [eax], eax
add cl, ch
stosb byte es:[edi], al
add byte [eax], al
add byte [ebx], dh
push 0xf01f9c5
xchg ebp, eax
rol byte [ebx - 0x650e7640], 0
add byte [eax], al
sub eax, 6
fcomp dword [bp + di]
shl byte [esp + ebp*8], 0x96
rcl byte [eax - 0x17], 0x89
add byte [eax], al
add byte [ebx + 0x7f7501f8], al
mov al, byte [0x41660c]
mov esi, 0x41080c
test al, al
je 0x40a8db
mov edi, dword [sym.imp.MSVCRT.dll__isctype]
mov eax, dword [sym.imp.MSVCRT.dll___mb_cur_max]
nop
cmp dl, bl
jle 0x40a8be
jg 0x40a8cf
push 1
mov cl, byte [esi]
push ecx
call edi
add esp, 0xc
jmp 0x40a8cf
test byte [eax - 0x3f], bh
add byte [ebx], dh
ror byte [edx + 0x64088b16], cl
scasb al, byte es:[edi]
push ecx
jp 0x40a8ae
into
test eax, eax
jne 0x40a8db
mov al, byte [esi + 1]
inc esi
add byte [edi + 0xa1cb75], ch
or byte [ecx - 0x48], al
mov eax, dword [0xb8410800]
cmp eax, 0xa
nop
adc byte [esi], dh
push cs
xor eax, eax
and dh, 0x43
setge al
lea eax, [eax + eax + 0xa]
jmp 0x40a916
add byte [ebx + 0x10505], ch
add byte [0x4108dca3], ch
add byte [ebp + 0x55], dl
add eax, 0x2d000001
mov dword [0x4108dc], eax
push ebp
push ebp
lds ebx, [edi - 0x77]
cdq
mov ebx, edx
fmul qword [eax]
inc ecx
add byte [ebx], dh
rol byte [ebx - 0x623ffe02], 0xc0
dec eax
pop esi
and eax, 0x6d4e2e
pop ebp
ret
Function at 0x4f8843
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push 0
push eax
mov edi, 0x1000
mov eax, edi
sub eax, dword [esi + 4]
push eax
push dword [esi + 0x10]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
sub eax, dword [esi + 4]
cmp dword [ebp + 8], eax
jne 0x4f887f
mov eax, dword [esi + 0x10]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
inc eax
jmp 0x4f8881
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4f8ec0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, ebx
test eax, eax
je 0x4f9066
cmp word [eax], bx
je 0x4f9066
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
je 0x4f9062
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jle 0x4f9057
push edi
push dword [esp + 0x20]
call fcn.004fa00a
mov edi, eax
test edi, edi
je 0x4f9056
cmp dword [esp + 0x20], 0xffffffff
mov ebx, dword [esp + 0x18]
jne 0x4f8f36
push 2
jmp 0x4f8f3a
push dword [esp + 0x20]
push ebx
call fcn.004f7334
mov esi, eax
test esi, esi
je 0x4f904f
cmp ebx, 0xffffffff
jne 0x4f8f51
mov ebx, esi
mov eax, dword [esi + 4]
mov dword [esi + 0x30], ebx
lea ebx, [ebp + 8]
mov dword [esi + 0x38], eax
xor eax, eax
push ebx
push eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x14], eax
push dword [0x6aef98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x28], eax
test eax, eax
je 0x4f8f92
mov dword [eax + 4], ebx
mov eax, dword [esi + 0x28]
and dword [eax], 0
mov eax, dword [esi + 0x28]
add eax, 8
mov dword [esi + 0x44], eax
cmp dword [esp + 0x20], 0xffffffff
je 0x4f8fa0
mov dword [esi + 0x34], 1
push esi
push edi
call fcn.005359a0
pop ecx
pop ecx
xor ebx, ebx
mov ecx, 0x4000
mov dword [esp + 0x20], ecx
test ebp, ebp
jle 0x4f904b
lea eax, [ecx + ebx]
cmp eax, ebp
jle 0x4f8fcb
mov ecx, ebp
sub ecx, ebx
mov dword [esp + 0x20], ecx
push ecx
push edi
call fcn.00535330
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x4f903d
push 0
lea ecx, [esp + 0x20]
push ecx
push dword [esp + 0x28]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
add ebx, eax
cmp dword [esi + 0x14], 0
jne 0x4f900f
push eax
push dword [esp + 0x1c]
call fcn.004fa0b5
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp ebx, ebp
jl 0x4f9017
push 1
jmp 0x4f9019
push 0
push eax
push edi
call fcn.00535600
add esp, 0xc
test eax, eax
je 0x4f9031
mov ecx, dword [esp + 0x20]
cmp ebx, ebp
jl 0x4f8fbc
jmp 0x4f904b
push edi
call fcn.005355e0
pop ecx
mov dword [esi + 0x18], eax
jmp 0x4f9044
mov dword [esi + 0x18], 1
push edi
push esi
call fcn.004fa16f
and dword [esi + 0x2c], 0
push edi
call fcn.00535740
pop ecx
pop edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov eax, esi
jmp 0x4f9068
xor eax, eax
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x4fa6a1
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x4fa739
push edi
push 0x6b2b98
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x6b036c]
test edi, edi
je 0x4fa70d
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4fa706
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x6b036c
call fcn.0052ea62
pop ecx
pop ecx
jmp 0x4fa708
mov edi, dword [edi]
test edi, edi
jne 0x4fa6dd
pop ebx
mov eax, dword [0x6abf28]
mov esi, eax
inc eax
push 0x10
push 0x6b036c
mov dword [0x6abf28], eax
call fcn.0052eaa2
pop ecx
pop ecx
push 0x6b2b98
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x4fa841
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004fa50a
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x6b2b98
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x6b036c]
jmp 0x4fa872
cmp dword [esi + 0xc], edi
je 0x4fa878
mov esi, dword [esi]
test esi, esi
jne 0x4fa86b
jmp 0x4fa890
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x6b036c
call fcn.0052ea62
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x4fd69f
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4fd6f4
push dword [esp + 0x10]
push 0x4fd61e
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x6b05d4]
test esi, esi
je 0x4fd74d
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4fd6ec
cmp byte [esi + 0x10], 0
je 0x4fd6ec
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4fd6c8
jmp 0x4fd74d
mov esi, dword [0x6b05d4]
test esi, esi
je 0x4fd74d
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x4fd746
cmp byte [esi + 0x11], 0
je 0x4fd722
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x4fd739
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x6b05d4
call fcn.0052ea62
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4fd701
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x4fe285
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push dword [0x6b2be0]
call fcn.0052e0f9
mov ebx, eax
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4fe2da
push ebp
push esi
xor ecx, ecx
mov ebp, 0xfde9
push ecx
push ecx
push 0xffffffffffffffff
push dword [eax + 0xc]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [esp + 0x10]
mov esi, eax
lea ecx, [esi - 1]
push ecx
call fcn.0052ef50
push esi
push eax
mov eax, dword [ebx + 0x20]
push 0xffffffffffffffff
push dword [eax + 0xc]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
pop esi
pop ebp
pop ebx
ret 4
pop ebx
jmp fcn.0052f1b0

Function at 0x4fe5d8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x6b2be0]
call fcn.0052e0f9
mov edi, dword [eax + 0x24]
test edi, edi
je 0x4fe696
cmp dword [edi + 8], 1
je 0x4fe696
mov edi, dword [edi + 0xc]
test edi, edi
je 0x4fe696
mov al, byte [edi]
cmp al, 0x20
je 0x4fe611
cmp al, 9
jne 0x4fe614
inc edi
jmp 0x4fe607
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.0052ef50
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x4fe665
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x4fe681
cmp cx, dx
je 0x4fe681
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x4fe679
cmp cx, dx
jne 0x4fe685
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x4fe66c
push ebp
call sub.MSVCRT.dll_wcslen
pop ecx
sub ebx, eax
push ebx
call fcn.0052f030
jmp 0x4fe665
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.0052f1b0
Function at 0x500b80
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x6b05e8], 0
jne 0x500b8e
call fcn.00500b20
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x6b05ec]
call esi
test eax, eax
jne 0x500bb1
call fcn.00500b20
push dword [0x6b05ec]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x500bc0
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x500c20
mov ebx, 0x10
test edi, edi
jns 0x500c29
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x500bf2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x500c40
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x6b05e8], 0
jne 0x500c4e
call fcn.00500b20
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x6b05ec]
call esi
mov edx, eax
test edx, edx
jne 0x500c75
call fcn.00500b20
push dword [0x6b05ec]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x500ca8
mov ebx, 0x10
test esi, esi
jns 0x500cb1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x500cc0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x502ee6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [0x6b2c04]
xor edi, edi
call fcn.0052e0f9
mov ebx, eax
cmp dword [ebp + 8], edi
je 0x502f9d
cmp dword [ebp + 0xc], edi
je 0x502f9d
push esi
push 0x60
push 8
push dword [0x6aef98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0x14]
mov dword [esi + 0xc], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0x40], eax
add esp, 0xc
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x24], eax
test al, 1
je 0x502f8c
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x50313f
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x502f84
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x502f9c
push esi
call fcn.00503190
jmp 0x502f9b
push esi
call fcn.00502fb7
push esi
mov edi, eax
call fcn.00503190
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x502fb7
Capabilities:
Delete file

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov ebp, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x18], ebp
call fcn.005c3170
push dword [edi + 0x40]
mov dword [esp + 0x20], eax
call fcn.005c3170
mov dword [esp + 0x10], eax
call fcn.0058dca0
mov esi, eax
test esi, esi
je 0x503115
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x503100
test byte [edi + 0x24], 2
mov dword [edi + 0x10], ebp
jne 0x503029
push 1
push 0x34
push esi
call fcn.00590bf0
add esp, 0xc
mov eax, dword [0x6b062c]
test eax, eax
je 0x503041
push eax
push 0x2714
push esi
call fcn.00590bf0
add esp, 0xc
mov eax, dword [0x6b0630]
test eax, eax
je 0x503072
cmp dword [0x6b0634], ebx
je 0x503072
push eax
push 0x27bf
push esi
call fcn.00590bf0
push dword [0x6b0634]
push 0x27c0
push esi
call fcn.00590bf0
add esp, 0x18
push dword [esp + 0x1c]
push 0x2712
push esi
call fcn.00590bf0
push dword [esp + 0x1c]
push 0x2722
push esi
call fcn.00590bf0
push 0x50314e
push 0x4e2b
push esi
call fcn.00590bf0
push edi
push 0x2711
push esi
call fcn.00590bf0
push dword [edi + 0x28]
push 0x9c
push esi
call fcn.00590bf0
push dword [edi + 0x2c]
push 0x9b
push esi
call fcn.00590bf0
add esp, 0x48
push 1
push 0x63
push esi
call fcn.00590bf0
push esi
call fcn.0058dd40
add esp, 0x10
test eax, eax
jne 0x5030eb
cmp dword [edi + 4], 0xfffffffb
je 0x5030eb
xor ebx, ebx
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x503100
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.0058dc80
pop ecx
cmp ebx, 1
jne 0x503115
mov dword [edi + 4], 0xfffffffe
jmp 0x503124
xor ecx, ecx
cmp dword [edi + 4], 0xfffffffb
setne cl
add ecx, 0xfffffffc
mov dword [edi + 4], ecx
push dword [esp + 0x1c]
call fcn.005c3160
push dword [esp + 0x10]
call fcn.005c3160
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret