joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457e40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x22c
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x230]
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x206
mov esi, ecx
mov dword [esp + 0x24], eax
mov dword [eax], edi
lea ecx, [esp + 0x2e]
mov ebx, edx
xor eax, eax
push edi
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edi
mov word [esp + 0x34], ax
call fcn.004ff6c0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFontLinkSystemLink
push 0x80000002
mov dword [esp + 0x30], 0x208
lea ebp, [esp + 0x34]
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x457edf
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
mov ecx, ebp
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push 0x565d7c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x457edf
cmp dword [esp + 0x14], 7
je 0x457efe
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x457eee
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 4]
push ebx
call fcn.0045c4f0
xor al, al
jmp 0x45800a
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x28]
mov dword [esp + 0x10], edi
call fcn.00457e00
mov edi, eax
mov esi, edi
imul esi, esi, 0x20c
add esi, 0x490
push esi
mov dword [esp + 0x20], edi
call fcn.004faba2
add esp, 4
push esi
mov ebx, eax
push 0
push ebx
call fcn.004ff6c0
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x250]
add esp, 0xc
add edi, 2
mov dword [ebx + 0xc], edi
push str.NSimSun
lea eax, [ebx + 0x78]
mov dword [ebx + 4], edx
lea edi, [ebx + 0x1c]
mov ecx, 0x17
push 0x104
rep movsd dword es:[edi], dword [esi]
push eax
mov dword [ebx + 0x10], 0
call fcn.004fa6de
add esp, 0xc
push str.SurSong
lea ecx, [ebx + 0x284]
push 0x104
push ecx
call fcn.004fa6de
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
jle 0x457fee
lea esi, [ebx + 0x490]
mov edi, eax
push 0x2c
push ebp
call fcn.004fc295
add esp, 8
test eax, eax
je 0x457fb9
add eax, 2
jmp 0x457fbb
mov eax, ebp
push eax
push 0x104
push esi
call fcn.004fa6de
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457fd0
sub eax, edx
sar eax, 1
add esi, 0x20c
sub edi, 1
lea ebp, [ebp + eax*2 + 2]
jne 0x457fa5
mov eax, dword [esp + 0x24c]
mov edx, dword [esp + 0x248]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], edx
mov dword [ecx], ebx
mov al, 1
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fa259
add esp, 0x22c
ret
Function at 0x4591b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x527778
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x581500]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
mov edi, dword [eax + 0xa4]
mov esi, dword [eax + 0x1c]
sub edx, edi
sub edx, esi
mov dword [esp + 0x30], esi
mov esi, dword [eax + 0x1b8]
sub ecx, esi
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0x20]
sub ecx, edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x84]
xor ebx, ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
jmp 0x459224
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x84], edx
mov edx, dword [esp + ecx*4 + 0x24]
xor edi, edi
mov dword [esp + 0x7c], eax
add eax, 0xcc
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x78]
mov eax, dword [esi + 4]
mov ebp, dword [esp + edi*4 + 0x30]
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], 0xff
mov byte [esp + 0x65], bl
mov byte [esp + 0x64], bl
cmp eax, ebx
je 0x4592be
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x60], eax
cmp byte [esi], bl
setne cl
mov byte [esp + 0x65], cl
mov eax, dword [esp + 0x7c]
lea esi, [esp + 0x3c]
mov dword [esp + 0x70], ebx
call fcn.0044afe0
mov dword [esp + 0x70], 0xffffffff
cmp byte [esp + 0x64], bl
jne 0x4592f1
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
add dword [esp + 0x7c], 0x44
add dword [esp + 0x84], ebp
inc edi
cmp edi, 3
jl 0x45924d
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x459220
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x45cfa0
Capabilities:
Get common file path

Disassembly:
push 0x5c
push ebx
call fcn.004fc295
add esp, 8
test eax, eax
jne 0x45cfbe
push 0x2f
push ebx
call fcn.004fc295
add esp, 8
test eax, eax
je 0x45cff9
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45cfc3
push 0
push 0
push 0x104
push edi
sub eax, edx
sar eax, 1
push eax
push ebx
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x45cff2
xor al, al
ret
mov byte [eax + edi], 0
mov al, 1
ret
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x45cfef
push str._fonts_
push 0x104
push edi
call fcn.004fc344
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45d021
sub eax, edx
push esi
mov esi, eax
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45d032
push 0
push 0
mov ecx, 0x104
sub eax, edx
sub ecx, esi
push ecx
lea edx, [esi + edi]
push edx
sar eax, 1
push eax
push ebx
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x45d068
xor al, al
pop esi
ret
add eax, esi
mov byte [eax + edi], 0
mov al, 1
pop esi
ret
Function at 0x45d330
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x440
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 0x43c], eax
mov eax, dword [esp + 0x444]
push ebx
push edi
mov edi, edx
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
cmp edi, ebx
je 0x45d50b
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45d366
sub eax, edx
sar eax, 1
je 0x45d50b
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
push 0x80000002
mov byte [esp + 0x1f], bl
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45d50b
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x45d4e1
push ebp
xor ebp, ebp
mov dword [esp + 0x10], ebp
cmp dword [esp + 0x18], ebx
jbe 0x45d4e0
push esi
mov edi, edi
push 0
push 0
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
push ecx
push ebx
mov esi, 1
push edx
mov dword [esp + 0x4c], 0x104
mov dword [esp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x45d4b7
cmp dword [esp + 0x24], esi
jne 0x45d4b7
mov ecx, dword [esp + 0x458]
mov dword [esp + 0x20], eax
push edi
lea eax, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
mov esi, ebp
call fcn.0045d210
mov ebp, dword [esp + 0x24]
add esp, 0x10
test al, al
je 0x45d4a5
cmp ebp, esi
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 0x208
jle 0x45d49f
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x248]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
push 0
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45d493
mov ebp, esi
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov dword [eax], edx
jmp 0x45d4a5
mov ebp, esi
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x458]
mov edx, ebp
call fcn.0045d080
test al, al
jne 0x45d4c2
inc ebx
cmp ebx, dword [esp + 0x1c]
jb 0x45d3e0
pop esi
test ebp, ebp
je 0x45d4e0
mov edi, dword [esp + 0x2c]
lea ebx, [esp + 0x240]
call fcn.0045cfa0
test al, al
je 0x45d4e0
mov byte [esp + 0xf], 1
pop ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45d4f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0xb]
pop edi
pop ebx
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.004fa259
add esp, 0x440
ret
mov ecx, dword [esp + 0x444]
pop edi
pop ebx
xor ecx, esp
xor al, al
call fcn.004fa259
add esp, 0x440
ret
Function at 0x45e4f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x520e68
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x581500]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push 1
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x14], bl
call dword [sym.imp.GDI32.dll_SetBkMode]
mov dword [esp + 0x20], ebx
mov byte [esp + 0xd], bl
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x30], ebx
mov eax, dword [esi]
mov eax, dword [eax + 4]
push ecx
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call eax
lea esi, [esp + 0xc]
call fcn.0044d440
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45e580
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push edi
push 0x3c
call fcn.004faba2
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
jne 0x45e5bf
pop edi
mov dword [0x58f294], 0x6d
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004fa259
add esp, 0xc
ret
push esi
push 0x3c
push ebx
push edi
call fcn.004ff6c0
push 0x6148
call fcn.004faba2
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x45e603
push edi
mov dword [0x58f294], 0x6d
call fcn.004faac5
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004fa259
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x38], esi
mov dword [esi + 4], ebx
mov dword [esi + 0x38], ebx
mov dword [esi], 8
mov dword [esi + 0x3c], 0x451030
mov ecx, dword [edi + 0x38]
mov dword [edi + 0x34], eax
mov eax, dword [ecx + 0x3c]
cmp eax, ebx
je 0x45e639
push 6
lea ecx, [esp + 0x10]
push ecx
push edi
call eax
add esp, 0xc
jmp 0x45e64e
mov edx, dword [ecx + 0x38]
push edx
push 6
lea eax, [esp + 0x14]
push 1
push eax
call fcn.00500534
add esp, 0x10
cmp eax, 6
je 0x45e65f
mov dword [0x58f294], 0x66
jmp 0x45e685
push 3
lea ecx, [esp + 0x10]
push ecx
push str.GIFVER
mov byte [esp + 0x1e], bl
call fcn.0050364b
add esp, 0xc
test eax, eax
je 0x45e6a8
mov dword [0x58f294], 0x67
push esi
call fcn.004faac5
push edi
call fcn.004faac5
add esp, 8
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.004fa259
add esp, 0xc
ret
call fcn.0045e6d0
test eax, eax
je 0x45e685
mov ecx, dword [esp + 0x14]
pop esi
mov eax, edi
pop edi
mov dword [0x58f294], ebx
pop ebx
xor ecx, esp
call fcn.004fa259
add esp, 0xc
ret
Function at 0x45e6d0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [edi + 0x38]
test byte [eax], 8
jne 0x45e6e7
mov dword [0x58f294], 0x6f
xor eax, eax
pop ecx
ret
push edi
mov edx, edi
call fcn.0045edc0
add esp, 4
test eax, eax
je 0x45e6e3
lea ecx, [edi + 4]
push ecx
mov edx, edi
call fcn.0045edc0
add esp, 4
test eax, eax
je 0x45e6e3
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x45e721
push 3
lea edx, [esp + 4]
push edx
push edi
call ecx
add esp, 0xc
jmp 0x45e736
mov eax, dword [eax + 0x38]
push eax
push 3
lea ecx, [esp + 8]
push 1
push ecx
call fcn.00500534
add esp, 0x10
cmp eax, 3
je 0x45e749
mov dword [0x58f294], 0x66
xor eax, eax
pop ecx
ret
mov dl, byte [esp]
movzx eax, dl
mov ecx, eax
shr ecx, 4
and ecx, 7
inc ecx
mov dword [edi + 8], ecx
movzx ecx, byte [esp + 1]
and eax, 7
push ebx
inc eax
push esi
mov dword [edi + 0xc], ecx
test dl, dl
jns 0x45e837
mov ecx, eax
mov esi, 1
shl esi, cl
push 0
call fcn.0045f3b0
add esp, 4
mov dword [edi + 0x10], eax
test eax, eax
jne 0x45e799
pop esi
mov dword [0x58f294], 0x6d
pop ebx
pop ecx
ret
xor ebx, ebx
cmp dword [eax], ebx
jle 0x45e83e
xor esi, esi
mov eax, dword [edi + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x45e7be
push 3
lea edx, [esp + 0xc]
push edx
push edi
call ecx
add esp, 0xc
jmp 0x45e7d3
mov eax, dword [eax + 0x38]
push eax
push 3
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.00500534
add esp, 0x10
cmp eax, 3
jne 0x45e818
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 8]
movzx ecx, byte [esp + 8]
mov byte [esi + eax], cl
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 8]
movzx ecx, byte [esp + 9]
mov byte [eax + esi + 1], cl
mov edx, dword [edi + 0x10]
movzx ecx, byte [esp + 0xa]
mov eax, dword [edx + 8]
mov byte [eax + esi + 2], cl
mov edx, dword [edi + 0x10]
inc ebx
add esi, 3
cmp ebx, dword [edx]
jl 0x45e7a5
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov esi, dword [edi + 0x10]
call fcn.0045f430
pop esi
mov dword [edi + 0x10], 0
mov dword [0x58f294], 0x66
xor eax, eax
pop ebx
pop ecx
ret
mov dword [edi + 0x10], 0
pop esi
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x45e850
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [edx + 0x38]
test byte [eax], 8
jne 0x45e867
mov dword [0x58f294], 0x6f
xor eax, eax
pop ecx
ret
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x45e87d
push 1
lea eax, [esp + 7]
push eax
push edx
call ecx
add esp, 0xc
jmp 0x45e892
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0xb]
push 1
push edx
call fcn.00500534
add esp, 0x10
cmp eax, 1
je 0x45e8a5
mov dword [0x58f294], 0x66
xor eax, eax
pop ecx
ret
mov al, byte [esp + 3]
cmp al, 0x21
je 0x45e8e3
cmp al, 0x2c
je 0x45e8d6
cmp al, 0x3b
je 0x45e8c9
mov dword [esi], 0
mov dword [0x58f294], 0x6b
xor eax, eax
pop ecx
ret
mov dword [esi], 4
mov eax, 1
pop ecx
ret
mov dword [esi], 2
mov eax, 1
pop ecx
ret
mov dword [esi], 3
mov eax, 1
pop ecx
ret
Function at 0x45ebf0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x38]
test byte [eax], 8
jne 0x45ec0b
mov dword [0x58f294], 0x6f
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x45ec21
push 1
lea eax, [esp + 0xb]
push eax
push esi
call ecx
add esp, 0xc
jmp 0x45ec36
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0xf]
push 1
push edx
call fcn.00500534
add esp, 0x10
cmp eax, 1
je 0x45ec4a
mov dword [0x58f294], 0x66
xor eax, eax
pop esi
pop ecx
ret
movzx eax, byte [esp + 7]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
call fcn.0045ec60
pop esi
pop ecx
ret

Function at 0x45ec60
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esi + 0x38]
cmp dword [edi + 0x3c], 0
mov eax, edi
je 0x45ec7f
mov edx, dword [eax + 0x3c]
push 1
lea ecx, [esp + 0xb]
push ecx
push esi
call edx
add esp, 0xc
jmp 0x45ec94
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0xf]
push 1
push edx
call fcn.00500534
add esp, 0x10
cmp eax, 1
jne 0x45ece0
mov cl, byte [esp + 7]
test cl, cl
jbe 0x45ecef
lea eax, [edi + 0x44]
mov byte [eax], cl
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx + 0x3c]
mov dword [ebx], eax
inc eax
test edx, edx
je 0x45ecc2
movzx ecx, byte [esp + 7]
push ecx
push eax
push esi
call edx
add esp, 0xc
jmp 0x45ecd7
mov edx, dword [ecx + 0x38]
movzx ecx, byte [esp + 7]
push edx
push ecx
push 1
push eax
call fcn.00500534
add esp, 0x10
movzx edx, byte [esp + 7]
cmp eax, edx
je 0x45ecf5
mov dword [0x58f294], 0x66
xor eax, eax
pop edi
pop ecx
ret
mov dword [ebx], 0
mov eax, 1
pop edi
pop ecx
ret

Function at 0x45edc0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [edx + 0x38]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x45edda
push 2
lea eax, [esp + 4]
push eax
push edx
call ecx
add esp, 0xc
jmp 0x45edef
mov ecx, dword [eax + 0x38]
push ecx
push 2
lea edx, [esp + 8]
push 1
push edx
call fcn.00500534
add esp, 0x10
cmp eax, 2
je 0x45ee02
mov dword [0x58f294], 0x66
xor eax, eax
pop ecx
ret
mov ax, word [esp]
movzx ecx, ah
movzx edx, al
mov eax, dword [esp + 8]
shl ecx, 8
add ecx, edx
mov dword [eax], ecx
mov eax, 1
pop ecx
ret
Function at 0x45ee20
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esi + 0x38]
cmp dword [edi + 0x3c], 0
mov eax, edi
je 0x45ee44
mov edx, dword [eax + 0x3c]
push 1
lea ecx, [esp + 0xf]
push ecx
push esi
call edx
add esp, 0xc
jmp 0x45ee59
mov ecx, dword [eax + 0x38]
push ecx
push 1
lea edx, [esp + 0x13]
push 1
push edx
call fcn.00500534
add esp, 0x10
cmp eax, 1
jne 0x45eea6
mov cl, byte [esp + 0xb]
test cl, cl
jbe 0x45eeb6
lea eax, [edi + 0x44]
mov byte [eax], cl
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx + 0x3c]
mov dword [ebp], eax
inc eax
test edx, edx
je 0x45ee88
movzx ecx, byte [esp + 0xb]
push ecx
push eax
push esi
call edx
add esp, 0xc
jmp 0x45ee9d
mov edx, dword [ecx + 0x38]
movzx ecx, byte [esp + 0xb]
push edx
push ecx
push 1
push eax
call fcn.00500534
add esp, 0x10
movzx edx, byte [esp + 0xb]
cmp eax, edx
je 0x45eec8
pop edi
mov dword [0x58f294], 0x66
xor eax, eax
pop ebp
pop ecx
ret
mov dword [ebp], 0
mov byte [edi + 0x44], 0
mov dword [edi + 0x34], 0
pop edi
mov eax, 1
pop ebp
pop ecx
ret

Function at 0x45eee0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [eax + 0x38]
xor ebx, ebx
push edi
mov ecx, esi
cmp dword [esi + 0x3c], ebx
je 0x45ef02
push 1
lea edx, [esp + 0x13]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
add esp, 0xc
jmp 0x45ef17
mov edx, dword [ecx + 0x38]
push edx
push 1
lea eax, [esp + 0x17]
push 1
push eax
call fcn.00500534
add esp, 0x10
movzx ecx, byte [esp + 0xf]
mov eax, 1
shl eax, cl
mov dword [esi + 8], ecx
inc ecx
mov edx, 1
mov dword [esi + 0xc], eax
inc eax
mov dword [esi + 0x10], eax
inc eax
shl edx, cl
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov eax, 0x1002
mov byte [esi + 0x44], bl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
lea edi, [esi + 0x2144]
mov dword [esi + 0x1c], edx
mov ecx, 0x1000
rep stosd dword es:[edi], eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x45f2c0
Capabilities:
Read file on windows

Disassembly:
mov cl, byte [esi]
push ebp
mov ebp, dword [esp + 8]
push edi
test cl, cl
jne 0x45f369
mov ecx, dword [ebx + 0x38]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x45f2e5
push 1
push esi
push ebx
call eax
add esp, 0xc
jmp 0x45f2f6
mov eax, dword [ecx + 0x38]
push eax
push 1
push 1
push esi
call fcn.00500534
add esp, 0x10
cmp eax, 1
je 0x45f30a
pop edi
mov dword [0x58f294], 0x66
xor eax, eax
pop ebp
ret
mov al, byte [esi]
test al, al
jne 0x45f31f
pop edi
mov dword [0x58f294], 0x70
xor eax, eax
pop ebp
ret
mov ecx, dword [ebx + 0x38]
mov edx, dword [ecx + 0x3c]
lea edi, [esi + 1]
test edx, edx
je 0x45f339
movzx ecx, al
push ecx
push edi
push ebx
call edx
add esp, 0xc
jmp 0x45f34c
mov edx, dword [ecx + 0x38]
push edx
movzx eax, al
push eax
push 1
push edi
call fcn.00500534
add esp, 0x10
mov cl, byte [esi]
movzx edx, cl
cmp eax, edx
jne 0x45f2fb
mov al, byte [edi]
mov byte [edi], 2
mov byte [ebp], al
dec cl
pop edi
mov byte [esi], cl
mov eax, 1
pop ebp
ret
mov al, byte [esi + 1]
movzx edx, al
mov dl, byte [edx + esi]
inc al
dec cl
pop edi
mov byte [ebp], dl
mov byte [esi + 1], al
mov byte [esi], cl
mov eax, 1
pop ebp
ret
Function at 0x460180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x274
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 0x26c], eax
mov eax, dword [esp + 0x278]
push ebx
push ebp
mov ebp, dword [esp + 0x284]
push esi
push edi
mov esi, ecx
xor ecx, ecx
push 0x206
mov edi, edx
push ecx
lea edx, [esp + 0x7a]
push edx
mov dword [esp + 0x30], eax
mov word [esp + 0x7c], cx
call fcn.004ff6c0
add esp, 0xc
push esi
lea eax, [esp + 0x74]
push 0x104
push eax
call fcn.004fa6de
add esp, 0xc
push edi
lea ecx, [esp + 0x74]
push 0x104
push ecx
call fcn.004fb6d0
add esp, 0xc
call fcn.00433660
mov esi, dword [eax]
test esi, esi
je 0x460230
push 0xa
lea edx, [esp + 0x74]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x460230
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x460230
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test ebx, ebx
jne 0x460237
xor al, al
jmp 0x4602e5
lea eax, [esp + 0x28]
test eax, eax
je 0x460230
push 0x44
mov ecx, eax
push 0
push ecx
call fcn.004ff6c0
lea edx, [esp + 0x34]
add esp, 0xc
push edx
mov edi, ebx
call fcn.0044f870
add esp, 4
test eax, eax
je 0x460230
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x3c]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x10], 1
test ecx, ecx
jne 0x460289
xor esi, esi
jmp 0x46029a
mov edx, dword [ecx]
mov eax, dword [eax + 0x2c]
mov edx, dword [edx]
lea esi, [esp + 0x28]
push esi
push eax
call edx
mov esi, eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x20]
mov ebx, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 2
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x55922c
call fcn.004a94b0
mov ecx, dword [esp + 0x24]
push 0
push 2
push 2
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
or ebx, 0xffffffff
mov eax, esi
call fcn.0044cad0
mov al, 1
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fa259
add esp, 0x274
ret

Function at 0x464710
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [0x58f230]
cmp byte [esi + 0x224], 0
push edi
lea edi, [esi + 0x224]
jne 0x46472f
mov eax, dword [esi + 0x1e8]
jmp 0x464735
mov eax, dword [esi + 0x1ec]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [edi], 0
jne 0x46474b
mov eax, dword [esi + 0x1e8]
jmp 0x464751
mov eax, dword [esi + 0x1ec]
push 0x70
push eax
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
mov byte [esi + 0xa4ab], 0
mov dword [esi + 0xa4a0], 1
mov byte [esi + 0x20a], 0
mov byte [esi + 0x1b4], 0
pop esi
ret