joyce8/EMBER2024-capa huggingface dataset:
Function at 0x538840
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
push esi
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.00538290
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.005382f0
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.005384a0
lea eax, [esp + 4]
push 0x10
push eax
call fcn.00538450
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x18]
push 0x10
push eax
lea eax, [esp + 0x40]
push 0x538830
push eax
lea eax, [esp + 0x38]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
mov esi, eax
or esi, esi
je 0x5388af
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.00537b10
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
cmp esi, 1
sbb al, al
inc al
pop esi
add esp, 0x50
ret 8

Function at 0x5388c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp + 0x20]
push 0x10
push eax
call fcn.00538290
lea eax, [esp]
push 0x10
push eax
call fcn.005382f0
lea eax, [esp + 0x10]
push 0x10
push eax
call fcn.00538400
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push 0
push eax
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
mov ecx, dword [esp + 0x34]
cmp eax, 1
mov word [ecx], ax
sbb cl, cl
inc cl
mov al, cl
add esp, 0x30
ret 4

Function at 0x538930
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
push esi
mov esi, dword [esp + 0x78]
push 0x10
mov word [esi], 0
lea eax, [esp + 8]
push 0
push eax
call fcn.00537cb0
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.00538290
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.005382f0
lea eax, [esp + 0x54]
push 0x10
push eax
call fcn.00538350
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.00538500
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.005385b0
lea eax, [esp + 0x14]
push 0x10
push eax
call fcn.00538560
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 8]
push 0x10
push eax
lea eax, [esp + 0x60]
push 0x538920
push eax
lea eax, [esp + 0x58]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
or eax, eax
je 0x538a03
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 8]
push eax
call fcn.00537b10
or al, al
je 0x5389d1
mov word [esi], 2
jmp 0x538a03
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 8]
push eax
call fcn.00537b10
or al, al
je 0x5389eb
mov word [esi], 3
jmp 0x538a03
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
call fcn.00537b10
or al, al
je 0x538a03
mov word [esi], 1
cmp word [esi], 1
sbb al, al
inc al
pop esi
add esp, 0x70
ret 4
Function at 0x538bf0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
mov esi, dword [esp + 0x18]
mov byte [esp + 0x13], 0
lea eax, [esi + 4]
mov edi, dword [esp + 0x1c]
mov dword [esi], eax
mov ax, word [edi + 4]
mov word [esi + 4], ax
mov ax, word [edi + 0xa]
mov word [esi + 6], ax
mov ax, word [edi + 0x14]
mov word [esi + 0x16], ax
mov ax, word [edi + 8]
mov word [esi + 8], ax
mov ax, word [edi + 6]
mov word [esi + 0xa], ax
lea eax, [esi + 0x24]
mov dword [esi + 0x10], eax
lea eax, [esi + 4]
push eax
call fcn.00538af0
or al, al
jne 0x538d7a
test byte [edi + 0x1c], 4
je 0x538c53
mov byte [esp + 0x13], 1
sub cx, cx
sub dx, dx
lea esp, [esp]
mov ebp, ecx
and ebp, 0xffff
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
lea eax, [eax + eax*4]
lea ebx, [esi + eax]
lea eax, [ebp*4]
mov word [ebx + 0x36], cx
lea eax, [eax + eax*8]
lea ebp, [edi + eax]
mov ax, word [ebp + 0xe]
mov word [ebx + 0x9c], ax
mov ax, word [ebp + 0x12]
mov word [ebx + 0x8e], ax
mov ax, word [ebp + 0x16]
mov word [ebx + 0x34], ax
mov ax, word [ebp + 0x18]
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x2c], eax
cmp cx, 3
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [esi + 4]
mov dword [ebx + 0xa4], eax
jne 0x538ce0
mov dword [ebx + 0xa8], 0
jmp 0x538cec
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
or cx, cx
jne 0x538d00
mov dword [ebx + 0xac], 0
jmp 0x538d09
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x538d20
cmp word [ebp + 0xe], 0xffff
jne 0x538d20
or dword [ebx + 0x2c], 8
jmp 0x538d26
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x538c60
push esi
call fcn.00538b60
push esi
call fcn.00538aa0
push esi
call fcn.00538a60
mov eax, dword [esi + 0x10]
push eax
call fcn.00539f20
mov word [esi + 0xc], ax
or ax, ax
je 0x538d70
lea eax, [esi + 4]
push eax
call fcn.00539d70
sub ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.00538a30
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x53ae70
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.00538d90
mov eax, dword [esp + 0xc]
push 0xd
mov ax, word [eax + 4]
push eax
call fcn.0053a9a0
or al, al
jne 0x53aefa
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0053b790
or al, al
jne 0x53aefa
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x10]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.0053b650
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0053b7e0
or di, di
je 0x53aefa
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x53afa0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x28]
push eax
mov esi, dword [esp + 0x28]
push edi
push esi
call fcn.00538d90
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.00538d90
mov eax, dword [esp + 0x10]
push 0xe
mov ax, word [eax + 4]
push eax
call fcn.0053a9a0
or al, al
jne 0x53b083
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0053b790
mov bx, ax
or bl, bl
jne 0x53b052
mov eax, dword [esp + 0x10]
mov ax, word [eax + 0xe]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x1c]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x20]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x24]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.0053b6a0
mov bx, ax
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0053b7e0
push esi
call fcn.00538ea0
cmp ax, 0xd
jne 0x53b062
mov bx, 0xd
cmp bl, 0xd
je 0x53b06d
cmp bx, 3
jne 0x53b080
mov ax, word [esp + 0xe]
dec word [esp + 0xe]
or ax, ax
jne 0x53aff2
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x53cce0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push esi
mov byte [esp + 4], 0x52
mov byte [esp + 5], 0x4e
mov byte [esp + 6], 0x42
mov byte [esp + 7], 0x4f
mov byte [esp + 8], 0x44
mov byte [esp + 9], 0x52
mov byte [esp + 0xa], 0x56
mov ax, word [esp + 0x18]
add al, 0x30
mov byte [esp + 0xb], al
mov esi, dword [esp + 0x14]
mov byte [esp + 0xc], 0
mov dword [esi], 0
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x53cd76
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x53cd53
cmp eax, 3
jbe 0x53cd6b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x53cd60
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x80b
pop esi
add esp, 0xc
ret 8
mov ax, 0x80c
pop esi
add esp, 0xc
ret 8
mov ax, 0x800
pop esi
add esp, 0xc
ret 8

Function at 0x53cd90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov esi, dword [esp + 0x18]
push esi
mov word [esi + 6], 0xffff
call fcn.0053cc80
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov edi, dword [esp + 0x20]
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
or ebx, ebx
je 0x53cde0
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
push esi
call fcn.0053cc40
or ebx, ebx
je 0x53cdf2
cmp word [esi + 6], 0xffff
jne 0x53cdf8
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x53cf20
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push esi
mov al, byte [esp + 0x1c]
push eax
lea eax, [esp + 8]
push eax
call fcn.0053cee0
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x53cf90
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x53cf69
cmp eax, 3
jbe 0x53cf81
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x53cf76
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x53cfb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
push esi
mov word [esi + 6], 0xffff
call fcn.0053cc80
lea eax, [esp + 8]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_ReadFile
mov edi, eax
push esi
call fcn.0053cc40
cmp edi, 1
jne 0x53cff5
cmp word [esi + 6], 0xffff
jne 0x53cffb
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8

Function at 0x53d0e0
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x59
mov byte [esp + 0xa], 0x53
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x49
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x53
mov byte [esp + 0x1d], 0x65
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp], 0x49
mov byte [esp + 1], 0x6f
lea eax, [esp + 8]
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
mov byte [esp + 5], 0x72
mov byte [esp + 6], 0x79
mov byte [esp + 7], 0
push eax
lea eax, [esp + 4]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
add esp, 0x24
ret

Function at 0x53dfa0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov eax, dword [esp + 8]
or eax, eax
jne 0x53dfb1
mov ax, 2
pop esi
ret 0x14
push eax
call fcn.00537be0
mov esi, eax
cmp word [esi], 0x7242
je 0x53dfc8
mov ax, 2
pop esi
ret 0x14
test byte [esi + 0x12], 4
jne 0x53dfe0
mov word [esi + 6], 0xb39
mov ax, 0x39
pop esi
ret 0x14
mov word [esi + 0x30], 0xd
mov ax, word [esp + 0x10]
mov word [esi + 0x34], ax
mov ax, word [esp + 0x14]
mov word [esi + 0x36], ax
mov ax, word [esp + 0xc]
mov word [esi + 0x3a], ax
mov al, byte [esp + 0x18]
mov byte [esi + 0x38], al
push esi
call fcn.0053c750
mov ax, word [esi + 6]
push eax
call fcn.0053d460
cmp ax, 0xc
jne 0x53e026
mov ax, 3
pop esi
ret 0x14
mov ax, word [esi + 6]
push eax
call fcn.0053d460
pop esi
ret 0x14
Function at 0x53e740
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x53e751
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x53e79e
call fcn.005658a7
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.00567932
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x53e799
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [edx + 0xc], 0x20
je 0x53e7b0
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov eax, ecx
pop esi
ret
Function at 0x53eb10
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x53eb9f
cmp byte [esi + 0x5c], 0x77
jne 0x53eb9f
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov dword [esi], ebp
mov dword [esi + 4], edi
je 0x53eb83
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x53eb61
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.00567610
add esp, 0x10
cmp eax, 0x4000
jne 0x53eb7c
mov dword [esi + 0x10], eax
push 0
push esi
call fcn.0053f900
add esp, 8
mov dword [esi + 0x38], eax
test eax, eax
jne 0x53eb83
mov eax, dword [esi + 4]
test eax, eax
jne 0x53eb36
jmp 0x53eb83
mov dword [esi + 0x38], 0xffffffff
mov edx, dword [esi + 0x4c]
push edi
push ebp
push edx
call fcn.00540990
mov ecx, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
pop edi
pop ebp
sub eax, ecx
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x53ec20
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
test esi, esi
push edi
je 0x53eccd
cmp byte [esi + 0x5c], 0x77
jne 0x53eccd
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x53ec6e
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.00567610
add esp, 0x10
cmp eax, edi
jne 0x53ecb3
mov edx, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], edx
test ebx, ebx
jne 0x53ecbd
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0053f900
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x53ec8f
cmp eax, 0xfffffffb
jne 0x53ec8f
mov dword [esi + 0x38], edi
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x53eca0
cmp dword [esi + 0x38], 1
je 0x53eca0
xor ebx, ebx
jmp 0x53eca5
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x53ec3e
cmp eax, 1
jne 0x53ecbd
jmp 0x53ec3e
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
mov esi, dword [esi + 0x38]
pop edi
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x540990
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x54099b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x540a9e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x591ff8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x591ff8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x591ff8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x591ff8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x591ff8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x591ff8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x591ff8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x591ff8]
xor eax, edx
inc ecx
dec edi
jne 0x5409b6
pop edi
test esi, esi
je 0x540ac0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x591ff8]
xor eax, edx
inc ecx
dec esi
jne 0x540aa2
pop esi
pop ebx
not eax
ret
Function at 0x546038
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 0x54605c
cmp dword [edi + 0x54], 0
jne 0x54605c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0054543c
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.00545ff9
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 0x54b619
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 0x54b660
call fcn.0054543c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x54b660
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x54b67c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0054b193
mov esi, eax
test edi, edi
je 0x54b67a
test ebx, ebx
je 0x54b67a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x54c4f4
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5854f2
call fcn.00567e56
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x54c519
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x54c55f
lea ecx, [ebp - 0x10]
call fcn.00403780
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.0054bd33
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.00401710
mov eax, esi
call fcn.00567f2e
ret 8
Function at 0x54fa0f
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 0x54fa57
call fcn.0054543c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x54fa57
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x54fa9a
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 0x54fa83
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 0x54fa83
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x54fa97
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 0x561cfe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5bc490]
jne 0x561d08
repz ret
jmp fcn.0056ba28

Function at 0x565177
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 0x5651a8
call fcn.005658ba
mov dword [eax], esi
call fcn.005658a7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0056bdc9
add esp, 0x14
push 0x16
pop eax
jmp 0x5651fd
test dword [ebp + 0xc], 0xfffffff9
jne 0x565184
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5651d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005658cd
pop ecx
call fcn.005658a7
mov eax, dword [eax]
jmp 0x5651fd
test al, 0x10
jne 0x5651fb
test al, 1
je 0x5651fb
test byte [ebp + 0xc], 2
je 0x5651fb
call fcn.005658ba
mov dword [eax], 5
call fcn.005658a7
mov dword [eax], 0xd
jmp 0x5651cc
xor eax, eax
pop esi
pop ebp
ret
Function at 0x57ca36
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0056d66f
and dword [ebp - 4], 0
cmp dword [0xd39404], 0
mov ebx, eax
jne 0x57cae7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x57cb98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a1c44
push edi
call esi
test eax, eax
je 0x57cb98
push eax
call fcn.0056d5fd
mov dword [esp], 0x5a1c34
push edi
mov dword [0xd39404], eax
call esi
push eax
call fcn.0056d5fd
mov dword [esp], 0x5a1c20
push edi
mov dword [0xd39408], eax
call esi
push eax
call fcn.0056d5fd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0xd3940c], eax
call esi
push eax
call fcn.0056d5fd
pop ecx
mov dword [0xd39414], eax
test eax, eax
je 0x57cae7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0056d5fd
pop ecx
mov dword [0xd39410], eax
mov eax, dword [0xd39410]
cmp eax, ebx
je 0x57cb3f
cmp dword [0xd39414], ebx
je 0x57cb3f
push eax
call fcn.0056d678
push dword [0xd39414]
mov esi, eax
call fcn.0056d678
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x57cb3f
test edi, edi
je 0x57cb3f
call esi
test eax, eax
je 0x57cb36
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x57cb36
test byte [ebp - 0xc], 1
jne 0x57cb3f
or dword [ebp + 0x10], 0x200000
jmp 0x57cb78
mov eax, dword [0xd39408]
cmp eax, ebx
je 0x57cb78
push eax
call fcn.0056d678
pop ecx
test eax, eax
je 0x57cb78
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x57cb78
mov eax, dword [0xd3940c]
cmp eax, ebx
je 0x57cb78
push eax
call fcn.0056d678
pop ecx
test eax, eax
je 0x57cb78
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0xd39404]
call fcn.0056d678
pop ecx
test eax, eax
je 0x57cb98
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x57cb9a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret