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

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00558cc8
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x558c16
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
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 0x558bb9
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x558bfc
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x558bd0
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x558beb
test al, 0x40
je 0x558be2
mov ecx, dword [edi + 0x20]
jmp 0x558be9
test al, 0x80
je 0x558bfc
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x558bfc
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x558b88
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x4011e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x423044]
xor eax, esp
mov dword [esp + 0x208], eax
test esi, esi
jne 0x40120f
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040af86
add esp, 0x20c
ret
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.0040d460
add esp, 0xc
lea ecx, [esp]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x401274
push 0x104
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x41fcf8
push 0x104
lea eax, [esp + 8]
push 0x5c
push eax
call fcn.0040aedc
add esp, 8
push eax
call fcn.0040ae70
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x104
push esi
call fcn.0040ae70
mov ecx, dword [esp + 0x214]
add esp, 0xc
xor ecx, esp
mov eax, 1
call fcn.0040af86
add esp, 0x20c
ret

Function at 0x401340
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, dword [esp + 8]
cmp ebp, 8
push esi
mov esi, eax
not esi
jl 0x401435
push edi
mov edi, ebp
shr edi, 3
mov eax, edi
neg eax
lea ebp, [ebp + eax*8]
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41fd58]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41fd58]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x41fd58]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41fd58]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41fd58]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41fd58]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41fd58]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41fd58]
add ecx, 1
sub edi, 1
mov esi, eax
jne 0x401361
pop edi
test ebp, ebp
je 0x40145c
lea esp, [esp]
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x41fd58]
add ecx, 1
sub ebp, 1
jne 0x401440
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x4015e0
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x10], edi
jb 0x4015f6
mov eax, dword [eax + 4]
jmp 0x4015f9
add eax, 4
push edi
push 0x80
push 3
push edi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, edi
je 0x401645
cmp ebx, 0xffffffff
je 0x401645
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x10]
push 1
push 0
push 0
push ecx
mov ebp, eax
call fcn.0040e750
mov edi, edx
mov esi, eax
xor edx, edx
add esi, ebp
adc edi, edx
jmp 0x401647
xor esi, esi
test ebx, ebx
je 0x401657
cmp ebx, 0xffffffff
je 0x401657
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401c20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x41c508
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x423044]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00401740
mov eax, str.kws.ini
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401c77
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x10]
call fcn.00401cd0
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00401740
cmp dword [esp + 0x24], 8
jb 0x401cbc
mov eax, dword [esp + 0x10]
push eax
call fcn.0040ab1e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x4023f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41cba8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x423044]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x423044]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov word [esp + 0x1e], ax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov word [esp + 0x14], bx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x58]
push ecx
call fcn.00401470
add esp, 4
push eax
mov edi, 0x41fcf4
lea esi, [esp + 0x40]
mov dword [esp + 0xa4], ebx
call fcn.00402fb0
add esp, 4
push eax
mov edi, str.updateEv.log
lea esi, [esp + 0x78]
mov byte [esp + 0xa4], 1
call fcn.00402fb0
add esp, 4
mov esi, 0x10
cmp dword [esp + 0x54], esi
jb 0x4024ad
mov edx, dword [esp + 0x40]
push edx
call fcn.0040ab1e
add esp, 4
mov edi, 0xf
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0xa0], 4
cmp dword [esp + 0x70], esi
jb 0x4024d9
mov eax, dword [esp + 0x5c]
push eax
call fcn.0040ab1e
add esp, 4
cmp dword [esp + 0x8c], esi
mov edx, dword [esp + 0x78]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jae 0x4024f6
lea edx, [esp + 0x78]
mov eax, edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402507
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.004022b0
lea eax, [esp + 0x20]
call fcn.004015e0
cmp dword [esp + 0x38], 0x10
mov edi, eax
mov esi, edx
jb 0x40253e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040ab1e
add esp, 4
cmp esi, ebx
jl 0x402565
jg 0x40254c
cmp edi, 0x100000
jb 0x402565
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x40255e
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x402577
lea eax, [esp + 0x78]
push 0x420170
push eax
call fcn.0040b384
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x4025a6
cmp dword [esp + 0x8c], 0x10
jb 0x4025a2
mov edx, dword [esp + 0x78]
push edx
call fcn.0040ab1e
add esp, 4
xor eax, eax
jmp 0x402617
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x425100
call fcn.0040b413
movzx edx, word [esp + 0x28]
movzx eax, word [esp + 0x26]
movzx ecx, word [esp + 0x24]
add esp, 0xc
push 0x425100
push edx
movzx edx, word [esp + 0x1e]
push eax
movzx eax, word [esp + 0x1e]
push ecx
movzx ecx, word [esp + 0x20]
push edx
push eax
push ecx
push str._d__02d__02d__02d:_02d:_02d_s_n
push esi
call fcn.0040b497
add esp, 0x24
push esi
call fcn.0040b658
add esp, 4
cmp dword [esp + 0x8c], 0x10
jb 0x402612
mov edx, dword [esp + 0x78]
push edx
call fcn.0040ab1e
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0040af86
mov esp, ebp
pop ebp
ret
Function at 0x402640
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.00413d30
mov eax, dword [0x423044]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebp
push esi
xor ebp, ebp
xor esi, esi
test ebx, ebx
je 0x40270b
push edi
push 0x420194
push eax
mov dword [ebx], esi
call fcn.0040b384
mov edi, eax
add esp, 8
test edi, edi
je 0x4026f1
push edi
push 0x1000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040bbfe
add esp, 0x10
test eax, eax
je 0x4026c7
lea ecx, [ecx]
push eax
lea ecx, [esp + 0x10]
mov eax, esi
call fcn.00401340
push edi
push 0x1000
lea ecx, [esp + 0x18]
push 1
push ecx
add esi, eax
call fcn.0040bbfe
add esp, 0x14
test eax, eax
jne 0x4026a0
mov dword [ebx], esi
push edi
mov esi, 1
call fcn.0040b658
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0040af86
add esp, 0x1004
ret
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0040af86
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1008]
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0040af86
add esp, 0x1004
ret
Function at 0x403350
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push edi
lea eax, [esp + 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREkingsoftkswsvc
push connect
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4033d0
mov eax, dword [esp + 4]
push esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x1c]
push ecx
push edi
push str.forduba
push eax
mov esi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4033bd
cmp dword [esp + 0x14], 4
jne 0x4033bd
cmp dword [esp + 0xc], 1
jne 0x4033bd
lea edi, [eax + 1]
test esi, esi
je 0x4033c8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
add esp, 0x10
ret
mov eax, edi
pop edi
add esp, 0x10
ret

Function at 0x4033e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x423044]
xor eax, esp
mov dword [esp + 0x25c], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x62]
push edi
push eax
mov word [esp + 0x68], di
call fcn.0040d460
add esp, 0xc
push 0x104
lea ecx, [esp + 0x60]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x5c]
push 0x5c
push edx
mov esi, 0x42015c
call fcn.0040aedc
add esp, 8
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
cmp cx, di
jne 0x403435
lea eax, [esp + 0x5c]
push 0x5c
push eax
mov esi, str.uplive.exe
call fcn.0040aedc
add esp, 8
lea ebx, [ebx]
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
cmp cx, di
jne 0x403460
lea ecx, [esp + 0x5c]
push edi
push ecx
call fcn.0040bfe9
add esp, 8
test eax, eax
jne 0x403501
push ebx
push 0x40
lea edx, [esp + 0x24]
push edi
push edx
mov dword [esp + 0x28], edi
call fcn.0040d460
add esp, 0xc
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea edx, [esp + 0x84]
push edx
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4034dc
push eax
call ebx
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4034e7
push eax
call ebx
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0040af86
add esp, 0x260
ret
mov ecx, dword [esp + 0x264]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040af86
add esp, 0x260
ret
Function at 0x403520
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x41cb68
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x423044]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x423044]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8c]
push 0x18
xor ebx, ebx
mov edi, 0xf
push str.SOFTWAREKingsoftKSWSVC
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.004022b0
mov eax, dword [esp + 0x28]
mov ebp, 0x10
cmp dword [esp + 0x3c], ebp
jae 0x403593
lea eax, [esp + 0x28]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x20019
push ebx
push ebx
push ebx
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x84], ebx
cmp dword [esp + 0x3c], ebp
jb 0x4035d3
mov edx, dword [esp + 0x28]
push edx
call fcn.0040ab1e
add esp, 4
push 0xb
push str.installpath
lea ecx, [esp + 0x48]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.004022b0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
lea esi, [esp + 0x60]
mov byte [esp + 0x88], 1
call fcn.00404450
mov byte [esp + 0x84], 3
cmp dword [esp + 0x58], ebp
jb 0x403630
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0040ab1e
add esp, 4
mov eax, dword [esp + 0x70]
cmp eax, ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov byte [esp + 0x17], bl
je 0x403660
cmp eax, 0x104
jae 0x403660
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x5c]
call fcn.004043f0
mov byte [esp + 0x17], al
cmp dword [esp + 0x74], ebp
jb 0x403673
mov edx, dword [esp + 0x60]
push edx
call fcn.0040ab1e
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
je 0x40368e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0040af86
add esp, 0x74
ret
Function at 0x4036c0
Capabilities:
Get process heap flags
Get process heap force flags
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41cb28
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x423044]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
push 0x18
xor ebx, ebx
push str.SOFTWAREKingsoftKSWSVC
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.004022b0
mov eax, dword [esp + 0x1c]
mov edi, 0x10
cmp dword [esp + 0x30], edi
jae 0x40371d
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
neg eax
sbb eax, eax
add eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x58], ebx
cmp dword [esp + 0x30], edi
jb 0x40375a
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040ab1e
add esp, 4
push 0xb
push str.installpath
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.004022b0
cmp dword [esi + 0x18], edi
mov ecx, dword [esi + 0x14]
jb 0x403797
mov esi, dword [esi + 4]
jmp 0x40379a
add esi, 4
cmp dword [esp + 0x4c], edi
mov eax, dword [esp + 0x38]
jae 0x4037a8
lea eax, [esp + 0x38]
add ecx, 1
push ecx
push esi
push 1
push ebx
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [esp + 0x4c], edi
jb 0x4037cf
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040ab1e
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4037de
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
Function at 0x403890
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x41cae6
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x423044]
xor eax, esp
mov dword [esp + 0x1ac], eax
push ebx
push esi
push edi
mov eax, dword [0x423044]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0xb9]
push ebx
push eax
mov byte [esp + 0x1f], bl
mov byte [esp + 0xc0], bl
call fcn.0040d460
push 0x40
lea ecx, [esp + 0x58]
push ebx
push ecx
mov dword [esp + 0x5c], ebx
call fcn.0040d460
xor eax, eax
mov esi, 0xf
add esp, 0x18
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
push 0x104
lea edx, [esp + 0xb8]
push edx
push ebx
mov dword [esp + 0x1d4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, ebx
je 0x403a80
lea eax, [esp + 0xb4]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403963
sub eax, edx
push eax
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x30]
call fcn.004022b0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x98]
mov byte [esp + 0x1d4], 1
call fcn.004021d0
mov byte [esp + 0x1c8], bl
cmp dword [esp + 0x40], 0x10
jb 0x4039b7
mov edx, dword [esp + 0x2c]
push edx
call fcn.0040ab1e
add esp, 4
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x90]
mov byte [esp + 0x18], 0x5c
call fcn.004016a0
mov ecx, dword [esp + 0xa0]
cmp eax, ecx
ja 0x4039e4
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.00402140
jmp 0x4039f3
sub eax, ecx
push eax
lea esi, [esp + 0x90]
call fcn.004017f0
push 0x10
push str.KWSUpreport.exe
lea eax, [esp + 0x94]
call fcn.00403080
push 2
push str._s__v
lea ecx, [esp + 0xb0]
push 0xa
push ecx
call fcn.0040ac5e
mov eax, dword [esp + 0xa0]
add esp, 0x10
cmp dword [esp + 0xa4], 0x10
jae 0x403a37
lea eax, [esp + 0x90]
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x48]
push ecx
push ebx
push ebx
push 0x8000004
push ebx
push ebx
push ebx
lea edx, [esp + 0xc8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403a80
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x403a80
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x403a91
push eax
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x403a9c
push eax
call esi
cmp dword [esp + 0xa4], 0x10
jb 0x403ab6
mov edx, dword [esp + 0x90]
push edx
call fcn.0040ab1e
add esp, 4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.0040af86
add esp, 0x1bc
ret
Function at 0x403af0
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x41ca96
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x423044]
xor eax, esp
mov dword [esp + 0x1a4], eax
push ebx
push esi
push edi
mov eax, dword [0x423044]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0xb1]
push ebx
push eax
mov byte [esp + 0x1f], bl
mov byte [esp + 0xb8], bl
call fcn.0040d460
push 0x40
lea ecx, [esp + 0x58]
push ebx
push ecx
mov dword [esp + 0x5c], ebx
call fcn.0040d460
xor eax, eax
mov esi, 0xf
add esp, 0x18
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
push 0x104
lea edx, [esp + 0xb0]
push edx
push ebx
mov dword [esp + 0x1cc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, ebx
je 0x403cc4
lea eax, [esp + 0xac]
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403bc3
sub eax, edx
push eax
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x30]
call fcn.004022b0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x1cc], 1
call fcn.004021d0
mov byte [esp + 0x1c0], bl
cmp dword [esp + 0x40], 0x10
jb 0x403c17
mov edx, dword [esp + 0x2c]
push edx
call fcn.0040ab1e
add esp, 4
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x94]
mov byte [esp + 0x18], 0x5c
call fcn.004016a0
mov ecx, dword [esp + 0xa4]
cmp eax, ecx
ja 0x403c44
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.00402140
jmp 0x403c53
sub eax, ecx
push eax
lea esi, [esp + 0x94]
call fcn.004017f0
push 0xd
push 0x4202b4
lea eax, [esp + 0x98]
call fcn.00403080
cmp dword [esp + 0xa8], 0x10
mov eax, dword [esp + 0x94]
jae 0x403c7e
lea eax, [esp + 0x94]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x48]
push edx
push ebx
push ebx
push 0x8000004
push ebx
push ebx
push ebx
push 0x420158
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403cc4
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x403cc4
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x403cd5
push eax
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x403ce0
push eax
call esi
cmp dword [esp + 0xa8], 0x10
jb 0x403cfa
mov edx, dword [esp + 0x94]
push edx
call fcn.0040ab1e
add esp, 4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.0040af86
add esp, 0x1b4
ret