joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467f70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x467fa3
push esi
call fcn.0046b080
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x467f9c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x468029
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x468012
mov eax, dword [esi + 8]
test eax, eax
je 0x467fc7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46800e
cmp eax, 2
je 0x468012
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x467fba
cmp eax, 3
je 0x467fed
cmp eax, 1
jne 0x467fba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x467fba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x467fba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00468050
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x468038
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00468050
add esp, 4
pop esi
ret

Function at 0x475210
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4752b3
test eax, eax
jbe 0x4752b3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4752b3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47525e
xor esi, esi
jmp 0x475264
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47528f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00479860
add esi, eax
push esi
mov ebx, esi
call fcn.00479860
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x475270
pop ebp
test edi, edi
pop edi
jne 0x4752b3
test ebx, ebx
je 0x4752b3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00498560
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4753f5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47550d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47550d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004bc5f2
mov esi, eax
test esi, esi
je 0x47550d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47550d
mov ecx, esi
call fcn.00475360
cmp edi, eax
jge 0x47550d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x475493
mov dword [esp + 0x34], 1
jmp 0x4754ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47550d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00473b70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x479b20
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x479b86
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x479b86
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x479b67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x47a770
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x47a7b9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x47ac30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ca020
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047a7e0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047a860
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047a860
lea ecx, [esi + 0xc]
call fcn.004bab4f
lea ecx, [esi + 0x10]
call fcn.004bab4f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047bdf0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047bdf0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047bdf0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004babc4
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004babc4
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47c150
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4ca268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.0049659d
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.004bac32
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.004b7f90
mov eax, dword [eax]
push 0x5e5554
push eax
call fcn.00497c14
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.004babc4
test bl, bl
je 0x47c1d0
push 0x5e5554
lea ecx, [esp + 0xc]
call fcn.004baf54
push 0x5e5550
lea ecx, [esp + 0xc]
call fcn.004baf54
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.00496660
test eax, eax
je 0x47c294
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.00496880
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x47c250
lea ecx, [esp + 0x18]
call fcn.00496847
test eax, eax
jne 0x47c250
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0049694f
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.0047c150
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x47c285
lea ecx, [esp + 0x18]
call fcn.00496847
test eax, eax
jne 0x47c28a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x47c28a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.0049694f
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.004babc4
test edi, edi
jne 0x47c200
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.00496616
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.004babc4
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.004965da
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x47c390
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4ca296
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x5e5d18]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.004bad01
push 0x5e5578
lea ecx, [esp + 0x10]
call fcn.004baf54
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x47c433
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.004babc4
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.004babc4
xor eax, eax
jmp 0x47c578
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x5e5574
push edx
call fcn.00497c14
add esp, 8
test eax, eax
je 0x47c529
lea eax, [esp + 0x48]
push 0x5e5570
push eax
call fcn.00497c14
add esp, 8
test eax, eax
je 0x47c529
test ebp, ebp
jne 0x47c495
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.00497cc3
add esp, 8
test eax, eax
je 0x47c529
push esi
lea ecx, [esp + 0x14]
call fcn.004bad01
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004baf7b
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.004baf54
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x47c4d5
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x47c4f7
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.0047c390
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x47c529
test edi, edi
je 0x47c51e
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.00497cc3
add esp, 8
test eax, eax
jne 0x47c51e
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.0047c5a0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x47c443
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.004babc4
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004babc4
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x47c5a0
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ca2ab
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.00498440
mov eax, dword [0x5e5d18]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.004bad01
push 0x5c
lea ecx, [esp + 8]
call fcn.004baf7b
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.004baf54
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47c646
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.004babc4
xor eax, eax
jmp 0x47c6c3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x47c6a1
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x47c693
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x47c66d
jmp 0x47c6a1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.004babc4
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8
Function at 0x47c6e0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x14
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebp
je 0x47c810
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
push eax
push 0x40000
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x47c7ff
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push ecx
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x47c7ff
mov eax, dword [esp + 0x34]
test eax, eax
je 0x47c7fa
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push 0x20019
push ebp
push esi
push edi
call ebx
test eax, eax
jne 0x47c7ff
push eax
push eax
lea edx, [esp + 0x30]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x34]
push ebp
lea eax, [esp + 0x44]
push edx
push eax
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x47c7ff
push 0x105
call fcn.004ba905
mov esi, eax
mov eax, dword [esp + 0x30]
add esp, 4
xor edi, edi
test eax, eax
jbe 0x47c7f1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, dword [esp + 0x10]
push 0x105
push esi
push edi
push edx
call ebx
test eax, eax
jne 0x47c7e1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push 1
push eax
push esi
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0047c6e0
jmp 0x47c7e8
cmp eax, 0x103
je 0x47c7f1
mov eax, dword [esp + 0x2c]
inc edi
cmp edi, eax
jb 0x47c7b7
push esi
call fcn.004ba92e
add esp, 4
mov ebp, 1
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebx
je 0x47c810
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop esi
pop ebp
add esp, 0x14
ret 0x10
Function at 0x47eb30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ca398
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x28]
push ebx
xor ebx, ebx
push esi
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], al
call fcn.0047e490
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax + 4]
cmp ecx, ebx
jne 0x47eb75
xor eax, eax
jmp 0x47eb7a
mov eax, dword [eax + 8]
add eax, ecx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x3c]
push edx
push eax
push ecx
lea eax, [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.0047f1a0
mov esi, dword [esp + 0x48]
mov dl, byte [esp + 0x28]
add esp, 0x1c
lea ecx, [esp + 0xc]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x5033c0]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.0047e210
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x47ebf8
mov al, byte [ecx - 1]
cmp al, bl
je 0x47ebee
cmp al, 0xff
je 0x47ebee
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.004ba92e
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x484c20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4ca598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.00485010
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x62cf6c
call fcn.004998b8
mov ecx, dword [0x5033c0]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0047e210
mov esi, 0x50344c
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x484cc7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x484cbe
cmp al, 0xff
je 0x484cbe
dec al
mov byte [ecx], al
jmp 0x484cc7
push ecx
call fcn.004ba92e
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004b6640
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x484d0d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x484d04
cmp al, 0xff
je 0x484d04
dec al
mov byte [ecx], al
jmp 0x484d0d
push ecx
call fcn.004ba92e
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0049993f
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4b0c40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4cb750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004a5b83
mov eax, dword [0x5cdc18]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004a5ab5
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004b1760
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4b0ce7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4b0cde
cmp al, 0xff
je 0x4b0cde
dec al
mov byte [ecx], al
jmp 0x4b0ce7
push ecx
call fcn.004ba92e
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4b0d18
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4b0d0f
cmp al, 0xff
je 0x4b0d0f
dec al
mov byte [ecx], al
jmp 0x4b0d18
push ecx
call fcn.004ba92e
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4bcf95
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4bcfcd
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.004bb01f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004baff7
jmp 0x4bcfd9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4be683
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 0x4be6c5
call fcn.004c423f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4be6c5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4be6bc
xor eax, eax
jmp 0x4be6cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004be6d3
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c476f
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 0x4c479d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c47bb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c46d5
jmp 0x4c47bb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c47bb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c46d5
test edi, edi
mov eax, edi
jne 0x4c47a5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4020d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 4]
xor ebp, ebp
push edi
mov dword [esp + 0xc], ebp
cmp eax, ebp
je 0x4020f7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
call fcn.00414d0b
mov ecx, dword [esp + 0x18]
movzx edx, word [esp + 0x14]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebp
jne 0x402149
call fcn.00414d0b
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov eax, dword [eax + 0x20]
push 9
push 0x10
push str.CPicture_Error
push str.FindResource___Failed_t
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
push ebx
call fcn.00414d0b
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, ebp
jne 0x402193
call fcn.00414d0b
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov eax, dword [eax + 0x20]
push 9
push 0x10
push str.CPicture_Error
push str.LoadResource___Failed_t
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4021d1
call fcn.00414d0b
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov eax, dword [eax + 0x20]
push 9
push 0x10
push str.CPicture_Error
push str.LockResource___Failed_t
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
call fcn.00414d0b
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
push esi
call fcn.00402260
test eax, eax
je 0x4021f6
mov dword [esp + 0x10], 1
mov eax, dword [esi + 4]
mov dword [esi + 0xc], edi
cmp eax, ebp
je 0x402249
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
lea edi, [esi + 8]
push edi
push eax
call edx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
add esi, 0x10
push esi
push eax
call edx
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x9ec
push 0x60
push eax
call ebx
mov ecx, dword [esi]
push 0x9ec
push 0x60
push ecx
mov dword [edi], eax
call ebx
pop ebx
pop edi
mov dword [esi], eax
mov eax, dword [esp + 8]
pop esi
pop ebp
pop ecx
ret 8
pop ebx
pop edi
mov dword [esi + 8], ebp
mov dword [esi + 0x10], ebp
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8