joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ba4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff98
mov ebp, ecx
mov edi, edx
mov esi, eax
mov ebx, dword [esi + 0xee]
mov eax, esi
mov dl, 1
call fcn.00408350
lea edx, [esp + 8]
mov eax, esi
call fcn.0040a318
lea eax, [ebx + 0x95]
push eax
lea eax, [ebx + 0x74]
push eax
lea eax, [ebx + 0x78]
push eax
lea eax, [ebx + 0x7c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, esi
mov ecx, ebp
mov edx, edi
call fcn.0040a67c
cmp byte [ebx + 0x95], 0
je 0x40baaf
lea edx, [esp + 8]
mov eax, esi
call fcn.0040acc8
jmp 0x40bbf9
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
mov eax, esi
mov ecx, ebp
mov edx, edi
call fcn.0040a2dc
mov edi, dword [esp]
cmp edi, dword [ebx + 0x54]
jl 0x40bb55
mov eax, dword [esp + 4]
cmp eax, dword [ebx + 0x58]
jl 0x40bb55
mov eax, esi
call fcn.0040aeb4
test ah, 4
je 0x40bb0f
mov eax, dword [esp]
cmp eax, dword [ebx + 0x44]
jne 0x40bafa
mov edx, dword [esp + 4]
cmp edx, dword [ebx + 0x48]
je 0x40bbf9
push 1
push 1
mov edx, esi
mov ecx, dword [esp + 0xc]
xchg edx, eax
call fcn.0040c1fc
jmp 0x40bbf9
mov byte [ebx + 0x95], 1
push 0
push 0x3c
push 1
mov eax, dword [esi + 0x1c]
push eax
call sub.user32.dll_SetTimer
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x40bb3f
mov edx, esp
mov eax, esi
call fcn.0040bf38
jmp 0x40bbf9
push 1
push 1
mov eax, esi
mov ecx, dword [esp + 0xc]
mov edx, edi
call fcn.0040c1fc
jmp 0x40bbf9
test byte [ebx + 0x5d], 1
je 0x40bba8
cmp dword [esp], 0
jl 0x40bba8
mov eax, dword [esp]
cmp eax, dword [ebx + 0x54]
jge 0x40bba8
mov eax, dword [esp + 4]
cmp eax, dword [ebx + 0x58]
jl 0x40bba8
mov eax, dword [esp + 4]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], eax
mov byte [ebx + 0x95], 4
mov eax, esi
call fcn.00406108
mov eax, esi
call fcn.0040ab40
push 0
push 0x3c
push 1
mov eax, dword [esi + 0x1c]
push eax
call sub.user32.dll_SetTimer
jmp 0x40bbf9
test byte [ebx + 0x5d], 2
je 0x40bbf9
cmp dword [esp + 4], 0
jl 0x40bbf9
mov eax, dword [esp + 4]
cmp eax, dword [ebx + 0x58]
jge 0x40bbf9
mov eax, dword [esp]
cmp eax, dword [ebx + 0x54]
jl 0x40bbf9
mov eax, dword [esp]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], eax
mov byte [ebx + 0x95], 5
mov eax, esi
call fcn.00406108
mov eax, esi
call fcn.0040ab40
push 0
push 0x3c
push 1
mov eax, dword [esi + 0x1c]
push eax
call sub.user32.dll_SetTimer
add esp, 0x68
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401570
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x874
xor eax, eax
push ebx
push esi
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
mov ecx, 0x82
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x678]
rep stosd dword es:[edi], eax
mov ecx, 0x94
lea edi, [esp + 0x428]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x884]
lea edx, [esp + 0x220]
push ecx
push edx
xor bl, bl
mov word [esp + 0x1c], ax
call fcn.0040191f
lea eax, [esp + 0x228]
push eax
call fcn.004018d8
add esp, 0xc
cmp word [esp + eax*2 + 0x21e], 0x5c
je 0x401604
lea ecx, [esp + 0x220]
push 0x408080
push ecx
call fcn.004018f5
add esp, 8
lea edx, [esp + 0x220]
push ebp
lea eax, [esp + 0x67c]
push edx
push eax
call fcn.0040191f
lea ecx, [esp + 0x22c]
push 0x4080ac
push ecx
call fcn.004018f5
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
lea edx, [esp + 0x14]
push str._04x
push edx
call fcn.00401b6c
lea eax, [esp + 0x1c]
push eax
call fcn.00401ad4
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esp, 0x10
xor edi, edi
lea ecx, [esp + 0x42c]
lea edx, [esp + 0x224]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40174d
lea eax, [esp + 0x42c]
push eax
push esi
call ebp
test eax, eax
je 0x401736
test byte [esp + 0x42c], 0x10
je 0x40172a
lea ecx, [esp + 0x458]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0040191f
lea eax, [esp + 0x24]
push eax
call fcn.00401ad4
lea ecx, [esp + 0x28]
push ecx
call fcn.004018d8
add esp, 0x10
cmp eax, 4
jne 0x40172a
movsx eax, di
sub eax, 0
je 0x401714
dec eax
jne 0x40172a
mov ax, word [esp + 0x14]
cmp word [esp + 0x20], ax
jne 0x40172a
mov cx, word [esp + 0x16]
cmp word [esp + 0x22], cx
jne 0x40172a
cmp ax, 0x30
jne 0x401734
cmp cx, 0x39
jne 0x401734
lea edx, [esp + 0x1c]
push str.0809
push edx
call fcn.00401a9f
add esp, 8
test eax, eax
je 0x401734
jmp 0x40167b
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00401a9f
add esp, 8
test eax, eax
je 0x401734
cmp bl, 1
je 0x401736
jmp 0x40167b
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp bl, 1
je 0x40174d
inc edi
cmp di, 2
jl 0x40165a
test bl, bl
pop ebp
jne 0x4017b0
lea edx, [esp + 0x678]
push str.0809
push edx
call fcn.004018f5
add esp, 8
lea eax, [esp + 0x428]
lea ecx, [esp + 0x678]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401790
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x874
ret
lea edx, [esp + 0x454]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0040191f
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
jmp 0x4017b5
cmp bl, 1
jne 0x4017ca
mov edx, dword [esp + 0x888]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.0040191f
add esp, 8
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x874
ret
Function at 0x4017e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401838
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x40718c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40182b
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40183a
xor eax, eax
pop esi
leave
ret 4

Function at 0x401fbe
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov byte [ebp - 0x1c], 0x4d
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x67
mov byte [ebp - 0x16], 0x65
mov byte [ebp - 0x15], 0x42
mov byte [ebp - 0x14], 0x6f
mov byte [ebp - 0x13], 0x78
mov byte [ebp - 0x12], 0x41
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x2c], 0x4c
mov byte [ebp - 0x2b], 0x6f
mov byte [ebp - 0x2a], 0x61
mov byte [ebp - 0x29], 0x64
mov byte [ebp - 0x28], 0x4c
mov byte [ebp - 0x27], 0x69
mov byte [ebp - 0x26], 0x62
mov byte [ebp - 0x25], 0x72
mov byte [ebp - 0x24], 0x61
mov byte [ebp - 0x23], 0x72
mov byte [ebp - 0x22], 0x79
mov byte [ebp - 0x21], 0x41
inc ecx

Function at 0x402023
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ecx
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x3c], 0x47
mov byte [ebp - 0x3b], 0x65
mov byte [ebp - 0x3a], 0x74
mov byte [ebp - 0x39], 0x50
mov byte [ebp - 0x38], 0x72
mov byte [ebp - 0x37], 0x6f
mov byte [ebp - 0x36], 0x63
mov byte [ebp - 0x35], 0x41
mov byte [ebp - 0x34], 0x64
invalid
inc ebp

Function at 0x4020de
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x431005
Capabilities:
Encode data using xor

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x30617034
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..reloc
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x483b5361
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x401415
Capabilities:
Encode data using xor

Disassembly:
rcl byte [eax]
xor al, 0xc4
arpl word [esi + ecx*2 + 0x23], cx
push ebp
mov ebx, 0x1001ba6
add byte [ebx], 0x17
invalid
and al, 0x45
imul edi, dword ds:[ebx + ecx*2 + 0x69e4ba8d], 0x5fc690b8
invalid
pop edi
pop edi
test al, 0x13
mov ch, 0x5c
js 0x4013e3
test byte [edi - 0xea281ea], bh
mov dh, 0xbe
pop ds
rcr dword [ecx - 0x22], cl
mov esi, 0xde59d31f
xchg esi, eax
mov ds, word [ebx + 0x71]
mov dword [0xa0c0174a], eax
dec ebp
pop ebp
push es
push esp
adc eax, 0x2f30ea85
dec edi
or bh, byte [edx + 0x45]
cmp ebx, edx
xor eax, 0x44f4883
ja 0x401424
and esp, eax
push eax
jae 0x40149e
dec esp
sbb ah, ah
fild word [ecx - 0x71]
jo 0x401409
jo 0x401485
cmc
stosb byte es:[edi], al
cmp al, 0x9c
lds ebp, [edi]
mov edi, 0xdc6f96a9
sbb dword [edi], edx
cmp edx, dword [ebx + 0x6037791d]
or bh, byte [esi + 0x4c5cf7c5]
push cs
cmc
scasd eax, dword es:[edi]
jle 0x401487
test eax, 0xd3a3cb66
dec ebx
nop
pushal
les esp, [ebx + 0x71dc2c83]
adc al, 0xb
test dword [ebx - 0x53], ebp
invalid
and dword [esi], esp
xchg ebp, eax
mov edi, 0x9b0d5427
pop ss
clc
xchg ecx, eax
add dword [edi - 0x181c461f], eax
invalid
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x39e27d1b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..pdata_1
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x5be20df8
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4342e5
Capabilities:
Check mutex on windows

Disassembly:
push ebx
call fcn.00569a20
mov dword [0x6ca001], 0x1000168
mov dword [0x6ca001], 0x1000169
push edx
call fcn.005698b0
pop edx
push eax
push 0
mov eax, str._________Start__________________
push eax
call fcn.004b7d3e
call fcn.00519390
mov dword [0x6ca001], 0x100016b
push dword [0xb2b860]
push 1
push 0
call sub.KERNEL32.dll_CreateMutexW
mov dword [0xb2b894], eax
mov dword [0x6ca001], 0x100016c
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
jne 0x43436b
mov ebx, dword [0xb2b8bc]
cmp ebx, 1
jne 0x43436b
mov eax, 1
jmp 0x43436d
xor eax, eax
and eax, eax
je 0x4343d9
mov dword [0x6ca001], 0x100016d
push edx
call fcn.005698b0
pop edx
push eax
push 1
push edx
call fcn.005698b0
pop edx
push eax
mov edx, str.Error:_ALready_Running:
push edx
call fcn.00569980
push edx
call fcn.005698b0
pop edx
push eax
push edx
call fcn.005698b0
pop edx
push eax
mov eax, dword [0xb2b894]
cdq
push edx
push eax
call fcn.00566e40
pop eax
call fcn.00519372
add dword [esp], edx
call fcn.004b7d3e
call fcn.00519390
mov dword [0x6ca001], 0x100016e
xor eax, eax
jmp 0x434400
mov dword [0x6ca001], 0x100016f
mov dword [0x6ca001], 0x1000171
mov eax, 1
jmp 0x434400
pop ebx
ret
Function at 0x51a544
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0xb2c59c], 0
push ebx
push esi
mov esi, 0xb2c5a4
jne 0x51a570
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0xb2c5bc], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0xb2c59c], 1
push dword [0xb2c5bc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x51a60d
push 0x14
push 8
push dword [0xb2ad40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x51a637
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0xb2c5a0]
test eax, eax
je 0x51a5b2
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0xb2c5a0], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x51a63c
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0xb2c5bc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0xb2ad40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x51a637
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x521245
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x52129a
push dword [esp + 0x10]
push 0x5211c4
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0xb2c90c]
test esi, esi
je 0x5212f3
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x521292
cmp byte [esi + 0x10], 0
je 0x521292
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 0x52126e
jmp 0x5212f3
mov esi, dword [0xb2c90c]
test esi, esi
je 0x5212f3
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 0x5212ec
cmp byte [esi + 0x11], 0
je 0x5212c8
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x5212df
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 0xb2c90c
call fcn.00569776
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x5212a7
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x53bd0f
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0xb2e4c0]
call fcn.00568e0d
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x53be0f
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x53bd65
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x53bd5d
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x53bda5
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x53bde7
push 0x22
pop edx
cmp cx, dx
je 0x53bd97
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x53bd87
xor ecx, ecx
cmp word [eax], cx
je 0x53bde7
mov ecx, eax
add eax, 2
jmp 0x53bde9
test dx, dx
je 0x53bdef
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x53bd97
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x53bddd
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x53bde7
cmp cx, dx
je 0x53bdda
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x53bdca
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x53bdaf
jmp 0x53bd97
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x53bdf1
xor edx, edx
cmp dword [ebp], ebx
jne 0x53bdfa
test edi, edi
jne 0x53be17
test edx, edx
je 0x53bdff
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x53bd53
test edi, edi
jne 0x53be28
mov eax, ebx
jmp 0x53be2c
test esi, esi
je 0x53be28
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x53be2c
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x53d368
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x53d3c7
cmp word [esi], di
je 0x53d3c7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0058dd20
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.0058dfd0
add esp, 0x10
test eax, eax
jne 0x53d3c6
push 0x24
push 8
push dword [0xb2ad40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x53e280
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0xb2cb38], 0
jne 0x53e28e
call fcn.0053e200
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0xb2cb3c]
call esi
test eax, eax
jne 0x53e2b1
call fcn.0053e200
push dword [0xb2cb3c]
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 0x53e2c0
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 0x53e320
mov ebx, 0x10
test edi, edi
jns 0x53e329
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x53e2f2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x53e340
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0xb2cb38], 0
jne 0x53e34e
call fcn.0053e200
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0xb2cb3c]
call esi
mov edx, eax
test edx, edx
jne 0x53e375
call fcn.0053e200
push dword [0xb2cb3c]
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 0x53e3a8
mov ebx, 0x10
test esi, esi
jns 0x53e3b1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x53e3c0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x5420f3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x542191
cmp dword [ebp + 0xc], edi
je 0x542191
push esi
push 0x30
push 8
push dword [0xb2ad40]
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 + 0x28], eax
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
test al, 1
je 0x542180
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x5422f4
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x542178
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x542190
push esi
call fcn.005420a6
jmp 0x54218f
push esi
call fcn.00542198
push esi
mov edi, eax
call fcn.005420a6
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0x10

Function at 0x542198
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 eax, dword [edi + 0xc]
push dword [edi + 8]
mov dword [esp + 0x20], eax
call fcn.0068f370
push dword [edi + 0x28]
mov ebp, eax
mov dword [esp + 0x14], ebp
call fcn.0068f370
mov dword [esp + 0x14], eax
call fcn.005d4310
mov esi, eax
test esi, esi
je 0x5422c9
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x5422be
test byte [edi + 0x1c], 2
mov dword [edi + 0x10], ebp
jne 0x54220f
push 1
push 0x34
push esi
call fcn.005d43a0
add esp, 0xc
mov eax, dword [0xb2cb94]
test eax, eax
je 0x542227
push eax
push 0x2714
push esi
call fcn.005d43a0
add esp, 0xc
mov eax, dword [0xb2cb98]
test eax, eax
je 0x542258
cmp dword [0xb2cb9c], ebx
je 0x542258
push eax
push 0x27bf
push esi
call fcn.005d43a0
push dword [0xb2cb9c]
push 0x27c0
push esi
call fcn.005d43a0
add esp, 0x18
push dword [esp + 0x10]
push 0x2712
push esi
call fcn.005d43a0
push dword [esp + 0x20]
push 0x2722
push esi
call fcn.005d43a0
push 0x542303
push 0x4e2b
push esi
call fcn.005d43a0
push edi
push 0x2711
push esi
call fcn.005d43a0
push esi
call fcn.005d4390
add esp, 0x34
test eax, eax
jne 0x5422a9
xor ebx, ebx
mov dword [edi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x5422be
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.005d42f0
mov ebp, dword [esp + 0x14]
pop ecx
cmp dword [edi + 4], 0xfffffffe
je 0x5422dc
cmp dword [edi + 4], 0xfffffffc
je 0x5422dc
mov dword [edi + 4], 0xfffffffd
push ebp
call fcn.0068f360
push dword [esp + 0x14]
call fcn.0068f360
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret