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

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000100a
repz ret
jmp fcn.10001710

Function at 0x1000617a
Capabilities:
Inspect section memory permissions

Disassembly:
test eax, 0xeb0c5d89
push es
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000619e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100061bc
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000621a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10006201
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000620a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10006214
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100061f6
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10006180
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x100065d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
adc bh, bl
xchg edx, eax
movsb byte es:[edi], byte [esi]
and byte [ebp - 0x664], 0
and byte [ebp - 0x663], 0
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.10005ad7
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10005a8c
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.10005ad7
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10005a8c
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.10005ac7
out 0x81, al
jle 0x100066f3
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.10005ad7
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10005a8c
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.10005ac7
xchg esp, eax
ret
Function at 0x10006990
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ror byte [ebp - 0x22e43], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10005aa5
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
Function at 0x100082f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1000d890
push 0x10003150
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
xor ebx, ebx
mov dword [ebp - 0x40], ebx
xor esi, esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], ebx
mov ecx, dword [0x10010bc0]
cmp ecx, ebx
jne 0x1000849e
lea eax, [ebx + 0x20]
call fcn.1000ae40
mov esi, eax
mov dword [ebp - 0x44], esi
cmp esi, ebx
je 0x100084a5
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x3c], 0x20
mov dword [ebp - 0x38], 5
mov eax, dword [0x1000d32c]
mov dword [ebp - 0x30], eax
mov ecx, dword [0x1000d330]
mov dword [ebp - 0x2c], ecx
mov edx, dword [0x1000d334]
mov dword [ebp - 0x28], edx
mov eax, dword [0x1000d338]
mov dword [ebp - 0x24], eax
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push edi
mov ebx, dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
call ebx
mov dword [esi + 0xc], eax
test eax, eax
je 0x100084a5
mov edx, dword [0x1000d31c]
mov dword [ebp - 0x30], edx
mov eax, dword [0x1000d320]
mov dword [ebp - 0x2c], eax
mov ecx, dword [0x1000d324]
mov dword [ebp - 0x28], ecx
mov edx, dword [0x1000d328]
mov dword [ebp - 0x24], edx
push 0
lea eax, [ebp - 0x3c]
push eax
push edi
call ebx
mov dword [esi + 0x10], eax
test eax, eax
je 0x100084a5
mov dword [esi + 8], edi
mov ecx, dword [ebp - 0x48]
mov dword [ecx], esi
mov dword [0x10010bc0], esi
push 0
mov ebx, 1
push ebx
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
call edi
mov dword [0x10010bc4], eax
test eax, eax
je 0x100084a5
mov dword [0x10010bc8], ebx
push 0
push ebx
push ebx
push 0
call edi
mov dword [0x10010bec], eax
test eax, eax
je 0x100084a5
mov dword [0x10010bf0], ebx
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x10010be8], eax
test eax, eax
je 0x100084ac
mov eax, 0x10010bf4
mov dword [0x10010bf4], eax
mov dword [0x10010bf8], eax
push esi
call fcn.10009be0
add esp, 4
test eax, eax
je 0x100084a5
push 0
push 0
push 0
push 0x1000afb0
push 0
push 0
call fcn.100013aa
add esp, 0x18
mov dword [0x10010be4], eax
test eax, eax
je 0x100084a5
mov dword [0x10010bfc], 5
jmp 0x100084ac
cmp dword [ecx + 8], edi
jne 0x100084ac
mov dword [eax], ebx
mov dword [ebp - 0x40], 0xc0000007
mov dword [ebp - 4], 0xfffffffe
call fcn.100084db
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10001000
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000ad30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareInteliusb3monParameters
push 0x80000001
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000ad90
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.IgnoreUSB30Hub
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x10
ret
Function at 0x45e300
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x433015
lea edi, [esi - 0x32015]
push edi
or ebp, 0xffffffff
jmp 0x45e322
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45e329
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45e318
mov eax, 1
add ebx, ebx
jne 0x45e33b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45e330
jne 0x45e34c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45e330
xor ecx, ecx
sub eax, 3
jb 0x45e360
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45e3d2
mov ebp, eax
add ebx, ebx
jne 0x45e36b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45e378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45e39c
inc ecx
add ebx, ebx
jne 0x45e388
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45e37d
jne 0x45e399
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45e37d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45e3bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45e3ad
jmp 0x45e31e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45e3bc
add edi, ecx
jmp 0x45e31e
pop esi
lea edi, [esi + 0x5c000]
mov eax, dword [edi]
or eax, eax
je 0x45e41b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x64074]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x640cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45e3d9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x640d4]
or eax, eax
je 0x45e415
mov dword [ebx], eax
add ebx, 4
jmp 0x45e3f6
call dword [esi + 0x640d0]
mov ebp, dword [esi + 0x640d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45e44f
sub esp, 0xffffff80
jmp 0x42f180

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x429426
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042901e

Function at 0x42e72c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042e600

Function at 0x430ea8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00430866
Function at 0x406079
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4060cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4060cf
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4060c1
cmp esi, ecx
jae 0x4060cf
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4060af
cmp esi, ecx
jae 0x4060cf
cmp word [esi], 0
je 0x4060cf
mov eax, esi
jmp 0x4060d1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40639f
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0040619a
test eax, eax
je 0x406530
mov edx, dword [eax]
mov ecx, eax
push ebx
push esi
push edi
call dword [edx + 0xc]
add eax, 0x10
mov ebx, 0x104
mov dword [ebp - 4], eax
or edi, 0xffffffff
lea eax, [ebp - 4]
mov dword [ebp - 0x14], edi
push ebx
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.00406936
push ebx
push eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00406910
test esi, esi
je 0x406521
cmp esi, 0x104
ja 0x406521
mov esi, dword [ebp - 4]
call fcn.0040619a
push eax
lea ecx, [ebp - 8]
call fcn.00406ab5
test esi, esi
je 0x406432
test esi, 0xffff0000
jne 0x406432
movzx eax, si
lea ecx, [ebp - 8]
push eax
call fcn.00406ade
jmp 0x40643b
push esi
lea ecx, [ebp - 8]
call fcn.00406884
mov eax, dword [ebp - 8]
lea ecx, [ebp - 8]
push dword [eax - 0xc]
call fcn.00406936
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [ebp - 8]
test esi, esi
jne 0x40645b
mov eax, ebx
jmp 0x406466
push dword [esi - 8]
push esi
call fcn.0040a039
pop ecx
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.004069b8
lea ecx, [esi - 0x10]
call fcn.00406b5d
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004068af
lea ecx, [ebp - 0x10]
call fcn.00406a9a
call fcn.0040619a
test eax, eax
je 0x406530
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0x104
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.00406936
push eax
push ebx
push ebx
push 0x26
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00406910
test esi, esi
js 0x406511
lea ecx, [ebp - 0xc]
call fcn.0040684a
lea ecx, [ebp - 4]
call fcn.0040684a
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x40650c
mov ecx, dword [ebp - 4]
cmp dword [ecx - 0xc], ebx
jl 0x40650c
call fcn.00406da5
test eax, eax
je 0x40650c
mov edi, eax
sub edi, dword [ebp - 4]
sar edi, 1
test edi, edi
sete bl
lea ecx, [ebp - 0xc]
call fcn.00406a9a
lea ecx, [ebp - 8]
call fcn.00406a9a
lea ecx, [ebp - 4]
call fcn.00406a9a
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0x80004005
call fcn.00405ff5
int3
Function at 0x4034cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x4034db
pop dword [ebp - 0x38]
mov eax, 0xbaead48a
add eax, 0x45556051
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xdf3ed1ff
sub dword [ebp - 0x48], 0x90ec8cb4
mov dword [ebp - 0x44], 0xabae17a5
sub dword [ebp - 0x44], 0x797acb60
mov dword [ebp - 0x40], 0x34c4854c
sub dword [ebp - 0x40], 0xe878411e
mov dword [ebp - 0x3c], 0xf576aa48
sub dword [ebp - 0x3c], 0xf576aa48
lea eax, [ebp - 0x48]
push eax
mov eax, 0x1dddfa0
sub eax, 0x19d9f4c
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xdfcf0e25
sub dword [ebp - 0x48], 0x6b5ca4cf
mov dword [ebp - 0x44], 0xedffb336
add dword [ebp - 0x44], 0x536cae3f
mov dword [ebp - 0x40], 0x7c143fcb
sub dword [ebp - 0x40], 0x18a4d35f
mov dword [ebp - 0x3c], 0xe6c0f4c3
add dword [ebp - 0x3c], 0x193f0b3d
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x39398
push 0
call eax
mov ecx, 0xc1741577
add ecx, 0x3e8c3be4
xor esi, esi
add esi, eax
mov edx, 0x408400
add edx, dword [ebp - 0x38]
mov edi, 0x558f4e12
sub edi, 0x9cbaa7de
sub dword [ebp - 0xc], 0x5a9423cb
mov ebx, dword [edx]
xor dword [ebp - 0x18], 0x444892ec
xor ebx, edi
add dword [ebp - 0x2c], ebx
mov dword [esi], ebx
mov dword [ebp - 0x10], 0xa4ae3b3
add esi, 0x581036a9
add esi, 0xa7efc95b
add edx, 0xc1853c6e
sub edx, 0xc1853c6a
loop 0x4035f4
add eax, 0x1383f
mov ebx, eax
add eax, 0xcb3e06fe
sub eax, 0xcb3e06f9
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
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.1010cff7
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.1010cff7
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.1010cff7
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.1010cff7
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.1010cff7
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.1010cff7
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.1010cff7
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