joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c2e0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044c430
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44c300
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44c2e1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044c430
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44c300
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44c330
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44c387
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44c39d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044c3c0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44c3c0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44c450
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 0x44c499
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 0x44c910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46f180
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.0044c4c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044c540
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044c540
lea ecx, [esi + 0xc]
call fcn.00460b76
lea ecx, [esi + 0x10]
call fcn.00460b76
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044ed70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044ed70
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044ed70
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00460beb
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00460beb
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44d5b8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46f3a8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44d5c8
call fcn.0044dae0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44d6ab
cmp byte [edi], 0
je 0x44d6ab
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44d5ed
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044c2e0
test eax, eax
jne 0x44d60d
push 0x564460
lea ecx, [esi + 0x38]
call fcn.00460d28
jmp 0x44d6ab
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044c330
test eax, eax
jne 0x44d63c
mov ecx, esi
call fcn.0044c430
push edi
add esi, 0x38
push 0x56443c
push esi
call fcn.0045eb87
add esp, 0xc
jmp 0x44d6ab
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044e360
test eax, eax
je 0x44d6a4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044d780
test eax, eax
jne 0x44d6c0
push edi
lea eax, [esi + 0x38]
push 0x564418
push eax
call fcn.0045eb87
add esp, 0xc
mov ecx, esi
call fcn.0044dae0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44d768
mov ecx, dword [0x5646d0]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push 0x56440c
push eax
mov dword [esp + 0x80], 0
call fcn.0045eb87
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044c3e0
test eax, eax
jne 0x44d72a
push 0x5643fc
lea ecx, [esi + 0x38]
call fcn.00460d28
jmp 0x44d73a
push 0xfa
mov ecx, esi
call fcn.0044e360
test eax, eax
jne 0x44d757
mov ecx, esi
call fcn.0044dae0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00460beb
jmp 0x44d6ab
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00460beb
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x462f8f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462fc7
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.00461046
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046101e
jmp 0x462fd3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46467d
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 0x4646bf
call fcn.0046a1fe
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4646bf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4646b6
xor eax, eax
jmp 0x4646c7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004646cd
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a72e
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 0x46a75c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a77a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a694
jmp 0x46a77a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a77a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a694
test edi, edi
mov eax, edi
jne 0x46a764
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x450012
Capabilities:
Encode data using xor

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
xor ebx, ebx
push ebx
push ebx
push 0x80000000
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [0x44ff28]
sub edi, edi
sub ecx, ecx
mov cl, 0xe5
inc edi
loop 0x45003a
call 0x450042
pop esi
sub esi, 0xffffffc2
push esi
sub ebx, ebx
or ebx, 0x2394
mov al, byte [esi]
xor ax, di
xchg byte [esi], al
inc esi
sub ebx, 1
cmp ebx, 0
ja 0x450052
pop esi
mov esp, dword fs:[0]
pop dword fs:[0]
pop edi
pop ebp
jmp esi
Function at 0x403640
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebx
push esi
add esp, 0xffffffc8
mov ebx, 0x41350c
mov eax, 0x418090
call fcn.0040e298
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x403677
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x403677
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040da88
mov esi, eax
test esi, esi
je 0x4036e3
mov edx, 0x4120f6
mov eax, esi
call fcn.0040dacc
mov esi, eax
test eax, eax
je 0x403696
mov eax, ebx
mov edx, esi
call fcn.0040daf8
xor ecx, ecx
xor eax, eax
jmp 0x4036d5
and edx, 0xff
cmp edx, 0x20
je 0x4036a9
mov cl, 1
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
je 0x4036b8
cmp edx, 0x2f
jne 0x4036d4
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x4036c8
cmp edx, 0x53
jne 0x4036d4
mov dword [0x412058], 1
jmp 0x4036dc
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40369c
test cl, cl
jne 0x4036e3
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x64
mov dword [0x418078], ebx
mov dword [0x418074], ebx
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x41390c], eax
push 0x65
push dword [0x418074]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x413910], eax
mov eax, esp
call fcn.00405104
push 0x400
push 0x41310c
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x41310c
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov edx, 0x41310c
mov eax, 0x41807c
call fcn.004048ec
lea eax, [esp + 8]
call fcn.00403f0c
lea eax, [esp + 0x20]
call fcn.00403f0c
lea edx, [esp + 8]
lea ecx, [esp + 0x20]
push 0
push 0x40100c
mov dword [0x413d14], edx
push 0
mov dword [0x413d18], ecx
push str.STARTDLG
push dword [0x418078]
call sub.USER32.DLL_DialogBoxParamA
lea eax, [esp + 0x20]
mov edx, 2
call fcn.00403f30
lea eax, [esp + 8]
mov edx, 2
call fcn.00403f30
mov eax, esp
mov edx, 2
call fcn.00405178
xor ecx, ecx
mov dword [0x413d18], ecx
mov dword [0x413d14], ecx
cmp dword [0x412864], 0
jne 0x4037e6
cmp dword [0x412870], 0
jne 0x4037e6
mov ecx, 4
mov edx, dword [0x412048]
xor eax, eax
call fcn.0040178a
cmp byte [0x412045], 0
je 0x4037f4
call fcn.004024d7
mov eax, 0x413080
mov ecx, 0x80
xor edx, edx
call fcn.0040d9f8
cmp dword [0x412054], 0
jle 0x403818
mov eax, dword [0x412048]
call fcn.0040d97c
push dword [0x41390c]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x413910]
test eax, eax
je 0x403832
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x418068], 0
jne 0x403853
cmp dword [0x412864], 0
je 0x403853
mov eax, 0x418068
mov edx, 0xff
call fcn.0040b604
mov dword [0x412864], 2
push dword [0x418068]
call sub.KERNEL32.DLL_ExitProcess
add esp, 0x38
pop esi
pop ebx
ret
Function at 0x40c630
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40c652
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c659
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c648
mov eax, 1
add ebx, ebx
jne 0x40c66b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c660
jne 0x40c67c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c660
xor ecx, ecx
sub eax, 3
jb 0x40c690
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c702
mov ebp, eax
add ebx, ebx
jne 0x40c69b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c6a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c6cc
inc ecx
add ebx, ebx
jne 0x40c6b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c6ad
jne 0x40c6c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c6ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c6ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c6dd
jmp 0x40c64e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c6ec
add edi, ecx
jmp 0x40c64e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c74b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c709
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc040]
or eax, eax
je 0x40c745
mov dword [ebx], eax
add ebx, 4
jmp 0x40c726
call dword [esi + 0xc050]
mov ebp, dword [esi + 0xc044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x40c77f
sub esp, 0xffffff80
jmp 0x40a71c

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10003550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100035a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100035a9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000359a
cmp esi, edx
jae 0x100035a9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10003588
cmp esi, edx
jae 0x100035a9
cmp word [esi], 0
je 0x100035a9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10003e30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067988
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1008a268]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10003e6b
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push 0x38
mov dword [ebp - 4], 0
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
call fcn.100174a6
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10003ebd
mov ecx, dword [ebp - 0x20]
lea eax, [esi + 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj_class_std::function_void____cdecl___void___.0
mov dword [eax], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8VipPopupTrayClient__AEXXZPAV3__std__X__V_std__.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x24], eax
jmp 0x10003ebf
xor esi, esi
xorps xmm0, xmm0
lea eax, [esi + 0x10]
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10003ed8
lock inc dword [esi + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
inc eax
mov byte [ebp - 4], 2
cmp ecx, eax
ja 0x10003efa
push 1
lea ecx, [edi + 0x20]
call fcn.1000c770
mov ecx, dword [edi + 0x28]
lea eax, [ecx - 1]
and dword [edi + 0x2c], eax
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
dec eax
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x20], eax
cmp dword [ecx + eax], 0
jne 0x10003f37
push 0x28
call fcn.100174a6
mov ecx, dword [edi + 0x24]
add esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx + eax]
lea ecx, [esi + 0x10]
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__lambda_2128a4a0b072615bca673cbbb704a890___void___.0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0x24], eax
inc dword [edi + 0x30]
cmp dword [edi + 0x18], 0
jne 0x10003f76
lea eax, [edi + 0x1c]
push eax
push 0
push edi
push 0x1000aec0
push 0
push 0
call fcn.10028e92
add esp, 0x18
mov dword [edi + 0x18], eax
mov byte [ebp - 0x19], 1
jmp 0x10003f7a
mov byte [ebp - 0x19], 0
test esi, esi
je 0x10003f9f
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10003f9f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10003f9f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10017847
mov esp, ebp
pop ebp
ret 8
Function at 0x10008000
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1008a268]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
call fcn.10022d40
add esp, 0xc
call fcn.100036a0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push 0x1006dfe8
push eax
call esi
push str.vip_pup.log
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000809f
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1006dc38
push 0x6400000
push 0
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.1001edb0
push dword [0x1008a130]
mov eax, dword [ebp + 0xc]
push str.paypop
push 1
mov dword [edi + 4], eax
call fcn.100080f0
mov ecx, eax
call fcn.1001fe00
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.10017847
mov esp, ebp
pop ebp
ret 8
Function at 0x10009060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068016
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1008a268]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.10022d40
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x1000911c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x1000911c
call fcn.10007440
mov esi, eax
jmp 0x10009209
push dword [ebp - 0x424]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000913f
call fcn.10007440
jmp 0x100091fc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
jne 0x1000915d
call fcn.10007440
jmp 0x100091fc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x424], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1000917e
mov esi, 0x8007000e
jmp 0x100091fe
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.10007310
jmp 0x100091a8
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x100091bf
mov esi, 0x8007000e
jmp 0x100091fe
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x100091df
call fcn.10007440
jmp 0x100091fc
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.10008ec0
mov esi, eax
test edi, edi
je 0x10009209
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10009222
lea ecx, [ebp - 0x420]
call fcn.10007c60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10017847
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000f270
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100684a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1008a268]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.100174a6
mov edi, eax
add esp, 4
test edi, edi
je 0x1000f313
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100136e5
add esp, 4
mov dword [edi + 4], eax
jmp 0x1000f315
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.10004630
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x1000f375
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1000f375
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x1000f399
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1000f3bb
cmp byte [ebp + 0xc], 0
je 0x1000f3a8
push esi
call fcn.10013cbf
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1000f3c7
mov esi, str.ios_base::badbit_set
jmp 0x1000f3d7
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.1000f400
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.100055a0
push 0x1008365c
lea eax, [ebp - 0x30]
push eax
call fcn.10021e24
int3
Function at 0x100116c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068778
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x1008a268]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 5
xor eax, eax
mov dword [ebp - 0x14], 0
push str.close
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
call fcn.1000e270
push dword [esi + 0xe4]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
call fcn.100121c0
mov edx, dword [ebp - 0x10]
add esp, 8
cmp edx, 8
jb 0x1001175a
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10011750
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10011786
push edx
push ecx
call fcn.100174d6
add esp, 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10011772
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.100260c9
int3