joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411fe0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439580
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x254
mov eax, dword [0x52b420]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push eax
call fcn.0041c2f0
add esp, 4
add eax, 1
mov dword [ebp - 0x260], eax
xor ecx, ecx
mov eax, dword [ebp - 0x260]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
mov dword [ebp - 0x254], ecx
mov eax, dword [ebp - 0x254]
push eax
call fcn.00416a09
add esp, 4
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
je 0x4120b3
mov ecx, dword [ebp - 0x254]
push ecx
push 0
mov edx, dword [ebp - 0x248]
push edx
call fcn.004194e0
add esp, 0xc
cmp dword [ebp - 0x248], 0
je 0x41209b
xor eax, eax
mov ecx, dword [ebp - 0x248]
mov word [ecx], ax
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x258], edx
jmp 0x4120a5
mov dword [ebp - 0x258], 0
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x25c], eax
jmp 0x4120bd
mov dword [ebp - 0x25c], 0
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x250], ecx
mov edx, dword [ebp - 0x260]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.00422196
add esp, 0xc
mov dword [ebp - 4], 0
push 0
push 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0xffffffff
je 0x41218f
mov dword [ebp - 0x240], 0x22c
push 0x228
push 0
lea edx, [ebp - 0x23c]
push edx
call fcn.004194e0
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x412182
mov edx, dword [ebp - 0x250]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.0041c1e0
add esp, 8
test eax, eax
jne 0x41216b
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4121f1
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41213d
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x250]
push edx
push str.Log:isProcessRunning:false:_ls__n
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 0xc
xor al, al
jmp 0x4121f1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00416e65
mov esp, ebp
pop ebp
ret
Function at 0x415860
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 1], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00410af0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x415962
mov edx, dword [ebp - 0xc]
push edx
call fcn.00410a70
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x28], 0
je 0x41594e
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x24], edx
mov eax, 0x415850
sub eax, 0x415820
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], ecx
push 0x40
push 0x3000
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41594e
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x415820
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411650
add esp, 0x10
movzx edx, al
test edx, edx
je 0x415939
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x415939
mov byte [ebp - 2], 1
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004169fb
add esp, 8
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x417599
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4175d8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4175d8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4175d8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4175d8
cmp dword [ecx + 0x74], 0xe
jbe 0x4175d8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x421c03
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x52b420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4e7c1c
push esi
call fcn.0042a082
pop ecx
pop ecx
test eax, eax
jne 0x421c31
xor al, al
jmp 0x421cae
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00421944
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x421c6b
push dword [ebp - 0x210]
call fcn.0041c37b
xor al, al
jmp 0x421cac
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x421c71
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x421c91
push edx
call fcn.00421b3a
pop ecx
test al, al
je 0x421c5c
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x421c9f
mov bl, 1
push dword [ebp - 0x210]
call fcn.0041c37b
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416e65
leave
ret
Function at 0x42a5cc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e9e08
push 0x4e9e00
push 0x4e7a44
push 0x1f
call fcn.0042a437
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a600
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a2a0]
call esi
jmp 0x42a606
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42a64a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e9e18
push 0x4e9e10
push 0x4e7a68
push 0x21
call fcn.0042a437
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a681
push dword [ebp + 8]
mov ecx, esi
call dword [0x43a2a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42a689
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e9e20
push 0x4e9e18
push 0x4e7a7c
push 0x22
call fcn.0042a437
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42a6c3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43a2a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42f6aa
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42f747
push ebx
push esi
call fcn.0042f673
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004277be
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42f6f4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f746
push edi
push eax
call fcn.004276e0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42f714
call fcn.004276a6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42f745
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004277be
add esp, 0x20
test eax, eax
jne 0x42f733
push edi
call fcn.004276a6
jmp 0x42f73b
push ebx
call fcn.004276a6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42f74a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42f75b
pop esi
ret
push ebx
push edi
push esi
call fcn.0042f673
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004276e0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42f783
push ebx
push esi
push edi
call fcn.00418f60
add esp, 0xc
push 0
call fcn.004276a6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42fedd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042f9f8

Function at 0x431fec
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00427160
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43205b
cmp esi, dword [ebp - 4]
je 0x432056
cmp dword [ebp + 0xc], 0
je 0x432056
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x432033
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00431b3e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43205d
xor eax, eax
inc eax
jmp 0x43205d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4320c2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52b420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00427160
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00427160
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x432139
cmp word [ecx], dx
je 0x432139
mov eax, dword [0x4ea61c]
push edi
dec eax
push eax
push 0x4ea508
call fcn.00432061
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4321ac
cmp word [eax], dx
je 0x4321ac
mov eax, dword [edi]
test eax, eax
je 0x43215d
cmp word [eax], dx
je 0x43215d
lea eax, [ebp - 0x10]
push eax
call fcn.00431a44
jmp 0x432166
lea eax, [ebp - 0x10]
push eax
call fcn.00431adf
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4321d6
mov eax, dword [0x4ea504]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4ea1f8
call fcn.00432061
add esp, 0xc
test al, al
je 0x4321d6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4321a1
cmp word [eax], di
je 0x4321a1
lea eax, [ebp - 0x10]
push eax
call fcn.00431a44
pop ecx
jmp 0x4321d8
lea eax, [ebp - 0x10]
push eax
call fcn.00431adf
jmp 0x43219e
mov eax, dword [edi]
test eax, eax
je 0x4321c3
cmp word [eax], dx
je 0x4321c3
lea eax, [ebp - 0x10]
push eax
call fcn.004319f9
pop ecx
jmp 0x4321d6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4322a1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00431ee6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4322a1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4322a1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4322a1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x43222e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042a7c9
test ebx, ebx
je 0x43229c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042a7c9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4322a1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4322a1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00436d96
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4322a3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416e65
leave
ret
Function at 0x434cc7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x52b420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x434d0a
call fcn.004231d6
mov dword [eax], 0xf
call fcn.004231e9
mov dword [eax], 0xd
call fcn.0041ba4f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416e65
leave
ret
test eax, eax
jne 0x434d11
inc eax
jmp 0x434cfe
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x434cfc
xor eax, eax
cmp ecx, 1
setne al
jmp 0x434cfe
Function at 0x43738f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x52dbe0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4373cf
cmp byte [ebx], 0xa
jne 0x4373cf
or byte [edi + eax + 0x28], 4
jmp 0x4373d4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4374d3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4374b6
inc eax
cmp dl, 0xd
je 0x437400
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x437426
cmp eax, ecx
jae 0x437434
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4373e8
jmp 0x4374d3
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4374b1
cmp dword [ebp - 0x10], 0
je 0x4374b1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x52dbe0]
test byte [eax + edi + 0x28], 0x48
je 0x43748b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x437476
mov byte [esi], dl
jmp 0x437487
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x52dbe0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4374d3
cmp byte [ebp - 1], 0xa
jne 0x43749a
cmp esi, ebx
jne 0x43749a
mov byte [esi], 0xa
jmp 0x4374d2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004372d5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4374d3
mov byte [esi], 0xd
jmp 0x4374d2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x52dbe0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4374d0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4374d3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4374dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x52dbe0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x437522
cmp word [ebx], dx
jne 0x437522
or byte [eax + edi + 0x28], 4
jmp 0x437527
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x43768a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x43766a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x437568
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43759e
cmp eax, edx
jae 0x4375ac
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x437543
jmp 0x43768a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x437665
cmp dword [ebp - 0x18], 0
je 0x437665
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x52dbe0]
test byte [eax + edi + 0x28], 0x48
je 0x43763b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4375ff
mov word [esi], cx
jmp 0x437636
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x52dbe0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x52dbe0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x52dbe0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43768a
pop eax
cmp word [ebp - 4], ax
jne 0x43764b
cmp esi, ebx
jne 0x43764b
mov word [esi], ax
jmp 0x437687
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004372d5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43768a
push 0xd
pop eax
jmp 0x437646
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x52dbe0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x437684
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43768a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x438610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43863d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43863d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x414deb
Capabilities:
Encode data using xor

Disassembly:
xor dword [edx], esi
mov ecx, ecx
add edx, 4
cmp edx, eax
jne fcn.00414deb
ret
Function at 0x4618e0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x24
cmp eax, 4
je 0x461913
cmp eax, 5
je 0x461913
push 0x3ec
push str.CRegistryKey::SetValue__
lea ecx, [esp + 8]
call fcn.004612d0
push 0x4983ac
lea eax, [esp + 4]
push eax
call sub.MSVCR80.dll__CxxThrowException
mov ecx, dword [ecx]
push 4
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x34]
push 0
push eax
call fcn.004611a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x461952
push eax
push str.CRegistryKey::SetValue__
lea ecx, [esp + 8]
call fcn.004612d0
push 0x4983ac
lea ecx, [esp + 4]
push ecx
call sub.MSVCR80.dll__CxxThrowException
add esp, 0x24
ret 0xc

Function at 0x463522
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ab368]
jne 0x46352c
repz ret
jmp fcn.00463eb2
Function at 0x6a681680
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov edx, eax
mov eax, dword fs:[0x18]
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
leave
ret
Function at 0x6a682630
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov edi, dword [ecx + 0x10]
test byte [0x6a685018], 1
jne 0x6a682738
test ebx, ebx
je 0x6a682720
test edi, edi
je 0x6a682720
mov edx, dword fs:[0x18]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov dword [ebx], eax
je 0x6a6827a8
mov dword [esp + 4], eax
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x1c], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ProcessIdToSessionId]
mov edx, dword [ebp - 0x1c]
sub esp, 8
test eax, eax
mov esi, eax
je 0x6a682778
mov dword [edi], 1
mov eax, dword [ebx]
mov esi, 1
mov dword [eax + 8], 0
mov eax, dword [ebx]
lea edx, [eax + 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [eax], 0x6f0043
mov dword [eax + 4], 0x73006e
mov dword [eax + 8], 0x6c006f
mov dword [eax + 0xc], 0x65
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
xor esi, esi
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._p_0x_08lx_0x_08lx__p__p_semi_stub._n
mov dword [esp + 8], str.WTSEnumerateSessionsW
mov dword [esp + 4], 0x6a685018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x6a68265f
mov eax, dword [ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [edx + 0x34], 0xe
xor esi, esi
jmp 0x6a682722