joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459330
Capabilities:
Get hostname
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x5cfb7b
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
push esi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45938b
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
push 0x100
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x124], 0
call dword [sym.imp.WS2_32.dll_gethostname]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x4593e1
push 0
mov ecx, edi
call fcn.0041c4a0
lea eax, [esi - 0x10]
mov dword [esp + 0x11c], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x459443
mov ecx, dword [eax]
push eax
jmp 0x45943c
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x459415
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x10]
push 0x604f14
push edx
call fcn.004056d0
mov esi, dword [esp + 0x18]
add esp, 0xc
add esi, 0xfffffff0
push esi
call fcn.004052b0
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x11c], ebp
lea eax, [esi + 0xc]
lock xadd dword [eax], ebp
dec ebp
test ebp, ebp
jg 0x459443
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f2a78
add esp, 0x114
ret
Function at 0x4596f0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5cfae8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
call fcn.004dc97c
push ebx
mov byte [esp + 0x3c], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x4597d1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
mov ebp, eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push esi
push 0
push ebp
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
call edi
mov al, byte [esi]
test al, al
je 0x4597c7
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp al, 0x41
je 0x4597b1
cmp al, 0x42
je 0x4597b1
push esi
call edi
cmp eax, 4
je 0x4597b1
push esi
call edi
cmp eax, 5
je 0x4597b1
push esi
call edi
cmp eax, 6
je 0x4597b1
push esi
call edi
test eax, eax
je 0x4597b1
push esi
call edi
cmp eax, 2
je 0x4597b1
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.004dcc33
push 0
push esi
call fcn.004f432d
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x459773
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x60518f
lea ecx, [esp + 0x18]
call fcn.0041c4a0
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x40]
xor esi, esi
test eax, eax
jle 0x459848
test esi, esi
jl 0x4598ce
cmp esi, eax
jge 0x4598ce
mov ecx, dword [esp + 0x20]
lea eax, [ecx + esi*4]
push eax
lea ecx, [esp + 0x18]
call fcn.00404ec0
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x4598b7
push ecx
push edi
call fcn.004f5185
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4598c1
mov eax, dword [esp + 0x24]
add esi, 1
cmp esi, eax
jl 0x4597f2
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45986d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.004dca1a
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45989f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x80004005
call fcn.00404150
mov dword [esp + 0x18], 1
jmp 0x459848
jmp fcn.004d66ad
Function at 0x4598e0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5cfaa8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ecx, [esp + 0x1c]
call fcn.004dc97c
push 0
mov dword [esp + 0x3c], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call edi
mov esi, eax
test esi, esi
je 0x4599be
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
mov ebp, eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push esi
push 0
push ebp
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
call edi
mov al, byte [esi]
test al, al
je 0x4599b4
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, edi
cmp al, 0x41
je 0x45999e
cmp al, 0x42
je 0x45999e
push esi
call edi
cmp eax, 4
je 0x45999e
push esi
call edi
cmp eax, 5
je 0x45999e
push esi
call edi
cmp eax, 6
je 0x45999e
push esi
call edi
test eax, eax
je 0x45999e
push esi
call edi
cmp eax, 2
je 0x45999e
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.004dcc33
push 0
push esi
call fcn.004f432d
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x459960
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x60518f
lea ecx, [esp + 0x1c]
call fcn.0041c4a0
push 0x60518f
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.0041c4a0
mov ebx, dword [esp + 0x40]
mov byte [esp + 0x38], 2
mov eax, dword [ebx + 8]
xor edi, edi
test eax, eax
jle 0x459a91
test edi, edi
jl 0x459b16
cmp edi, eax
jge 0x459b16
mov ecx, dword [ebx + 4]
lea eax, [ecx + edi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404ec0
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
jle 0x459a76
nop
test esi, esi
jl 0x459b16
cmp esi, eax
jge 0x459b16
mov edx, dword [esp + 0x20]
lea eax, [edx + esi*4]
push eax
lea ecx, [esp + 0x18]
call fcn.00404ec0
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x459b0c
mov eax, dword [esp + 0x18]
push ecx
push eax
call fcn.004f5185
add esp, 8
test eax, eax
sete al
test al, al
jne 0x459a83
mov eax, dword [esp + 0x24]
add esi, 1
cmp esi, eax
jl 0x459a20
push 1
push edi
mov ecx, ebx
call fcn.004dcb6f
sub edi, 1
mov eax, dword [ebx + 8]
add edi, 1
cmp edi, eax
jl 0x4599f5
xor ecx, ecx
cmp dword [ebx + 8], ecx
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x14]
setne cl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459ac0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459ae5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004dca1a
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x80004005
call fcn.00404150
jmp fcn.004d66ad
Function at 0x459e20
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push edi
push 0x9c
lea eax, [esp + 0xc]
push 0
push eax
mov esi, 1
call fcn.004f9940
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x459e7b
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x94
call edi
test eax, eax
je 0x459e9d
mov eax, dword [esp + 0x18]
sub eax, 2
jne 0x459e9d
cmp dword [esp + 0xc], 6
jne 0x459e9d
cmp dword [esp + 0x10], esi
jne 0x459e9d
cmp byte [esp + 0xa2], 1
jne 0x459e9d
xor esi, esi
mov ecx, dword [esp + 0xa4]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004f2a78
add esp, 0xa0
ret

Function at 0x45be20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5d4bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov eax, dword [esp + 0x64]
movzx ecx, byte [eax + 0x45c46c]
jmp dword [ecx*4 + 0x45c458]
Function at 0x45cf01
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x2ac], 0
jne 0x45cf6a
call fcn.004d8fd9
mov ecx, dword [eax + 4]
call fcn.004d436d
mov eax, dword [esi + 0x920]
test eax, eax
mov dword [esi + 0x2b4], 0
je 0x45cf3f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x920], 0
push 0
push 0
push esi
push 0x45d840
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x14
mov dword [esi + 0x920], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 7]
call fcn.00405e40
mov eax, 1
pop esi
pop ecx
ret
Function at 0x45d660
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push edi
or edi, 0xffffffff
cmp dword [esi + 0x928], edi
mov dword [esp + 4], 0
je 0x45d81b
push ebx
push ebp
jmp 0x45d680
mov edi, 0x100000
sub edi, dword [esi + 0x900]
lea ebp, [esi + 0x900]
cmp edi, 4
jae 0x45d6a3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45d80a
mov eax, dword [esi + 0x8f8]
mov ecx, dword [esp + 0xc]
mov ebx, 0x100000
sub ebx, eax
test ecx, ecx
jne 0x45d747
cmp ebx, 4
jae 0x45d6ee
push ebx
push ebp
mov dword [esi + 0x8f8], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edi, 0x100000
sub edi, dword [ebp]
mov ebx, 0x100000
cmp edi, 4
jae 0x45d6ee
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45d80a
mov dword [esp + 0xc], 0
mov ebp, 4
jmp 0x45d700
mov eax, dword [esi + 0x8f8]
add eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x928]
add eax, dword [esi + 0x8f4]
push 0
push ebp
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x45d734
cmp eax, 0xffffffff
je 0x45d734
add dword [esp + 0xc], eax
sub ebp, eax
test ebp, ebp
jg 0x45d700
mov eax, dword [esi + 0x8f8]
mov edx, dword [esi + 0x8f4]
mov ecx, dword [eax + edx]
mov dword [esp + 0xc], ecx
cmp ecx, edi
jle 0x45d758
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45d80a
cmp ecx, ebx
jle 0x45d79f
mov edx, dword [esi + 0x8f4]
push ebx
lea edi, [esi + 0x900]
mov dword [eax + edx], 0xffffffff
push edi
mov dword [esi + 0x8f8], 0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, 0x100000
sub eax, dword [edi]
cmp dword [esp + 0xc], eax
jle 0x45d79b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45d80a
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x8f8]
mov eax, dword [esi + 0x8f4]
mov dword [edx + eax], ecx
add dword [esi + 0x8f8], 4
lea edi, [ecx - 4]
xor ebx, ebx
test edi, edi
jle 0x45d7f4
mov edi, edi
mov ecx, dword [esi + 0x8f8]
mov edx, dword [esi + 0x928]
push 0
add ecx, ebx
add ecx, dword [esi + 0x8f4]
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x45d7f0
cmp eax, 0xffffffff
je 0x45d7f0
sub edi, eax
add ebx, eax
test edi, edi
jg 0x45d7c0
mov ecx, dword [esp + 0xc]
push ecx
lea eax, [esi + 0x900]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [esp + 0xc], 0
or edi, 0xffffffff
cmp dword [esi + 0x928], edi
jne 0x45d680
pop ebp
pop ebx
mov eax, dword [esi + 0x928]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x928], edi
xor eax, eax
pop edi
pop ecx
ret
Function at 0x45e2a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push esi
mov esi, dword [ebx]
push edi
xor edi, edi
test esi, esi
jle 0x45e2df
mov ebp, dword [sym.imp.WS2_32.dll_send]
cmp esi, 0x320
mov eax, 0x320
jg 0x45e2c0
mov eax, esi
mov ecx, dword [esp + 0x10]
push 0
push eax
lea eax, [edi + ebx]
push eax
push ecx
call ebp
test eax, eax
je 0x45e2e8
cmp eax, 0xffffffff
je 0x45e2e8
sub esi, eax
add edi, eax
test esi, esi
jg 0x45e2b1
pop edi
pop esi
mov eax, 1
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebp
ret

Function at 0x45e2f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push esi
push edi
xor edi, edi
mov esi, 4
mov ecx, dword [esp + 0x10]
push 0
push esi
lea eax, [edi + ebx]
push eax
push ecx
call ebp
test eax, eax
je 0x45e351
cmp eax, 0xffffffff
je 0x45e351
sub esi, eax
add edi, eax
test esi, esi
jg 0x45e300
mov esi, dword [ebx]
sub esi, 4
test esi, esi
jle 0x45e357
mov eax, dword [esp + 0x10]
push 0
push esi
lea edx, [edi + ebx]
push edx
push eax
call ebp
test eax, eax
je 0x45e351
cmp eax, 0xffffffff
je 0x45e351
sub esi, eax
add edi, eax
test esi, esi
jle 0x45e357
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45e328
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [ebx]
pop edi
pop esi
pop ebp
ret
Function at 0x463c00
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5d6ba8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0xa4], ebx
jne 0x463ce6
mov eax, dword [edi + 0xc8]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004d8fd9
mov ecx, dword [eax + 4]
call fcn.004d436d
mov dword [esp + 0x18], ebx
mov esi, dword [edi + 0xbc]
call fcn.004552f0
test eax, eax
jne 0x463c8b
lea ecx, [esp + 0xf]
mov dword [edi + 0xbc], ebx
mov dword [esp + 0x18], 0xffffffff
call fcn.00405e40
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [edi + 0xa8]
cmp eax, ebx
mov dword [edi + 0xa0], ebx
je 0x463ca8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xa8], ebx
cmp dword [edi + 0xd0], ebx
push ebx
push ebx
push edi
jne 0x463cba
push 0x461800
jmp 0x463cbf
push 0x464110
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x14
mov dword [edi + 0xa8], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0xf]
mov dword [esp + 0x18], 0xffffffff
call fcn.00405e40
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x47c7d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d2158
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
cmp dword [edi], 0xffffffff
je 0x47c9db
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3e70], 0
jne 0x47c82b
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 0xa3b4]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
imul eax, eax, 0x64
cmp dword [eax + esi + 0x3e80], 0
lea ebx, [eax + esi + 0x3e7c]
je 0x47c866
cmp dword [ebx + 8], 0
je 0x47c866
mov ecx, dword [esi + 0x3e6c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push ebx
call eax
xor edx, edx
mov dword [ebx], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x60], edx
add dword [esi + 0x3e74], 0xffffffff
mov eax, dword [edi]
cmp eax, dword [esi + 0x3e78]
jne 0x47c8b4
add eax, 0xffffffff
mov ecx, eax
imul ecx, ecx, 0x64
cmp dword [ecx + esi + 0x3e7c], edx
lea ecx, [ecx + esi + 0x3e7c]
jne 0x47c8ae
lea esp, [esp]
cmp eax, edx
jl 0x47c8ae
sub ecx, 0x64
sub eax, 1
cmp dword [ecx], edx
je 0x47c8a0
mov dword [esi + 0x3e78], eax
mov edx, dword [esi + 0x3e4c]
shl edx, 4
lea eax, [edx + esi + 0xa288]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0047dc80
mov dword [esp + 0x38], 0
mov eax, dword [esi + 0x3e78]
cmp eax, 0xffffffff
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jne 0x47c8f1
mov eax, 1
jmp 0x47c907
test edi, edi
jne 0x47c8f9
xor ecx, ecx
jmp 0x47c900
mov ecx, ebx
sub ecx, edi
sar ecx, 4
xor edx, edx
div ecx
add eax, 1
add eax, 0xffffffff
cmp dword [esi + 0x3e54], eax
jle 0x47c91c
mov dword [esi + 0x3e54], 0
mov eax, dword [esi + 0xa3e4]
test eax, eax
jl 0x47c951
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx]
jne 0x47c99d
call fcn.0047bcb0
mov eax, dword [esi + 0x20]
push 1
push 0
push eax
mov dword [esi + 0xa3e4], 0xffffffff
call dword [sym.imp.USER32.dll_InvalidateRect]
call fcn.0047bc70
jmp 0x47c99d
test edi, edi
jne 0x47c959
xor eax, eax
jmp 0x47c960
mov eax, ebx
sub eax, edi
sar eax, 4
mov ecx, dword [esi + 0x3e54]
mov edx, dword [ebp + 0xc]
imul ecx, eax
mov eax, dword [edx]
sub eax, ecx
js 0x47c99d
test edi, edi
je 0x47c99d
sub ebx, edi
sar ebx, 4
cmp eax, ebx
jae 0x47c99d
mov edi, eax
lea esi, [esp + 0x1c]
call fcn.0047ded0
push 1
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x3e50]
mov edi, dword [ebp + 0xc]
cmp edx, dword [edi]
jne 0x47c9c1
lea ebx, [esp + 0x14]
mov dword [edi], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
call fcn.0047c140
mov eax, dword [esp + 0x18]
push eax
mov dword [edi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x1c]
call fcn.00473ee0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47e250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cda28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], vtable.CPen.0
mov dword [esp + 0x38], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x20]
call fcn.004dc6a3
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
call fcn.004dc77b
mov ecx, dword [esi + 4]
push 0xd
mov dword [esp + 0x18], eax
call fcn.004dbd0c
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x90]
cmp dword [eax + 8], 0
jle 0x47e3e5
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esi + 0x24], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esi + 4]
mov dword [esi + 0x28], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
push eax
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004dc0e5
mov ecx, dword [esi + 0x90]
xor edi, edi
cmp dword [ecx + 8], edi
jle 0x47e375
test edi, edi
mov eax, dword [esi + 0x90]
jl 0x47e3e5
cmp edi, dword [eax + 8]
jge 0x47e3e5
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
lea ebx, [edi*8]
mov edx, dword [eax + ebx]
add eax, ebx
mov eax, dword [eax + 4]
push eax
push edx
call fcn.004dbdd5
mov eax, dword [esi + 0x90]
cmp edi, dword [eax + 8]
jge 0x47e3e5
mov eax, dword [eax + 4]
mov edx, dword [eax + ebx]
mov ecx, dword [esi + 4]
add eax, ebx
mov eax, dword [eax + 4]
push eax
push edx
call fcn.004dbdd5
mov edx, dword [esi + 0x90]
add edi, 1
cmp edi, dword [edx + 8]
jl 0x47e310
mov ecx, dword [esi + 0x90]
lea eax, [edi - 1]
test eax, eax
jl 0x47e3e5
cmp eax, dword [ecx + 8]
jge 0x47e3e5
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*8]
lea eax, [ecx + eax*8]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push edx
call fcn.004dbdd5
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push edx
call fcn.004dc77b
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push eax
call fcn.004dbd0c
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CGdiObject.0
call fcn.004dc6f6
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jmp fcn.004d66ad
Function at 0x47e870
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd998
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], vtable.CPen.0
mov dword [esp + 0x38], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x28]
call fcn.004dc6a3
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x24]
push eax
call fcn.004dc77b
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x20]
push eax
call edx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x10]
push eax
call fcn.004dbcde
mov esi, dword [ebx + 0x90]
mov eax, dword [esi + 8]
cmp eax, edi
mov dword [esp + 0x14], eax
jge 0x47e911
call fcn.004d66ad
lea edi, [eax + 1]
call fcn.0047eac0
mov eax, dword [esp + 0x14]
mov esi, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], edx
mov eax, dword [ebx + 0x90]
mov ecx, dword [eax + 8]
add ecx, 0xffffffff
js 0x47e90c
cmp ecx, dword [eax + 8]
jge 0x47e90c
mov eax, dword [eax + 4]
lea eax, [eax + ecx*8]
mov ecx, dword [eax]
mov dword [ebx + 0x24], ecx
mov edx, dword [eax + 4]
mov ecx, dword [ebx + 4]
push 0xd
mov dword [ebx + 0x28], edx
call fcn.004dbd0c
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 4]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004dc0e5
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 4]
push edx
push eax
call fcn.004dbdd5
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 4]
call fcn.004dc77b
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 4]
push edx
call fcn.004dbcde
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0x2c]
push edx
call eax
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CGdiObject.0
call fcn.004dc6f6
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8