joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2540
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x56db28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0xc], esi
call fcn.004a0a30
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp eax, 1
mov dword [esp + 0x14], edi
mov dword [esi], 0x594290
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x18], eax
jge 0x4a259e
mov dword [esi + 0x18], 1
jmp 0x4a25ac
cmp eax, 0x7ffffffd
jle 0x4a25ac
mov dword [esi + 0x18], 0x7ffffffd
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esi + 0x18]
push 4
inc ecx
mov dword [esi + 0x20], edx
push ecx
mov dword [esi + 0x24], eax
call fcn.004c6580
mov edx, dword [esi + 0x18]
push 4
add edx, 2
mov dword [esi + 0x3c], eax
push edx
call fcn.004c6580
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
mov dword [esi + 0x40], eax
add esp, 0x10
xor eax, eax
cmp ecx, edi
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x28], edi
setl al
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], edi
mov dword [ecx], edx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x20
Function at 0x4b8a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x4b8aca
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x24]
push eax
mov eax, dword [ebx + 0x20]
push ecx
mov ecx, dword [ebx + 0x1c]
push edx
mov edx, dword [ebx + 0x18]
push eax
mov eax, dword [ebx + 0x14]
push ecx
mov ecx, dword [ebx + 0x10]
push edx
mov edx, dword [ebx + 0xc]
push eax
mov eax, dword [ebx + 8]
push ecx
mov ecx, dword [ebx + 4]
push edx
mov edx, dword [ebx]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
push ecx
push edx
push edi
push 0x5ca680
call fcn.005048fd
add esp, 0x44
mov eax, dword [esi]
mov ecx, 3
mov eax, dword [eax + 0xc]
cmp eax, ecx
ja 0x4b8b0d
jmp dword [eax*4 + 0x4baf38]
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4bcab0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x56e386
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
push 4
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0x24]
mov dword [esi + 0x24], edx
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x44], ecx
mov eax, dword [edi + 0x48]
push eax
mov dword [esi + 0x48], eax
call fcn.004c6580
mov edx, dword [esi + 0x48]
push 1
push edx
mov dword [esi + 0x38], eax
call fcn.004c6580
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x48]
push 4
push eax
call fcn.004c6580
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x44]
add esp, 0x18
xor ebx, ebx
test eax, eax
jle 0x4bcbf0
mov ecx, dword [edi + 0x38]
push 0xc
mov ebp, dword [ecx + ebx*4]
call fcn.0055d252
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x4bcb88
push ebp
mov ecx, eax
call fcn.004e2480
jmp 0x4bcb8a
xor eax, eax
mov edx, dword [esi + 0x38]
or ebp, 0xffffffff
push 0x34
mov dword [esp + 0x1c], ebp
mov dword [edx + ebx*4], eax
mov eax, dword [edi + 0x3c]
mov ecx, dword [esi + 0x3c]
mov dl, byte [eax + ebx]
mov byte [ebx + ecx], dl
call fcn.0055d252
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x18], 1
je 0x4bcbd7
mov ecx, dword [esi + 0x3c]
mov dl, byte [ebx + ecx]
mov ecx, dword [esi + 0x38]
and edx, 1
push edx
mov edx, dword [ecx + ebx*4]
push edx
mov ecx, eax
call fcn.004e3850
jmp 0x4bcbd9
xor eax, eax
mov ecx, dword [esi + 0x40]
inc ebx
mov dword [esp + 0x18], ebp
mov dword [ecx + ebx*4 - 4], eax
mov eax, dword [esi + 0x44]
cmp ebx, eax
jl 0x4bcb5e
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x4bd9b0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x56e3c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push 0x10
mov dword [esp + 0x1c], 0xd
call fcn.0055d252
add esp, 4
mov dword [esp + 0x10], eax
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x30], ebp
je 0x4bd9f5
mov ecx, eax
call fcn.004e43a0
mov ebp, eax
mov esi, dword [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
cmp dword [esi], 9
jne 0x4bdabc
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x18]
push eax
push ebx
mov ecx, esi
call fcn.004b24a0
mov edx, dword [eax]
xor ecx, ecx
cmp edx, 7
sete cl
mov eax, ecx
test eax, eax
je 0x4bdab3
push 0x48
call fcn.0055d252
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
mov dword [esp + 0x30], 1
je 0x4bda5e
mov edx, dword [esp + 0x20]
push ebx
push edx
mov ecx, eax
call fcn.004bd7b0
mov ebx, eax
jmp 0x4bda60
xor ebx, ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.004b24e0
push ebx
mov ecx, ebp
call fcn.004e43d0
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 8]
mov dword [esp + 0x14], edx
cmp eax, ecx
jne 0x4bdaa2
mov esi, dword [esi + 0xc]
mov dword [esp + 0x10], eax
mov eax, edx
mov dword [esp + 0x10], ecx
cmp esi, eax
je 0x4bdabc
mov eax, dword [ebx + 0x30]
lea esi, [ebx + 0x30]
cmp eax, 9
je 0x4bda0e
jmp 0x4bdabc
lea ecx, [esp + 0x18]
call fcn.004b24e0
mov ecx, dword [esp + 0x28]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4be380
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x56e438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 8
mov dword [esp + 0x14], ebx
call fcn.0055d252
add esp, 4
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x130]
cmp eax, ebx
mov dword [esp + 0x128], ebx
je 0x4be3d1
push edi
mov ecx, eax
call fcn.004c4450
mov esi, eax
jmp 0x4be3d3
xor esi, esi
mov eax, dword [esp + 0x134]
mov dword [esp + 0x128], 0xffffffff
cmp eax, ebx
je 0x4be3f5
push 0x5d0e94
mov ecx, esi
call fcn.004c47c0
cmp dword [esp + 0x138], ebx
je 0x4be40a
push 0x5d0e8c
mov ecx, esi
call fcn.004c47c0
push 0x5d0e80
mov ecx, esi
call fcn.004c47c0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x20], 0x104
mov eax, dword [esi + 4]
push ebx
push ebx
mov ebx, dword [esp + 0x14c]
push eax
push ebx
call dword [0x571008]
mov ebp, dword [esp + 0x140]
test eax, eax
jne 0x4be494
push 8
call fcn.0055d252
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x128], 1
je 0x4be46e
push ebp
mov ecx, eax
call fcn.004c4300
jmp 0x4be470
xor eax, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x128], 0xffffffff
push ecx
push 0x5c
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.004c4560
mov ecx, eax
call fcn.004c47c0
test esi, esi
je 0x4be4a8
mov ecx, esi
call fcn.004c44b0
push esi
call fcn.0055d27b
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4be555
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 4]
lea ecx, [esp + 0x1c]
push edx
push ecx
push eax
push ebx
call fcn.004be5c0
mov al, byte [esp + 0x2c]
add esp, 0x10
test al, al
je 0x4be526
push 8
call fcn.0055d252
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x128], 2
je 0x4be4fc
push ebp
mov ecx, eax
call fcn.004c4300
mov esi, eax
jmp 0x4be4fe
xor esi, esi
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
push 0x5c
mov dword [esp + 0x130], 0xffffffff
mov dword [esp + 0x18], esi
call fcn.004c4560
mov ecx, eax
call fcn.004c47c0
test esi, esi
jne 0x4be555
test edi, edi
je 0x4be53a
mov ecx, edi
call fcn.004c44b0
push edi
call fcn.0055d27b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
mov eax, dword [edi]
xor esi, esi
test eax, eax
jle 0x4be580
mov eax, dword [edi + 4]
mov al, byte [eax + esi]
cmp al, 0x20
je 0x4be572
cmp al, 0x2c
je 0x4be572
cmp al, 0x2d
je 0x4be572
inc esi
jmp 0x4be57c
push 1
push esi
mov ecx, edi
call fcn.004c5480
cmp esi, dword [edi]
jl 0x4be55d
push 0x18
call fcn.0055d252
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x128], 3
je 0x4be53a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x138]
push ecx
mov ecx, dword [esp + 0x138]
push edx
push ecx
push edi
mov ecx, eax
call fcn.004be7d0
jmp 0x4be53c
Function at 0x4be5c0
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x318
mov eax, 0x5d0ef4
push ebx
push ebp
mov ebp, dword [esp + 0x32c]
push esi
mov esi, dword [esp + 0x32c]
push edi
mov byte [ebp], 0
mov edx, dword [eax]
mov ecx, dword [esi]
cmp ecx, edx
jne 0x4be736
lea edx, [esp + 0x1c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea ecx, [esp + 0x1c]
push 0x5bb2b4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [esp + eax + 0x1c]
push 0x5d0ee8
push edi
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x1c]
push eax
call ebx
test eax, eax
je 0x4be715
push 0x5d0ee8
push ebp
call esi
mov esi, dword [esp + 0x330]
cmp byte [ebp], 0
jne 0x4be7c0
xor ebx, ebx
lea edx, [esp + 0x10]
lea ecx, [esp + 0x224]
push edx
lea edx, [esp + 0x18]
mov eax, 0x104
push ecx
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
push 0
lea edx, [esp + 0x130]
mov eax, ebx
push ecx
push edx
push eax
mov eax, dword [esp + 0x348]
inc ebx
push eax
call dword [0x57100c]
test eax, eax
jne 0x4be7c0
cmp dword [esp + 0x14], 1
jne 0x4be665
lea ecx, [esp + 0x120]
push 0x5d0e80
push ecx
call fcn.00504c00
add esp, 8
test eax, eax
je 0x4be665
lea edx, [esp + 0x120]
push 0x5d0ee4
push edx
mov byte [eax], 0
call fcn.00506433
add esp, 8
test eax, eax
je 0x4be7b6
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4be78e
push 0x5d0ee4
push 0
call fcn.00506433
add esp, 8
test eax, eax
jne 0x4be6ed
jmp 0x4be7b6
push 0x5d0ed8
push edi
call esi
lea ecx, [esp + 0x1c]
push ecx
call ebx
test eax, eax
je 0x4be652
push 0x5d0ed8
jmp 0x4be64f
mov eax, dword [esi]
mov edx, 0x5d0ed0
cmp eax, dword [edx]
jne 0x4be752
push 0x5d0ec4
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4be659
mov edx, dword [esi]
mov ecx, 0x5d0ebc
cmp edx, dword [ecx]
jne 0x4be76e
push 0x5d0eb0
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4be659
mov ecx, dword [esi]
mov eax, 0x5d0ea8
cmp ecx, dword [eax]
jne 0x4be659
push 0x5d0e9c
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4be659
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x224]
mov ecx, eax
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x330]
mov byte [eax + ebp], 0
cmp byte [ebp], 0
je 0x4be665
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
Function at 0x4ca460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56edcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
push 8
mov dword [esi], 0x59469c
mov dword [esi + 0xa0], edi
call fcn.0055d252
add esp, 4
mov dword [esp + 8], eax
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x4ca4ac
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.004c4300
jmp 0x4ca4ae
xor eax, eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x24], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x30], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x4e7130
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
push edi
mov edx, dword [esi + 4]
mov esi, dword [esi]
test esi, esi
mov edi, ecx
jle 0x4e715c
push ebx
mov cl, byte [edx]
mov ebx, eax
shl ebx, 4
and ecx, 0xff
add ebx, eax
add ecx, ebx
inc edx
dec esi
mov eax, ecx
jne 0x4e7144
pop ebx
xor edx, edx
div dword [edi + 4]
pop edi
pop esi
mov eax, edx
ret 4

Function at 0x4e8420
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, dword [esp + 8]
xor eax, eax
mov dl, byte [esi]
test dl, dl
je 0x4e8447
push edi
mov edi, eax
and edx, 0xff
shl edi, 4
add edi, eax
add edx, edi
inc esi
mov eax, edx
mov dl, byte [esi]
test dl, dl
jne 0x4e842e
pop edi
xor edx, edx
pop esi
div dword [ecx + 4]
mov eax, edx
ret 4
Function at 0x4ff0f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ecx, ecx
push edi
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x4ff0fd
mov byte [esp + 0x20], cl
xor edi, edi
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov dl, byte [edi + esi]
and eax, 0xff
xor ebx, ebx
mov bl, byte [eax + ebp]
mov ebp, edx
and ebp, 0xff
add ecx, ebx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4ff13f
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
inc eax
mov bl, byte [ecx + esi]
mov byte [edi + esi], bl
mov byte [ecx + esi], dl
cdq
idiv dword [esp + 0x1c]
inc edi
cmp edi, 0x100
mov byte [esp + 0x20], dl
jl 0x4ff10e
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x50398b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5039ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00505b47
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5039ce
test byte [esp + 8], 2
je 0x5039ce
call fcn.00505bba
mov dword [eax], 0xd
call fcn.00505bc3
mov dword [eax], 5
jmp 0x5039a7
xor eax, eax
ret
Function at 0x516670
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00502930
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x51673b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x51673b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x5166ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x5166f9
or bh, 8
and edi, 0x8000000
je 0x516714
mov eax, dword [0x6046fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x51673b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x516b10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x516b3b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x516b5f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x516b7a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x5173a0
Capabilities:
Terminate process

Disassembly:
push 0x5eed74
call fcn.005048fd
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.0055a270
push 0x5bdbfc
call fcn.005048fd
add esp, 0x10
push 1
call fcn.00505fce
nop
nop
nop
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [eax]
test ebx, ebx
jg 0x5173ee
push ebx
push 0x5eed88
call fcn.005173a0
add esp, 8
mov al, byte [esi + 0x24]
test al, al
je 0x517404
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x28]
cmp ecx, eax
jb 0x517404
pop esi
xor eax, eax
pop ebx
ret
mov al, byte [esi + 0x1c]
test al, al
je 0x51741c
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x10]
sub edx, ecx
cmp edx, ebx
jbe 0x51741c
pop esi
xor eax, eax
pop ebx
ret
push edi
push ebx
push esi
call fcn.00517460
mov edi, eax
add esp, 8
test edi, edi
je 0x517441
push 0
push ebx
push edi
push esi
call fcn.00517490
mov eax, dword [esi + 0x18]
add esp, 0x10
inc eax
mov dword [esi + 0x18], eax
mov eax, edi
pop edi
pop esi
mov dword [0x5ff1c8], 0x5c4264
mov dword [0x5ff1cc], 0
pop ebx
ret
Function at 0x51dcf0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
call fcn.0055a270
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
push 0x5ff1d0
call fcn.00506258
add esp, 0x14
push 0x5ff1d0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
ret

Function at 0x51dd30
Capabilities:
Print debug messages
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push 0x6011d0
call fcn.00506258
add esp, 0xc
push 0x6011d0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 1
call fcn.00505fce
nop
nop
nop
nop
nop
nop
nop

Function at 0x55d539
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x55d55b
cmp dword [edi + 0x3c], 0
jne 0x55d55b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00566199
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0055d588
pop edi
pop esi
pop ebx
ret 8

Function at 0x55f1f5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x55f22d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0055d180
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0055d158
jmp 0x55f239
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x560829
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x56086b
call fcn.00566199
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x56086b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x560862
xor eax, eax
jmp 0x560873
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00560879
pop edi
pop esi
pop ebx
ret 4

Function at 0x566fdc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x56700a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x567028
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00566f42
jmp 0x567028
mov eax, dword [esi + 0x14]
test eax, eax
je 0x567028
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00566f42
test edi, edi
mov eax, edi
jne 0x567012
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8