joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f7a1
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
xor esi, esi
cmp word [eax], si
push edi
je 0x40f7ef
cmp word [eax + 2], si
je 0x40f7ef
cmp word [eax + 4], si
je 0x40f7ef
cmp word [eax + 6], si
je 0x40f7ef
cmp word [eax + 8], si
je 0x40f7ef
cmp word [eax + 0xa], si
je 0x40f7ef
cmp word [eax + 0xc], si
je 0x40f7ef
cmp word [eax + 0xe], si
je 0x40f7ef
lea ecx, [eax + 0x10]
jmp 0x40f7ea
cmp word [ecx], 0x5c
jne 0x40f7e8
mov word [ecx], 0x2f
inc ecx
inc ecx
cmp word [ecx], si
jne 0x40f7dd
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov edi, eax
cmp edi, esi
je 0x40f807
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
ret

Function at 0x40f8f7
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 0x4bea1c
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f953
push esi
push 2
push ebx
push ebx
push edi
call fcn.0043edf6
mov esi, dword [ebp + 8]
add esp, 0x10
cmp byte [esi], bl
je 0x40f94b
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 0x40fae3
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.0040fa62
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x40fb7a
push esi
push eax
call fcn.0040fac1
mov esi, dword [ebp + 0x10]
test esi, esi
pop ecx
mov dword [ebp - 8], eax
je 0x40fb15
mov dword [esi], eax
jmp 0x40fb18
lea esi, [ebp - 8]
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x40fb3e
add eax, 0x10
push eax
lea ecx, [ebp + 0xc]
call fcn.00443e04
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
call fcn.0043db4f
test edi, edi
je 0x40fb6e
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 0x40fb5d
xor eax, eax
push 6
mov dword [esi], eax
add eax, edi
push 0
push eax
call fcn.004aa020
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
jmp 0x40fb7d
mov edi, dword [ebp + 0xc]
mov eax, edi
pop edi
leave
ret
Function at 0x4103a8
Capabilities:
Parse pe header

Disassembly:
cmp dword [esp + 8], 0x40
jb 0x4103bd
mov eax, dword [esp + 4]
mov dword [ecx + 0x10], eax
cmp word [eax], 0x5a4d
je 0x4103c1
xor eax, eax
jmp 0x410436
mov edx, dword [eax + 0x3c]
push esi
lea esi, [edx + 0xf8]
cmp dword [esp + 0xc], esi
jae 0x4103d5
xor eax, eax
jmp 0x410435
add edx, eax
mov dword [ecx + 0x14], edx
cmp dword [edx], 0x4550
jne 0x4103d1
mov si, word [edx + 0x16]
test si, 0x2002
movzx eax, si
je 0x4103d1
test byte [edx + 0x16], 2
je 0x4103d1
cmp word [edx + 0x14], 0xe0
jne 0x4103d1
add edx, 0xf8
push edi
mov edi, dword [ecx + 0x14]
xor esi, esi
mov dword [ecx + 0x18], edx
cmp word [edi + 6], si
jbe 0x410434
add edx, 0x10
mov edi, dword [edx + 4]
add edi, dword [edx]
cmp edi, dword [esp + 0x10]
ja 0x410432
mov edi, dword [ecx + 0x14]
movzx edi, word [edi + 6]
inc esi
add edx, 0x28
cmp esi, edi
jl 0x410416
jmp 0x410434
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x4104aa
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
xor esi, esi
cmp dword [0x4d7bdc], esi
setne bl
test bl, bl
je 0x41050a
push 0x28
push 8
push dword [0x4d81f4]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x4104de
push 2
call fcn.00443c92
cmp eax, 4
pop ecx
je 0x4104bb
mov dword [esi + 4], 0xaa55
and dword [esi + 4], 0
mov dword [esi], 0x20
or dword [esi + 0x1c], 0xffffffff
add esi, 8
push esi
mov dword [esi + 0x10], 0xfff80000
push dword [0x4d7bdc]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x410514
mov dword [eax], esi
pop esi
mov al, bl
pop ebx
ret

Function at 0x410519
Capabilities:
Get thread local storage value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov edi, 0x4d7cf8
jne 0x410544
push dword [0x4d7bdc]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
cmp eax, ebx
je 0x41054d
cmp dword [eax], ebx
je 0x41054d
mov edi, eax
jmp 0x41054d
cmp dword [ebp + 0xc], 0xffffffff
je 0x41054d
mov edi, dword [ebp + 0xc]
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x4105a2
cmp byte [ebp + 8], bl
je 0x4105a2
cmp dword [esi + 4], ebx
jle 0x4105a2
mov eax, dword [esi]
cmp word [eax], bx
je 0x4105a2
test byte [0x4d8488], 2
push eax
je 0x410587
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_WriteConsoleW]
jmp 0x4105a2
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
lea ecx, [ebp + 0xc]
push ecx
add eax, eax
push eax
push dword [esi]
mov dword [ebp + 0xc], ebx
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esi + 8]
dec eax
cmp eax, 0x1ffff
jb 0x4105c0
push 0x10002
mov ecx, esi
mov dword [esi + 8], 0x10000
call fcn.00443fa0
mov eax, dword [esi]
mov word [eax], bx
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebx
leave
ret
Function at 0x41090b
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 0x410943
cdq
jmp 0x410956
cmp dword [ebp + 0xc], esi
je 0x410950
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x410956
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0x410981
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x4d7bdc]
mov edi, 0x4d7cf8
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x4109ab
cmp dword [eax], ebx
je 0x4109ab
mov dword [ebp - 4], eax
mov edi, eax
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x410a6f
push 0x4d8d24
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [edi], ebx
je 0x410a64
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0xc96
jge 0x4109e9
add eax, 0x10c96
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00443fa0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea eax, [ecx + eax*2 + 0x1000]
mov word [eax], bx
mov edi, dword [ebp + 0xc]
cmp edi, 0xffff
ja 0x410a1a
push 0x400
push eax
push dword [ebp + 0xc]
mov edi, eax
push dword [0x4d7c84]
call dword [sym.imp.USER32.DLL_LoadStringW]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea eax, [ecx + eax*2]
lea ecx, [ebp + 0x10]
push ecx
push edi
push 0x7fd
push eax
call fcn.004aa391
add esp, 0x10
cmp eax, ebx
jge 0x410a3b
xor eax, eax
add dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov word [ecx + eax*2], bx
cmp dword [esi + 4], 0x10000
jg 0x410a58
cmp byte [0x4d7d11], bl
je 0x410a64
push dword [ebp - 4]
push 1
call fcn.00410519
pop ecx
pop ecx
push 0x4d8d24
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410a74
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x4d7bdc]
mov edi, 0x4d7cf8
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x410a94
cmp dword [eax], ebx
je 0x410a94
mov edi, eax
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x410b25
push 0x4d8d24
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [edi], ebx
je 0x410b1a
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0x896
jge 0x410ace
add eax, 0x10896
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00443fa0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea eax, [ecx + eax*2]
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x18]
push 0x7fd
push eax
call fcn.004aa391
add esp, 0x10
cmp eax, ebx
jge 0x410af3
xor eax, eax
add dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov word [ecx + eax*2], bx
cmp dword [esi + 4], 0x10000
jg 0x410b10
cmp byte [0x4d7d11], bl
je 0x410b1a
push edi
push 1
call fcn.00410519
pop ecx
pop ecx
push 0x4d8d24
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret
Function at 0x410c99
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.00443f79
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 0x410d65
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 [0x4d7fa0]
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 0x4bece4
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.0043db4f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411082
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.00443f79
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 0x411116
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.00410959
cmp eax, dword [ebp - 0xc]
pop ecx
jb 0x411105
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
dec eax
dec eax
je 0x4110ff
dec eax
jne 0x411105
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 0x411105
mov esi, eax
jmp 0x411119
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 0x4110cc
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0043db4f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4116b0
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 0x4116e1
xor eax, eax
jmp 0x411750
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 0x411745
cmp word [ebp - 0x48], 0x5a4d
jne 0x411745
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x411745
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 0x411745
cmp dword [ebp - 0x140], 0x4550
jne 0x411745
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 0x411959
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 0x41198f
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x411988
mov eax, dword [esp + 0x10]
test eax, eax
je 0x411988
and dword [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
ret
Function at 0x411a41
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 1
jne 0x411a84
push 0x5c
push 0
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.DLL_StrRChrW]
test eax, eax
je 0x411a84
sub eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
sar eax, 1
inc eax
push eax
push dword [ebp + 0xc]
call fcn.0044cd91
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
lea ecx, [ebp + 8]
mov byte [esi], 2
call fcn.0043db4f
mov al, byte [esi]
pop esi
pop ebp
ret

Function at 0x411a89
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x4bef34
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, 0x4d80e8
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 0x411b23
movsx ebx, byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push 0x4bee98
push eax
call esi
add esp, 0x10
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0045e92a
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push 0x4bee84
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.00443666
inc byte [ebp - 2]
cmp byte [ebp - 2], 0x1a
jl 0x411ab3
cmp byte [ebp - 1], 0
pop edi
pop esi
pop ebx
jle 0x411b47
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push 0x4bee68
call fcn.00433455
leave
ret
Function at 0x411ec9
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.00443f5b
lea ecx, [ebp - 4]
call fcn.00443f5b
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 0x411fab
push ebx
push 1
push esi
lea eax, [ebp - 8]
mov word [edi], si
push eax
push dword [ebp + 8]
mov esi, 0x4d80e8
mov ecx, esi
call fcn.00454bdd
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.00454bdd
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
je 0x411f62
lea ecx, [ebp + 8]
call fcn.0040f369
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 0x4bdc88
push 0x80000002
jmp 0x411f9e
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
call esi
add eax, eax
push eax
push ebx
push 1
push 0x4bf0dc
mov edi, 0x4bf080
push edi
mov ebx, 0x80000002
push ebx
call fcn.0043ed6b
add esp, 0x18
push dword [ebp - 0xc]
call esi
shl eax, 1
push eax
push dword [ebp - 0xc]
push 1
push 0x4bf04c
push edi
push ebx
call fcn.0043ed6b
add esp, 0x18
xor esi, esi
pop ebx
jmp 0x411fae
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.0043db4f
lea ecx, [ebp - 8]
call fcn.0043db4f
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x4124e8
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jge 0x4124f9
call fcn.0041248d
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0xc]
jg 0x41250d
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
dec eax
js 0x412519
inc eax
xor word [esi], di
inc esi
inc esi
dec eax
jne 0x412511
mov eax, edi
pop edi
shl eax, 0x10
pop esi
ret

Function at 0x4126aa
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x4d7f90], 0
jne 0x4126cd
push 0
push dword [0x4d7fa0]
push 0x4125a9
push 0xd
call dword [sym.imp.USER32.DLL_SetWindowsHookExW]
mov dword [0x4d7f90], eax
ret

Function at 0x41283e
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 0x412859
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 0x4128a8
cmp dword [ebp - 0x224], esi
je 0x4128ae
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x412893
jmp 0x4128b4
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 0x412859
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x412b56
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push edi
je 0x412b7a
cmp dword [ebp + 0xc], 2
jne 0x412ba9
mov edi, dword [ebp + 0x14]
push 0x104
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
jmp 0x412b7d
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
je 0x412b8d
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, 0x4d80e8
call fcn.00443666
pop esi
pop edi
pop ebp
ret

Function at 0x412bac
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.00443f79
push 0x822
push 0
push dword [ebp - 4]
call fcn.004aa020
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 0x412bf3
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 0x412c1f
push esi
push ebx
mov ecx, 0x4d80e8
call fcn.00443666
jmp 0x412c52
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
push 0x4be070
push 0x80000001
call fcn.0043ed07
add esp, 0x18
test eax, eax
jne 0x412c52
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
push dword [ebp - 8]
push ebx
call fcn.00412b56
add esp, 0x14
lea ecx, [ebp - 4]
call fcn.0043db4f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412c5f
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 [0x4d80f3], 1
call fcn.00443f79
push 0x822
push 0
push dword [ebp - 4]
call fcn.004aa020
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 0x4bf400
push 0x1000
mov esi, 0x4d80e8
push esi
call fcn.004465af
push 0x4bf3e8
push 0x5000
push esi
call fcn.004465af
push 0x4bf3c8
push 0x100
push esi
call fcn.004465af
mov esi, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
add esp, 0x24
push edi
push 0x4bf3ba
call esi
push edi
mov ebx, 0x4d80e8
push 0x4bf3b8
mov ecx, ebx
call fcn.00443666
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.DLL_StrRChrW]
xor edi, edi
cmp eax, edi
je 0x412d26
lea edi, [eax + 2]
push edi
push 0x4bf3a6
call esi
push edi
push 0x4bf3a4
mov ecx, ebx
call fcn.00443666
xor edi, edi
push edi
push edi
push 0x4be978
call fcn.00412bac
push edi
push edi
push 0x4be98c
call fcn.00412bac
push edi
push edi
push 0x4be938
call fcn.00412bac
push edi
push edi
push 0x4be928
call fcn.00412bac
push edi
push edi
push 0x4be914
call fcn.00412bac
push edi
push 0x4bf38c
push 0x4be960
call fcn.00412bac
add esp, 0x48
push edi
push 0x4bf380
push 0x4bf36c
call fcn.00412bac
push edi
push edi
push 0x4be94c
call fcn.00412bac
push 0x4bf318
push 0x4bf304
push 0x4be8f8
call fcn.00412bac
add esp, 0x24
lea ecx, [ebp - 4]
call fcn.0043db4f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412e11
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.004aa400
push esi
mov esi, 0x4d62f0
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 0x412e37
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, 0x4d80e8
call fcn.00443666
add esi, 4
cmp esi, 0x4d6304
jl 0x412e24
pop esi
leave
ret