joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
inc ebx
bswap esi
rcl edx, 0xf1
mov edi, 0xd3
rol ebx, 0x93
sub edx, 0x4e
dec edx
bswap esi
rol edi, 0x76
inc edi
and edx, 0x19
inc ebx
bswap edx
and ebx, 0xd2
mov edi, 0x1e
bswap edi
or esi, 0x3c
not edi
and edi, 0xb
sbb eax, 0xc9
not eax
imul edx
imul esi
mov edi, 0x3e
not edx
neg edx
rol ebx, 0xf7
rcr edx, 0x9c
sbb esi, 0xb3
dec ebx
or ebx, 0x51
sbb esi, 0xee
neg eax
inc eax
or esi, 0x52
rol edx, 0x94
imul edi
dec esi
and ebx, 0xfe
sbb esi, 0x3a
mov ebx, 0x51
sbb edi, 0x88
rcl esi, 0x73
sbb edi, 0xa6
neg edi
rol edi, 0xac
not esi
or edi, 0x7f
imul edx
add edx, 0x75
xor ecx, ecx
xor edi, edi
or edi, 0x2d
mov esi, 0x77
sbb ebx, 0x81
bswap edx
add esi, 0x1f
not edi
mov esi, 0xe9
or esi, 0xd3
neg edi
neg edi
neg esi
sub esi, 0x10
bswap edx
rcr ebx, 0x8e
bswap ebx
inc edi
ror edx, 0x3d
and edx, 0x90
sub eax, 0x6f
imul ebx
bswap esi
mov esi, 0x7b
not ebx
dec edi
bswap edi
sub edi, 0x9d
sbb ebx, 0x57
add edi, 0xaa
or esi, 0xaa
rcl edi, 0x29
neg ebx
rcl ebx, 0x3a
neg ebx
inc edi
mov ebx, 0xa2
sub esi, 0x18
sub edi, 0x5a
rcr ebx, 0x5b
neg edx
imul esi
mov edx, 0xc5
or eax, 0x4a
neg edx
and esi, 0xb1
and eax, 0x8a
neg eax
or esi, 0x75
sbb eax, 0x5d
ror edi, 0xe7
neg esi
mov ecx, dword [ebp + 0xc]
bswap edx
not ebx
bswap edi
sbb esi, 0x76
ror ebx, 0xd8
sub esi, 0x3d
or esi, 0x5e
bswap edx
not eax
sbb edx, 0x87
or ebx, 0x65
dec edi
mov edi, 0xbe
rcr ebx, 0xe0
rol esi, 0xd6
imul eax
sub eax, 0xd9
dec esi
dec edi
inc ebx
inc esi
inc ebx
sub ebx, 0xc0
neg ebx
not edx
add edx, 0x8c
dec ebx
sub edi, 0x8d
add ebx, 0x1a
dec ebx
not eax
bswap esi
imul eax
bswap eax
add ebx, 0x8f
sbb esi, 0x2e
rol esi, 0x92
mov eax, 0xa0
neg esi
bswap eax
rcl esi, 9
imul eax
rol edx, 0x39
dec edi
or edi, 0x57
rcr ebx, 0x65
neg eax
sbb esi, 0x43
rcl esi, 0xdb
dec esi
mov edi, dword [ebp + 8]
mov ebx, esi
mov ebx, ebx
mov ebx, ebx
xor eax, eax
mov ebx, eax
xor ebx, ebx
mov ebx, eax
mov esi, eax
mov eax, esi
mov esi, ebx
mov esi, esi
mov esi, ebx
not byte [edi]
xor esi, ebx
xor esi, eax
xor ebx, ebx
mov esi, eax
xor eax, eax
xor esi, ebx
xor ebx, esi
xor ebx, esi
xor esi, ebx
sub byte [edi], 0x89
xor ebx, esi
mov eax, ebx
xor ebx, eax
xor esi, esi
mov eax, esi
xor eax, ebx
xor eax, eax
xor eax, esi
xor eax, eax
add byte [edi], 0x43
mov eax, ebx
xor eax, ebx
xor eax, eax
xor eax, ebx
xor ebx, eax
mov ebx, esi
xor eax, ebx
xor esi, esi
mov esi, esi
imul byte [edi]
inc edi
loop 0x4011d1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403353
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.00402249
and dword [ebp - 4], 0
cmp dword [0x45c688], 0
mov ebx, eax
jne 0x403404
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4034b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4034b5
push eax
call fcn.004021d7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45c688], eax
call esi
push eax
call fcn.004021d7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45c68c], eax
call esi
push eax
call fcn.004021d7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45c690], eax
call esi
push eax
call fcn.004021d7
pop ecx
mov dword [0x45c698], eax
test eax, eax
je 0x403404
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004021d7
pop ecx
mov dword [0x45c694], eax
mov eax, dword [0x45c694]
cmp eax, ebx
je 0x40345c
cmp dword [0x45c698], ebx
je 0x40345c
push eax
call fcn.00402252
push dword [0x45c698]
mov esi, eax
call fcn.00402252
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40345c
test edi, edi
je 0x40345c
call esi
test eax, eax
je 0x403453
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403453
test byte [ebp - 0xc], 1
jne 0x40345c
or dword [ebp + 0x10], 0x200000
jmp 0x403495
mov eax, dword [0x45c68c]
cmp eax, ebx
je 0x403495
push eax
call fcn.00402252
pop ecx
test eax, eax
je 0x403495
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403495
mov eax, dword [0x45c690]
cmp eax, ebx
je 0x403495
push eax
call fcn.00402252
pop ecx
test eax, eax
je 0x403495
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45c688]
call fcn.00402252
pop ecx
test eax, eax
je 0x4034b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4034b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4051be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45bdf8]
jne 0x4051c8
repz ret
jmp fcn.004068e5
Function at 0x403379
Capabilities:
Check mutex on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x824
mov eax, dword [0x43c068]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push esi
push edi
push 0x40315b
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x800
xor edi, edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00416590
add esp, 0xc
lea eax, [esp + 0x28]
push 0x400
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4033ed
lea eax, [esp + 0x28]
push 0x5c
push eax
call fcn.0041577d
pop ecx
pop ecx
test eax, eax
je 0x4033ed
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.6789Zip
lea ecx, [esp + 0x10]
call fcn.00401a78
push str.Srvc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040392f
add esp, 0xc
lea ecx, [esp + 0x14]
mov edx, dword [eax]
call fcn.0040366e
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.004020f1
mov ecx, dword [esp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.004020f1
mov esi, dword [esp + 0x14]
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x403466
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403466
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403469
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.004020f1
test edi, edi
je 0x4034e7
xorps xmm0, xmm0
lea ecx, [esp + 0xc]
push str.Service
movlpd qword [esp + 0x24], xmm0
call fcn.00401a78
push dword [esp + 0xc]
call fcn.0041c886
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [0x43e3c0], eax
lea ecx, [ecx - 0x10]
call fcn.004020f1
mov eax, dword [0x43e3c0]
test eax, eax
je 0x4034e7
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], 0x403343
mov dword [0x43e3a4], 0x10
mov dword [0x43e3ac], 5
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
push dword [0x43e3c0]
call fcn.00417f89
pop ecx
mov ecx, dword [esp + 0x82c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413b09
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40366e
Capabilities:
Get hostname

Disassembly:
push 0x16c
mov eax, 0x42f530
call fcn.004147f1
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x170], eax
call fcn.0040204d
push eax
lea ecx, [ebp - 0x16c]
call fcn.00401814
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040204d
push eax
lea ecx, [ebp - 0x168]
call fcn.00401814
mov byte [ebp - 4], 1
call fcn.0040204d
push eax
lea ecx, [ebp - 0x164]
call fcn.00401814
mov byte [ebp - 4], 2
lea edi, [ebp - 0x20]
xor eax, eax
mov ecx, 0x1000
stosd dword es:[edi], eax
mov dword [ebp - 0x174], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x174]
push eax
push ecx
lea ecx, [ebp - 0x168]
call fcn.00401bf2
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x168]
call fcn.00403500
push esi
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.0040392f
add esp, 0xc
push eax
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 3
call fcn.0040352c
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x170]
lea ecx, [ecx - 0x10]
call fcn.004020f1
push 3
push dword [ebp - 0x164]
lea eax, [ebp - 0xdc]
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xe0], eax
call fcn.004012e2
mov byte [ebp - 4], 4
push dword [ebp - 0xe0]
call fcn.004013e0
pop ecx
push eax
push dword [ebp - 0xe0]
lea ecx, [ebp - 0x16c]
call fcn.0040179a
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 2
cmp dword [ebp - 0xe0], eax
je 0x4037a6
push dword [ebp - 0xe0]
call fcn.00417f89
pop ecx
lea eax, [ebp - 0xb8]
push eax
call fcn.00402158
mov eax, dword [ebp - 0x16c]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00402a1e
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00402ac4
mov esi, str.0123456789ABCDEF
lea edi, [ebp - 0x34]
add esp, 0x18
mov edx, ebx
xor eax, eax
movsd dword es:[edi], dword [esi]
push 8
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
cmp edx, 0x21
jae 0x403820
movzx ecx, byte [ebp + ebx - 0x20]
mov eax, ecx
and ecx, 0xf
shr eax, 4
inc ebx
mov al, byte [ebp + eax - 0x34]
mov byte [ebp + edx - 0x58], al
mov al, byte [ebp + ecx - 0x34]
mov byte [ebp + edx - 0x57], al
add edx, 2
cmp ebx, 0x10
jb 0x4037f5
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x160], eax
lea ecx, [ebp - 0x160]
push 3
lea eax, [ebp - 0x58]
push eax
call fcn.004014a9
mov byte [ebp - 4], 5
push dword [ebp - 0x160]
call fcn.00401941
pop ecx
push eax
push dword [ebp - 0x160]
lea ecx, [ebp - 0x164]
call fcn.00401d58
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x160], eax
je 0x40387d
push dword [ebp - 0x160]
call fcn.00417f89
pop ecx
mov esi, dword [ebp - 0x178]
lea ecx, [ebp - 0x164]
push 0x10
push 0xa
push esi
call fcn.004035dd
mov ecx, dword [ebp - 0x164]
lea ecx, [ecx - 0x10]
call fcn.004020f1
mov ecx, dword [ebp - 0x168]
add ecx, 0xfffffff0
call fcn.004020f1
mov ecx, dword [ebp - 0x16c]
add ecx, 0xfffffff0
call fcn.004020f1
mov eax, esi
call fcn.004147ac
ret
Function at 0x4039e1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x14], edx
mov ebx, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
push edi
test ebx, ebx
jne 0x403a0b
xor eax, eax
jmp 0x403b8e
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x403b70
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x13
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor ecx, ecx
inc ecx
test eax, eax
je 0x403a44
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
jmp 0x403a64
lea eax, [ebp - 8]
push eax
push ecx
push ecx
push esi
push 0x2000000
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x403b70
mov eax, dword [ebp - 8]
push 4
lea ecx, [ebp + 8]
push ecx
push 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x403b70
push esi
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x403b70
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
pop edi
push edi
push esi
push eax
call fcn.00416590
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x403ab0
xor eax, eax
mov dword [ebp - 0x7c], edi
sub ecx, edx
mov dword [ebp - 0x74], str.WinSta0Default
inc eax
sar ecx, 1
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x14]
lea ebx, [ecx + 0x64]
test eax, eax
je 0x403af0
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x403adf
sub ecx, edx
sar ecx, 1
add ebx, ecx
lea eax, [ebx + ebx]
push eax
mov dword [ebp - 0x20], eax
call fcn.00417f7e
mov edi, eax
pop ecx
test edi, edi
je 0x403b67
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403b1f
push eax
push dword [ebp - 0x18]
push str._s__s
push ebx
push edi
call fcn.00402b74
add esp, 0x14
jmp 0x403b31
push dword [ebp - 0x18]
push 0x4382b8
push ebx
push edi
call fcn.00402b74
add esp, 0x10
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov word [eax + edi - 2], cx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [ebp - 0x10]
push 0x420
push esi
push esi
push esi
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
neg eax
push edi
sbb esi, esi
neg esi
call fcn.00417f89
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x403b81
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], 0
je 0x403b8c
push dword [ebp - 8]
call edi
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403b93
Capabilities:
Create process on windows

Disassembly:
push 0x6c
mov eax, 0x42f594
call fcn.004147bd
mov dword [ebp - 0x18], edx
mov ebx, ecx
xor esi, esi
lea eax, [ebp - 0x78]
push 0x44
push esi
push eax
mov dword [ebp - 0x10], esi
call fcn.00416590
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040204d
push eax
lea ecx, [ebp - 0x14]
call fcn.00401814
mov dword [ebp - 4], esi
test ebx, ebx
je 0x403c7a
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x403bdf
sub ecx, edx
sar ecx, 1
je 0x403c7a
call fcn.00403d9d
test eax, eax
je 0x403c7a
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x403c7a
lea ecx, [ebp - 0x10]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403c7a
cmp dword [ebp - 0x10], 0
je 0x403c7a
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x78], 0x44
push ebx
push str.__s___s
push eax
mov dword [ebp - 0x70], str.winsta0default
call fcn.00403d47
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.0040107e
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004020f1
mov eax, esi
call fcn.00414797
ret
Function at 0x403d9d
Capabilities:
Enumerate processes

Disassembly:
push 0x244
mov eax, 0x42f5db
call fcn.004147f1
xor edi, edi
mov dword [ebp - 0x23c], 0x22c
push 0x228
lea eax, [ebp - 0x238]
mov ebx, edi
push edi
push eax
call fcn.00416590
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x24c], esi
cmp esi, 0xffffffff
jne 0x403dec
xor eax, eax
jmp 0x403f6f
call fcn.0040204d
push eax
lea ecx, [ebp - 0x240]
call fcn.00401814
mov dword [ebp - 4], edi
call fcn.0040204d
push eax
lea ecx, [ebp - 0x244]
call fcn.00401814
push 0x65
pop edi
push edi
push 0x78
push edi
push 0x4382f0
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 1
push 0x4382f4
push eax
call fcn.00403d47
add esp, 0x18
call fcn.0040204d
push eax
lea ecx, [ebp - 0x248]
call fcn.00401814
push 0x72
push edi
push 0x72
push 0x6f
push 0x6c
push 0x70
push 0x78
push edi
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 2
push str._c_c_c_c_c_c_c_c
push eax
call fcn.00403d47
add esp, 0x28
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [ebp - 0x248]
test eax, eax
je 0x403f3d
lea ecx, [ebp - 0x240]
call fcn.00401ac6
lea eax, [ebp - 0x218]
push eax
call fcn.00401941
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.00401571
mov esi, dword [ebp - 0x240]
mov eax, dword [ebp - 0x244]
mov ecx, dword [esi - 0xc]
cmp ecx, dword [eax - 0xc]
jle 0x403f05
sub ecx, dword [eax - 0xc]
lea eax, [ebp - 0x250]
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.00403d5b
push eax
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 3
call fcn.0040352c
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x250]
lea ecx, [ecx - 0x10]
call fcn.004020f1
mov esi, dword [ebp - 0x240]
cmp dword [esi - 0xc], 0
je 0x403f20
push edi
lea ecx, [ebp - 0x240]
call fcn.00402134
test eax, eax
cmove ebx, dword [ebp - 0x234]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x403e88
jmp 0x403f43
mov esi, dword [ebp - 0x240]
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi - 0x10]
call fcn.004020f1
mov ecx, dword [ebp - 0x244]
lea ecx, [ecx - 0x10]
call fcn.004020f1
lea ecx, [esi - 0x10]
call fcn.004020f1
mov eax, ebx
call fcn.004147ac
ret
Function at 0x4040d2
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x43c068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0xc]
push str.RtlGetVersion
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x10]
push str.ntdll.dll
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x128], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 9
mov dword [ebp - 0x124], eax
lea edi, [ebp - 0x158]
pop eax
mov ecx, eax
xor ebx, ebx
xor eax, eax
push 0x118
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00416590
mov eax, dword [ebp - 0x124]
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test eax, eax
je 0x404170
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
jns 0x404185
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404312
test esi, esi
je 0x40419a
mov edi, dword [ebp - 0x128]
lea esi, [ebp - 0x120]
push 0x47
pop ecx
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx esi, word [ebp - 0xc]
xor ecx, ecx
cmp dword [ebp - 0x140], 0x21d8
push 2
sete cl
pop edx
mov dword [ebp - 0x124], ecx
cmp dword [ebp - 0x110], edx
jne 0x4042b8
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jne 0x4041f7
cmp dword [ebp - 0x118], ebx
jne 0x4042eb
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0x11
jmp 0x4042eb
cmp eax, 6
jne 0x40425d
mov eax, dword [ebp - 0x118]
cmp eax, 3
jne 0x404218
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xf
jmp 0x4042eb
cmp eax, edx
jne 0x40422d
xor ebx, ebx
cmp byte [ebp - 6], 1
setne bl
add ebx, 0xd
jmp 0x4042eb
cmp eax, 1
jne 0x404242
xor ebx, ebx
cmp byte [ebp - 6], al
setne bl
add ebx, 0xb
jmp 0x4042eb
test eax, eax
jne 0x4042eb
xor ebx, ebx
cmp byte [ebp - 6], 1
push 9
setne bl
pop eax
add ebx, eax
jmp 0x4042eb
cmp eax, 5
jne 0x4042ae
mov eax, dword [ebp - 0x118]
cmp eax, edx
jne 0x40429d
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40427c
push 8
jmp 0x404294
cmp byte [ebp - 6], 1
jne 0x404292
push 9
pop eax
cmp word [ebp - 0x158], ax
jne 0x404292
push 6
jmp 0x404294
push 7
mov ecx, dword [ebp - 0x124]
pop ebx
jmp 0x4042eb
cmp eax, 1
jne 0x4042a6
push 6
jmp 0x4042b5
test eax, eax
jne 0x4042eb
push 5
jmp 0x4042b5
cmp eax, 4
ja 0x4042eb
push 4
pop ebx
jmp 0x4042eb
cmp dword [ebp - 0x110], 1
jne 0x4042eb
cmp dword [ebp - 0x11c], 4
jne 0x4042eb
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x4042d9
xor ebx, ebx
inc ebx
jmp 0x4042eb
cmp eax, 0xa
jne 0x4042e2
mov ebx, edx
jmp 0x4042eb
push 3
cmp eax, 0x5a
pop edx
cmove ebx, edx
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x4042f7
mov dword [eax], ebx
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x404303
mov dword [eax], esi
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x40430f
mov dword [eax], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413b09
leave
ret
Function at 0x404806
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov esi, ecx
call fcn.00403fb1
xor edi, edi
push edi
push edi
push edi
push 5
call fcn.0040dbb3
mov ecx, eax
call fcn.0040e294
call fcn.00404ce8
test eax, eax
je 0x40483c
push 0x43839c
call fcn.004049c2
pop ecx
push edi
push edi
push edi
push 0x40442e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
call fcn.00404ce8
test eax, eax
je 0x404875
cmp dword [esi + 4], edi
mov ecx, str.sucess
mov eax, str.fail
cmovne eax, ecx
push eax
push str.CreateThread__s
call fcn.004049c2
pop ecx
pop ecx
cmp dword [esi], edi
je 0x4048aa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x4048aa
call fcn.00403075
mov ecx, eax
call fcn.00402f7c
test eax, eax
jne 0x4048a5
call fcn.00404ce8
test eax, eax
je 0x4048be
push str.LPC_Failed.
jmp 0x4048b8
xor eax, eax
inc eax
jmp 0x4048c0
call fcn.00404ce8
test eax, eax
je 0x4048be
push str.m_hShutdownEvent_Failed.
call fcn.004049c2
pop ecx
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404b8a
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x42f7bd
call fcn.004147bd
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.0040204d
push eax
lea ecx, [ebp - 0x10]
call fcn.00401814
xor esi, esi
lea ecx, [ebp - 0x10]
push esi
push 0x1a
push 0x200
mov dword [ebp - 4], esi
call fcn.00401bf2
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403500
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x404beb
push 0x437db4
mov ecx, edi
call fcn.00401a78
lea ecx, [esi - 0x10]
jmp 0x404c3b
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.00404e7f
cmp ax, 0x5c
je 0x404c11
mov esi, 0x437eb8
push esi
call fcn.00401941
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00401571
mov esi, str.6789Zip_
push esi
call fcn.00401941
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00401571
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
push esi
call fcn.00401217
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.004020f1
mov eax, edi
call fcn.00414797
ret

Function at 0x404ce8
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x42f82c
call fcn.004147bd
lea ecx, [ebp - 0x14]
call fcn.00404c48
and dword [ebp - 4], 0
push str.AppTest.txt
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040392f
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.004020f1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004020f1
mov eax, esi
call fcn.00414797
ret