joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x148
mov eax, dword [0x40e3e0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
mov ebp, dword [esp + 0x154]
push esi
push edi
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00404c50
mov eax, dword [esp + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
sub eax, 1
je 0x4022b0
sub eax, 1
je 0x40229e
sub eax, 1
jne 0x402300
lea ecx, [esp + 0x4c]
push ecx
push eax
push eax
push 0x23
push eax
call fcn.00403140
add esp, 0x14
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x40226c
mov byte [esp + eax + 0x4c], 0x5c
mov byte [esp + eax + 0x4d], 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402300
mov byte [ebp], 0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00404c23
add esp, 0x148
ret
lea ecx, [esp + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x402254
push 0x104
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x4c]
push edx
call edi
cmp byte [esp + eax + 0x4b], 0x5c
je 0x4022d4
mov byte [esp + eax + 0x4c], 0x5c
inc eax
lea esi, [esp + eax + 0x4c]
push str.Temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402280
push 0x40b28c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.240427142637158633982696
call edi
dec eax
cmp eax, 8
jl 0x402284
mov al, byte [eax + str.240427142637158633982696]
cmp al, 0x30
jl 0x402284
cmp al, 0x39
jg 0x402284
movsx esi, al
sub esi, 0x30
and esi, reloc.WS2_32.dll_closesocket
jns 0x40233a
dec esi
or esi, 0xfffffffc
inc esi
push str.240427142637158633982696
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea eax, [eax + str.240427142637158633982696]
nop
mov dl, byte [eax]
test dl, dl
je 0x4023b5
test esi, esi
jle 0x4023b5
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xc], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023aa
test esi, esi
jle 0x4023aa
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xd], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023ad
test esi, esi
jle 0x4023ad
add dl, dl
inc dl
inc eax
mov byte [esp + ecx + 0xe], dl
mov dl, byte [eax]
dec esi
test dl, dl
je 0x4023b2
test esi, esi
jle 0x4023b2
add dl, dl
inc dl
mov byte [esp + ecx + 0xf], dl
add ecx, 4
dec esi
inc eax
cmp ecx, 0x40
jb 0x402350
jmp 0x4023b5
inc ecx
jmp 0x4023b5
add ecx, 2
jmp 0x4023b5
add ecx, 3
mov byte [esp + ecx + 0xc], 0x2e
push 0x40b288
lea ecx, [esp + ecx + 0x11]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4c]
push edx
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x54]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + eax + 0x54]
push ecx
call esi
push 0x103
lea edx, [esp + 0x50]
push edx
push ebp
call esi
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00404c23
add esp, 0x148
ret
Function at 0x4080ab
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x41a3d4
push str.FlsAlloc
push 0x1e
call fcn.00407f6c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4080df
push dword [ebp + 8]
mov ecx, esi
call dword [0x419148]
call esi
jmp 0x4080e5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408129
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x41a3f8
push str.FlsGetValue
push 0x20
call fcn.00407f6c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408160
push dword [ebp + 8]
mov ecx, esi
call dword [0x419148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40d3f2
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 0x40d48f
push ebx
push esi
call fcn.0040d3bb
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.0040d304
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40d43c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40d48e
push edi
push eax
call fcn.004079d7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40d45c
call fcn.0040799d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40d48d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040d304
add esp, 0x20
test eax, eax
jne 0x40d47b
push edi
call fcn.0040799d
jmp 0x40d483
push ebx
call fcn.0040799d
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 0x40ff46
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x421020]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40ff86
cmp byte [ebx], 0xa
jne 0x40ff86
or byte [eax + edi + 0x28], 4
jmp 0x40ff8b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x410089
mov al, byte [edx]
cmp al, 0x1a
je 0x41006b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x40ffba
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x40ffdf
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x40ffe9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x40ff9c
jmp 0x410089
push 0
lea eax, [ebp - 0xc]
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 0x410066
cmp dword [ebp - 0xc], 0
je 0x410066
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x421020]
test byte [eax + edi + 0x28], 0x48
je 0x410040
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41002b
mov byte [esi], dl
jmp 0x41003c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x421020]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x410089
cmp byte [ebp - 1], 0xa
jne 0x41004f
cmp esi, ebx
jne 0x41004f
mov byte [esi], 0xa
jmp 0x410088
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040fd3f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x410089
mov byte [esi], 0xd
jmp 0x410088
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x421020]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x410085
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x410089
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x410092
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x421020]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4100d5
cmp word [esi], dx
jne 0x4100d5
or byte [edi + eax + 0x28], 4
jmp 0x4100da
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41022d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41020d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41011c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x410152
cmp eax, edx
jae 0x41015e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4100f4
jmp 0x41022d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410209
cmp dword [ebp - 0x14], 0
je 0x410209
mov eax, dword [ebx*4 + 0x421020]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4101e1
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4101aa
mov word [esi], cx
jmp 0x4101dd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x421020]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x421020]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x421020]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41022d
pop ebx
cmp word [ebp - 4], bx
jne 0x4101f2
cmp esi, dword [ebp + 0xc]
jne 0x4101f2
mov word [esi], bx
jmp 0x41022a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040fd3f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41022d
push 0xd
jmp 0x410226
mov ecx, dword [ebx*4 + 0x421020]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x410224
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41022d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4139b5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413931
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x413b2d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x413b2d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x413adc
jg 0x413a0e
test eax, eax
je 0x413ad2
push 1
push 0x1000
call fcn.00407ac3
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x413a34
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x413ac9
push 0x8000
push ebx
call fcn.0040722f
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x413a60
jg 0x413a5b
cmp ecx, 0x1000
jb 0x413a60
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00409ed1
add esp, 0x10
cmp eax, 0xffffffff
je 0x413aa5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x413a5b
jl 0x413a8c
test ecx, ecx
jne 0x413a4d
push dword [ebp - 0xc]
push ebx
call fcn.0040722f
push esi
call fcn.0040799d
add esp, 0xc
xor edi, edi
jmp 0x413b3e
cmp byte [edi + 0x24], 0
je 0x413abc
cmp dword [edi + 0x20], 5
jne 0x413abc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x413ac7
mov edi, dword [edi + 0x18]
jmp 0x413ac9
xor edi, edi
push esi
call fcn.0040799d
pop ecx
jmp 0x413b3e
test ecx, ecx
jg 0x413a9e
jl 0x413adc
test eax, eax
jae 0x413a9e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040fd3f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x413aff
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x413a9e
jmp 0x413b36
push ebx
call fcn.0040dc15
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x413a9e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x413b3e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x413b3b
mov edi, dword [edi + 0x18]
jmp 0x413b3e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040fd3f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x403e59
pop dword [ebp - 0x3c]
mov eax, 0xc168498a
sub eax, 0xc1280b31
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x44f0eeae
sub dword [ebp - 0x4c], 0xf69ea963
mov dword [ebp - 0x48], 0x628894a6
add dword [ebp - 0x48], 0xcfaab79f
mov dword [ebp - 0x44], 0xdf067f58
add dword [ebp - 0x44], 0x6d45c4d6
mov dword [ebp - 0x40], 0x56e8fcf9
sub dword [ebp - 0x40], 0x56e8fcf9
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x6d3ded38
sub eax, 0x6cfd7cd4
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x36755c5a
sub dword [ebp - 0x4c], 0xc202f304
mov dword [ebp - 0x48], 0x34c1adf5
sub dword [ebp - 0x48], 0xf3554c80
mov dword [ebp - 0x44], 0x64b32a9f
add dword [ebp - 0x44], 0xfebc41cd
mov dword [ebp - 0x40], 0x31c81316
add dword [ebp - 0x40], 0xce37ecea
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x51761af3
sub eax, 0x5135aa4b
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3991d
push 0
call eax
mov ecx, 0xf566939c
add ecx, 0xa99bfae
xor edi, edi
add edi, eax
mov edx, 0x78a8058b
sub edx, 0x7867058b
add edx, dword [ebp - 0x3c]
mov esi, 0x5ad31e80
add dword [ebp - 0x10], eax
mov ebx, dword [edx]
xor dword [ebp - 0x18], 0xb9e6f29
sub ebx, esi
mov dword [edi], ebx
xor dword [ebp - 0x2c], edx
add edi, 0xf6a3ddee
add edi, 0x95c2216
add edx, 4
loop 0x403f77
add eax, 0x48ea31fd
sub eax, 0x48e8f202
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x402420
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x40247f
push 0x5da2ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40244c
mov eax, 1
jmp 0x40249d
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40247d
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 4]
jmp 0x40249d
jmp 0x402498
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x402498
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40249d
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x402cc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x402cc9
xor ecx, ecx
jne 0x402cc9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x402cea
mov eax, 0xd
jmp 0x402d45
xor eax, eax
jne 0x402cd1
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x402cfb
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8
Function at 0x402d50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5e12a4]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x230], ecx
push 0
lea ecx, [ebp - 0x18]
call fcn.004028d0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402b90
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x402dbd
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x18]
call fcn.00402900
mov eax, dword [ebp - 0x224]
jmp 0x402e4e
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x402e23
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402d50
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x402e1a
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x18]
call fcn.00402900
mov eax, dword [ebp - 0x228]
jmp 0x402e4e
mov dword [ebp - 4], 0x100
jmp 0x402dc4
lea ecx, [ebp - 0x18]
call fcn.00402a80
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.004029a0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x18]
call fcn.00402900
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0040f6b8
mov esp, ebp
pop ebp
ret 4
Function at 0x40aed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4e18
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5e12a4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x40af10
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x40af1c
mov al, 1
jmp 0x40b0bf
mov dword [ebp - 0x10], 8
call fcn.00407890
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00407890
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00407840
add esp, 8
movzx eax, al
test eax, eax
je 0x40af5f
xor al, al
jmp 0x40b0bf
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040a630
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.0040a7c0
mov ecx, eax
call fcn.0040b260
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.0040a7f0
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040a7c0
mov ecx, eax
call fcn.0040b260
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0x44]
call fcn.0040bb90
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40afda
cmp dword [ebp - 0x5c], 1
je 0x40afe1
cmp dword [ebp - 0x5c], 3
je 0x40b07b
jmp 0x40b093
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040a7c0
mov ecx, eax
call fcn.0040b260
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40b044
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040a7c0
mov ecx, eax
call fcn.0040b260
push eax
call fcn.004118bf
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40b044
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00408e40
mov al, byte [ebp - 0x51]
jmp 0x40b0bf
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x40b067
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00408e40
mov al, byte [ebp - 0x52]
jmp 0x40b0bf
cmp dword [ebp - 0x38], 0
jne 0x40b079
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040a6b0
jmp 0x40b0ab
mov byte [ebp - 0x53], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00408e40
mov al, byte [ebp - 0x53]
jmp 0x40b0bf
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00408e40
mov al, byte [ebp - 0x54]
jmp 0x40b0bf
jmp 0x40af72
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040f6b8
mov esp, ebp
pop ebp
ret
Function at 0x40cf70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040d050
mov ecx, eax
call fcn.00406bd0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40cfe3
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00406c80
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040dd80
mov eax, dword [ebp - 0xc]
jmp 0x40cfed
mov ecx, dword [ebp + 0xc]
call fcn.00408b30
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x40f6b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5e12a4]
jne 0x40f6c2
repz ret
jmp fcn.004123b9
Function at 0x41c970
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5e12a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004124bf
and dword [ebp - 0x14], 0
cmp dword [0x5e870c], 0
mov dword [ebp - 0x18], eax
jne 0x41ca23
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41cacb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5d8c98
push ebx
call edi
test eax, eax
je 0x41cacb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5d8c88
push ebx
mov dword [0x5e870c], eax
call edi
push eax
call esi
push 0x5d8c74
push ebx
mov dword [0x5e8710], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5e8714], eax
call edi
push eax
call esi
mov dword [0x5e871c], eax
test eax, eax
je 0x41ca23
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5e8718], eax
mov eax, dword [0x5e8718]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ca7c
cmp dword [0x5e871c], ecx
je 0x41ca7c
push eax
call esi
push dword [0x5e871c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ca7c
test ebx, ebx
je 0x41ca7c
call edi
test eax, eax
je 0x41ca73
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41ca73
test byte [ebp - 8], 1
jne 0x41ca7c
or dword [ebp + 0x10], 0x200000
jmp 0x41caaf
mov eax, dword [0x5e8710]
cmp eax, dword [ebp - 0x18]
je 0x41caaf
push eax
call esi
test eax, eax
je 0x41caaf
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41caaf
mov eax, dword [0x5e8714]
cmp eax, dword [ebp - 0x18]
je 0x41caaf
push eax
call esi
test eax, eax
je 0x41caaf
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5e870c]
call esi
test eax, eax
je 0x41cacb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41cacd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f6b8
leave
ret