joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011760
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1009900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov cl, byte [esi]
test cl, 0x10
jne 0x100117ea
cmp dword [esi + 0x14], 0
jne 0x100117ea
and cl, 2
mov edx, 0x10082dd4
test eax, eax
jne 0x10011797
mov eax, 0x100d23d4
push edi
test cl, cl
mov edi, 0x1009cb38
cmove edx, eax
mov eax, 0x1009b8b8
cmove eax, edi
push eax
push 0xc8
lea eax, [ebp - 0x194]
push eax
push dword [esi + 0xc]
push dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
test eax, eax
je 0x100117ea
lea eax, [ebp - 0x194]
mov ecx, esi
push eax
call fcn.10011460
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10050cdb
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.10050cdb
mov esp, ebp
pop ebp
ret 4
Function at 0x10020890
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x100a4ac8], 2
jne 0x100208b8
push 0
push dword [0x100a28a0]
mov byte [0x100fc775], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x100a4ac8], 0
ret

Function at 0x10020ba0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x1009900c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1009b8b3], 1
push esi
mov esi, ecx
je 0x10020da5
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x4c0], 0x104
push eax
lea edx, [ebp - 0x48c]
mov ecx, str.beep.wav
call fcn.1002e490
push 0xd20
push dword [0x100a0e64]
lea eax, [ebp - 0x84]
push 0x78
push str.https:__bigpackets.com_streamer_t.php_a_ib_ic_i
push 0x40
push eax
call fcn.10009b70
add esp, 0x1c
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x48c]
call fcn.1000c320
test al, al
jne 0x10020c2b
push str.Failed_to_download_translations__may_cause_crashing_n
push 0
call fcn.1002ec70
add esp, 8
lea eax, [ebp - 0x4bc]
push eax
lea eax, [ebp - 0x48c]
push eax
call fcn.1005a2ce
add esp, 8
test eax, eax
jne 0x10020da5
push ebx
push edi
mov ecx, esi
call fcn.10009fe0
lea ecx, [ebp - 0x4c0]
mov dword [ebp - 0x4c0], 0
mov ebx, eax
call fcn.10009fe0
mov edi, eax
xor esi, esi
nop dword [eax]
push esi
push 0x10084bc4
lea eax, [ebp - 0x4a4]
push 0xc
push eax
call fcn.10009b70
push 0x200
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.10052980
add esp, 0x1c
lea eax, [ebp - 0x48c]
push eax
push 0x100
lea eax, [ebp - 0x284]
push eax
push str.DD:D::D:D:D
lea eax, [ebp - 0x4a4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.DD:D::D:D:D
lea eax, [ebp - 0x284]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10020cf6
test dx, dx
je 0x10020cf2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10020cf6
add eax, 4
add ecx, 4
test dx, dx
jne 0x10020cd0
xor eax, eax
jmp 0x10020cfb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10020d67
cmp edi, ebx
je 0x10020d8b
lea eax, [ebp - 0x48c]
push eax
push 0x100
lea eax, [ebp - 0x284]
push eax
push str.DD:D::D:D:D
lea eax, [ebp - 0x4a4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, str.DD:D::D:D:D
lea ecx, [ebp - 0x284]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10020d5e
test dx, dx
je 0x10020d5a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10020d5e
add ecx, 4
add eax, 4
test dx, dx
jne 0x10020d38
xor eax, eax
jmp 0x10020d63
sbb eax, eax
or eax, 1
test eax, eax
je 0x10020d8b
lea edx, [ebp - 0x284]
mov dword [ebp - 0x4c0], esi
lea ecx, [ebp - 0x4c0]
call fcn.10020b10
inc esi
cmp esi, 0x400
jl 0x10020c70
pop edi
pop ebx
mov byte [0x1009b8b3], 1
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10050cdb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.10050cdb
mov esp, ebp
pop ebp
ret
Function at 0x10020dc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1009900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x100a0e68
push str._wsTooltips.ini
lea eax, [ebp - 0x40c]
mov esi, ecx
push 0x104
push eax
call fcn.10009b70
add esp, 0x10
mov ecx, esi
call fcn.10009fe0
xor edi, edi
mov esi, eax
mov dword [ebp - 0x414], esi
cmp dword [0x100a289c], edi
jle 0x10020f03
push ebx
mov ebx, dword [edi*4 + 0x1009da18]
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x10020e37
push ecx
mov edx, 0x10082f14
call fcn.100106e0
add esp, 4
test al, al
je 0x10020ef5
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.10052980
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0x10082f14
push dword [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
mov edx, 0x10082f14
lea ecx, [ebp - 0x204]
call fcn.100106e0
add esp, 4
test al, al
jne 0x10020ef5
mov eax, dword [sym.imp.CORE.DLL_Ordinal_1092]
push 0x100901c4
push 0x204
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
test esi, esi
je 0x10020eb7
push 0x200
lea ecx, [esi + 4]
push 0
push ecx
call fcn.10052980
add esp, 0xc
jmp 0x10020eb9
xor esi, esi
mov eax, dword [0x100fc76c]
lea edx, [esi + 4]
lea ecx, [ebp - 0x204]
mov dword [esi], ebx
mov dword [ebp - 0x410], 0x100
mov dword [eax*4 + 0x10142850], esi
lea eax, [ebp - 0x410]
push eax
call fcn.100105f0
mov esi, dword [ebp - 0x414]
add esp, 4
inc dword [0x100fc76c]
inc edi
cmp edi, dword [0x100a289c]
jl 0x10020e13
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10050cdb
mov esp, ebp
pop ebp
ret

Function at 0x100210e0
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, ecx
call fcn.10021000
mov ecx, esi
pop esi
jmp fcn.10020ba0
Function at 0x1002e600
Capabilities:
Create directory

Disassembly:
mov eax, dword [0x100a0c38]
test eax, eax
je 0x1002e72b
cmp word [eax], 0
je 0x1002e72b
push eax
push str._wsA.log
push 0x104
push 0x100a1480
call fcn.10009b70
push dword [0x100a0c38]
push str._wsError.log
push 0x104
push 0x100a1270
call fcn.10009b70
push dword [0x100a0c38]
push str._wsA_All.log
push 0x104
push 0x100a0c40
call fcn.10009b70
push dword [0x100a0c38]
push str._wsError_All.log
push 0x104
push 0x100a48b8
call fcn.10009b70
add esp, 0x40
mov ecx, 0x100a1480
call fcn.1000ca40
mov ecx, 0x100a1270
call fcn.1000ca40
push dword [0x100a0c38]
mov byte [0x100fc6de], 1
push str._wsSettings_kf1.ini
push 0x104
push 0x1009cb38
call fcn.10009b70
push dword [0x100a0c38]
push str._wsLogin.ini
push 0x104
push 0x1009b8b8
call fcn.10009b70
push dword [0x100a0c38]
push str._wskitterengine_
push 0x104
push 0x100a0e68
call fcn.10009b70
push 0x100a0e68
push str._InitializeDirectories__g_DirKitterEngine_ws_n
call fcn.1002ec10
add esp, 0x38
push 0
push 0x100a0e68
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1002e728
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1002e728
push 0x100a0e68
push str.Failed_to_create_directory__ws__this_program_doesnt_have_access__run_as_admin__n
push 0
call fcn.1002ec70
add esp, 0xc
mov al, 1
ret
push str._InitializeDirectories__No_Directory..._n
push 0
call fcn.1002ec70
add esp, 8
xor al, al
ret
Function at 0x1004da30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007897b
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x1009900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10052980
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1004dc45
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10052980
lea eax, [ebp - 0x454]
mov dword [ebp - 0x454], 0x104
push eax
lea edx, [ebp - 0x420]
lea ecx, [ebp - 0x218]
call fcn.100105f0
add esp, 0x10
lea ecx, [ebp - 0x218]
mov edx, str.AppdataLocalMicrosoftWindowsTemporary_Internet_FilesContent
call fcn.100107d0
mov edx, str.AppdataLocalMicrosoftWindowsCaches
lea ecx, [ebp - 0x420]
call fcn.100107d0
xor eax, eax
mov dword [ebp - 0x438], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
lea edx, [ecx + 2]
mov word [ebp - 0x438], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004db20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.1004e8b0
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.1004d5e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x424]
cmp ecx, 8
jb 0x1004db9b
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004db91
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004dc5e
push ecx
push edx
call fcn.10051409
add esp, 8
xor eax, eax
mov dword [ebp - 0x450], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x450], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004dbd0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.1004e8b0
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 1
call fcn.1004d5e0
mov ecx, dword [ebp - 0x43c]
cmp ecx, 8
jb 0x1004dc40
mov edx, dword [ebp - 0x450]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004dc36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004dc63
push ecx
push edx
call fcn.10051409
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10050cdb
mov esp, ebp
pop ebp
ret
call fcn.1005e21b
call fcn.1005e21b
int3
Function at 0x1004e600
Capabilities:
Terminate thread

Disassembly:
cmp byte [0x100fc776], 0
je 0x1004e60c
xor eax, eax
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
mov byte [0x100fc776], 1
call edi
push 0x14d
mov byte [0x100a268e], 1
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push dword [0x1009ce00]
call esi
push 0x14d
call edi
push 0x14d
mov byte [0x100fc6df], 1
call edi
push 0
push 0x1000f8b0
call esi
push 0x14d
call edi
mov eax, dword [0x100a4ac8]
test eax, eax
je 0x1004e688
cmp eax, 1
jne 0x1004e677
call fcn.10020840
jmp 0x1004e681
cmp eax, 2
jne 0x1004e681
call fcn.10020890
push 0x14d
call edi
mov eax, dword [0x1009cdb4]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1004e6ba
push 4
push eax
call esi
test eax, eax
jne 0x1004e6ba
mov ecx, dword [0x1009cdb4]
test ecx, ecx
je 0x1004e6b0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x1009cdb4], 0
mov eax, dword [0x100fc770]
test eax, eax
je 0x1004e718
push 4
push eax
call esi
test eax, eax
jne 0x1004e718
mov edx, dword [0x101427cc]
test edx, edx
je 0x1004e70e
cmp edx, 0xffffffff
je 0x1004e70e
mov esi, dword [0x100fc7c0]
test esi, esi
je 0x1004e6f8
mov ecx, dword [0x100fc770]
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [0x101427cc]
mov ecx, dword [0x100fc770]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [0x101427cc], 0xffffffff
mov dword [0x100fc770], 0
call fcn.10020f20
call fcn.1004f800
cmp dword [0x10144064], 0
je 0x1004e740
push 0x14d
call edi
push 0
push dword [0x10144064]
call dword [sym.imp.KERNEL32.dll_FreeLibraryAndExitThread]
pop edi
mov eax, 1
pop esi
ret

Function at 0x1004e750
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1004e777
mov eax, dword [ebp + 0x10]
push 0
push 0
push dword [ebp + 8]
mov dword [0x100a0c38], eax
push 0x1004e780
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x1004f060
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x100a4ae4]
test eax, eax
je 0x1004f07c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x1004f0cf
mov eax, dword [eax]
test eax, eax
jne 0x1004f070
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1004f0cd
push esi
push edi
xor edi, edi
mov dword [edx + 8], 0
lea ecx, [edx + 0x20]
lea esi, [edi + 0x20]
mov dword [ecx], edi
mov eax, ecx
mov dword [edx + 4], ecx
add esi, 0x20
add ecx, 0x20
mov edi, eax
cmp esi, 0xfe0
jbe 0x1004f0a7
mov eax, dword [0x100a4ae4]
pop edi
mov dword [edx], eax
mov dword [0x100a4ae4], edx
pop esi
mov eax, edx
ret
Function at 0x1004f3f0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1009900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1004f4d1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1004f4ca
push edi
cmp dword [ebp - 0x20], 0x10
jb 0x1004f4af
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1004f4af
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1004f4af
mov eax, dword [esi]
test eax, eax
jne 0x1004f47a
push 0x200
push eax
push dword [0x100a4ae0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1004f4c9
lea edi, [esi + 8]
jmp 0x1004f4a5
mov ecx, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], ecx
jb 0x1004f4a5
shl ecx, 3
push ecx
push eax
push 0
push dword [0x100a4ae0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1004f4c9
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [edi]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx*4], ecx
inc dword [edi]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1004f434
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10050cdb
mov esp, ebp
pop ebp
ret

Function at 0x1004f4f0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.1004f3f0
cmp dword [edi], 0
je 0x1004f55c
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1004f55b
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1004f554
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.1004f300
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x1004f521
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1004f570
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x1004f5bc
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1004f5ab
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1004f5a4
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x1004f581
pop edi
push dword [ebx]
push 0
push dword [0x100a4ae0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x1004f5c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x100a4ad4]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1004f60d
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1004f62e
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1004f64f
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1004f64f
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1004f649
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1004f64f
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [esi + 0x14]
and bl, 1
mov al, bl
and cl, 0xfd
add al, al
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop edi
mov byte [esi + 0x14], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10068d91
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10068a0e

Function at 0x1006e542
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006e3b8

Function at 0x10073d20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10073d4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10073d4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x105e3b20
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x105e3d0d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x363000]
push edi
or ebp, 0xffffffff
jmp 0x105e3b4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x105e3b51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105e3b40
mov eax, 1
add ebx, ebx
jne 0x105e3b63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x105e3b74
jne 0x105e3b93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105e3b93
dec eax
add ebx, ebx
jne 0x105e3b80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x105e3b58
add ebx, ebx
jne 0x105e3b8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x105e3be5
xor ecx, ecx
sub eax, 3
jb 0x105e3bab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x105e3c1a
sar eax, 1
mov ebp, eax
jmp 0x105e3bb6
add ebx, ebx
jne 0x105e3bb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105e3b84
inc ecx
add ebx, ebx
jne 0x105e3bc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105e3b84
add ebx, ebx
jne 0x105e3bd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x105e3bc6
jne 0x105e3be2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x105e3bc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x105e3c04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x105e3bf6
jmp 0x105e3b46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x105e3c04
add edi, ecx
jmp 0x105e3b46
pop esi
mov edi, esi
mov ecx, 0x6efb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x105e3c22
cmp byte [edi], 0x28
jne 0x105e3c22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x105e3c27
lea edi, [esi + 0x5d8000]
mov eax, dword [edi]
or eax, eax
je 0x105e3c9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5f038c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5f04bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x105e3c54
mov ecx, edi
jns 0x105e3c83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5f04c0]
or eax, eax
je 0x105e3c99
mov dword [ebx], eax
add ebx, 4
jmp 0x105e3c71
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x105e3cd0
cmp al, 0xef
ja 0x105e3cc3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x105e3ca5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x105e3cb2
mov ebp, dword [esi + 0x5f04c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x105e3d04
sub esp, 0xffffff80
jmp 0x10106b02