joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468d30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x20], 0
je 0x468d4c
push 0x64
mov ecx, dword [ebp - 0x10]
call fcn.00408410
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x5c], 0
je 0x468e5b
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x70], 0
je 0x468db2
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x468db2
push 0
push 0
push 0x64
push 2
mov ecx, dword [ebp - 0x10]
call fcn.004692d0
push 0x3e8
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x102
jne 0x468db0
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x468ddc
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x102
jne 0x468ddc
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x60], 0
je 0x468e0a
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x5c], 0
je 0x468e20
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x70], 0
push 0x10
push 0
mov edx, dword [ebp - 0x10]
add edx, 0x5c
push edx
call sub.MSVCR71.dll_memset
add esp, 0xc
movzx eax, byte [ebp + 8]
cmp eax, 1
jne 0x468e5b
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x6c]
mov edx, dword [eax]
call dword [edx + 0xc]
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x470310
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x948
mov eax, dword [0x4b33f0]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x944], ecx
mov ax, word [0x49e1e8]
mov word [ebp - 0x418], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x416]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.ServiceCore.dll_public:_static_bool___cdecl_CWHService::GetWorkDirectory_wchar_t__const__unsigned_short_int_]
add esp, 8
mov dx, word [0x49e1ec]
mov word [ebp - 0x210], dx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x418]
push eax
push 0x49e1f0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
mov dx, word [0x49e228]
mov word [ebp - 0x818], dx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x816]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push eax
push 0x200
lea ecx, [ebp - 0x818]
push ecx
push 0x49e22c
push 0x49e230
push str.Assistant
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx edx, word [ebp - 0x818]
test edx, edx
je 0x47054a
mov dword [ebp - 0x81c], 1
mov eax, dword [ebp - 0x944]
mov ecx, dword [eax + 0x7cc]
push ecx
push 0
push 0xb
lea edx, [ebp - 0x818]
push edx
mov ecx, dword [ebp - 0x944]
call fcn.0046e360
mov ecx, dword [ebp - 0x944]
mov dword [ecx + 0x7d0], eax
mov dx, word [0x49e260]
mov word [ebp - 0x83c], dx
xor eax, eax
mov dword [ebp - 0x83a], eax
mov dword [ebp - 0x836], eax
mov dword [ebp - 0x832], eax
mov dword [ebp - 0x82e], eax
mov dword [ebp - 0x82a], eax
mov dword [ebp - 0x826], eax
mov dword [ebp - 0x822], eax
mov word [ebp - 0x81e], ax
mov ecx, dword [ebp - 0x81c]
push ecx
push 0x49e264
push 0x10
lea edx, [ebp - 0x83c]
push edx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x10
mov ax, word [0x49e280]
mov word [ebp - 0x940], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x93e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x210]
push ecx
push 0x80
lea edx, [ebp - 0x940]
push edx
push 0x49e284
push str.AssistantName
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx ecx, word [ebp - 0x940]
test ecx, ecx
jne 0x4704de
jmp 0x47052e
mov edx, dword [ebp - 0x81c]
mov dword [ebp - 0x948], edx
mov eax, dword [ebp - 0x944]
mov ecx, dword [eax + 0x7d0]
push ecx
mov edx, dword [ebp - 0x948]
push edx
push 0xa
lea eax, [ebp - 0x940]
push eax
mov ecx, dword [ebp - 0x944]
call fcn.0046e760
mov ecx, dword [ebp - 0x81c]
add ecx, 1
mov dword [ebp - 0x81c], ecx
mov edx, 1
test edx, edx
jne 0x47042a
push 1
push 1
mov eax, dword [ebp - 0x944]
mov ecx, dword [eax + 0x7d0]
push ecx
mov ecx, dword [ebp - 0x944]
call fcn.0046ecd0
mov ecx, dword [ebp - 4]
call fcn.0048124d
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x474b50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4b33f0]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x90], ecx
mov ax, word [0x49f7bc]
mov word [ebp - 0x88], ax
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x86]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0x49f7c0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx eax, word [ebp - 0x88]
test eax, eax
je 0x474c30
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00474a60
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00474a60
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00474a60
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00474a60
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov al, 1
jmp 0x474c32
xor al, al
mov ecx, dword [ebp - 4]
call fcn.0048124d
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x474c50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4b33f0]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x90], ecx
mov ax, word [0x49f7c4]
mov word [ebp - 0x88], ax
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x86]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0x49f7c8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx eax, word [ebp - 0x88]
test eax, eax
je 0x474d00
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00474a60
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00474a60
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov al, 1
jmp 0x474d02
xor al, al
mov ecx, dword [ebp - 4]
call fcn.0048124d
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x474d20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4b33f0]
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x90], ecx
mov ax, word [0x49f7cc]
mov word [ebp - 0x88], ax
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x86]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0x49f7d0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx eax, word [ebp - 0x88]
test eax, eax
je 0x474df0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00474a60
movzx esi, al
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
call fcn.00474a60
movzx ecx, al
shl ecx, 8
or esi, ecx
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00474a60
movzx eax, al
shl eax, 0x10
or esi, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov al, 1
jmp 0x474df2
xor al, al
mov ecx, dword [ebp - 4]
call fcn.0048124d
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x480ff6
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x4a1020
call fcn.004815cc
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x481036
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x481036
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x48104e
cmp eax, 0x20b
je 0x48103b
mov dword [ebp - 0x1c], edi
jmp 0x481062
cmp dword [ecx + 0x84], 0xe
jbe 0x481036
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x48105c
cmp dword [ecx + 0x74], 0xe
jbe 0x481036
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4ba6c0], 0xffffffff
or dword [0x4ba6c4], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4ba648]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4ba644]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4ba6bc], eax
call fcn.00481624
call fcn.004816c4
cmp dword [0x4b3420], edi
jne 0x4810c2
push fcn.004816c4
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004816b2
push 0x4b30f0
push 0x4b30ec
call sub.MSVCR71.dll__initterm
push 0x481668
call fcn.00481294
mov eax, dword [0x4ba640]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4ba63c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x481116
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x4b30e8
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x481140
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4811fa
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x4811af
cmp ax, di
je 0x481156
cmp dword [ebp - 0x20], edi
jne 0x4811af
mov ax, word [esi]
cmp ax, di
je 0x48116b
cmp ax, 0x20
ja 0x48116b
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x481156
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x481187
movzx eax, word [ebp - 0x54]
jmp 0x48118a
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00481dbe
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x4811a7
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4811f4
cmp ax, 0x22
jne 0x4811c0
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x481140
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00481607
ret
Function at 0x437389
Capabilities:
Encode data using xor

Disassembly:
inc eax
jo 0x4373f6
xor dword [0x7aa00a6a], esp
dec ebx
imul esp, dword [ecx - 0x1e76bc58], 0x3185040
invalid
mov ecx, dword [ecx]

Function at 0x4457ed
Capabilities:
Encode data using xor

Disassembly:
and edx, dword [edi]
leave
mov word [eax - 0x1c], es
inc edi
mov al, 0x56
push esi

Function at 0x4650b9
Capabilities:
Encode data using xor

Disassembly:
pop esp
inc ebp
invalid
jecxz 0x465087
sbb ah, al
leave
sub ecx, ebx
mov eax, dword [0xfd315d6]
cmp dword [ebx], edi
cld
invalid

Function at 0x4ba4fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c23c8
cmp edx, dword [eax]
je 0x4ba51f
add eax, 8
inc ecx
cmp eax, 0x4c2458
jl 0x4ba510
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c23c8]
jne 0x4ba64d
mov eax, dword [0x4c6d4c]
cmp eax, 1
je 0x4ba627
test eax, eax
jne 0x4ba550
cmp dword [0x4c22f0], 1
je 0x4ba627
cmp edx, 0xfc
je 0x4ba64d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba587
lea eax, [ebp - 0x1a4]
push 0x4bf888
push eax
call fcn.004baee0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb370
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba5ca
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb370
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf884
push edi
call fcn.004bd240
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bf868
push eax
call fcn.004baee0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004baef0
lea eax, [ebp - 0xa0]
push 0x4bf864
push eax
call fcn.004baef0
push dword [esi + 0x4c23cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004baef0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bf83c
push eax
call fcn.004bd1b4
add esp, 0x2c
pop edi
jmp 0x4ba64d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c23cc]
push 0
push eax
push dword [esi]
call fcn.004bb370
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x101581d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1002f70
call fcn.01015ae4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1015858
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1015858
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1015870
cmp eax, 0x20b
je 0x101585d
mov dword [ebp - 0x1c], edi
jmp 0x1015884
cmp dword [ecx + 0x84], 0xe
jbe 0x1015858
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x101587e
cmp dword [ecx + 0x74], 0xe
jbe 0x1015858
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10190a4], 0xffffffff
or dword [0x10190a8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101909c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1019098]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10190ac], eax
call fcn.01015adc
cmp dword [0x1019070], edi
jne 0x10158df
push fcn.01015adc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01015ac5
push 0x1019010
push 0x101900c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1019094]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1019090]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1019008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100396d
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1015956
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x101598b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01015b1f
ret
Function at 0x10002fb6
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0x64c
mov eax, 0x1011128c
call fcn.1011094d
mov dword [ebp - 0x658], ecx
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x64c], edi
mov esi, 0x208
mov dword [ebp - 4], edi
push esi
lea eax, [ebp - 0x440]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x238]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x654], 0x103
mov dword [ebp - 0x650], 0xf
test ebx, ebx
jne 0x1000301f
mov esi, 0x80004003
jmp 0x1000315c
push edi
push edi
push edi
push ecx
push edi
mov edx, ebx
lea ecx, [ebp - 0x64c]
call fcn.10065032
mov esi, eax
test esi, esi
js 0x1000315c
mov eax, dword [ebp - 0x64c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xbc]
test eax, eax
jne 0x10003058
mov esi, 0x80004005
jmp 0x1000315c
mov eax, dword [ebp - 0x64c]
lea edx, [ebp - 0x654]
push edx
lea edx, [ebp - 0x648]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
mov esi, eax
test esi, esi
js 0x1000315c
cmp dword [ebp - 0x654], 4
jbe 0x1000304e
mov eax, dword [ebp - 0x64c]
lea edx, [ebp - 0x650]
push edx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
mov esi, eax
test esi, esi
js 0x1000315c
cmp dword [ebp - 0x650], 5
je 0x100030b8
cmp dword [ebp - 0x650], 3
jne 0x1000304e
push ecx
mov edx, str.accdb
lea ecx, [ebp - 0x30]
call fcn.10043548
test eax, eax
jne 0x100030e0
push ecx
mov edx, 0x101193ac
lea ecx, [ebp - 0x30]
call fcn.10043548
test eax, eax
je 0x1000304e
lea eax, [ebp - 0x440]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1000304e
push esi
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x64c]
call fcn.10065032
mov esi, eax
test esi, esi
js 0x1000315c
mov edi, dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x238]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x440]
push eax
call edi
test esi, esi
je 0x1000304e
mov esi, dword [ebp - 0x658]
push dword [esi + 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [esi + 0x44], 0
mov ecx, ebx
call fcn.10006afa
push eax
push ebx
lea ecx, [esi + 0x44]
call fcn.10065032
mov esi, eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x10003173
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.101108ff
ret 4
Function at 0x100042e4
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x10111452
call fcn.10110919
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x10004307
mov esi, 0x80004003
jmp 0x10004372
test edi, edi
je 0x10004300
push eax
push eax
push eax
push ecx
push eax
mov edx, ebx
mov dword [edi], 1
lea ecx, [ebp - 0x10]
call fcn.10065032
mov esi, eax
test esi, esi
js 0x10004372
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ecx]
call dword [edx + 0xbc]
test eax, eax
jne 0x1000433a
and dword [edi], eax
jmp 0x10004372
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x1000436b
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x10004372
xor esi, esi
and dword [edi], esi
jmp 0x10004372
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10004386
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.101108ea
ret
Function at 0x1001412b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10112029
call fcn.1011094d
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
xor eax, eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x41c], eax
push 0x60
push eax
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.kernel32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x1001419c
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x1001419c
call fcn.10012a54
mov esi, eax
jmp 0x1001427e
push dword [ebp - 0x420]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100141bf
call fcn.10012a54
jmp 0x10014271
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x100141b5
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x100141e8
mov esi, 0x8007000e
jmp 0x10014273
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
test edx, edx
ja 0x100142ac
jb 0x10014203
cmp eax, 0xffffffff
ja 0x100142ac
cmp eax, 0x400
jbe 0x10014218
push eax
lea ecx, [ebp - 0x41c]
call fcn.10065032
jmp 0x10014224
lea eax, [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x41c], 0
je 0x100141de
push esi
push dword [ebp - 0x41c]
push esi
push ebx
push 0
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100141b5
mov eax, dword [ebp - 0x41c]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x41c]
call fcn.10065032
mov esi, eax
test edi, edi
je 0x1001427e
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x418]
cmp dword [ebp - 0x41c], eax
je 0x10014297
lea ecx, [ebp - 0x41c]
call fcn.10012a1c
lea ecx, [ebp - 0x428]
call fcn.10006b97
mov eax, esi
call fcn.101108ff
ret 0x10
push 0x80070216
call fcn.10065032
int3

Function at 0x10016d8e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, 8
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
jne 0x10016dc0
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
jmp 0x10016dc2
xor eax, eax
pop ebp
ret 0xc