joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462930
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
call fcn.0045ffc0
test eax, eax
je 0x462942
xor eax, eax
pop esi
ret 4
push ebx
mov ebx, dword [esp + 0xc]
cmp ebx, 9
push edi
je 0x462b67
cmp ebx, 0xd
je 0x462b53
cmp dword [esi + 0x90], 0
je 0x462986
mov ecx, dword [esi + 0x90]
mov eax, dword [ecx]
mov edx, dword [eax + 0x8c]
push ebx
call edx
cmp eax, 1
je 0x462b84
cmp eax, 2
je 0x462b84
mov eax, dword [esi + 0x98]
test eax, eax
je 0x46299e
cmp eax, 1
je 0x46299e
cmp eax, 4
je 0x46299e
xor edi, edi
jmp 0x4629a3
mov edi, 1
mov ecx, esi
call fcn.004600a0
lea ecx, [ebx - 0x1b]
cmp ecx, 0xd
ja case.0x4629bd.28
movzx ecx, byte [ecx + 0x462bac]
jmp dword [ecx*4 + 0x462b8c]
mov edx, dword [esi]
mov eax, dword [edx + 0x170]
push 4
mov ecx, esi
call eax
pop edi
pop ebx
pop esi
ret 4
test edi, edi
je 0x4629f8
mov edx, dword [esi]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
push eax
mov eax, dword [edx + 0x170]
mov ecx, esi
call eax
pop edi
pop ebx
pop esi
ret 4
xor edx, edx
test eax, eax
setne dl
mov ecx, esi
add edx, 2
mov eax, edx
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x170]
call eax
pop edi
pop ebx
pop esi
ret 4
test edi, edi
je 0x462a37
mov edx, dword [esi]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
push eax
mov eax, dword [edx + 0x170]
mov ecx, esi
call eax
pop edi
pop ebx
pop esi
ret 4
mov edx, dword [esi]
neg eax
sbb eax, eax
add eax, 3
push eax
mov eax, dword [edx + 0x170]
mov ecx, esi
call eax
pop edi
pop ebx
pop esi
ret 4
mov edx, dword [esi]
mov edx, dword [edx + 0x170]
xor eax, eax
test edi, edi
setne al
mov ecx, esi
add eax, 1
push eax
call edx
pop edi
pop ebx
pop esi
ret 4
mov eax, dword [esi]
mov edx, dword [eax + 0x170]
neg edi
sbb edi, edi
and edi, 3
push edi
mov ecx, esi
call edx
pop edi
pop ebx
pop esi
ret 4
mov eax, dword [esi]
mov edx, dword [eax + 0x170]
push 6
mov ecx, esi
call edx
pop edi
pop ebx
pop esi
ret 4
mov eax, dword [esi]
mov edx, dword [eax + 0x170]
push 7
mov ecx, esi
call edx
pop edi
pop ebx
pop esi
ret 4
push 2
push ebx
call dword [fcn.005210cc]
mov ebx, eax
push ebx
call fcn.00497390
mov ecx, eax
call fcn.00497470
movzx edi, ax
test di, di
je 0x462b48
push 0x11
mov dword [esp + 0x14], 0
call dword [sym.imp.user32.dll_GetKeyState]
test ax, ax
jl 0x462b36
lea eax, [esp + 0x10]
push eax
push edi
mov ecx, esi
call fcn.00462130
mov edi, eax
cmp edi, 0xffffffff
je 0x462b36
mov edx, dword [esi]
mov eax, dword [edx + 0x13c]
push 1
push edi
mov ecx, esi
call eax
cmp dword [esp + 0x10], 0
jne 0x462b2b
push edi
mov ecx, esi
call fcn.00460760
mov esi, dword [eax]
xor edx, edx
push edx
mov edx, dword [esi + 0x9c]
xor ecx, ecx
push ecx
push 1
mov ecx, eax
call edx
pop edi
pop ebx
mov eax, 1
pop esi
ret 4
cmp ebx, 0x10
je 0x462b48
cmp ebx, 0x11
je 0x462b48
push 0
call dword [sym.imp.user32.dll_MessageBeep]
pop edi
pop ebx
mov eax, 1
pop esi
ret 4
mov eax, dword [esi]
mov edx, dword [eax + 0x170]
push 5
mov ecx, esi
call edx
pop edi
pop ebx
pop esi
ret 4
mov edi, dword [esi]
push 0x10
call dword [sym.imp.user32.dll_GetKeyState]
mov edx, dword [edi + 0x170]
xor ecx, ecx
test ax, ax
setl cl
push ecx
mov ecx, esi
call edx
pop edi
pop ebx
pop esi
ret 4
Function at 0x463a10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x84], 0
push edi
je 0x463b90
mov ecx, dword [esi + 0x84]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14c]
call edx
test eax, eax
je 0x463b90
push 0x457c70
mov ecx, 0x523e38
call fcn.004310a1
test eax, eax
jne 0x463a56
call fcn.0041d387
cmp dword [eax + 4], 0
jg 0x463b90
push 0x457c70
mov ecx, 0x523e38
call fcn.004310a1
test eax, eax
jne 0x463a78
call fcn.0041d387
cmp dword [eax + 0x10], 0
jle 0x463a91
push 0
lea ecx, [eax + 8]
call fcn.00457ec0
cmp eax, 0xffffffff
je 0x463b90
cmp dword [ebx + 4], 0x104
jne 0x463b90
test word [ebx + 0xe], 0x2000
je 0x463b90
mov edi, dword [esi + 0x80]
mov ecx, esi
call fcn.004633e0
cmp eax, edi
jne 0x463b90
cmp dword [esi + 0x28], 0
je 0x463ad6
push 0x10
call dword [sym.imp.user32.dll_GetKeyState]
test ax, ax
js 0x463b90
mov eax, dword [ebx + 8]
push 2
push eax
call dword [fcn.005210cc]
movzx eax, ax
test ax, ax
je 0x463b90
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x84]
push eax
call fcn.00462130
mov edi, eax
cmp edi, 0xffffffff
je 0x463b90
cmp dword [esp + 0x10], 0
mov ecx, dword [esi + 0x84]
je 0x463b45
mov edx, dword [ecx]
mov eax, dword [edx + 0x138]
push 0
push 0
push 1
call eax
mov ecx, dword [esi + 0x84]
mov edx, dword [ecx]
mov eax, dword [edx + 0x13c]
push 1
push edi
call eax
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
push edi
call fcn.00460760
push eax
push 0x51a0d8
call fcn.0042c182
mov ecx, dword [esi + 0x84]
add esp, 8
test eax, eax
je 0x463b76
push 1
push edi
call fcn.004614b0
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
push edi
call fcn.00460760
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
push 0x457c70
mov ecx, 0x523e38
call fcn.004310a1
test eax, eax
jne 0x463ba8
call fcn.0041d387
cmp dword [eax + 0x10], 0
jle 0x463bcc
push 0
lea ecx, [eax + 8]
call fcn.00457ec0
cmp eax, 0xffffffff
jne 0x463bcc
mov eax, dword [ebx + 4]
cmp eax, 0x7b
je 0x463b85
cmp eax, 0x105
je 0x463b85
cmp dword [ebx + 4], 0x20a
jne 0x463c2a
push 0x460240
mov ecx, 0x5241e0
call fcn.004310a1
test eax, eax
jne 0x463bed
call fcn.0041d387
cmp dword [eax + 0x18], 0
jle 0x463c2a
push 0x460240
mov ecx, 0x5241e0
call fcn.004310a1
test eax, eax
jne 0x463c0b
call fcn.0041d387
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push ecx
push edx
push 0x20a
mov ecx, eax
call fcn.00497c90
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
Function at 0x465e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d5bf5
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x4eaa9c
lea ecx, [esi + 0x60]
mov dword [esp + 0x14], 7
mov dword [ecx], 0x4e2d94
call fcn.004249dc
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 6
mov dword [ecx], 0x4e2d94
call fcn.004249dc
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 5
mov dword [ecx], 0x4e2d94
call fcn.004249dc
lea ecx, [esi + 0x48]
mov byte [esp + 0x14], 4
mov dword [ecx], 0x4e2d94
call fcn.004249dc
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 3
mov dword [ecx], 0x4e2d94
call fcn.004249dc
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 2
mov dword [ecx], 0x4e2d94
call fcn.004249dc
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
mov dword [ecx], 0x4e2d94
call fcn.004249dc
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 0
mov dword [ecx], 0x4e2d94
call fcn.004249dc
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0041d86e
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4691a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d6010
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.0041d848
xor ecx, ecx
mov dword [esi], 0x4eaa9c
mov eax, 0x4e301c
mov dword [esp + 0x14], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x38], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x40], eax
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x48], eax
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x58], eax
mov dword [esi + 0x64], ecx
mov dword [esi + 0x60], eax
mov byte [esp + 0x14], 8
lea eax, [esi + 0x8c]
mov edx, 0x39
mov edi, edi
mov dword [eax + 4], 0xffffffff
mov dword [eax], 0xffffffff
add eax, 8
sub edx, 1
jns 0x469220
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x78], ecx
mov dword [esi + 0x80], ecx
mov ecx, esi
mov dword [esi + 0x70], 1
mov dword [esi + 0x84], 0xa
mov dword [esi + 0x88], 0x64
mov dword [esi + 0x25c], 5
call fcn.00469150
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4696f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d6043
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.0042419f
mov eax, dword [esp + 0x20]
lea edi, [esi + 0x14]
mov dword [esi], 0x4eabcc
mov dword [esi + 0x10], eax
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x4e2fb0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x20], edx
mov edx, dword [esi + 0x10]
mov dword [esi + 0x24], eax
push edx
mov byte [esp + 0x1c], 1
mov dword [esi + 0x28], ecx
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.004246c2
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.00424989
test edi, edi
je 0x469797
mov edi, dword [edi + 4]
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.gdi32.dll_SelectObject]
mov dword [esi + 0x2c], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x14
Function at 0x46d210
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
call dword [sym.imp.user32.dll_GetCapture]
test eax, eax
jne 0x46d371
cmp dword [esi + 0x28], eax
je 0x46d371
mov eax, dword [esp + 0x28]
push ebx
push ebp
push edi
push eax
call dword [sym.imp.user32.dll_SetCapture]
mov dword [esp + 0x10], 0
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebp, eax
cmp dword [esi + 0x28], 0
je 0x46d279
call dword [sym.imp.kernel32.dll_GetTickCount]
sub eax, ebp
cmp eax, 0x14
jbe 0x46d279
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, dword [esi]
mov ebp, eax
mov eax, dword [edx + 8]
push 1
mov ecx, esi
call eax
push ebx
push edi
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.user32.dll_PtInRect]
cmp eax, dword [esi + 0x2c]
je 0x46d297
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x2c], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [0x5210d8]
test eax, eax
je 0x46d253
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
call dword [fcn.0052107c]
call dword [sym.imp.user32.dll_GetCapture]
cmp eax, dword [esp + 0x34]
jne 0x46d323
mov eax, dword [esp + 0x18]
cmp eax, 0x200
ja 0x46d307
je 0x46d2f1
cmp eax, 0x1f
je 0x46d337
cmp eax, 0x100
jne 0x46d313
cmp dword [esp + 0x1c], 0x1b
jne 0x46d253
jmp 0x46d337
mov eax, dword [esp + 0x20]
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
mov edi, ecx
mov ebx, eax
jmp 0x46d253
sub eax, 0x202
je 0x46d330
sub eax, 2
je 0x46d337
lea eax, [esp + 0x14]
push eax
call dword [fcn.0052103c]
jmp 0x46d253
lea ecx, [esp + 0x14]
push ecx
call dword [fcn.0052103c]
jmp 0x46d337
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x10], edx
call dword [sym.imp.user32.dll_ReleaseCapture]
mov eax, dword [esp + 0x34]
push ebx
push edi
push eax
mov ecx, esi
mov dword [esi + 0x2c], 0
call fcn.0046cf00
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x30]
call eax
cmp dword [esp + 0x10], 0
pop edi
pop ebp
pop ebx
je 0x46d371
mov edx, dword [esi]
mov eax, dword [edx + 8]
push 0
mov ecx, esi
call eax
pop esi
add esp, 0x20
ret 0xc
Function at 0x46d380
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d655c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebp, ebp
lea ecx, [esi + 0x60]
mov dword [esp + 0x20], ebp
mov dword [esi], 0x4eb48c
call fcn.0046d150
lea edi, [esi + 0x74]
mov ecx, edi
call fcn.0046d190
lea ecx, [esi + 0x88]
mov byte [esp + 0x20], 2
call fcn.004a75e0
mov ebx, dword [sym.imp.user32.dll_SetRectEmpty]
mov eax, 0x46
mov dword [esi + 0x18], eax
xor eax, eax
mov ecx, 0x12
mov dword [esi + 0x28], eax
mov dword [esi + 0x20], eax
mov edx, 1
mov dword [esi + 0x1c], ecx
xor ecx, ecx
lea eax, [esi + 0x30]
push eax
mov byte [esp + 0x24], 3
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x90], ebp
mov dword [esi + 0x10], edx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x14], edx
call ebx
lea ecx, [esi + 0x40]
push ecx
call ebx
lea edx, [esi + 0x50]
push edx
call ebx
push 0x34
call fcn.0041b3e4
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x46d453
push 1
push ebp
push esi
mov ecx, ebx
call fcn.0046cca0
mov dword [ebx], 0x4eb43c
jmp 0x46d455
xor ebx, ebx
mov eax, dword [edi + 8]
push ebx
push eax
mov ecx, edi
call fcn.00470f30
push 0x34
call fcn.0041b3e4
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x46d485
push 1
push 1
push esi
mov ecx, ebx
call fcn.0046cca0
mov dword [ebx], 0x4eb44c
jmp 0x46d487
xor ebx, ebx
mov ecx, dword [edi + 8]
push ebx
push ecx
mov ecx, edi
call fcn.00470f30
push 0x34
call fcn.0041b3e4
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x46d4b6
push ebp
push 2
push esi
mov ecx, ebx
call fcn.0046cca0
mov dword [ebx], fcn.0046ccf0
jmp 0x46d4b8
xor ebx, ebx
mov edx, dword [edi + 8]
push ebx
push edx
mov ecx, edi
call fcn.00470f30
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x46d9e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d65ee
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.0041d848
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi], 0x4eb4ec
call fcn.0041cdb6
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46da34
push 0x80004005
call fcn.0040b720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x54], eax
mov byte [esp + 0x18], 1
call fcn.0041cdb6
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46da62
push 0x80004005
call fcn.0040b720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x58], eax
mov ecx, esi
mov byte [esp + 0x18], 2
call fcn.004cc9f4
or eax, 0xffffffff
lea ecx, [esi + 0x44]
push ecx
mov dword [esi + 0x34], 1
mov dword [esi + 0x30], 1
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x40], edi
call dword [sym.imp.user32.dll_SetRectEmpty]
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x46fc10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 0x94]
push esi
call fcn.004833c0
call fcn.0041cd37
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0xc]
push 0xf1
push eax
push esi
call dword [fcn.00520f3c]
test eax, eax
jne 0x46fc44
pop esi
xor eax, eax
pop ebp
ret 8
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x46fc3d
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x46fc3d
movzx eax, word [esi + 6]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
push ebx
push edi
neg ecx
or ecx, eax
push ecx
call fcn.0041b40f
xor edx, edx
add esp, 4
cmp word [esi + 6], dx
mov edi, eax
jbe 0x46fca2
mov ecx, esi
call fcn.0046e5a0
lea ecx, [ecx]
movzx ecx, word [eax + edx*2]
mov dword [edi + edx*4], ecx
movzx ecx, word [esi + 6]
add edx, 1
cmp edx, ecx
jl 0x46fc90
movzx edx, word [esi + 6]
push edx
push edi
mov ecx, ebp
call fcn.0046f9c0
cmp dword [esp + 0x18], 0
mov ebx, eax
je 0x46fd00
mov ecx, ebp
call fcn.00460010
movzx edx, word [esi + 4]
movzx ecx, word [esi + 2]
push 0
push edx
mov edx, dword [esp + 0x1c]
push ecx
movzx ecx, word [esi + 6]
push ecx
push edi
push edx
mov ecx, eax
call fcn.0047a800
test eax, eax
jne 0x46fce3
xor ebx, ebx
movzx eax, word [esi + 2]
cmp ax, 0x10
je 0x46fd00
movzx ecx, word [esi + 4]
movzx eax, ax
mov dword [ebp + 0xa4], eax
mov dword [ebp + 0xa8], ecx
push edi
call fcn.0041b414
add esp, 4
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8
Function at 0x475a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d7200
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0
call fcn.004247e4
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x31
push eax
mov byte [esp + 0x4c], 1
call dword [fcn.005210f8]
push eax
call fcn.0042497b
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00469860
mov esi, dword [esp + 0x48]
mov eax, dword [esi - 0xc]
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x30]
push esi
push eax
call dword [fcn.00520f0c]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
mov dword [edi], ecx
lea ecx, [esp + 0x14]
mov dword [edi + 4], edx
call fcn.00469290
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call fcn.00424838
lea eax, [esi - 0x10]
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x475ad8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x34
ret 8
Function at 0x476f60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4d7348
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.0041cd37
mov ebx, dword [eax + 0xc]
movzx eax, word [esp + 0x38]
push 2
push eax
push ebx
call dword [fcn.00520f3c]
mov ebp, eax
test ebp, ebp
jne 0x476fba
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push ebp
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x476fa4
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
mov esi, dword [edi + 4]
lea esi, [esi*4 + 3]
and esi, 0xfffffffc
imul esi, dword [edi + 8]
cmp word [edi + 0xe], 0x20
mov dword [esp + 0x14], 0
jne 0x477092
push ebp
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
lea ecx, [esi + 0x28]
cmp eax, ecx
jb 0x477092
lea ecx, [esp + 0x18]
call fcn.0042419f
xor ebp, ebp
push ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call fcn.004246c2
push 0x34
call fcn.0043e19b
push 0x28
push edi
mov ebx, eax
push 0x28
push ebx
call fcn.0043d453
add esp, 0x14
push ebp
push ebp
lea edx, [esp + 0x40]
push edx
push ebp
mov dword [ebx + 0x14], esi
mov eax, dword [esp + 0x2c]
push ebx
push eax
mov dword [esp + 0x50], ebp
call dword [sym.imp.gdi32.dll_CreateDIBSection]
mov ebp, eax
test ebp, ebp
je 0x477078
mov eax, dword [esp + 0x38]
test eax, eax
je 0x477078
push esi
add edi, 0x28
push edi
push eax
call fcn.00476b50
add esp, 0xc
mov dword [esp + 0x14], ebp
push ebx
call fcn.0043e25e
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.0042473c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x477f80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.0041cd37
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 8]
push 2
push eax
push esi
call dword [fcn.00520f3c]
test eax, eax
jne 0x477fa0
xor eax, eax
pop esi
ret
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x477f9c
push eax
call dword [sym.imp.kernel32.dll_LockResource]
xor ecx, ecx
cmp word [eax + 0xe], 0x20
pop esi
sete cl
mov eax, ecx
ret
Function at 0x479190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d76c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
test esi, esi
je 0x47927d
mov eax, dword [esp + 0x28]
test eax, eax
mov ecx, dword [esp + 0x2c]
jne 0x4791d5
test ecx, ecx
je 0x47927d
cmp esi, eax
jne 0x4791f6
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.user32.dll_CopyIcon]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
push eax
push esi
push ecx
call dword [sym.imp.kernel32.dll_MulDiv]
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.0042a8e9
push 1
push 1
push 0x21
push edi
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
call fcn.0042ad8d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push ecx
push 0xffffffffffffffff
push edx
call fcn.0041cd37
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00478300
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
call fcn.0041cd37
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.0045bef0
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.0042ae65
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x47a3d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4c]
test esi, esi
push edi
mov dword [esp + 0x14], ecx
je 0x47a3ea
mov eax, dword [esi + 4]
test eax, eax
jne 0x47a3f6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 0x18
mov edi, dword [esp + 0x58]
test edi, edi
jne 0x47a41a
cmp dword [esp + 0x54], edi
jne 0x47a41a
push eax
call fcn.0041cd37
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.0045bc40
mov dword [esp + 0x58], eax
mov edi, eax
cmp dword [esp + 0x5c], 0
mov ebp, dword [esp + 0x60]
jne 0x47a46c
test ebp, ebp
jne 0x47a46c
test edi, edi
jle 0x47a46c
mov eax, dword [esi + 4]
lea ecx, [esp + 0x2c]
push ecx
push ebp
push eax
call fcn.0041cd37
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00428112
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.user32.dll_CopyRect]
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
mov ebp, eax
mov dword [esp + 0x5c], ecx
mov eax, dword [esi + 4]
push eax
call fcn.0041cd37
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.0045bc40
xor ecx, ecx
cmp eax, edi
sete cl
xor ebx, ebx
xor edi, edi
cmp dword [esp + 0x58], ebx
mov dword [esp + 0x10], ecx
jle 0x47a513
mov eax, dword [esp + 0x54]
test eax, eax
je 0x47a4a9
cmp dword [esp + 0x10], 0
jne 0x47a4a9
cmp dword [eax + ebx*4], 0
je 0x47a50a
mov eax, dword [esi + 4]
push 0
push edi
push eax
call fcn.0041cd37
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.0045bef0
mov esi, eax
test esi, esi
je 0x47a3ea
mov eax, dword [esp + 0x54]
test eax, eax
je 0x47a4d6
mov eax, dword [eax + ebx*4]
jmp 0x47a4d8
mov eax, ebx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
push ecx
push ebp
push edx
push eax
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push esi
call fcn.00476b90
mov ecx, dword [esp + 0x34]
call fcn.0047a1e0
push esi
call dword [sym.imp.user32.dll_DestroyCursor]
mov esi, dword [esp + 0x50]
add edi, 1
add ebx, 1
cmp ebx, dword [esp + 0x58]
jl 0x47a494
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret 0x18