joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a503
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x44a511
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x44a5e5
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x465a18]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x465a18]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x465a18]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x465a18]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x465a18]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x465a18]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x465a18]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x465a18]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x44a52e
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x44a605
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x465a18]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x44a5eb
mov eax, esi
not eax
pop esi
pop ebp
ret
Function at 0x457bb0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
pop eax
or al, 0x22
mov eax, dword [0x64d13e40]
test al, 0x8f
push ds
mov ebx, 0xc307d133
cmp esp, dword [esi - 0x46]
xor byte [ebp + 0x7d8a0d5c], cl
push es
and edi, dword [ebp - 0x658c853]
int1
inc ecx
push ebx
test al, 0x8c
push esp
dec esp
push esi
dec edx
push es
pop edx
cli
xor byte [ebx - 0x26], al
jbe 0x457b2c
fidiv dword [esi - 0x18]
push edx
adc eax, edi
mov byte [ecx - 0x213820a2], al
das
jo 0x457b13
cmp esi, dword [edx - 0x42236926]
loop 0x457b88
salc
mov al, byte [0xbfe1bd04]
sbb esp, ebp
inc esp
push eax
ljmp 0x375d
pop edi
ret
sti
jge 0x457b41
loopne 0x457c10
pop edi
add ebx, edx
imul edx, dword [eax + 0x35], 0x18
jg 0x457bab
call 0x65bc0af0
jae 0x457c27
pop edx
mov bh, 0xe7
jle 0x457bc5
push ebx
pop ebp
pop ebp
mov edi, 0x4bfcf00
mov ecx, 0x1dcb31b
and ebp, dword [ecx + 0x19]
and esp, edx
pop edx
sbb dword [ebx], esp
loop 0x457c32
les ecx, [esi - 0x28]
test dword [ebp - 0x7807a72c], ebx
add edi, 0xffffff99
xor eax, dword [edx - 0x7af25f6d]
xchg ecx, eax
and al, 0xb7
sub al, 0x2c
jnp 0x457bd4
invalid
dec dword [edi + ebp*8]
sbb byte [ebx], bl
push ecx
xor eax, 0xf5918fff
in al, 0x18
sbb byte [ebx], dl
jge 0x457c47
adc al, byte [edi]
invalid
rcl byte [edx - 0x5d3e9aaa]
dec edi
ficomp word [ebp - 0x2a0ea7]
aad 0xff
mov eax, dword [0xc0346653]
cli
cmpsd dword [esi], dword es:[edi]
pop ss
pop ds
clc
insd dword es:[edi], dx
sbb cl, 0xb
xor al, 0x41
ror dword ds:[edx - 0x37], cl
leave
add byte [eax - 0x7e209b7a], ah
sbb byte [0xc3938a29], ah
xchg ebp, eax
std
mov eax, dword [0x89204794]
jle 0x457c10
jno 0x457c8b
in al, dx
iretd
pop edi
jbe 0x457c32
adc byte [ecx + 0x40e6cc77], ah
xor esp, dword [edi + 0x5dccdd6d]
out dx, eax
movsb byte es:[edi], byte [esi]
add edi, ebp
inc esi
shl byte [esp + esi*8], cl
aam 0x8a
xchg ebx, eax
cmp al, 0x3f
dec edx
mov edi, 0x7fc58461
pushfd
popfd
ret 0xe4c8

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..retplne
mov ebx, 0x40de38
nop
mov ecx, 0xc0f7a60
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x4304d8
mov ecx, 0x1744623
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.NSS_EventExit
push 0
push 1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x24]
push eax
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], edx
call edi
mov dword [0x40fd38], eax
test eax, eax
jne 0x4010a2
mov dword [ebp - 4], 0x40c220
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.NSSClient
push 0
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x40109a
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 1
push 0
push edi
push 0x2774
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push str.NSS_NetworkReceive
push 0
push 1
lea edx, [ebp - 0x10]
push edx
call edi
mov dword [0x40fd3c], eax
test eax, eax
jne 0x4010db
push 0x40c24c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2774
call fcn.004016f0
add esp, 0xc
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push str.NSS_DATA_Receive
push 0x6404
push 0
push 4
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
call esi
mov dword [0x40fd44], eax
test eax, eax
jne 0x401121
push 0x40c27c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2774
call fcn.004016f0
add esp, 0xc
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push str.NSS_NetworkSend
push 0
push 1
lea ecx, [ebp - 0x10]
push ecx
call edi
mov dword [0x40fd40], eax
test eax, eax
jne 0x40115a
push 0x40c2ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2774
call fcn.004016f0
add esp, 0xc
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push str.NSS_DATA_Send
push 0x6404
push 0
push 4
lea edx, [ebp - 0x10]
push edx
push 0xffffffffffffffff
call esi
mov dword [0x40fd4c], eax
test eax, eax
je 0x401100
mov eax, dword [0x40fd44]
mov esi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push 0x6404
push 0
push 0
push 0xf001f
push eax
call esi
mov dword [0x40fd48], eax
test eax, eax
jne 0x4011bf
push 0x40c2d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2774
call fcn.004016f0
add esp, 0xc
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0x6404
push 0
push eax
call fcn.004067e0
mov ecx, dword [0x40fd4c]
add esp, 0xc
push 0x6404
push 0
push 0
push 0xf001f
push ecx
call esi
mov dword [0x40fd50], eax
test eax, eax
jne 0x401210
push 0x40c2f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2774
call fcn.004016f0
add esp, 0xc
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0x6404
push 0
push eax
call fcn.004067e0
add esp, 0xc
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401330
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0x37
push eax
lea edi, [esi + 4]
push edi
mov dword [esi], vtable.CDriver.0
call fcn.00402610
add esp, 0xc
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [esi + 0x44], eax
push ebx
cmp eax, ebx
jne 0x40138d
push 0x40c318
push 0x40c340
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov eax, esi
pop ebx
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push ebx
push ebx
push ebx
push ebx
push ecx
push 1
push 3
push 1
push 0xf01ff
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x4013df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x4013c4
cmp eax, 0x430
jne 0x4013e6
mov edx, dword [esi + 0x44]
push 0xf01ff
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
pop edi
mov dword [esi + 0x48], eax
mov eax, esi
pop ebx
pop ebp
ret 4
mov dword [esi + 0x40], 1
pop edi
mov eax, esi
pop ebx
pop ebp
ret 4

Function at 0x4013f0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x4c]
mov dword [esi], vtable.CDriver.0
cmp eax, 0xffffffff
je 0x40140b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x40], 0
je 0x401422
mov ecx, esi
call fcn.00401540
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [esi + 0x48]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x401433
push eax
call edi
mov eax, dword [esi + 0x44]
test eax, eax
je 0x40143d
push eax
call edi
test byte [ebp + 8], 1
pop edi
je 0x40144d
push esi
call fcn.00402734
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x401460
Capabilities:
Delete service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x40e054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x3c], 0
je 0x40148d
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004025cb
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x4014a3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004025cb
mov esp, ebp
pop ebp
ret
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4014db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x401520
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [esi + 0x3c]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004025cb
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x48]
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x20]
push ecx
push edx
xor ebx, ebx
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 2
jne 0x401519
mov ecx, ebx
inc ebx
cmp ecx, 0x50
jge 0x401519
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x48]
lea edx, [ebp - 0x20]
push edx
push eax
call edi
mov eax, dword [ebp - 0x1c]
cmp eax, 2
je 0x4014f7
pop edi
pop ebx
cmp eax, 4
jne 0x401527
mov dword [esi + 0x3c], 1
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x3c]
xor ecx, ebp
pop esi
call fcn.004025cb
mov esp, ebp
pop ebp
ret

Function at 0x401540
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40e054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x3c], 0
jne 0x40156d
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004025cb
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x401583
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004025cb
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4015a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jmp 0x4015e9
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp eax, 3
jne 0x4015e6
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4015c3
mov ecx, dword [ebp - 0x24]
mov edx, ecx
inc ecx
mov dword [ebp - 0x24], ecx
cmp edx, 0x50
jge 0x4015e4
push 0x32
call edi
mov ecx, dword [esi + 0x48]
lea eax, [ebp - 0x20]
push eax
push ecx
call ebx
mov eax, dword [ebp - 0x1c]
cmp eax, 3
je 0x4015c0
pop edi
pop ebx
cmp eax, 1
jne 0x4015f2
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [esi + 0x3c], eax
pop esi
sete al
xor ecx, ebp
call fcn.004025cb
mov esp, ebp
pop ebp
ret
Function at 0x401740
Capabilities:
Access the windows event log
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
xor esi, esi
xor eax, eax
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
push esi
push str.NSSUDP.nss
push esi
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
je 0x4017ee
push edi
push str.NSSClient
push esi
mov dword [ebp - 4], str.NSSUDP.nss
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, esi
je 0x4017e6
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push 1
push esi
push 0xe0000000
push 0x4e20
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402120
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 8
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov edi, dword [ebp + 8]
mov dword [0x40fd54], edi
mov dword [ebp + 8], 0
call fcn.00401000
cmp al, 1
je 0x40216d
mov dword [ebp + 8], 0xffffffff
jmp 0x402210
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x401800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4021aa
push str.CLT001
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4e20
call fcn.004016f0
add esp, 0xc
mov dword [ebp + 8], 0xfffffffe
jmp 0x402210
call fcn.00401740
push 0x100
push 0x40fc38
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._inf_NSSClient.inf
push 0x100
push 0x40fc38
call fcn.004027ed
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
push 0x3e8
call esi
push 0
push 0x401d60
push 0
push 0x65
push edi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edx, dword [0x40fd3c]
push edx
mov byte [0x40fd5c], 1
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0x3e8
call esi
mov eax, dword [0x40fd50]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x402222
push eax
call edi
mov eax, dword [0x40fd4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402234
push eax
call esi
mov eax, dword [0x40fd40]
test eax, eax
je 0x402240
push eax
call esi
mov eax, dword [0x40fd48]
test eax, eax
je 0x40224c
push eax
call edi
mov eax, dword [0x40fd44]
test eax, eax
je 0x402258
push eax
call esi
mov eax, dword [0x40fd3c]
test eax, eax
je 0x402264
push eax
call esi
mov eax, dword [0x40fd38]
test eax, eax
je 0x402270
push eax
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4025cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e054]
jne 0x4025d5
repz ret
jmp fcn.00402b1a

Function at 0x40791c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40e054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402c20
and dword [ebp - 0x14], 0
cmp dword [0x40fb08], 0
mov dword [ebp - 0x18], eax
jne 0x4079cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407a77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407a77
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40fb08], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40fb0c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40fb10], eax
call edi
push eax
call esi
mov dword [0x40fb18], eax
test eax, eax
je 0x4079cf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40fb14], eax
mov eax, dword [0x40fb14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407a28
cmp dword [0x40fb18], ecx
je 0x407a28
push eax
call esi
push dword [0x40fb18]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407a28
test ebx, ebx
je 0x407a28
call edi
test eax, eax
je 0x407a1f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407a1f
test byte [ebp - 8], 1
jne 0x407a28
or dword [ebp + 0x10], 0x200000
jmp 0x407a5b
mov eax, dword [0x40fb0c]
cmp eax, dword [ebp - 0x18]
je 0x407a5b
push eax
call esi
test eax, eax
je 0x407a5b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407a5b
mov eax, dword [0x40fb10]
cmp eax, dword [ebp - 0x18]
je 0x407a5b
push eax
call esi
test eax, eax
je 0x407a5b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40fb08]
call esi
test eax, eax
je 0x407a77
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407a79
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004025cb
leave
ret
Function at 0x407c20
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x4f8bb0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x407cac
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x407cac
cmp ebx, 0x15f90
jl 0x407ca3
cmp ebx, 0x1d4c0
jge 0x407c80
mov eax, 0x32
jmp 0x407ca5
cmp ebx, 0x2bf20
jge 0x407c8f
mov eax, 0x64
jmp 0x407ca5
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x407ca5
mov eax, 0xfa
jmp 0x407ca5
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x407cc0
inc ebx
cmp ebx, 0x57e40
jl 0x407c38
mov eax, dword [ebp - 4]
test eax, eax
je 0x407cda
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.0041d510
add esp, 4
mov eax, dword [0x4f8bb4]
test eax, eax
jne 0x407d10
cmp dword [0x4f5120], 1
je 0x407d94
xor ebx, ebx
xor esi, esi
cmp dword [0x4f8bac], 0
je 0x407d54
mov dword [0x4f8bb4], 1
cmp dword [0x4f5120], 1
je 0x407d3f
mov dword [0x4f8bb0], 0
push dword [0x4f8ba8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x407db2
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.004614a0
push ebx
push 0x16
call fcn.004614a0
add esp, 0x10
jmp 0x407d10
mov dword [0x4f8bac], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4f8ba8], eax
cmp eax, 0xffffffff
jne 0x407d78
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x407cfd
push 0x407bb0
call fcn.00461ec0
push 0x407b70
call fcn.00461ec0
add esp, 8
jmp 0x407cfd
push 1
push 2
call fcn.004614a0
mov esi, eax
push 1
push 0x16
call fcn.004614a0
add esp, 0x10
mov ebx, eax
jmp 0x407cf4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.004085a0
add esp, 0xc
test eax, eax
je 0x407ddc
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4f507c]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4f5078]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4f5074]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4f5070]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x407de4
push dword [ebp - 0x10]
push dword [0x4f8ba8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
jmp 0x407d2e
Function at 0x407e30
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x4f8bb0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x407ebc
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x407ebc
cmp ebx, 0x15f90
jl 0x407eb3
cmp ebx, 0x1d4c0
jge 0x407e90
mov eax, 0x32
jmp 0x407eb5
cmp ebx, 0x2bf20
jge 0x407e9f
mov eax, 0x64
jmp 0x407eb5
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x407eb5
mov eax, 0xfa
jmp 0x407eb5
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x407ed0
inc ebx
cmp ebx, 0x57e40
jl 0x407e48
mov eax, dword [ebp - 4]
test eax, eax
je 0x407eea
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.0041d510
add esp, 4
mov eax, dword [0x4f8bb4]
test eax, eax
jne 0x407f20
cmp dword [0x4f5120], 1
je 0x407fb9
xor ebx, ebx
xor esi, esi
cmp dword [0x4f8bac], 0
je 0x407f76
mov dword [0x4f8bb4], 1
cmp dword [0x4f5120], 1
je 0x407f61
mov dword [0x4f8bb0], 0
push dword [0x4f8ba8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x407ff7
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp dword [0x4f5120], 1
je 0x407fd7
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.004614a0
push ebx
push 0x16
call fcn.004614a0
add esp, 0x10
jmp 0x407f20
mov dword [0x4f8bac], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4f8ba8], eax
cmp eax, 0xffffffff
jne 0x407f9d
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x407f0d
push 0x407bb0
call fcn.00461ec0
push 0x407b70
call fcn.00461ec0
add esp, 8
jmp 0x407f0d
push 1
push 2
call fcn.004614a0
mov esi, eax
push 1
push 0x16
call fcn.004614a0
add esp, 0x10
mov ebx, eax
jmp 0x407f04
push 1
push 2
call fcn.004614a0
push 1
push 0x16
mov dword [ebx + 0x64], eax
call fcn.004614a0
add esp, 0x10
mov dword [ebx + 0x68], eax
jmp 0x407f55
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.004085a0
add esp, 0xc
test eax, eax
je 0x40801e
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4f507c]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x4f5078]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x4f5074]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x4f5070]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x408026
push dword [ebp - 0x10]
push dword [0x4f8ba8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp - 0x10]
jmp 0x407f43