joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c750
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00466f00
test eax, eax
je 0x46c83f
mov ecx, edi
call fcn.00466f00
mov ecx, eax
call fcn.00464570
test eax, eax
jne 0x46c83f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x46c83f
mov eax, dword [0x516578]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x46c7b2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00466f00
mov ecx, eax
call fcn.004647a0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x46c83f
cmp ebx, eax
jne 0x46c83f
cmp dword [esp + 0x10], eax
jne 0x46c825
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x46f3e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b21a8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x46f419
inc eax
mov dword [esi + 0x10], eax
jmp 0x46f52c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x46f42d
mov eax, 0xffffffc7
jmp 0x46f52e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x46f43e
cmp dword [esi + 8], eax
jne 0x46f42d
cmp dword [esi + 8], eax
jne 0x46f457
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x46f457
mov eax, 0xffffffc7
jmp 0x46f52e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x46f46b
push eax
mov ecx, ebx
call fcn.0046ec10
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004376a0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x46f49c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004376c0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0046e380
test eax, eax
mov dword [esp + 0x38], eax
je 0x46f4cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4e5eb0
call fcn.004378a0
mov eax, dword [esp + 0x38]
jmp 0x46f52e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0046f240
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x46f513
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0046f260
mov esi, eax
test esi, esi
jne 0x46f543
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0046f240
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x46f4e5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4e5eb0
call fcn.004378a0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4e5eb0
call fcn.004378a0
mov eax, esi
jmp 0x46f52e

Function at 0x472660
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4726c0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4726c0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4726c0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4726c0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x472700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x478580
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b27d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004aa38a
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00477f20
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004aa2b8
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004a6b73
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004a6b73
push 1
push 0
push 0
mov ecx, esi
call fcn.004a6b1b
push 1
push 0
push 1
mov ecx, esi
call fcn.004a6b1b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004aa3fc
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x478700
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b27f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004aa38a
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00477f20
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004aa2b8
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4787c4
cmp dword [esp + 0x40], 1
jne 0x4787c2
cmp ecx, eax
jge 0x4787c4
mov eax, ecx
cmp eax, 0xc8
jge 0x4787d0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00478580
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004aa3fc
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x478f50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b2863
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a4f93
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004aa632
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004abc8b
test eax, eax
je 0x47906c
mov ecx, dword [esp + 0x3c]
call fcn.004aa65f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x479030
push edi
mov ecx, esi
call fcn.004a7cc3
mov ecx, esi
call fcn.004791d0
cmp dword [esp + 0x38], 1
jne 0x479065
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a7dfe
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x47ba90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x47bac3
push esi
call fcn.0047eba0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47babc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x47bb49
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47bb32
mov eax, dword [esi + 8]
test eax, eax
je 0x47bae7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47bb2e
cmp eax, 2
je 0x47bb32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47bada
cmp eax, 3
je 0x47bb0d
cmp eax, 1
jne 0x47bada
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47bada
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47bada
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0047bb70
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x47bb58
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0047bb70
add esp, 4
pop esi
ret

Function at 0x48a020
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x503624]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x48a033
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x48a074
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5036cc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x48a0a6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48a0aa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x48a09b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x48a0c8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48a0cc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x48a0bd
xor ecx, ecx
mov eax, 0x503634
xor ebx, ebx
mov bl, byte [ecx + 0x5036dc]
cmp byte [esp + ebx + 0x14], 0
je 0x48a0f7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5036f4]
cmp byte [esp + ebx + 0x14], 0
je 0x48a10e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x48a0de
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x48a067
lea edx, [esp + 0x84]
push edx
call fcn.0048a150
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x48eea0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x48ef06
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x48ef06
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x48eee7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x48f290
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x48f2c8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x48ffb0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x48fff9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x490470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b2dd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00490020
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004900a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004900a0
lea ecx, [esi + 0xc]
call fcn.004a3946
lea ecx, [esi + 0x10]
call fcn.004a3946
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00491630
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00491630
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00491630
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a39bb
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a39bb
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a5d89
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a5dc1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a3e16
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a3dee
jmp 0x4a5dcd
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a747b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a74bd
call fcn.004ad33c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a74bd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a74b4
xor eax, eax
jmp 0x4a74c5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a74cb
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ad86c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ad89a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ad8b8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ad7d2
jmp 0x4ad8b8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ad8b8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ad7d2
test edi, edi
mov eax, edi
jne 0x4ad8a2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401210
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, 0xa5
add edi, 0x83
sbb eax, 0xc
sub edi, 0xb7
ror ebx, 0x88
mov eax, 0xa7
bswap edi
neg esi
and ebx, 0xaa
neg edx
rcr eax, 0xb8
or esi, 0x2b
bswap eax
neg ebx
rcr esi, 0xb3
mov eax, 0xb4
inc edx
inc ebx
bswap edi
bswap eax
rcl edx, 0x85
ror edi, 0xee
inc eax
add edi, 0x78
rcr ebx, 0x20
sub esi, 0x35
and ebx, 0xa6
bswap edi
neg edi
rcl ebx, 0xe8
sub ebx, 0x80
bswap ebx
sbb ebx, 0x4d
sub edx, 0x90
rol eax, 0x93
imul ebx
mov edi, 0xc2
rcl edi, 0xa7
not eax
rcr edi, 0x6b
mov ebx, 0x47
bswap edi
rcl edx, 0x63
sub edx, 0x3e
neg edi
neg edi
ror edi, 0xd0
sub edx, 0x62
rcl edi, 0xe7
add esi, 0x3b
xor ecx, ecx
xor edi, edi
mov edi, 0x77
inc edx
dec edi
ror eax, 0x94
inc eax
sbb esi, 0x7a
inc edx
bswap edx
inc ebx
not edi
inc eax
dec edi
mov edi, 0x6e
inc edx
add esi, 0xf6
imul eax
or eax, 0x92
dec eax
sbb eax, 0xe7
imul ebx
rcl edi, 0xaa
inc edx
imul edx
rol esi, 0x44
rcl ebx, 0xbc
or esi, 0x5d
rol edx, 0xbd
inc edi
bswap esi
inc esi
rcr ebx, 0x2f
imul edi
rol edi, 0x7c
neg edi
sbb edi, 0xbe
not eax
sbb edx, 0xc1
bswap edi
ror edi, 0x2b
dec esi
sub edi, 0xe1
not ebx
not edx
sub eax, 0xdc
sub ebx, 0x62
not edx
neg eax
dec edi
neg edi
dec esi
mov ecx, dword [ebp + 0xc]
mov edi, 0x5d
neg ebx
add eax, 0x7c
dec edx
add eax, 0x5e
rcl ebx, 0x5a
rcl edx, 0x7b
neg edi
not edi
or edx, 0x55
inc ebx
rcr eax, 0xc4
neg eax
neg ebx
not eax
dec edx
sbb edi, 0xce
bswap edx
or eax, 0x79
dec eax
dec eax
and eax, 0x3c
not eax
dec eax
bswap edi
imul edx
not eax
sbb eax, 0xbd
add edx, 0x4d
sbb edi, 0xdd
rcl ebx, 0x5e
bswap edx
dec ebx
add esi, 0x77
rcl edi, 0x47
neg esi
not esi
rcr edx, 0xe1
not ebx
sbb edx, 0x86
sub eax, 0x8f
neg eax
inc edi
sub edi, 0xbd
add eax, 0x6c
ror esi, 0x92
bswap ebx
not edx
rol edi, 0xc8
or ebx, 0xf9
mov edi, dword [ebp + 8]
xor ebx, esi
mov eax, esi
mov ebx, eax
not byte [edi]
xor eax, ebx
xor ebx, eax
mov eax, eax
mov esi, eax
xor esi, ebx
xor ebx, ebx
mov eax, esi
xor eax, esi
mov ebx, eax
add byte [edi], 0x87
mov esi, esi
mov ebx, esi
mov esi, eax
xor eax, ebx
xor ebx, esi
xor eax, ebx
xor eax, ebx
xor eax, eax
mov esi, ebx
sub byte [edi], 0x54
mov eax, ebx
mov eax, eax
xor eax, eax
mov ebx, eax
mov ebx, esi
mov esi, esi
mov esi, ebx
xor esi, eax
mov eax, ebx
imul byte [edi]
inc edi
loop 0x4013cb
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407845
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432600]
jne 0x40784f
repz ret
jmp fcn.00409be0
Function at 0x401020
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x408328
push 0x4082c0
push 0
mov dword [0x40838c], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x408394], eax
jne 0x40105f
ret
mov ecx, dword [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x408394]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x408394]
push 0
push 0x3e8
push 1
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
ret
Function at 0x402d3a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x402d68
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x402d6f
cmp ebx, dword [eax + 4]
jae 0x402d6f
xor eax, eax
jmp 0x402f5f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x402d80
xor eax, eax
inc eax
jmp 0x402f5e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x402d96
cmp ecx, edx
jae 0x402edb
cmp dword [eax + 4], 0
je 0x402d9f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x402d87
cmp dword [ebp + 8], 0
je 0x402dc1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x402edb
cmp eax, esi
jae 0x402edb
mov eax, dword [0x408528]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x402de6
cmp dword [esi*4 + 0x408530], edi
je 0x402edf
inc esi
cmp esi, eax
jl 0x402dd4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x40605c]
test eax, eax
je 0x402f5b
cmp dword [ebp - 8], 0x1000000
jne 0x402f5b
test byte [ebp - 0xc], 0xcc
je 0x402e64
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x402f5b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402f5b
cmp word [eax + 0x18], 0x10b
jne 0x402f5b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x402f5b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402e64
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402e64
test byte [ecx + 0x27], 0x80
jne 0x402edb
push 1
push 0x408570
call dword [0x406060]
test eax, eax
jne 0x402d78
mov ecx, dword [0x408528]
test ecx, ecx
mov edx, ecx
jle 0x402e98
lea eax, [ecx*4 + 0x40852c]
cmp dword [eax], edi
je 0x402e98
dec edx
sub eax, 4
test edx, edx
jg 0x402e8c
test edx, edx
jne 0x402ec9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x402ea5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x402ebd
lea eax, [edx*4 + 0x408530]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x402eab
cmp ecx, 0x10
jge 0x402ec9
inc ecx
mov dword [0x408528], ecx
push 0
push 0x408570
call dword [0x406060]
jmp 0x402d78
xor eax, eax
jmp 0x402f5e
test esi, esi
jle 0x402d78
mov ebx, dword [0x406060]
push 1
push 0x408570
call ebx
test eax, eax
jne 0x402d78
cmp dword [esi*4 + 0x408530], edi
je 0x402f35
mov eax, dword [0x408528]
lea esi, [eax - 1]
test esi, esi
jl 0x402f23
cmp dword [esi*4 + 0x408530], edi
je 0x402f1f
dec esi
jns 0x402f13
test esi, esi
jge 0x402f33
cmp eax, 0x10
jge 0x402f2e
inc eax
mov dword [0x408528], eax
lea esi, [eax - 1]
jmp 0x402f35
je 0x402f4d
xor ecx, ecx
test esi, esi
jl 0x402f4d
lea eax, [ecx*4 + 0x408530]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x402f3b
push 0
push 0x408570
call ebx
jmp 0x402d78
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret