joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b830
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x404
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push edi
mov edi, dword [esp + 0x414]
push 0x501a20
push edi
mov ecx, esi
call fcn.0049a940
test al, al
jne 0x49b886
push esi
mov edx, 0x200
lea ecx, [esp + 0xc]
mov eax, edi
call fcn.0049b130
test al, al
je 0x49b886
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.004e6b3a
add esp, 0x404
ret 8

Function at 0x49b8a0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
mov ebx, dword [esp + 0x418]
push esi
mov esi, dword [esp + 0x414]
push edi
mov edi, dword [esp + 0x41c]
push ebx
push edi
mov ecx, esi
call fcn.0049a940
test al, al
jne 0x49b925
push esi
mov edx, 0x200
lea ecx, [esp + 0x14]
mov eax, edi
call fcn.0049b130
test al, al
je 0x49b925
lea eax, [esp + 0xc]
push eax
push 0x20006
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49b925
mov edx, dword [esp + 0xc]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x49b925
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e6b3a
add esp, 0x408
ret 0xc

Function at 0x49bd80
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebx
push esi
mov edi, ebp
call fcn.0049a540
test al, al
je 0x49bdaa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
push esi
lea edi, [esp + 0x24]
mov esi, ebp
call fcn.0049ba20
mov esi, eax
test esi, esi
je 0x49bdf8
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49bdc1
mov ecx, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov edi, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x49be10
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push ebx
mov ecx, ebp
mov edi, esi
call fcn.0049a4a0
test al, al
je 0x49be3c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
push ebx
lea edi, [esp + 0x1c]
call fcn.0049ba20
mov esi, eax
test esi, esi
je 0x49be71
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov edi, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x49be80
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push ebx
push ebp
push edi
mov edx, esi
call fcn.0049a5b0
test al, al
je 0x49beaf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
push edi
lea edi, [esp + 0x28]
call fcn.0049ba20
mov esi, eax
test esi, esi
je 0x49bee3
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push 3
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov edi, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14

Function at 0x49bef0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x28]
push edi
push eax
push ebx
push esi
mov edx, ebp
call fcn.0049a6d0
test al, al
je 0x49bf24
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x18
push ebx
call fcn.0049baf0
mov esi, eax
xor bl, bl
test esi, esi
je 0x49bf94
lea edx, [esp + 0x28]
push edx
push ebp
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + edi]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x28]
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push esi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x49bf94
mov eax, dword [esp + 0x28]
shr eax, 1
test edi, edi
jne 0x49bf7b
pop edi
xor edx, edx
pop esi
mov word [ebp], dx
pop ebp
mov al, bl
pop ebx
ret 0x18
lea ecx, [edi - 1]
cmp eax, ecx
jb 0x49bf84
mov eax, ecx
pop edi
xor ecx, ecx
pop esi
mov word [ebp + eax*2], cx
pop ebp
mov al, bl
pop ebx
ret 0x18
mov edx, dword [esp + 0x24]
push edi
push edx
push ebp
call fcn.004694b0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 0x18
Function at 0x49c030
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push esi
push ebp
mov edx, ebx
mov dword [esp + 0x38], edi
call fcn.0049a820
test al, al
je 0x49c06e
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
push esi
mov esi, ebp
call fcn.0049baf0
mov esi, eax
mov dword [esp + 0x18], edi
test esi, esi
je 0x49c0ae
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push ebx
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
jne 0x49c0ae
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x49c0d7
mov eax, dword [esp + 0x24]
push edi
test eax, eax
je 0x49c0ca
push eax
push ebx
call fcn.004e7a80
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x18
push 0
push ebx
call fcn.004e7df0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 0x18

Function at 0x49c120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [esp + 0x10]
push eax
push esi
mov ecx, ebx
mov edi, SysReAllocString
call fcn.0049aa80
test al, al
je 0x49c14b
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret 8
push esi
mov esi, edi
call fcn.0049baf0
mov edi, eax
test edi, edi
jne 0x49c161
pop edi
pop esi
shr eax, 1
pop ebx
ret 8
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
not esi
and esi, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
shr eax, 1
pop ebx
ret 8
Function at 0x49ccf0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor esi, esi
xor ebx, ebx
xor byte [esi + ecx], bl
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
lea ebx, [edx + ebx + 3]
inc esi
and ebx, 0xffffff
cmp esi, 0x480
jb 0x49ccf6
pop esi
pop ebx
ret

Function at 0x49ce00
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
push ebp
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x1c], ebx
call fcn.0049cd20
test eax, eax
je 0x49ce2f
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.0049cd20
push ebp
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.0049cd20
mov dword [esi + 0x18], eax
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0049cd20
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.0049cd20
push ebp
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.0049cd20
mov dword [esi + 0x24], eax
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0049cd20
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x100
lea edx, [esi + 0x2c]
push edx
mov ecx, esi
mov dword [esi + 0x28], eax
call fcn.0049cd80
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0049cd20
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x100
lea edx, [esi + 0x130]
push edx
mov ecx, esi
mov dword [esi + 0x12c], eax
call fcn.0049cd80
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0049cd20
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x100
lea edx, [esi + 0x234]
mov dword [esi + 0x230], eax
push edx
mov ecx, esi
call fcn.0049cd80
push ebp
lea eax, [esp + 0x14]
push eax
push edi
mov ecx, esi
call fcn.0049cd20
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
mov dword [esi + 0x334], eax
call fcn.0049cd20
push ebp
lea edx, [esp + 0x14]
push edx
push edi
mov ecx, esi
mov dword [esi + 0x338], eax
call fcn.0049cd20
push ebp
mov dword [esi + 0x33c], eax
lea eax, [esp + 0x14]
push eax
push edi
push 0x20
lea ecx, [esi + 0x340]
push ecx
mov ecx, esi
call fcn.0049cd80
push ebp
lea edx, [esp + 0x14]
push edx
push edi
push 0x100
lea eax, [esi + 0x380]
push eax
mov ecx, esi
call fcn.0049cd80
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebx
jbe 0x49cf88
nop
xor bl, byte [eax + edi]
inc eax
cmp eax, ecx
jb 0x49cf80
push ebp
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.0049cd20
movzx edx, bl
pop edi
xor ecx, ecx
cmp edx, eax
pop esi
sete cl
pop ebp
mov al, cl
pop ebx
pop ecx
ret 8
Function at 0x49dbb0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0xa804
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0xa800], eax
mov ecx, dword [esp + 0xa80c]
lea eax, [esp + 0xa810]
push eax
push ecx
lea edx, [esp + 8]
push 0x1800
push edx
call fcn.004eb719
xor eax, eax
mov word [esp + 0x300e], ax
mov eax, dword [esp + 0xa818]
add esp, 0x10
sub eax, 0
je 0x49dc69
sub eax, 1
je 0x49dc47
sub eax, 1
jne 0x49dcad
push 0x1800
lea ecx, [esp + 0x3004]
push ecx
lea edx, [esp + 8]
push edx
call fcn.0046c6c0
lea eax, [esp + 0x3000]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49dc30
push esi
sub eax, edx
push eax
push 1
lea eax, [esp + 0x300c]
push eax
jmp 0x49dca5
lea eax, [esp]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49dc50
sub eax, edx
push esi
sar eax, 1
push eax
push 2
lea ecx, [esp + 0xc]
jmp 0x49dca4
push 0x6000
lea edx, [esp + 0x4804]
push edx
lea eax, [esp + 8]
push eax
call fcn.0046c7d0
lea eax, [esp + 0x4800]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49dc90
push esi
sub eax, edx
push eax
push 1
lea ecx, [esp + 0x480c]
push ecx
call fcn.004eb049
add esp, 0x10
mov ecx, dword [esp + 0xa800]
xor ecx, esp
call fcn.004e6b3a
add esp, 0xa804
ret
Function at 0x49dcd0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
mov eax, 0x4324
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x4320], eax
push esi
push edi
call fcn.004536c0
mov esi, eax
test edi, edi
jne 0x49dd0d
xor al, al
pop esi
mov ecx, dword [esp + 0x4320]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x4324
ret
push 0xc8
push 0x501a20
lea eax, [esp + 0xc]
push eax
push 0x501a20
push esi
push SysReAllocString
call fcn.0049bef0
cmp word [esp + 4], 0
je 0x49dcf5
push 0xc8
push str._shellprintcommand
lea ecx, [esp + 0xc]
push ecx
call fcn.00469530
push 0x800
push 0x501a20
lea edx, [esp + 0x32c]
push edx
push 0x501a20
lea eax, [esp + 0x14]
push eax
push SysReAllocString
call fcn.0049bef0
cmp word [esp + 0x324], 0
jne 0x49de21
push esi
lea ecx, [esp + 0x198]
push str.SoftwareClasses_s
push ecx
mov edx, 0xc8
call fcn.004a63e0
add esp, 0xc
push 0xc8
push 0x501a20
lea edx, [esp + 0xc]
push edx
push 0x501a20
lea eax, [esp + 0x1a4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0049bef0
cmp word [esp + 4], 0
je 0x49dcf5
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x198]
push str.SoftwareClasses_s_shellprintcommand
push edx
mov edx, 0xc8
call fcn.004a63e0
add esp, 0xc
push 0x800
push 0x501a20
lea eax, [esp + 0x32c]
push eax
push 0x501a20
lea ecx, [esp + 0x1a4]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0049bef0
cmp word [esp + 0x324], 0
je 0x49dcf5
push 0x1000
lea edx, [esp + 0x2328]
push edx
lea eax, [esp + 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 0x2324]
push 0x5065a0
push ecx
call fcn.004ea8e5
add esp, 8
test eax, eax
je 0x49dcf5
push ebx
lea edx, [esp + 0x2328]
xor bl, bl
cmp eax, edx
jbe 0x49de70
cmp word [eax - 2], 0x22
jne 0x49de70
mov bl, 1
push 0x1000
push edi
lea edx, [esp + 0x2330]
xor ecx, ecx
push edx
mov word [eax], cx
call fcn.00469530
test bl, bl
pop ebx
je 0x49dea4
push 0x1000
push 0x503b3c
lea eax, [esp + 0x232c]
push eax
call fcn.00469530
push 0x800
lea ecx, [esp + 0x1328]
push ecx
lea edx, [esp + 0x232c]
push edx
call fcn.004696c0
push 8
push 0
push eax
lea eax, [esp + 0x1330]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
mov ecx, dword [esp + 0x4324]
sbb eax, eax
pop esi
xor ecx, esp
neg eax
call fcn.004e6b3a
add esp, 0x4324
ret

Function at 0x49df00
Capabilities:
Create process on windows

Disassembly:
push ebx
push edi
push 8
push 0
push 0
mov edi, eax
push edi
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
jne 0x49df3f
call fcn.0049dcd0
test al, al
jne 0x49df3f
push edi
push 0x557
call fcn.00463400
push eax
call fcn.004c2ab0
add esp, 8
pop edi
mov al, bl
pop ebx
ret
Function at 0x4a01e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
push ebx
push esi
push 0x5048cc
push eax
mov esi, ecx
call fcn.004b4390
mov ebx, eax
test ebx, ebx
sete al
mov byte [esi + 0x3028], al
test al, al
jne 0x4a03cf
push ebx
push 1
lea ecx, [esp + 0x18]
push 0x16
push ecx
call fcn.004eb477
add esp, 0x10
cmp word [esp + 0x10], 0
jne 0x4a03c6
cmp word [esp + 0x12], 1
jne 0x4a03c6
push ebp
push edi
push 0
push 0
push ebx
call fcn.004eb51e
movzx edx, word [esp + 0x28]
dec edx
shl edx, 4
add edx, 0x16
push edx
call fcn.004e7f56
mov esi, eax
movzx eax, word [esp + 0x2c]
dec eax
lea ecx, [eax*8]
sub ecx, eax
lea edx, [ecx + ecx + 0x14]
push edx
call fcn.004e7f56
mov edi, eax
movzx eax, word [esp + 0x30]
dec eax
push ebx
shl eax, 4
push 1
add eax, 0x16
push eax
push esi
mov dword [esp + 0x38], edi
call fcn.004eb477
mov ecx, dword [esi]
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0xc]
mov dword [edi + 0xc], ecx
mov edx, dword [esi + 0x10]
xor eax, eax
add esp, 0x24
mov dword [edi + 0x10], edx
mov dword [esp + 0x38], 0
cmp ax, word [esp + 0x1c]
jae 0x4a036b
lea eax, [edi + 0x12]
lea ebp, [esi + 0xe]
mov dword [esp + 0x10], eax
jmp 0x4a02d4
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax - 0xc], ecx
mov edx, dword [ebp - 4]
mov dword [eax - 8], edx
mov ecx, dword [ebp]
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x38]
inc ecx
mov word [eax], cx
mov edi, dword [ebp]
push edi
call fcn.004e7f56
mov esi, eax
add esp, 4
test esi, esi
je 0x4a03b1
mov edx, dword [ebp + 4]
push 0
push edx
push ebx
call fcn.004eb51e
push ebx
push 1
push edi
push esi
call fcn.004eb477
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
add esp, 0x1c
push edi
push esi
inc eax
push 0x400
movzx eax, ax
push eax
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push esi
mov edi, eax
call fcn.004e7061
add esp, 4
test edi, edi
je 0x4a03b1
mov eax, dword [esp + 0x38]
movzx edx, word [esp + 0x1c]
add dword [esp + 0x10], 0xe
inc eax
add ebp, 0x10
cmp eax, edx
mov dword [esp + 0x38], eax
jl 0x4a02d0
mov edi, dword [esp + 0x14]
push ebx
call fcn.004eae6b
movzx eax, word [esp + 0x20]
dec eax
add esp, 4
lea ecx, [eax*8]
sub ecx, eax
movzx eax, word [esp + 0x3c]
lea edx, [ecx + ecx + 0x14]
mov ecx, dword [esp + 0x34]
push edx
push edi
push 0x400
push eax
push 0xe
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
pop edi
neg eax
pop ebp
sbb eax, eax
pop esi
neg eax
pop ebx
add esp, 0x20
ret 0xc
push ebx
call fcn.004eae6b
add esp, 4
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0x20
ret 0xc
push ebx
call fcn.004eae6b
add esp, 4
pop esi
xor al, al
pop ebx
add esp, 0x20
ret 0xc
Function at 0x4a03e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0x5048cc
push eax
mov edi, ecx
call fcn.004b4390
mov esi, eax
test esi, esi
sete al
mov byte [edi + 0x3028], al
test al, al
jne 0x4a04dd
push esi
call fcn.004eba0e
add esp, 4
cmp eax, 0x42
jne 0x4a04d4
push esi
call fcn.004eba0e
add esp, 4
cmp eax, 0x4d
jne 0x4a04d4
push 0
push 2
push esi
call fcn.004eb51e
push esi
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call fcn.004eb477
mov eax, dword [esp + 0x2c]
sub eax, 0xe
push eax
mov dword [esp + 0x30], eax
call fcn.004e7f56
mov edi, eax
add esp, 0x20
test edi, edi
je 0x4a04d4
push 0
push 0xe
push esi
call fcn.004eb51e
mov edx, dword [esp + 0x1c]
push esi
push edx
push 1
push edi
call fcn.004eb477
add esp, 0x1c
cmp eax, dword [esp + 0x10]
je 0x4a0496
push edi
call fcn.004e7061
push esi
call fcn.004eae6b
add esp, 8
pop edi
xor al, al
pop esi
ret 0xc
push esi
call fcn.004eae6b
mov eax, dword [esp + 0x14]
movzx ecx, word [esp + 0x18]
mov edx, dword [esp + 0x10]
add esp, 4
push eax
push edi
push 0x400
push ecx
push 2
push edx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push edi
mov esi, eax
call fcn.004e7061
add esp, 4
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
ret 0xc
push esi
call fcn.004eae6b
add esp, 4
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x4a0550
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push esi
push edi
push 0x5048cc
push eax
mov edi, ecx
call fcn.004b4390
mov esi, eax
test esi, esi
sete al
mov byte [edi + 0x3028], al
test al, al
je 0x4a058f
mov al, 1
jmp 0x4a05d9
push esi
push 0x400
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004eb477
push esi
mov edi, eax
call fcn.004eae6b
lea ecx, [edi - 4]
add esp, 0x14
xor eax, eax
test ecx, ecx
jle 0x4a05d7
mov dl, 0x55
cmp byte [esp + eax + 8], dl
jne 0x4a05d2
cmp byte [esp + eax + 9], 0x50
jne 0x4a05d2
cmp byte [esp + eax + 0xa], 0x58
jne 0x4a05d2
cmp byte [esp + eax + 0xb], 0x30
je 0x4a058b
inc eax
cmp eax, ecx
jl 0x4a05b7
xor al, al
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.004e6b3a
add esp, 0x404
ret 4

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

Disassembly:
mov eax, 0x2004
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push ebx
push esi
push edi
mov edi, dword [esp + 0x2018]
push 0x5048cc
push eax
mov ebx, ecx
call fcn.004b4390
mov esi, eax
test esi, esi
sete al
mov byte [ebx + 0x3028], al
test al, al
je 0x4a064b
xor al, al
jmp 0x4a0696
push esi
push 0x2000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004eb477
add esp, 0x10
test eax, eax
je 0x4a068b
push edi
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.004eb049
push esi
push 0x2000
lea edx, [esp + 0x24]
push 1
push edx
call fcn.004eb477
add esp, 0x20
test eax, eax
jne 0x4a0664
push esi
call fcn.004eae6b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e6b3a
add esp, 0x2004
ret 8
Function at 0x4a06b0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.004e6b50
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2010]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x201c]
push 0x5048cc
push eax
mov dword [esp + 0x14], ecx
call fcn.004b4390
mov ebp, eax
test ebp, ebp
sete al
mov byte [esi + 0x3028], al
test al, al
je 0x4a0701
xor eax, eax
jmp 0x4a084a
push ebx
push edi
push ebp
push 0x2000
lea edx, [esp + 0x20]
push 1
push edx
mov dword [esp + 0x20], 0
call fcn.004eb477
mov ebx, eax
add esp, 0x10
cmp ebx, 0x28
jbe 0x4a080a
jmp 0x4a0730
lea eax, [ebx - 0x28]
xor edi, edi
test eax, eax
jbe 0x4a07d5
lea esi, [esp + 0x1c]
cmp byte [esp + edi + 0x18], 0x2a
jne 0x4a076b
cmp byte [esp + edi + 0x19], 0x2a
jne 0x4a076b
push 0xc
lea eax, [esp + edi + 0x1e]
push str.messages
push eax
call fcn.004e92ff
add esp, 0xc
test eax, eax
je 0x4a0817
mov eax, 0x2a
cmp word [esi - 4], ax
jne 0x4a0799
cmp word [esi - 2], ax
jne 0x4a0799
push 0xc
push 0x503328
push esi
call fcn.004ea5f5
add esp, 0xc
test eax, eax
je 0x4a0817
mov eax, 0x2a
mov ecx, 0xfeff
cmp word [esi - 4], cx
jne 0x4a07c6
cmp word [esi - 2], ax
jne 0x4a07c6
cmp word [esi], ax
jne 0x4a07c6
push 0xc
lea edx, [esi + 2]
push 0x503328
push edx
call fcn.004ea5f5
add esp, 0xc
test eax, eax
je 0x4a0817
inc edi
lea eax, [ebx - 0x28]
add esi, 2
cmp edi, eax
jb 0x4a0741
mov eax, dword [esp + 0x10]
lea ebx, [eax + ebx - 0x28]
push 0
push ebx
push ebp
mov dword [esp + 0x1c], ebx
call fcn.004eb51e
push ebp
push 0x2000
lea ecx, [esp + 0x2c]
push 1
push ecx
call fcn.004eb477
mov ebx, eax
add esp, 0x1c
cmp ebx, 0x28
ja 0x4a0730
push ebp
call fcn.004eae6b
add esp, 4
xor eax, eax
jmp 0x4a0848
mov edx, dword [esp + 0x10]
push 0
add edi, edx
push edi
push ebp
call fcn.004eb51e
mov eax, dword [esp + 0x2034]
mov ecx, dword [esp + 0x20]
push ebp
push eax
push 1
push ecx
call fcn.004eb477
push ebp
mov esi, eax
call fcn.004eae6b
add esp, 0x20
mov eax, esi
pop edi
pop ebx
mov ecx, dword [esp + 0x2010]
pop esi
pop ebp
xor ecx, esp
call fcn.004e6b3a
add esp, 0x200c
ret 0xc