joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e438
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x4c0cc8
mov dword [0x4c0cc8], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [0x4c0ccc], 5
je 0x40e460
xor eax, eax
leave
ret
mov eax, dword [0x4c0cd0]
push ebx
push edi
xor edi, edi
sub eax, edi
je 0x40e47b
dec eax
jne 0x40e4fc
mov ebx, 0x39000
jmp 0x40e480
mov ebx, 0x30000
push esi
push 0x4a874c
lea eax, [ebp - 8]
push eax
call dword [fcn.004c0c94]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov esi, 0x4c0df0
push esi
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [fcn.004c0c90]
cmp eax, 0xc0000022
jne 0x40e4f7
lea eax, [ebp - 0x20]
push eax
push 0x60000
push esi
call dword [fcn.004c0c90]
push dword [0x4c0df0]
call fcn.0040e36a
pop ecx
push dword [0x4c0df0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push 6
push esi
call dword [fcn.004c0c90]
cmp eax, edi
pop esi
jge 0x40e500
xor eax, eax
jmp 0x40e524
push 0x1000
push ebx
push edi
push 6
push dword [0x4c0df0]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [0x4c0dec], eax
neg eax
sbb eax, eax
and eax, dword [0x4c0df0]
pop edi
pop ebx
leave
ret

Function at 0x40e528
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
shr eax, 0x16
mov eax, dword [ecx + eax*4]
test al, 1
jne 0x40e541
xor eax, eax
pop edi
ret
test al, al
push esi
jns 0x40e554
mov esi, eax
xor esi, edi
and esi, 0x3fffff
xor esi, eax
jmp 0x40e59c
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push dword [0x4c0df0]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov ecx, edi
shr ecx, 0xc
and ecx, 0x3ff
mov ecx, dword [eax + ecx*4]
test ecx, 1
jne 0x40e589
xor eax, eax
jmp 0x40e59e
mov esi, ecx
xor esi, edi
and esi, 0xfff
push eax
xor esi, ecx
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, esi
pop esi
pop edi
ret

Function at 0x40e5a1
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 8]
push dword [0x4c0dec]
call fcn.0040e528
pop ecx
pop ecx
push 0x1000
mov esi, eax
and eax, 0xfffff000
push eax
push 0
push 6
push dword [0x4c0df0]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
test eax, eax
jne 0x40e5d6
pop esi
ret
shr esi, 2
and esi, 0x3ff
mov esi, dword [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, esi
pop esi
ret

Function at 0x40e6c4
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40e6e2
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, esi
pop esi
ret
Function at 0x40e7b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push 0xc0000000
push 0x4a878c
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40e810
push esi
push 2
push ebx
push ebx
push edi
call fcn.0043908b
mov esi, dword [ebp + 8]
add esp, 0x10
cmp byte [esi], bl
je 0x40e808
push ebx
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40e9a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x80000000
push dword [ebp + 8]
call fcn.0040e91f
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x40ea37
push esi
push eax
call fcn.0040e97e
mov esi, dword [ebp + 0x10]
test esi, esi
pop ecx
mov dword [ebp - 8], eax
je 0x40e9d2
mov dword [esi], eax
jmp 0x40e9d5
lea esi, [ebp - 8]
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40e9fb
add eax, 0x10
push eax
lea ecx, [ebp + 0xc]
call fcn.0043dc74
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
call fcn.00437e1a
test edi, edi
je 0x40ea2b
and dword [ebp + 0xc], 0
push 0
lea eax, [ebp + 0xc]
push eax
push dword [esi]
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x40ea1a
xor eax, eax
push 6
mov dword [esi], eax
add eax, edi
push 0
push eax
call fcn.00492e00
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
jmp 0x40ea3a
mov edi, dword [ebp + 0xc]
mov eax, edi
pop edi
leave
ret

Function at 0x40f0df
Capabilities:
Parse pe header

Disassembly:
cmp dword [esp + 8], 0x40
jb 0x40f0f4
mov eax, dword [esp + 4]
mov dword [ecx + 0x10], eax
cmp word [eax], 0x5a4d
je 0x40f0f8
xor eax, eax
jmp 0x40f163
mov edx, dword [eax + 0x3c]
push esi
lea esi, [edx + 0xf8]
cmp dword [esp + 0xc], esi
jae 0x40f10c
xor eax, eax
jmp 0x40f162
add eax, edx
mov dword [ecx + 0x14], eax
cmp dword [eax], 0x4550
jne 0x40f108
mov dx, word [eax + 0x16]
test dh, 0x20
je 0x40f108
test dl, 2
je 0x40f108
cmp word [eax + 0x14], 0xe0
jne 0x40f108
mov esi, dword [ecx + 0x14]
add eax, 0xf8
xor edx, edx
mov dword [ecx + 0x18], eax
cmp word [esi + 6], dx
jbe 0x40f15f
add eax, 0x10
mov esi, dword [eax + 4]
add esi, dword [eax]
cmp esi, dword [esp + 0xc]
ja 0x40f108
mov esi, dword [ecx + 0x14]
movzx esi, word [esi + 6]
inc edx
add eax, 0x28
cmp edx, esi
jl 0x40f145
xor eax, eax
inc eax
pop esi
ret 8
Function at 0x40f1d7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [0x4c0eb0], ebx
je 0x40f24b
cmp byte [ebp + 8], bl
je 0x40f24b
cmp dword [0x4c0fac], ebx
jle 0x40f24b
mov eax, dword [0x4c0fa8]
cmp word [eax], bx
je 0x40f24b
test byte [0x4c1330], 2
push eax
je 0x40f228
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [0x4c0fa8]
push dword [0x4c0eb0]
call dword [sym.imp.KERNEL32.DLL_WriteConsoleW]
jmp 0x40f24b
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
push dword [0x4c0fa8]
mov dword [ebp - 4], ebx
push dword [0x4c0eb0]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [0x4c0fb0]
dec eax
cmp eax, 0x1ffff
jb 0x40f271
push 0x10002
mov ecx, 0x4c0fa8
mov dword [0x4c0fb0], 0x10000
call fcn.0043ddc3
mov eax, dword [0x4c0fa8]
mov word [eax], bx
mov dword [0x4c0fac], ebx
pop ebx
leave
ret

Function at 0x40f5a8
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
cmp dword [ebp + 0x10], esi
je 0x40f5e0
cdq
jmp 0x40f5f3
cmp dword [ebp + 0xc], esi
je 0x40f5ed
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x40f5f3
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x40fa1a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.DLL_GetWindowLongW]
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.DLL_GetParent]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
xor edi, edi
push eax
push ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.USER32.DLL_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.USER32.DLL_ScreenToClient]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.DLL_OffsetRect]
push ebx
call dword [sym.imp.USER32.DLL_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + 0x1b]
push eax
lea ecx, [ebp + 8]
call fcn.0043dd9c
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xb]
push ecx
push eax
push ebx
mov dword [ebp - 0x18], eax
mov word [eax], di
call dword [sym.imp.USER32.DLL_GetWindowTextW]
mov eax, dword [ebp + 8]
push edi
push edi
push 0x31
mov word [eax + esi*2 + 0x14], di
mov esi, dword [sym.imp.USER32.DLL_SendMessageW]
push ebx
call esi
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.USER32.DLL_ShowWindow]
cmp dword [ebp + 0x10], edi
jge 0x40fae6
push ebx
call dword [sym.imp.USER32.DLL_DestroyWindow]
movzx edx, word [ebp + 0x10]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
push edi
push dword [0x4c0ea0]
push edx
push dword [ebp - 4]
push eax
push ecx
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp + 0xc]
push edi
push 0x4a6968
push dword [ebp - 0x10]
call dword [sym.imp.USER32.DLL_CreateWindowExW]
push 1
push dword [ebp - 0x14]
mov edi, eax
push 0x30
push edi
call esi
push dword [ebp - 0x18]
push edi
call dword [sym.imp.USER32.DLL_SetWindowTextW]
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0xb1
push edi
call esi
lea ecx, [ebp + 8]
call fcn.00437e1a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fdc6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x325
lea ecx, [ebp - 8]
call fcn.0043dd9c
mov esi, dword [ebp - 8]
push esi
push 0x324
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.DLL_CharUpperW]
push ebx
call edi
push esi
call edi
cmp word [esi], 0
je 0x40fe5a
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.0040f5f6
cmp eax, dword [ebp - 0xc]
pop ecx
jb 0x40fe49
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
dec eax
dec eax
je 0x40fe43
dec eax
jne 0x40fe49
mov ax, word [esi]
mov word [edi + 2], ax
mov cx, word [esi]
xor eax, eax
inc eax
cmp cx, word [ebx]
mov dword [ebp - 4], eax
jb 0x40fe49
mov esi, eax
jmp 0x40fe5d
mov ax, word [esi]
mov word [edi], ax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x40fe10
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00437e1a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x410213
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x410244
xor eax, eax
jmp 0x4102b3
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x48]
push eax
push ebx
mov dword [ebp - 8], edi
call esi
cmp dword [ebp - 4], 0x40
jne 0x4102a8
cmp word [ebp - 0x48], 0x5a4d
jne 0x4102a8
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x4102a8
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x140]
push eax
push ebx
call esi
cmp dword [ebp - 4], edi
jne 0x4102a8
cmp dword [ebp - 0x140], 0x4550
jne 0x4102a8
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x410309
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x41033f
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x410338
mov eax, dword [esp + 0x10]
test eax, eax
je 0x410338
and dword [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
ret
Function at 0x410341
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x20a
lea ecx, [ebp - 4]
call fcn.0043dd9c
mov eax, dword [ebp - 4]
mov word [eax], 0x20
mov eax, dword [ebp - 4]
and word [eax + 2], 0
mov eax, dword [ebp - 4]
push 0x208
add eax, 2
push eax
push 0x4a8b80
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push 0x4a8b4c
lea ecx, [ebp - 4]
call fcn.0043ddea
mov bl, byte [ebp + 0xc]
test bl, 0x20
mov esi, 0x4a8b3c
je 0x41039c
mov esi, 0x4a7628
test bl, 0x10
je 0x4103a6
mov esi, 0x4a8b2c
test bl, 2
je 0x4103b0
mov esi, 0x4a8b1c
test bl, 4
je 0x4103ba
mov esi, 0x4a8b0c
test bl, 8
je 0x4103c4
mov esi, 0x4a8b00
test bl, 0x40
je 0x4103ce
mov esi, 0x4a8aec
test bl, bl
jns 0x4103d7
mov esi, 0x4a8ae0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push esi
lea ecx, [ebp - 4]
mov edi, eax
call fcn.0043ddea
push 0x4a7360
lea ecx, [ebp - 4]
call fcn.0043ddea
cmp dword [ebp + 8], 0
je 0x410409
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0043ddea
push dword [ebp - 4]
mov esi, 0x4c0fb8
mov ecx, esi
call fcn.0042f370
push 0x4a8ac4
lea ecx, [ebp - 8]
call fcn.00446497
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2]
push eax
lea ecx, [ebp - 8]
call fcn.0043ddea
test bl, 0x70
je 0x410443
push dword [ebp - 8]
mov ecx, esi
call fcn.0042f370
lea ecx, [ebp - 8]
call fcn.00437e1a
lea ecx, [ebp - 4]
call fcn.00437e1a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410508
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x4a8c7c
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.DLL_wsprintfW]
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov edi, 0x4c0fb8
movsx ax, byte [ebp - 2]
add eax, 0x41
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 5
jne 0x4105a2
movsx ebx, byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push 0x4a8be0
push eax
call esi
add esp, 0x10
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00456701
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push 0x4a8bd0
push eax
call esi
add esp, 0x10
inc byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0043d658
inc byte [ebp - 2]
cmp byte [ebp - 2], 0x1a
jl 0x410532
cmp byte [ebp - 1], 0
pop edi
pop esi
pop ebx
jle 0x4105c6
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push 0x4a8bb4
call fcn.0042d06c
leave
ret
Function at 0x410a08
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
add dword [ebp + 8], 2
push esi
push edi
lea ecx, [ebp - 8]
call fcn.0043dd7e
lea ecx, [ebp - 4]
call fcn.0043dd7e
push 0x2c
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.DLL_StrRChrW]
mov edi, eax
cmp edi, esi
je 0x410aea
push ebx
push 1
push esi
lea eax, [ebp - 8]
mov word [edi], si
push eax
push dword [ebp + 8]
mov esi, 0x4c0fb8
mov ecx, esi
call fcn.0044c8eb
mov ebx, dword [ebp - 8]
push 1
push 0
lea eax, [ebp - 4]
push eax
add edi, 2
push edi
mov ecx, esi
mov dword [ebp + 8], ebx
call fcn.0044c8eb
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
je 0x410aa1
lea ecx, [ebp + 8]
call fcn.0040e2c3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
push eax
push dword [ebp + 8]
push 1
push esi
push 0x4a7a30
push 0x80000002
jmp 0x410add
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
call esi
add eax, eax
push eax
push ebx
push 1
push 0x4a8e3c
mov edi, 0x4a8de0
push edi
mov ebx, 0x80000002
push ebx
call fcn.00439000
add esp, 0x18
push dword [ebp - 0xc]
call esi
shl eax, 1
push eax
push dword [ebp - 0xc]
push 1
push 0x4a8db0
push edi
push ebx
call fcn.00439000
add esp, 0x18
xor esi, esi
pop ebx
jmp 0x410aed
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.00437e1a
lea ecx, [ebp - 8]
call fcn.00437e1a
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x411027
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jge 0x411038
call fcn.00410fcc
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0xc]
jg 0x41104c
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
dec eax
js 0x411058
inc eax
xor word [esi], di
inc esi
inc esi
dec eax
jne 0x411050
mov eax, edi
pop edi
shl eax, 0x10
pop esi
ret

Function at 0x4111e9
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x4c0e90], 0
jne 0x41120c
push 0
push dword [0x4c0ea0]
push 0x4110e8
push 0xd
call dword [sym.imp.USER32.DLL_SetWindowsHookExW]
mov dword [0x4c0e90], eax
ret

Function at 0x41137d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
jne 0x411398
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov esi, eax
push esi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x22c], 0x22c
mov dword [ebp - 0x228], ebx
mov ecx, 0x89
lea edi, [ebp - 0x224]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x4113e7
cmp dword [ebp - 0x224], esi
je 0x4113ed
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4113d2
jmp 0x4113f3
mov ebx, dword [ebp - 0x214]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
mov esi, ebx
jg 0x411398
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x41168b
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push edi
je 0x4116af
cmp dword [ebp + 0xc], 2
jne 0x4116de
mov edi, dword [ebp + 0x14]
push 0x104
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
jmp 0x4116b2
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
je 0x4116c2
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 2]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push edi
push esi
mov ecx, 0x4c0fb8
call fcn.0043d658
pop esi
pop edi
pop ebp
ret

Function at 0x4116e1
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0xc11
lea ecx, [ebp - 4]
call fcn.0043dd9c
push 0x822
push 0
push dword [ebp - 4]
call fcn.00492e00
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
lea esi, [eax + 0x410]
and word [esi], 0
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], eax
lea edi, [ebx + 2]
je 0x411728
mov edi, dword [ebp + 0xc]
and dword [ebp - 8], 0
push 0x104
push esi
push edi
mov dword [ebp - 0xc], 0x410
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp word [esi], 0
je 0x411754
push esi
push ebx
mov ecx, 0x4c0fb8
call fcn.0043d658
jmp 0x411787
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
push 0x4a7de8
push 0x80000001
call fcn.00438f9c
add esp, 0x18
test eax, eax
jne 0x411787
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
push dword [ebp - 8]
push ebx
call fcn.0041168b
add esp, 0x14
lea ecx, [ebp - 4]
call fcn.00437e1a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411794
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x411
lea ecx, [ebp - 4]
mov byte [0x4c0fc3], 1
call fcn.0043dd9c
push 0x822
push 0
push dword [ebp - 4]
call fcn.00492e00
mov edi, dword [ebp - 4]
add esp, 0xc
push 0x104
add edi, 0x410
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0x4a9160
push 0x1000
mov esi, 0x4c0fb8
push esi
call fcn.00440266
push 0x4a9148
push 0x5000
push esi
call fcn.00440266
push 0x4a9128
push 0x100
push esi
call fcn.00440266
mov esi, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
add esp, 0x24
push edi
push 0x4a911a
call esi
push edi
mov ebx, 0x4c0fb8
push 0x4a9118
mov ecx, ebx
call fcn.0043d658
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.DLL_StrRChrW]
xor edi, edi
cmp eax, edi
je 0x41185b
lea edi, [eax + 2]
push edi
push 0x4a9106
call esi
push edi
push 0x4a9104
mov ecx, ebx
call fcn.0043d658
xor edi, edi
push edi
push edi
push 0x4a86e8
call fcn.004116e1
push edi
push edi
push 0x4a86fc
call fcn.004116e1
push edi
push edi
push 0x4a86a8
call fcn.004116e1
push edi
push edi
push 0x4a8698
call fcn.004116e1
push edi
push edi
push 0x4a8684
call fcn.004116e1
push edi
push 0x4a90ec
push 0x4a86d0
call fcn.004116e1
add esp, 0x48
push edi
push 0x4a90e0
push 0x4a90cc
call fcn.004116e1
push edi
push edi
push 0x4a86bc
call fcn.004116e1
push 0x4a9078
push 0x4a9064
push 0x4a8668
call fcn.004116e1
add esp, 0x24
lea ecx, [ebp - 4]
call fcn.00437e1a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411946
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.004931e0
push esi
mov esi, 0x4bf2c4
and word [ebp - 0x14b8], 0
mov edx, dword [esi]
mov word [ebp - 0x64], 0x26
lea ecx, [ebp - 0x62]
movsx ax, byte [edx]
mov word [ecx], ax
inc ecx
inc ecx
inc edx
test ax, ax
jne 0x41196c
push 0xa28
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x62]
push eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x4c0fb8
call fcn.0043d658
add esi, 4
cmp esi, 0x4bf2d8
jl 0x411959
pop esi
leave
ret