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

Disassembly:
push 0xffffffffffffffff
push 0x5c0d1b
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
push esi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x44effb
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 0x44f051
push 0
mov ecx, edi
call fcn.00416b90
lea eax, [esi - 0x10]
mov dword [esp + 0x11c], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x44f0b3
mov ecx, dword [eax]
push eax
jmp 0x44f0ac
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x44f085
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 0x5f4e74
push edx
call fcn.00405630
mov esi, dword [esp + 0x18]
add esp, 0xc
add esi, 0xfffffff0
push esi
call fcn.00405210
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 0x44f0b3
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.004e3dc3
add esp, 0x114
ret
Function at 0x44f360
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5c0c88
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
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.004cdc49
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 0x44f441
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 0x44f437
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp al, 0x41
je 0x44f421
cmp al, 0x42
je 0x44f421
push esi
call edi
cmp eax, 4
je 0x44f421
push esi
call edi
cmp eax, 5
je 0x44f421
push esi
call edi
cmp eax, 6
je 0x44f421
push esi
call edi
test eax, eax
je 0x44f421
push esi
call edi
cmp eax, 2
je 0x44f421
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.004cdf00
push 0
push esi
call fcn.004e5678
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x44f3e3
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x5f510f
lea ecx, [esp + 0x18]
call fcn.00416b90
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x40]
xor esi, esi
test eax, eax
jle 0x44f4b8
test esi, esi
jl 0x44f53e
cmp esi, eax
jge 0x44f53e
mov ecx, dword [esp + 0x20]
lea eax, [ecx + esi*4]
push eax
lea ecx, [esp + 0x18]
call fcn.00404e20
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x44f527
push ecx
push edi
call fcn.004e64c5
add esp, 8
test eax, eax
sete al
test al, al
jne 0x44f531
mov eax, dword [esp + 0x24]
add esi, 1
cmp esi, eax
jl 0x44f462
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 0x44f4dd
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.004cdce7
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 0x44f50f
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 0x44f4b8
jmp fcn.004c788e
Function at 0x44f550
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5c0c48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ecx, [esp + 0x1c]
call fcn.004cdc49
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 0x44f62e
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 0x44f624
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, edi
cmp al, 0x41
je 0x44f60e
cmp al, 0x42
je 0x44f60e
push esi
call edi
cmp eax, 4
je 0x44f60e
push esi
call edi
cmp eax, 5
je 0x44f60e
push esi
call edi
cmp eax, 6
je 0x44f60e
push esi
call edi
test eax, eax
je 0x44f60e
push esi
call edi
cmp eax, 2
je 0x44f60e
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.004cdf00
push 0
push esi
call fcn.004e5678
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x44f5d0
push ebx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x5f510f
lea ecx, [esp + 0x1c]
call fcn.00416b90
push 0x5f510f
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00416b90
mov ebx, dword [esp + 0x40]
mov byte [esp + 0x38], 2
mov eax, dword [ebx + 8]
xor edi, edi
test eax, eax
jle 0x44f701
test edi, edi
jl 0x44f786
cmp edi, eax
jge 0x44f786
mov ecx, dword [ebx + 4]
lea eax, [ecx + edi*4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404e20
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
jle 0x44f6e6
nop
test esi, esi
jl 0x44f786
cmp esi, eax
jge 0x44f786
mov edx, dword [esp + 0x20]
lea eax, [edx + esi*4]
push eax
lea ecx, [esp + 0x18]
call fcn.00404e20
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x44f77c
mov eax, dword [esp + 0x18]
push ecx
push eax
call fcn.004e64c5
add esp, 8
test eax, eax
sete al
test al, al
jne 0x44f6f3
mov eax, dword [esp + 0x24]
add esi, 1
cmp esi, eax
jl 0x44f690
push 1
push edi
mov ecx, ebx
call fcn.004cde3c
sub edi, 1
mov eax, dword [ebx + 8]
add edi, 1
cmp edi, eax
jl 0x44f665
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 0x44f730
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 0x44f755
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.004cdce7
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.004c788e
Function at 0x44fa90
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x617560]
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.004eaae0
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 0x44faeb
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x94
call edi
test eax, eax
je 0x44fb0d
mov eax, dword [esp + 0x18]
sub eax, 2
jne 0x44fb0d
cmp dword [esp + 0xc], 6
jne 0x44fb0d
cmp dword [esp + 0x10], esi
jne 0x44fb0d
cmp byte [esp + 0xa2], 1
jne 0x44fb0d
xor esi, esi
mov ecx, dword [esp + 0xa4]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004e3dc3
add esp, 0xa0
ret
Function at 0x451db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5c538b
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
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 + 0x4523fc]
jmp dword [ecx*4 + 0x4523e8]

Function at 0x4529c1
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x2ac], 0
jne 0x452a2a
call fcn.004ca1a2
mov ecx, dword [eax + 4]
call fcn.004c5551
mov eax, dword [esi + 0x91c]
test eax, eax
mov dword [esi + 0x2b0], 0
je 0x4529ff
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x91c], 0
push 0
push 0
push esi
push 0x453300
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x14
mov dword [esi + 0x91c], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 7]
call fcn.00405ef0
mov eax, 1
pop esi
pop ecx
ret
Function at 0x453120
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push edi
or edi, 0xffffffff
cmp dword [esi + 0x924], edi
mov dword [esp + 4], 0
je 0x4532db
push ebx
push ebp
jmp 0x453140
mov edi, 0x100000
sub edi, dword [esi + 0x8fc]
lea ebp, [esi + 0x8fc]
cmp edi, 4
jae 0x453163
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4532ca
mov eax, dword [esi + 0x8f4]
mov ecx, dword [esp + 0xc]
mov ebx, 0x100000
sub ebx, eax
test ecx, ecx
jne 0x453207
cmp ebx, 4
jae 0x4531ae
push ebx
push ebp
mov dword [esi + 0x8f4], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov edi, 0x100000
sub edi, dword [ebp]
mov ebx, 0x100000
cmp edi, 4
jae 0x4531ae
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4532ca
mov dword [esp + 0xc], 0
mov ebp, 4
jmp 0x4531c0
mov eax, dword [esi + 0x8f4]
add eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x924]
add eax, dword [esi + 0x8f0]
push 0
push ebp
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4531f4
cmp eax, 0xffffffff
je 0x4531f4
add dword [esp + 0xc], eax
sub ebp, eax
test ebp, ebp
jg 0x4531c0
mov eax, dword [esi + 0x8f4]
mov edx, dword [esi + 0x8f0]
mov ecx, dword [eax + edx]
mov dword [esp + 0xc], ecx
cmp ecx, edi
jle 0x453218
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4532ca
cmp ecx, ebx
jle 0x45325f
mov edx, dword [esi + 0x8f0]
push ebx
lea edi, [esi + 0x8fc]
mov dword [eax + edx], 0xffffffff
push edi
mov dword [esi + 0x8f4], 0
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, 0x100000
sub eax, dword [edi]
cmp dword [esp + 0xc], eax
jle 0x45325b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4532ca
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x8f4]
mov eax, dword [esi + 0x8f0]
mov dword [edx + eax], ecx
add dword [esi + 0x8f4], 4
lea edi, [ecx - 4]
xor ebx, ebx
test edi, edi
jle 0x4532b4
mov edi, edi
mov ecx, dword [esi + 0x8f4]
mov edx, dword [esi + 0x924]
push 0
add ecx, ebx
add ecx, dword [esi + 0x8f0]
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4532b0
cmp eax, 0xffffffff
je 0x4532b0
sub edi, eax
add ebx, eax
test edi, edi
jg 0x453280
mov ecx, dword [esp + 0xc]
push ecx
lea eax, [esi + 0x8fc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov dword [esp + 0xc], 0
or edi, 0xffffffff
cmp dword [esi + 0x924], edi
jne 0x453140
pop ebp
pop ebx
mov eax, dword [esi + 0x924]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x924], edi
xor eax, eax
pop edi
pop ecx
ret
Function at 0x453d30
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 0x453d6f
mov ebp, dword [sym.imp.WS2_32.dll_send]
cmp esi, 0x320
mov eax, 0x320
jg 0x453d50
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 0x453d78
cmp eax, 0xffffffff
je 0x453d78
sub esi, eax
add edi, eax
test esi, esi
jg 0x453d41
pop edi
pop esi
mov eax, 1
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebp
ret

Function at 0x453d80
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 0x453de1
cmp eax, 0xffffffff
je 0x453de1
sub esi, eax
add edi, eax
test esi, esi
jg 0x453d90
mov esi, dword [ebx]
sub esi, 4
test esi, esi
jle 0x453de7
mov eax, dword [esp + 0x10]
push 0
push esi
lea edx, [edi + ebx]
push edx
push eax
call ebp
test eax, eax
je 0x453de1
cmp eax, 0xffffffff
je 0x453de1
sub esi, eax
add edi, eax
test esi, esi
jle 0x453de7
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x453db8
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [ebx]
pop edi
pop esi
pop ebp
ret
Function at 0x459650
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5c6cc8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0xa4], ebx
jne 0x459736
mov eax, dword [edi + 0xc8]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004ca1a2
mov ecx, dword [eax + 4]
call fcn.004c5551
mov dword [esp + 0x18], ebx
mov esi, dword [edi + 0xbc]
call fcn.0044b330
test eax, eax
jne 0x4596db
lea ecx, [esp + 0xf]
mov dword [edi + 0xbc], ebx
mov dword [esp + 0x18], 0xffffffff
call fcn.00405ef0
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 0x4596f8
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 0x45970a
push 0x457210
jmp 0x45970f
push 0x459b60
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.00405ef0
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 0x46e980
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c1dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
cmp dword [edi], 0xffffffff
je 0x46eb8c
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3e68], 0
jne 0x46e9db
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 + 0xa3ac]
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 + 0x3e78], 0
lea ebx, [eax + esi + 0x3e74]
je 0x46ea16
cmp dword [ebx + 8], 0
je 0x46ea16
mov ecx, dword [esi + 0x3e64]
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 + 0x3e6c], 0xffffffff
mov eax, dword [edi]
cmp eax, dword [esi + 0x3e70]
jne 0x46ea64
add eax, 0xffffffff
mov ecx, eax
imul ecx, ecx, 0x64
cmp dword [ecx + esi + 0x3e74], edx
lea ecx, [ecx + esi + 0x3e74]
jne 0x46ea5e
lea esp, [esp]
cmp eax, edx
jl 0x46ea5e
sub ecx, 0x64
sub eax, 1
cmp dword [ecx], edx
je 0x46ea50
mov dword [esi + 0x3e70], eax
mov edx, dword [esi + 0x3e44]
add edx, 0xa28
shl edx, 4
add edx, esi
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0046fd60
mov dword [esp + 0x38], 0
mov eax, dword [esi + 0x3e70]
cmp eax, 0xffffffff
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
jne 0x46eaa2
mov eax, 1
jmp 0x46eab8
test edi, edi
jne 0x46eaaa
xor ecx, ecx
jmp 0x46eab1
mov ecx, ebx
sub ecx, edi
sar ecx, 4
xor edx, edx
div ecx
add eax, 1
add eax, 0xffffffff
cmp dword [esi + 0x3e4c], eax
jle 0x46eacd
mov dword [esi + 0x3e4c], 0
mov eax, dword [esi + 0xa3dc]
test eax, eax
jl 0x46eb02
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx]
jne 0x46eb4e
call fcn.0046deb0
mov edx, dword [esi + 0x20]
push 1
push 0
push edx
mov dword [esi + 0xa3dc], 0xffffffff
call dword [sym.imp.USER32.dll_InvalidateRect]
call fcn.0046de70
jmp 0x46eb4e
test edi, edi
jne 0x46eb0a
xor eax, eax
jmp 0x46eb11
mov eax, ebx
sub eax, edi
sar eax, 4
mov ecx, dword [esi + 0x3e4c]
mov edx, dword [ebp + 0xc]
imul ecx, eax
mov eax, dword [edx]
sub eax, ecx
js 0x46eb4e
test edi, edi
je 0x46eb4e
sub ebx, edi
sar ebx, 4
cmp eax, ebx
jae 0x46eb4e
mov edi, eax
lea esi, [esp + 0x1c]
call fcn.0046ffe0
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 + 0x3e48]
mov edi, dword [ebp + 0xc]
cmp edx, dword [edi]
jne 0x46eb72
lea ebx, [esp + 0x14]
mov dword [edi], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
call fcn.0046e2f0
mov eax, dword [esp + 0x18]
push eax
mov dword [edi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x1c]
call fcn.0046fe50
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 0x470510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5be988
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x617560]
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.004cd970
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
call fcn.004cda48
mov ecx, dword [esi + 4]
push 0xd
mov dword [esp + 0x18], eax
call fcn.004ccfd9
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x90]
cmp dword [eax + 8], 0
jle 0x4706a5
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.004cd3b2
mov ecx, dword [esi + 0x90]
xor edi, edi
cmp dword [ecx + 8], edi
jle 0x470635
test edi, edi
mov eax, dword [esi + 0x90]
jl 0x4706a5
cmp edi, dword [eax + 8]
jge 0x4706a5
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.004cd0a2
mov eax, dword [esi + 0x90]
cmp edi, dword [eax + 8]
jge 0x4706a5
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.004cd0a2
mov edx, dword [esi + 0x90]
add edi, 1
cmp edi, dword [edx + 8]
jl 0x4705d0
mov ecx, dword [esi + 0x90]
lea eax, [edi - 1]
test eax, eax
jl 0x4706a5
cmp eax, dword [ecx + 8]
jge 0x4706a5
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.004cd0a2
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push edx
call fcn.004cda48
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push eax
call fcn.004ccfd9
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CGdiObject.0
call fcn.004cd9c3
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.004c788e
Function at 0x470c70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5be928
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x617560]
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.004cd970
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x24]
push eax
call fcn.004cda48
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.004ccfab
mov esi, dword [ebx + 0x90]
mov eax, dword [esi + 8]
cmp eax, edi
mov dword [esp + 0x14], eax
jge 0x470d11
call fcn.004c788e
lea edi, [eax + 1]
call fcn.00470ec0
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 0x470d0c
cmp ecx, dword [eax + 8]
jge 0x470d0c
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.004ccfd9
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.004cd3b2
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 4]
push edx
push eax
call fcn.004cd0a2
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 4]
call fcn.004cda48
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 4]
push edx
call fcn.004ccfab
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.004cd9c3
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