joyce8/EMBER2024-capa huggingface dataset:
Function at 0x161da
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
xor ebx, ebx
push ebx
push 0xa
push ebx
call esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push ebx
push edi
cmp eax, 0xc0000004
jne 0x1627a
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call edi
push ebx
push dword [ebp - 4]
push ebx
call esi
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x16280
push ebx
push dword [ebp - 4]
push esi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x16239
push ebx
push esi
call edi
jmp 0x16280
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, esi
add eax, 0x38
jmp 0x16258
mov eax, dword [esi]
cmp eax, ebx
je 0x1626e
add esi, eax
lea eax, [esi + 0x38]
push 1
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x1624d
mov esi, dword [esi + 0x44]
jmp 0x16270
mov esi, ebx
push ebx
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x16282
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1628e
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov edx, dword [ebp + 0xc]
add eax, ecx
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
cmp edx, dword [ecx + 0xc]
jae 0x162af
mov eax, edx
jmp 0x162da
push ebx
push esi
movzx esi, word [eax + 6]
push edi
xor edi, edi
test esi, esi
jbe 0x162d4
mov eax, dword [ecx + 0xc]
cmp edx, eax
jb 0x162cc
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edx, ebx
jb 0x162de
add ecx, 0x28
inc edi
cmp edi, esi
jb 0x162bc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, edx
jmp 0x162d7
Function at 0x1e41a
Capabilities:
Packed with generic packer

Disassembly:
pushfd
clc
cmp ecx, eax
jmp 0x1ee1c
lea esp, [esp + 0x14]
jne 0x1fafa
call 0x1fa7d
clc
jmp 0x1fb00
cmp ecx, 2
push 0x9a152a63
lea esp, [esp + 4]
jne 0x1fc1c
call 0x1fb17
mov byte [esp], 0x76
mov byte [esp], al
lea esp, [esp + 4]
js 0x1fe29
mov dword [0x1426c], 0xde
jmp 0x1fb37
call 0x1fb3c
call 0x1fb41
call 0x1fb46
mov dword [0x14284], esi
push dword [esp + 4]
mov byte [esp], bh
call 0x1fb58
jmp 0x1fb5d
mov dword [0x142bc], 0x1c9
jmp 0x1fb6c
mov dword [0x14294], 0x1e0
lea esp, [esp + 0x14]
jne 0x1fed5
pushfd
pushal
mov dword [0x142c4], 0x167
call 0x1fb91
mov word [esp], 0xb1e3
mov dword [esp + 8], 0xc6a368fd
mov dword [0x142b0], 0x283
call fcn.0002008c
push eax
invalid
pushfd
mov byte [esp], al
mov byte [esp], 0x34
cmp ecx, 3
call 0x1fc2c
jmp 0x1fa1f
call 0x1fe2e
pushfd
mov word [esp], 0x9957
mov dword [0x1426c], 0xde
push ebp
jmp 0x1fe45
mov dword [0x14284], esi
mov byte [esp + 8], al
call 0x1fe54
lea esp, [esp + 0x10]
jnp 0x1ffe9
mov dword [0x142bc], 0x1c9
js 0x20043
pushfd
mov dword [0x14294], 0x1e0
mov word [esp], 0x675d
pushfd
pushal
jmp 0x1fe86
mov dword [0x142c4], 0x167
pushfd
call fcn.00015a7b
pushfd
call 0x1fedb
jmp 0x1fee0
mov dword [0x142c4], 0x167
push 0x500a1148
mov byte [esp], 0xbb
push edi
call 0x1fef9
mov dword [0x142b0], 0x283
call 0x1ff08
pushal
mov dword [0x14264], eax
mov dword [esp], esi
push eax
lea esp, [esp + 0x3c]
jmp 0x1fcbf
call 0x1ffee
pushal
push 0x355ad3a8
pushfd
mov dword [0x142bc], 0x1c9
call fcn.0001f1ff
pushfd
mov dword [0x14294], 0x1e0
mov byte [esp], dh
pushal
pushfd
mov dword [0x142c4], 0x167
pushfd
jmp 0x20063
jmp 0x20068
mov dword [0x142b0], 0x283
mov word [esp + 4], 0x50c1
mov dword [0x14264], eax
pushfd
push dword [esp + 0x24]
lea esp, [esp + 0x34]
jmp 0x1fcbf

Function at 0x205a3
Capabilities:
Encode data using xor

Disassembly:
pushal
mov dword [0x14274], 1
call fcn.0001f46d
and cl, byte [ecx]
idiv dword [ecx]
xor esp, 0xffffff88
mov byte [0xea58ee8d], al
mov ebp, ss
aaa
adc dl, byte [edx]
dec ebx
mov dl, pe_nt_image_headers32
dec esp
salc
aad 0x6d
insb byte es:[edi], dx
inc edx
mov dh, 0xb7
inc edi
xor byte [ebx + ebx*8 - 0x7d], dl
invalid
Function at 0x401790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0040d7bd

Function at 0x402740
Capabilities:
Set current directory

Disassembly:
sub esp, 0x404
mov eax, dword [0x5847b0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push edi
xor eax, eax
push 0x3fe
mov esi, ecx
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.0050c890
add esp, 0xc
cmp dword [esi + 0x11c], 8
jb 0x402783
mov ecx, dword [esi + 0x108]
jmp 0x402789
lea ecx, [esi + 0x108]
lea edx, [esp + 8]
lea ecx, [ecx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x402790
lea edx, [esp + 8]
push 0x5c
push edx
call fcn.0050ae8c
add esp, 8
test eax, eax
je 0x4027ef
lea edx, [esp + 8]
xor ecx, ecx
push edx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esp + 8]
lea edx, [eax + 2]
jmp 0x4027d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4027d0
sub eax, edx
sar eax, 1
push eax
add esi, 0xe8
lea eax, [esp + 0xc]
call fcn.00402350
push str.KDUI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str._GetCtrlBase_4
push esi
call edi
push str._GetDUIControlFromDataBlock_4
push esi
mov dword [0x58c330], eax
call edi
push str._SetUseMultiLanguage_4
push esi
mov dword [0x58c334], eax
call edi
cmp dword [0x58c334], 0
pop edi
mov dword [0x58c338], eax
pop esi
je 0x40285b
cmp dword [0x58c330], 0
je 0x40285b
test eax, eax
je 0x40285b
mov eax, 1
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0050ab27
add esp, 0x404
ret
mov ecx, dword [esp + 0x400]
xor ecx, esp
xor eax, eax
call fcn.0050ab27
add esp, 0x404
ret

Function at 0x404800
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x532098
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x5847b0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00402000
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404856
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.00404930
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00402000
cmp dword [esp + 0x24], 8
jb 0x40489f
mov edx, dword [esp + 0x10]
push edx
call fcn.0040cd6b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x4054b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4054c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405504
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405500
lea ebx, [ebx]
cmp esi, eax
jae 0x405504
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4054f0
cmp esi, eax
jb 0x40550a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x407010
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x210
mov eax, dword [0x5847b0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor esi, esi
push 0x206
lea ecx, [esp + 0xe]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x10], esi
mov word [esp + 0x14], ax
call fcn.0050c890
add esp, 0xc
push esi
push 0x24
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [0x58c59c], ax
lea eax, [esp + 8]
mov dword [0x58c5b0], 7
mov dword [0x58c5ac], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x407073
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
mov esi, 0x58c598
call fcn.00402350
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0050ab27
add esp, 0x210
ret
Function at 0x408270
Capabilities:
Create thread

Disassembly:
push edi
push esi
mov edi, 0x55f5d0
mov dword [esi + 0xe8], 2
call fcn.00402e60
mov edi, eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2d8]
call eax
mov edi, dword [edi + 8]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x70]
push 0
push 0xffffffffffffffff
push 0
push edi
call edx
push esi
mov edi, str.Installing
call fcn.00402e60
mov edi, eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2d8]
call eax
mov edi, dword [edi + 8]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x70]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call edx
push esi
mov edi, str.Installed
call fcn.00402e60
mov edi, eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2d8]
call eax
mov edi, dword [edi + 8]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x70]
push 0
push 0xffffffffffffffff
push 0
push edi
call edx
push esi
push 0
push 0x408040
call fcn.0050bcd3
mov eax, dword [esi + 0x20]
add esp, 0xc
push 0
push 0x7d0
push 0x65
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
ret

Function at 0x4084b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x532b5b
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5847b0]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
mov eax, dword [0x5847b0]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
cmp edx, 0x100
jne 0x40850a
mov esi, dword [eax + 8]
cmp esi, 0x1b
je 0x408531
cmp esi, 0xd
je 0x408531
cmp edx, 0x104
jne 0x4085bf
cmp dword [eax + 8], 0x73
jne 0x4085bf
mov esi, dword [ecx + 0xe8]
cmp esi, 2
jne 0x40853b
push ecx
call fcn.00408330
mov eax, 1
jmp 0x4085fb
cmp esi, 1
jne 0x4085bf
push 0
sub esp, 0x1c
mov dword [esp + 0x30], esp
mov esi, esp
sub esp, 0x1c
mov eax, str.str7
mov ecx, esp
mov dword [esp + 0x4c], esp
call fcn.004015d0
mov edi, 0x58c378
call fcn.00402a70
push 2
lea esi, [esp + 0x38]
call fcn.0040c850
mov ecx, esi
mov dword [esp + 0x148], 0
call fcn.0040d52d
cmp eax, 1
jne 0x4085a4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
je 0x40859d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call fcn.0050b177
lea ecx, [esp + 0x14]
mov dword [esp + 0x148], 0xffffffff
call fcn.0040c930
mov eax, 1
jmp 0x4085fb
cmp dword [ecx + 0x98], 0
je 0x4085f5
cmp edx, 0x100
jne 0x4085f5
mov edx, dword [eax + 8]
cmp edx, 0xd
jne 0x4085e4
call fcn.0040ced6
mov eax, 1
jmp 0x4085fb
cmp edx, 0x1b
jne 0x4085f5
call fcn.0040cef1
mov eax, 1
jmp 0x4085fb
push eax
call fcn.0040cf53
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0050ab27
mov esp, ebp
pop ebp
ret 4
Function at 0x40b400
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x78
mov eax, dword [0x5847b0]
xor eax, esp
mov dword [esp + 0x70], eax
xor eax, eax
mov byte [esp + 0x60], al
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov word [esp + 0x6d], ax
mov byte [esp + 0x6f], al
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
push esi
push eax
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0040ab80
lea ecx, [esp + 0x64]
push ecx
lea esi, [esp + 0xc]
mov ecx, ebx
call fcn.0040ac40
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [edi], edx
mov edx, dword [esp + 0x70]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x74]
pop esi
xor ecx, esp
mov dword [edi + 0xc], edx
call fcn.0050ab27
add esp, 0x78
ret 8

Function at 0x40b630
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x531ef8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5847b0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], 0
call fcn.0041a778
mov eax, dword [eax + 8]
push esi
push 0xa7
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40b6a2
cmp dword [esp + 0x3c], 8
jb 0x40b68d
mov eax, dword [esp + 0x28]
push eax
call fcn.0040cd6b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
call fcn.0041a778
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40b6df
cmp dword [esp + 0x3c], 8
jb 0x40b68d
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0040cd6b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40b715
cmp dword [esp + 0x3c], 8
jb 0x40b68d
mov edx, dword [esp + 0x28]
push edx
call fcn.0040cd6b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x40b724
lea eax, [esp + 0x28]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call fcn.0041a778
mov eax, dword [eax + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x3c], 8
jb 0x40b77a
mov edx, dword [esp + 0x28]
push edx
call fcn.0040cd6b
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x40b8d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x532da9
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5847b0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
call fcn.00415a59
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b913
push 0x80004005
call fcn.004058e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x18], ebx
lea edi, [esi + 4]
call fcn.00415a59
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b942
push 0x80004005
call fcn.004058e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.00405730
mov ecx, edi
call fcn.00405730
mov ecx, esi
call fcn.00408dd0
mov dword [esi + 0x28], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40b9b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x2dc
mov eax, dword [0x5847b0]
xor eax, esp
mov dword [esp + 0x2d4], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0xff
lea eax, [esp + 0x1e5]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x1ec], bl
call fcn.0050c890
lea edx, [esp + 0x1ec]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40b9f4
push 0x3f
lea ecx, [esp + 0x9d]
push ebx
push ecx
mov byte [esp + 0xa4], bl
call fcn.0050c890
add esp, 0xc
push 0x3f
lea edx, [esp + 0x5d]
push ebx
push edx
mov byte [esp + 0x64], bl
call fcn.0050c890
lea eax, [esp + 0x1ec]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ba36
sub eax, edx
push 0x40
mov esi, eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.0050c890
add esp, 0xc
push esi
lea ecx, [esp + 0x1e4]
push ecx
lea edi, [esp + 0xa0]
lea ebx, [esp + 0x20]
mov byte [esp + 0x20], 0x80
call fcn.0040b400
xor ebx, ebx
xor ebp, ebp
movzx edx, byte [esp + ebp + 0x98]
xor eax, eax
push edx
mov word [esp + 0x19], ax
mov byte [esp + 0x1b], al
lea eax, [esp + 0x18]
push str._02X
push eax
mov byte [esp + 0x20], bl
call fcn.0050c624
lea eax, [esp + 0x20]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40baa3
lea edi, [esp + 0x58]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40bab3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
cmp ebp, 0x10
rep movsb byte es:[edi], byte [esi]
jl 0x40ba73
push 0x103
lea ecx, [esp + 0xdd]
push ebx
push ecx
mov byte [esp + 0xe4], bl
call fcn.0050c890
add esp, 0xc
push 0x104
lea edx, [esp + 0xdc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0xd8]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40bb07
mov ax, word [0x563758]
mov word [edi], ax
lea eax, [esp + 0xd8]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40bb20
mov ecx, dword [str.tslsuninstall.ini]
mov edx, dword [0x563760]
mov dword [eax], ecx
mov ecx, dword [0x563764]
mov dword [eax + 4], edx
mov edx, dword [0x563768]
mov dword [eax + 8], ecx
mov cx, word [0x56376c]
mov dword [eax + 0xc], edx
lea edx, [esp + 0xd8]
push edx
mov word [eax + 0x10], cx
lea eax, [esp + 0x5c]
push eax
push str.UninstallCode
push str.Uninstall
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x2e4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0050ab27
add esp, 0x2dc
ret
Function at 0x40bb90
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x3dc
mov eax, dword [0x5847b0]
xor eax, esp
mov dword [esp + 0x3d4], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0xff
lea eax, [esp + 0x1e5]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x1ec], bl
call fcn.0050c890
lea edx, [esp + 0x1ec]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x40bbd4
push 0x3f
lea ecx, [esp + 0x5d]
push ebx
push ecx
mov byte [esp + 0x64], bl
call fcn.0050c890
add esp, 0xc
push 0x3f
lea edx, [esp + 0x9d]
push ebx
push edx
mov byte [esp + 0xa4], bl
call fcn.0050c890
lea eax, [esp + 0x1ec]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bc16
sub eax, edx
push 0x40
mov esi, eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.0050c890
add esp, 0xc
push esi
lea ecx, [esp + 0x1e4]
push ecx
lea edi, [esp + 0x60]
lea ebx, [esp + 0x20]
mov byte [esp + 0x20], 0x80
call fcn.0040b400
xor ebx, ebx
xor ebp, ebp
movzx edx, byte [esp + ebp + 0x58]
xor eax, eax
push edx
mov word [esp + 0x19], ax
mov byte [esp + 0x1b], al
lea eax, [esp + 0x18]
push str._02X
push eax
mov byte [esp + 0x20], bl
call fcn.0050c624
lea eax, [esp + 0x20]
add esp, 0xc
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40bc80
lea edi, [esp + 0x98]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40bc93
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
cmp ebp, 0x10
rep movsb byte es:[edi], byte [esi]
jl 0x40bc50
push 0x103
lea ecx, [esp + 0xdd]
push ebx
push ecx
mov byte [esp + 0xe4], bl
call fcn.0050c890
add esp, 0xc
push 0x104
lea edx, [esp + 0xdc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0xd8]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40bce7
mov ax, word [0x563758]
mov word [edi], ax
lea eax, [esp + 0xd8]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x40bd00
mov ecx, dword [str.tslsuninstall.ini]
mov edx, dword [0x563760]
mov dword [eax], ecx
mov ecx, dword [0x563764]
mov dword [eax + 4], edx
mov edx, dword [0x563768]
mov dword [eax + 8], ecx
mov cx, word [0x56376c]
mov dword [eax + 0xc], edx
push 0xff
lea edx, [esp + 0x2e5]
push ebx
push edx
mov word [eax + 0x10], cx
mov byte [esp + 0x2ec], bl
call fcn.0050c890
add esp, 0xc
lea eax, [esp + 0xd8]
push eax
push 0x40
lea ecx, [esp + 0x2e8]
push ecx
push 0x5637d9
push str.UninstallCode
push str.Uninstall
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x2e0]
lea eax, [esp + 0x98]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bda8
cmp dl, bl
je 0x40bda4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bda8
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x40bd88
xor eax, eax
jmp 0x40bdad
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [esp + 0x3e4]
xor edx, edx
cmp eax, ebx
pop edi
sete dl
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, edx
call fcn.0050ab27
add esp, 0x3dc
ret
Function at 0x40bdd0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x528
mov eax, dword [0x5847b0]
xor eax, esp
mov dword [esp + 0x524], eax
push ebx
push esi
push 0x58c4e4
mov ebx, str.CheckWeakPass.dll
lea esi, [esp + 0x14]
call fcn.00404800
add esp, 4
cmp dword [eax + 0x18], 8
jb 0x40be07
mov eax, dword [eax + 4]
jmp 0x40be0a
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [esp + 0x28], 8
mov esi, eax
jb 0x40be27
mov eax, dword [esp + 0x14]
push eax
call fcn.0040cd6b
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
cmp esi, ebx
jne 0x40be59
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x524]
xor ecx, esp
call fcn.0050ab27
add esp, 0x528
ret
push str.CheckWeakNTLM
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40be40
push 0xff
lea edx, [esp + 0x31]
push ebx
push edx
mov byte [esp + 0x38], bl
call fcn.0050c890
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x14], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x40be40
push 0x3ff
lea edx, [esp + 0x131]
push ebx
push edx
mov byte [esp + 0x138], bl
call fcn.0050c890
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x130]
push ecx
push 0x5637d9
lea edx, [esp + 0x38]
push edx
push 0x15b38
mov dword [esp + 0x1c], 0x400
call esi
lea eax, [esp + 0x12c]
lea edx, [eax + 1]
jmp 0x40bef0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bef0
mov ecx, dword [esp + 0x52c]
sub eax, edx
mov eax, ebx
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.0050ab27
add esp, 0x528
ret