joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480de0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x581843
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x5ecfcc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00547827
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], 0
call fcn.0047fb50
add esp, 8
test eax, eax
jne 0x480e5e
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00547303
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
push 0x1e8
call fcn.00525bfc
add esp, 4
mov dword [esp + 8], eax
mov byte [esp + 0x30], 1
test eax, eax
je 0x480e85
push 0
mov ecx, eax
call fcn.00486760
mov esi, eax
jmp 0x480e87
xor esi, esi
mov byte [esp + 0x30], 0
test esi, esi
je case.default.0x480ebb
mov eax, dword [esp + 0xc]
push 0
push eax
mov ecx, esi
call fcn.00487120
test al, al
jne 0x480eae
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
xor esi, esi
movzx eax, byte [esp + 0x16]
add eax, 0xfffffffe
cmp eax, 6
ja case.default.0x480ebb
jmp dword [eax*4 + 0x480f40]
mov ecx, esi
call fcn.00488f30
jmp case.default.0x480ebb
push 0
mov ecx, esi
call fcn.00489c60
jmp case.default.0x480ebb
push 0
mov ecx, esi
call fcn.00489110
mov ecx, esi
call fcn.00488e10
jmp case.default.0x480ebb
push 0
mov ecx, esi
call fcn.004895a0
jmp case.default.0x480ebb
push 0
mov ecx, esi
call fcn.004895a0
mov ecx, esi
call fcn.00488e10
jmp case.default.0x480ebb
push 0
mov ecx, esi
call fcn.00489110
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00547303
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x483f90
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push 1
lea eax, [esp + 0x14]
push 4
push eax
xor ebp, ebp
call fcn.0055d90a
mov eax, dword [esp + 0x1c]
movzx edx, byte [esp + 0x1e]
movzx esi, al
shl esi, 8
movzx ecx, ah
movzx eax, byte [esp + 0x1f]
or esi, ecx
shl esi, 8
or esi, edx
shl esi, 8
push edi
or esi, eax
call fcn.0055dc17
add esp, 0x14
test eax, eax
jne 0x484007
lea esp, [esp]
cmp ebp, esi
jge 0x484009
push edi
push 1
lea ecx, [esp + 0x1c]
push 1
push ecx
mov byte [esp + 0x24], 0
call fcn.0055d90a
push edi
add ebp, eax
call fcn.0055dc17
add esp, 0x14
test eax, eax
je 0x483fe0
cmp ebp, esi
pop edi
pop esi
pop ebp
jne 0x484014
mov al, 1
pop ecx
ret 4
xor al, al
pop ecx
ret 4
Function at 0x484020
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
push 1
lea eax, [esp + 0x14]
push 4
push eax
call fcn.0055d90a
mov ecx, dword [esp + 0x1c]
movzx edx, byte [esp + 0x1e]
mov esi, dword [esp + 0x20]
movzx eax, cl
shl eax, 8
movzx ecx, ch
or eax, ecx
movzx ecx, byte [esp + 0x1f]
shl eax, 8
or eax, edx
shl eax, 8
add esp, 0x10
or eax, ecx
mov dword [esi], eax
jle 0x48408c
push eax
call fcn.00525c36
mov edx, dword [esi]
push edx
push 0xfe
push eax
mov dword [esi + 4], eax
call fcn.00559e10
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push edi
push 1
push eax
push ecx
call fcn.0055d90a
add esp, 0x20
pop edi
mov al, 1
pop esi
ret 8

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

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
or edi, 0xffffffff
mov eax, edi
mov word [esi + 8], ax
xor ebx, ebx
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
push 4
mov ecx, edi
mov word [esi + 0x14], cx
mov edx, edi
mov word [esi + 0x16], dx
lea eax, [esi + 0x28]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
push ebx
push eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x24], edi
call fcn.00578d20
mov eax, dword [esi + 0x30]
add esp, 0xc
mov ecx, edi
mov word [esi + 0x2c], cx
cmp eax, ebx
je 0x484103
push eax
call fcn.00525c2b
add esp, 4
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov edx, edi
mov word [esi + 0x3c], dx
mov word [esi + 0x4c], dx
mov eax, edi
mov word [esi + 0x44], ax
mov ecx, edi
mov word [esi + 0x46], cx
mov word [esi + 0x52], ax
mov word [esi + 0x58], ax
mov word [esi + 0x54], cx
mov word [esi + 0x5a], cx
mov word [esi + 0x56], dx
mov word [esi + 0x5e], dx
xor eax, eax
movzx ecx, ax
mov eax, ecx
shl ecx, 0x10
or eax, ecx
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov byte [esi + 0x6a], bl
mov word [esi + 0x68], dx
mov byte [esi + 0x6b], 0x30
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x8c], ebx
mov eax, edi
mov word [esi + 0x88], ax
mov ecx, edi
mov word [esi + 0x8a], cx
mov word [esi + 0x22], di
pop edi
mov dword [esi], ebx
mov byte [esi + 4], bl
mov byte [esi + 0x90], bl
mov byte [esi + 0x6c], bl
mov byte [esi + 0x50], bl
mov byte [esi + 0x5c], bl
mov byte [esi + 0x91], bl
mov dword [esi + 0x38], 0x1e
mov word [esi + 0x20], dx
mov eax, esi
pop esi
pop ebx
ret
Function at 0x486050
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x581b18
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5ecfcc]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ecfcc]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
push eax
push 1
lea eax, [esp + 0x20]
push 0x1a
xor ebx, ebx
push eax
mov byte [esp + 0x27], bl
call fcn.0055d90a
add esp, 0x10
cmp eax, ebx
je 0x4861fc
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x5c], ebx
xor esi, esi
movzx ecx, byte [esp + esi + 0x18]
push ecx
push 1
lea ecx, [esp + 0x3c]
call fcn.00485600
inc esi
cmp esi, 4
jb 0x4860c0
mov esi, dword [esp + 0x48]
mov ecx, esi
cmp esi, 4
jb 0x4860e7
mov ecx, 4
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x38]
cmp ebp, 0x10
jae 0x4860f8
lea eax, [esp + 0x38]
push ecx
push str.8BPS
push eax
call fcn.00460810
add esp, 0xc
cmp eax, ebx
jne 0x4861e4
cmp esi, 4
jb 0x4861e4
xor eax, eax
cmp esi, 4
setne al
cmp eax, ebx
jne 0x4861e4
xor ecx, ecx
xor eax, eax
lea esp, [esp]
movzx edx, byte [esp + eax + 0x1c]
shl ecx, 8
inc eax
or ecx, edx
cmp eax, 2
jl 0x486130
cmp ecx, 1
jne 0x4861e4
xor eax, eax
mov cl, cl
lea ecx, [ecx]
cmp cl, bl
je 0x486162
cmp byte [esp + eax + 0x1e], bl
je 0x48615c
xor cl, cl
inc eax
cmp eax, 6
jb 0x486150
mov byte [esp + 0x17], cl
cmp cl, bl
je 0x4861e4
xor ecx, ecx
xor eax, eax
mov edi, edi
movzx edx, byte [esp + eax + 0x24]
shl ecx, 8
inc eax
or ecx, edx
cmp eax, 2
jl 0x486170
mov word [edi], cx
xor ecx, ecx
xor eax, eax
movzx edx, byte [esp + eax + 0x26]
shl ecx, 8
inc eax
or ecx, edx
cmp eax, 4
jl 0x486187
mov dword [edi + 4], ecx
xor ecx, ecx
xor eax, eax
mov edi, edi
movzx edx, byte [esp + eax + 0x2a]
shl ecx, 8
inc eax
or ecx, edx
cmp eax, 4
jl 0x4861a0
mov dword [edi + 8], ecx
xor ecx, ecx
xor eax, eax
movzx edx, byte [esp + eax + 0x2e]
shl ecx, 8
inc eax
or ecx, edx
cmp eax, 2
jl 0x4861b7
mov word [edi + 0xc], cx
xor ecx, ecx
xor eax, eax
nop
movzx edx, byte [esp + eax + 0x30]
shl ecx, 8
inc eax
or ecx, edx
cmp eax, 2
jl 0x4861d0
mov word [edi + 0xe], cx
cmp ebp, 0x10
jb 0x4861f6
mov eax, dword [esp + 0x38]
push eax
call fcn.00525c2b
add esp, 4
mov al, byte [esp + 0x17]
jmp 0x4861fe
mov al, bl
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0055953b
add esp, 0x4c
ret 8
Function at 0x487d00
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x581c28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x38]
mov esi, ecx
push edi
mov dword [esi], vtable.CxImage.0
call fcn.004866f0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.0048e0c0
lea edx, [esp + 8]
push edi
push edx
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.00487df0
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0048e110
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x48f2e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp eax, 0x9ac6cdd7
jne 0x48f322
mov dword [esp + 8], eax
lea ecx, [esi + 2]
mov edx, 9
xor ax, word [ecx]
add ecx, 2
dec edx
jne 0x48f2fa
cmp ax, word [esi + 0x14]
jne 0x48f322
mov si, word [esi + 0xe]
test si, si
jbe 0x48f322
cmp si, 0x9ec
ja 0x48f322
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4

Function at 0x4912f0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1f4]
mov dword [esi], 0x598d34
test eax, eax
je 0x491330
push eax
mov byte [esi + 0x20b], 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x1f4]
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1f0]
test eax, eax
je 0x491343
push eax
call fcn.005590a8
add esp, 4
mov ecx, dword [esi + 0x1e8]
lea eax, [esi + 0x1e8]
test ecx, ecx
je 0x49135c
push eax
call fcn.004d2b20
add esp, 4
mov ecx, esi
mov dword [esi], vtable.CxImage.0
call fcn.00486780
pop esi
ret

Function at 0x494c30
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call fcn.00486600
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
jns 0x494c62
mov dword [esp + 0x2c], 0
jmp 0x494c7d
mov ecx, ebp
call fcn.00486600
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
mov ecx, ebp
call fcn.00486600
xor edi, edi
mov ebx, eax
mov di, word [esi]
xor ecx, ecx
mov cx, word [esi + 4]
xor edx, edx
xor eax, eax
mov dx, di
mov ax, word [esi + 2]
sub ebx, eax
lea esi, [ecx + edx]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.00486610
cmp eax, esi
jae 0x494cbd
mov ecx, ebp
call fcn.00486610
mov dword [esp + 0x10], eax
jmp 0x494cc1
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
call fcn.00486450
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp ebp, ebx
jge 0x494d2d
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jge 0x494d28
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
push ebx
push eax
call fcn.0048b380
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
je 0x494d1b
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.0048b660
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x494ce8
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jl 0x494cd6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x4bf710
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4bf740
push esi
call fcn.004c0f10
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4bf739
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4bf7c3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4bf7af
mov eax, dword [esi + 8]
test eax, eax
je 0x4bf764
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4bf7ab
cmp eax, 2
je 0x4bf7af
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4bf757
cmp eax, 3
je 0x4bf78a
cmp eax, 1
jne 0x4bf757
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4bf757
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4bf757
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004bf7f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4bf7e3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004bf7f0
add esp, 4
pop esi
ret
Function at 0x4eb100
Capabilities:
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
lea edx, [edi + 0x9d0]
mov eax, ecx
mov esi, 8
test al, 1
je 0x4eb122
shr eax, 1
xor eax, 0xedb88320
jmp 0x4eb124
shr eax, 1
dec esi
jne 0x4eb115
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x4eb10e
mov byte [edi + 0xdd0], 1
pop edi
pop esi
ret

Function at 0x4eb140
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov al, byte [edi + 0xdd0]
test al, al
jne 0x4eb15d
push edi
call fcn.004eb100
add esp, 4
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
jle 0x4eb194
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor edx, edx
mov ebx, esi
mov dl, byte [eax + ebp]
and ebx, 0xff
xor edx, ebx
shr esi, 8
mov edx, dword [edi + edx*4 + 0x9d0]
xor esi, edx
inc eax
cmp eax, ecx
jl 0x4eb16d
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov eax, esi
pop edi
pop esi
ret

Function at 0x502d30
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x502d99
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cx, word [eax + 0x118]
test cx, cx
jne 0x502d5b
test byte [eax + 0x230], 1
jne 0x502d78
movzx si, byte [edx]
cmp si, cx
jbe 0x502d78
push str.Invalid_background_palette_index
push eax
call fcn.004fb230
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
mov byte [esp + 0xc], cl
lea edx, [esp + 0xc]
push edx
push str.bKGD
push eax
call fcn.00501a70
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x502e11
mov esi, dword [esp + 0x18]
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 2]
push eax
push ecx
call fcn.00501a50
xor edx, edx
lea eax, [esp + 0x12]
mov dx, word [esi + 4]
push edx
push eax
call fcn.00501a50
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cx, word [esi + 6]
push ecx
push edx
call fcn.00501a50
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x127], 8
jne 0x502e0a
mov cl, byte [esp + 0xc]
mov bl, byte [esp + 0xa]
mov dl, byte [esp + 8]
or cl, bl
or cl, dl
je 0x502e0a
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push eax
call fcn.004fb230
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
jmp 0x502d80
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor eax, eax
mov edx, 1
mov ax, word [ecx + 8]
mov cl, byte [esi + 0x127]
shl edx, cl
cmp eax, edx
jl 0x502e44
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.004fb230
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00501a50
lea ecx, [esp + 0x10]
push 2
push ecx
push str.bKGD
push esi
call fcn.00501a70
add esp, 0x18
pop esi
pop ebx
add esp, 8
ret
Function at 0x527b06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x527b2a
cmp dword [edi + 0x54], 0
jne 0x527b2a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00532110
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00527ac7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x52fe74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x52febb
call fcn.00532110
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x52febb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x52fed7
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0052f9ee
mov esi, eax
test edi, edi
je 0x52fed5
test ebx, ebx
je 0x52fed5
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x5306df
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x582561
call fcn.005611f6
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x530704
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x53074a
lea ecx, [ebp - 0x10]
call fcn.00402d50
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00525d94
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012c0
mov eax, esi
call fcn.005612ce
ret 8
Function at 0x532d38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x532d80
call fcn.00532110
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x532d80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x532dc3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x532dac
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x532dac
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x532dc0
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x5397f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.00532110
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x539824
xor eax, eax
jmp 0x5398ca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x53981d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x53981d
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00525bfc
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x53987b
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x53986a
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0053857d
push edi
mov ebx, eax
call fcn.00525c2b
pop ecx
test ebx, ebx
je 0x5398bd
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00538c0c
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00538cc0
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x54955e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x549576
mov edi, dword [esi + 0xc]
jmp 0x5495b6
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x54958f
call fcn.00537422
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x5495a4
call fcn.00537422
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x5495b6
call fcn.00537422
call fcn.00532110
cmp dword [eax + 0x3c], 0
je 0x5495cb
push edi
mov ecx, ebx
call fcn.00548478
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00549484
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x5495e9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x5495f5
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x55953b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ecfcc]
jne 0x559545
repz ret
jmp fcn.0056690c

Function at 0x55cc75
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x55cca6
call fcn.005614e8
mov dword [eax], esi
call fcn.005614d5
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0055a9bd
add esp, 0x14
push 0x16
pop eax
jmp 0x55ccfb
test dword [ebp + 0xc], 0xfffffff9
jne 0x55cc82
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x55ccd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005614fb
pop ecx
call fcn.005614d5
mov eax, dword [eax]
jmp 0x55ccfb
test al, 0x10
jne 0x55ccf9
test al, 1
je 0x55ccf9
test byte [ebp + 0xc], 2
je 0x55ccf9
call fcn.005614e8
mov dword [eax], 5
call fcn.005614d5
mov dword [eax], 0xd
jmp 0x55ccca
xor eax, eax
pop esi
pop ebp
ret