joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d4c1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1003d43d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1003d630
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1003d630
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1003d5e5
jg 0x1003d51d
test eax, eax
je 0x1003d5db
push 1
push 0x1000
call fcn.10032f58
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1003d540
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1003d5d2
push 0x8000
push ebx
call fcn.1003d36e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1003d569
jg 0x1003d564
cmp ecx, 0x1000
jb 0x1003d569
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100313f8
add esp, 0x10
cmp eax, 0xffffffff
je 0x1003d5ae
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1003d564
jl 0x1003d595
test ecx, ecx
jne 0x1003d556
push dword [ebp - 0xc]
push ebx
call fcn.1003d36e
push esi
call fcn.10031c43
add esp, 0xc
xor ebx, ebx
jmp 0x1003d63e
cmp byte [edi + 0x24], 0
je 0x1003d5c5
cmp dword [edi + 0x20], 5
jne 0x1003d5c5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1003d5d0
mov ebx, dword [edi + 0x18]
jmp 0x1003d5d2
xor ebx, ebx
push esi
call fcn.10031c43
pop ecx
jmp 0x1003d63e
test ecx, ecx
jg 0x1003d5a7
jl 0x1003d5e5
test eax, eax
jae 0x1003d5a7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1003a362
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003d605
cmp byte [edi + 0x1c], 0
je 0x1003d5a7
jmp 0x1003d636
push ebx
call fcn.1003a110
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1003d5a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1003d63e
cmp byte [edi + 0x1c], 0
je 0x1003d63b
mov ebx, dword [edi + 0x18]
jmp 0x1003d63e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1003a362
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003f3d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003f3fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003f3fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x44a000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8a6b
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x51bf3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x536358], eax
mov dword [0x536218], 1
mov eax, dword [ebp + 0x14]
mov dword [0x53621c], eax
mov ecx, dword [ebp + 0x10]
mov dword [0x536220], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x536224], eax
mov edx, dword [ebp + 8]
mov dword [0x536228], edx
push 0x250
call fcn.004b76d1
add esp, 4
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x70], 0
je 0x44a09c
push 0
mov eax, dword [0x536358]
push eax
mov ecx, dword [ebp - 0x70]
call fcn.0048e920
mov dword [ebp - 0xc8], eax
jmp 0x44a0a6
mov dword [ebp - 0xc8], 0
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x6c]
mov dword [0x536240], edx
call fcn.004682e0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x44a1bd
call fcn.004665c0
push eax
lea ecx, [ebp - 0x68]
call fcn.0044a390
mov dword [ebp - 4], 1
call fcn.004665e0
push eax
lea ecx, [ebp - 0x4c]
call fcn.0044a390
mov byte [ebp - 4], 2
xor eax, eax
cmp dword [ebp - 0x3c], 0
sete al
movzx ecx, al
test ecx, ecx
jne 0x44a15f
lea edx, [ebp - 0x4c]
push edx
push 0x51df10
lea eax, [ebp - 0x2c]
push eax
call fcn.0044a1e0
add esp, 0xc
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 3
mov edx, dword [0x51df0c]
push edx
push 0
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x68]
call fcn.0044a5f0
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0044a540
mov byte [ebp - 4], 2
cmp dword [ebp - 0x54], 0x10
jb 0x44a170
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0xd0], ecx
jmp 0x44a179
lea edx, [ebp - 0x68]
mov dword [ebp - 0xd0], edx
push 0x40010
push 0
mov eax, dword [ebp - 0xd0]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.0044a540
mov byte [ebp - 4], 1
mov dword [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.0044a540
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5361a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b7bce
mov esp, ebp
pop ebp
ret 0x10
Function at 0x451a00
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x51bf3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0044e730
add esp, 4
movzx edx, al
test edx, edx
je 0x451a91
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.004b8b60
add esp, 0xc
mov dword [ebp - 0x2d8], 0x10001
lea edx, [ebp - 0x2d8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x451a8f
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp + 0xc]
jne 0x451a8f
jmp 0x451a91
jmp 0x451a13
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7bce
mov esp, ebp
pop ebp
ret
Function at 0x48cb50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x48cbb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x48cba7
mov edx, dword [0x5368c0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x48cb9b
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x48cb80
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x48cba9
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x48ee50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd398
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x51bf3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], ecx
mov eax, dword [ebp - 0x80]
movsx ecx, byte [eax + 2]
test ecx, ecx
jne 0x48ee96
movzx edx, byte [ebp + 0x10]
test edx, edx
jne 0x48ee96
mov ecx, dword [ebp - 0x80]
call fcn.0048ed50
mov eax, dword [ebp - 0x80]
movzx ecx, byte [eax + 1]
test ecx, ecx
jne 0x48ef66
mov edx, dword [ebp - 0x80]
movzx eax, byte [edx]
test eax, eax
jne 0x48ef66
mov ecx, dword [ebp - 0x80]
cmp dword [ecx + 0x20c], 0
je 0x48ef05
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x20c]
push ecx
call fcn.0049ad00
add esp, 8
mov dword [ebp - 0x78], eax
push 0
mov edx, dword [ebp - 0x78]
push edx
push 0x186
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax + 0x20c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x80]
mov eax, dword [edx + 0x20c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x48ef66
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
jne 0x48ef66
mov edx, dword [ebp - 0x80]
add edx, 2
push edx
lea ecx, [ebp - 0x74]
call fcn.00496680
mov dword [ebp - 4], 0
push 0x10001
lea eax, [ebp - 0x74]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0049aaf0
add esp, 0x10
xor ecx, ecx
cmp eax, 2
sete cl
mov byte [ebp - 0x79], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0044e5d0
movzx edx, byte [ebp - 0x79]
test edx, edx
je 0x48ef66
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b7bce
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4999c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fea0d
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x51bf3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x7c], 0x8000
mov dword [ebp - 0x78], 0x51f6d0
mov byte [ebp - 0xa9], 0
lea eax, [ebp - 0xa9]
push eax
push 0x8000
lea ecx, [ebp - 0xa8]
call fcn.00468e30
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x74]
call fcn.00498500
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xb8]
call fcn.00496e90
push eax
push 0x8000
push 0
lea ecx, [ebp - 0xa8]
call fcn.00468f10
push eax
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00496e90
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00496e90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.0044e5d0
push 0
lea ecx, [ebp - 0xa8]
call fcn.00468f10
push eax
lea ecx, [ebp - 0x98]
call fcn.0044a390
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x78]
push ecx
lea edx, [ebp - 0x98]
push edx
call fcn.0049f6e0
add esp, 8
movzx eax, al
test eax, eax
je 0x499b08
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.004971b0
mov edx, dword [ebp - 0xb0]
or edx, 1
mov dword [ebp - 0xb0], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.0044a420
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.00468eb0
mov eax, dword [ebp + 8]
jmp 0x499b67
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp + 8]
call fcn.0049d160
mov ecx, dword [ebp - 0xb0]
or ecx, 1
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.0044a420
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.00468eb0
mov eax, dword [ebp + 8]
jmp 0x499b67
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b7bce
mov esp, ebp
pop ebp
ret
Function at 0x49a250
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4febe1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x51bf3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00496e90
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x49a306
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x21]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
lea ecx, [ebp - 0x20]
call fcn.00468e30
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.00468f10
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00496e90
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
lea ecx, [ebp - 0x20]
call fcn.00468f10
push eax
mov ecx, dword [ebp + 8]
call fcn.0044a390
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00468eb0
mov eax, dword [ebp + 8]
jmp 0x49a325
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0045f6d0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x49a770
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fece1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x51bf3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x49a818
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.00468e30
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.00468f10
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
lea ecx, [ebp - 0x20]
call fcn.00468f10
push eax
mov ecx, dword [ebp + 8]
call fcn.0044a390
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00468eb0
mov eax, dword [ebp + 8]
jmp 0x49a833
mov ecx, dword [ebp + 8]
call fcn.0045ebb0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x49b290
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fef71
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x51bf3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
push 0xe
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.00468e30
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x20]
call fcn.00468f10
push eax
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0xd
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
lea ecx, [ebp - 0x20]
call fcn.00468f10
push eax
mov ecx, dword [ebp + 8]
call fcn.0044a390
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00468eb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4b4520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x501ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x51bf3c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [0x51bf3c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jb 0x4b456f
mov eax, dword [edi]
jmp 0x4b4571
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4b4591
push esi
push edi
push ebx
call fcn.004b2590
add esp, 0xc
jmp 0x4b46c5
test eax, 0x400
je 0x4b4693
cmp dword [edi + 0x14], 8
jb 0x4b45a6
mov edx, dword [edi]
jmp 0x4b45a8
mov edx, edi
xor eax, eax
mov word [esp + 0x20], ax
mov ebx, 7
mov eax, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b45c5
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0046c240
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x4b45f6
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 2
jb 0x4b462a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004b76c6
add esp, 4
mov dword [esp + 0x34], ebx
xor edx, edx
or ebx, 0xffffffff
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, ebx
jne 0x4b465b
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.004b2590
add esp, 0xc
mov eax, esi
jmp 0x4b46c7
push edi
call fcn.004b0820
add esp, 4
mov dword [esp + 0x48], ebx
push esi
test al, al
jne 0x4b4681
mov edi, dword [esp + 0x18]
mov dword [edi], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4b46c7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test esi, esi
je 0x4b46a9
mov dword [esi], 0
call fcn.004b68c0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
test al, 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 3
jne 0x4b46c1
mov dword [esp + 0x10], 2
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004b7bce
add esp, 0x3c
ret
Function at 0x4b46f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x14], 8
jb 0x4b4701
mov eax, dword [edi]
jmp 0x4b4703
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b472a
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push eax
push edi
push esi
call fcn.004b2590
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4b4740
mov dword [esi], 0
call fcn.004b68c0
mov dword [esi + 4], eax
test ebx, 0x400
je 0x4b4775
push edi
call fcn.004b0820
add esp, 4
test al, al
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
jne 0x4b4769
mov dword [esp + 0x14], 9
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
ret
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 3
test bl, 0x10
jne 0x4b478e
mov dword [esp + 0x14], 2
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], edx
pop ebx
ret

Function at 0x4b7bce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x51bf3c]
jne 0x4b7bd8
repz ret
jmp fcn.004c1e6c
Function at 0x4cfe6a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51bf3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004c185c
and dword [ebp - 0x14], 0
cmp dword [0x538270], 0
mov dword [ebp - 0x18], eax
jne 0x4cff1d
push 0x523328
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4cffc5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x51f778
push ebx
call edi
test eax, eax
je 0x4cffc5
mov esi, dword [0x51d390]
push eax
call esi
push 0x523318
push ebx
mov dword [0x538270], eax
call edi
push eax
call esi
push 0x523304
push ebx
mov dword [0x538274], eax
call edi
push eax
call esi
push 0x5232e8
push ebx
mov dword [0x538278], eax
call edi
push eax
call esi
mov dword [0x538280], eax
test eax, eax
je 0x4cff1d
push 0x5232d0
push ebx
call edi
push eax
call esi
mov dword [0x53827c], eax
mov eax, dword [0x53827c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x51d394]
cmp eax, ecx
je 0x4cff76
cmp dword [0x538280], ecx
je 0x4cff76
push eax
call esi
push dword [0x538280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4cff76
test ebx, ebx
je 0x4cff76
call edi
test eax, eax
je 0x4cff6d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4cff6d
test byte [ebp - 8], 1
jne 0x4cff76
or dword [ebp + 0x10], 0x200000
jmp 0x4cffa9
mov eax, dword [0x538274]
cmp eax, dword [ebp - 0x18]
je 0x4cffa9
push eax
call esi
test eax, eax
je 0x4cffa9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4cffa9
mov eax, dword [0x538278]
cmp eax, dword [ebp - 0x18]
je 0x4cffa9
push eax
call esi
test eax, eax
je 0x4cffa9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x538270]
call esi
test eax, eax
je 0x4cffc5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4cffc7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7bce
leave
ret
Function at 0x43b9a0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x401ef6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x30
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4017d0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.0043b8d0
cmp ax, 0xffff
jne 0x43ba82
mov dword [ebp - 4], 4
lea eax, [ebp - 0x28]
push eax
push 0x406390
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0x80000002
call fcn.004047b0
mov dword [ebp - 0x3c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 5
lea eax, [ebp - 0x28]
push eax
push 0x406390
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0x80000001
call fcn.004047b0
mov dword [ebp - 0x3c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
jmp 0x43babf
mov dword [ebp - 4], 7
lea eax, [ebp - 0x28]
push eax
push 0x406390
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0x80000001
call fcn.004047b0
mov dword [ebp - 0x3c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 9
cmp dword [ebp - 0x24], 0
jne 0x43bb51
mov dword [ebp - 4], 0xa
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
push eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 1
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
mov edx, dword [ebp - 0x28]
push edx
call fcn.00404804
mov dword [ebp - 0x3c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x34]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov dword [ebp - 4], 0xc
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00404848
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x43bb83
jmp 0x43bb82
ret