joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ab81d
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.100ab799
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100ab98c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100ab98c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100ab941
jg 0x100ab879
test eax, eax
je 0x100ab937
push 1
push 0x1000
call fcn.100a4aa5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100ab89c
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100ab92e
push 0x8000
push ebx
call fcn.100ab296
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100ab8c5
jg 0x100ab8c0
cmp ecx, 0x1000
jb 0x100ab8c5
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1009a59f
add esp, 0x10
cmp eax, 0xffffffff
je 0x100ab90a
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 0x100ab8c0
jl 0x100ab8f1
test ecx, ecx
jne 0x100ab8b2
push dword [ebp - 0xc]
push ebx
call fcn.100ab296
push esi
call fcn.100a4b02
add esp, 0xc
xor ebx, ebx
jmp 0x100ab99a
cmp byte [edi + 0x24], 0
je 0x100ab921
cmp dword [edi + 0x20], 5
jne 0x100ab921
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100ab92c
mov ebx, dword [edi + 0x18]
jmp 0x100ab92e
xor ebx, ebx
push esi
call fcn.100a4b02
pop ecx
jmp 0x100ab99a
test ecx, ecx
jg 0x100ab903
jl 0x100ab941
test eax, eax
jae 0x100ab903
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10099c57
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100ab961
cmp byte [edi + 0x1c], 0
je 0x100ab903
jmp 0x100ab992
push ebx
call fcn.100ab72f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100ab903
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 0x100ab99a
cmp byte [edi + 0x1c], 0
je 0x100ab997
mov ebx, dword [edi + 0x18]
jmp 0x100ab99a
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10099c57
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100ad50d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100ad5aa
push ebx
push esi
call fcn.100ad4d6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100aa66a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100ad557
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100ad5a9
push edi
push eax
call fcn.100a4dd2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100ad577
call fcn.100a4b02
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100ad5a8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100aa66a
add esp, 0x20
test eax, eax
jne 0x100ad596
push edi
call fcn.100a4b02
jmp 0x100ad59e
push ebx
call fcn.100a4b02
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100ad5ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100ad5be
pop esi
ret
push ebx
push edi
push esi
call fcn.100ad4d6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100a4dd2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100ad5e6
push ebx
push esi
push edi
call fcn.10088a10
add esp, 0xc
push 0
call fcn.100a4b02
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100ad9b6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100ad5fb

Function at 0x100b0055
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100a30f5
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100b00c4
cmp esi, dword [ebp - 4]
je 0x100b00bf
cmp dword [ebp + 0xc], 0
je 0x100b00bf
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100b009c
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100afba7
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100b00c6
xor eax, eax
inc eax
jmp 0x100b00c6
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100b012b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100f6458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100a30f5
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100a30f5
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100b01a2
cmp word [ecx], dx
je 0x100b01a2
mov eax, dword [0x100dc574]
push edi
dec eax
push eax
push 0x100dc460
call fcn.100b00ca
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100b0215
cmp word [eax], dx
je 0x100b0215
mov eax, dword [edi]
test eax, eax
je 0x100b01c6
cmp word [eax], dx
je 0x100b01c6
lea eax, [ebp - 0x10]
push eax
call fcn.100afaad
jmp 0x100b01cf
lea eax, [ebp - 0x10]
push eax
call fcn.100afb48
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100b023f
mov eax, dword [0x100dc45c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100dc150
call fcn.100b00ca
add esp, 0xc
test al, al
je 0x100b023f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100b020a
cmp word [eax], di
je 0x100b020a
lea eax, [ebp - 0x10]
push eax
call fcn.100afaad
pop ecx
jmp 0x100b0241
lea eax, [ebp - 0x10]
push eax
call fcn.100afb48
jmp 0x100b0207
mov eax, dword [edi]
test eax, eax
je 0x100b022c
cmp word [eax], dx
je 0x100b022c
lea eax, [ebp - 0x10]
push eax
call fcn.100afa62
pop ecx
jmp 0x100b023f
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100b030a
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100aff4f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100b030a
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100b030a
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100b030a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100b0297
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100a67eb
test ebx, ebx
je 0x100b0305
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100a67eb
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100b030a
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100b030a
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100b2c9e
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100b030c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100662e1
leave
ret
Function at 0x402abf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x208
push eax
push 0
push 0x401414
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x402b20
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x402b1b
shr eax, 1
xor ecx, ecx
cmp cx, word [esi + eax*2 - 2]
jne 0x402b1b
mov eax, dword [ebp - 8]
sub eax, 1
je 0x402b17
sub eax, 1
jne 0x402b1b
mov ecx, esi
call fcn.004029ca
test eax, eax
jne 0x402b20
xor eax, eax
jmp 0x402b20
mov eax, 0x3f7
pop esi
leave
ret 8

Function at 0x402ef0
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x403500
call fcn.00403278
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x4043c0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x402d18
cmp eax, esi
jne 0x402d0b
xor esi, esi
inc esi
mov edi, esi
jmp 0x402d1b
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x402cef
xor esi, esi
inc esi
cmp dword [0x4043c4], esi
jne 0x402d2d
push 0x1f
call fcn.0051b000
pop ecx
jmp 0x402d67
cmp dword [0x4043c4], ebx
jne 0x402d61
mov dword [0x4043c4], esi
push 0x4011a8
push 0x40119c
call fcn.00402e4c
pop ecx
pop ecx
test eax, eax
je 0x402d67
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402e3c
mov dword [0x404034], esi
cmp dword [0x4043c4], esi
jne 0x402d8a
push 0x401198
push 0x40118c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4043c4], 2
test edi, edi
jne 0x402d97
xor eax, eax
mov ecx, 0x4043c0
xchg dword [ecx], eax
cmp dword [0x4043c8], 0
je 0x402dc3
push 0x4043c8
call fcn.004030d0
pop ecx
test eax, eax
je 0x402dc3
push ebx
push 2
push ebx
mov esi, dword [0x4043c8]
mov ecx, esi
call dword [0x405168]
call esi
push dword [0x404040]
push dword [0x40403c]
push dword [0x404038]
call fcn.00401ae1
add esp, 0xc
mov dword [0x404030], eax
cmp dword [0x404048], 0
jne 0x402e21
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x404034], 0
jne 0x402e35
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x404030]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004031c5
jmp 0x402cd3
Function at 0x100012c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
sub esp, 8
mov byte [esi + 0x10], 1
cmp eax, 0xffffffff
je 0x100012f2
test eax, eax
je 0x100012f2
push 0x3e8
push eax
call fcn.10008012
mov eax, dword [esi]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov eax, dword [0x10102400]
mov dword [ebp - 8], 0x40
mov dword [ebp - 4], 0
test eax, eax
je 0x10001341
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 4]
push ecx
push 0x40
push 6
push eax
call edi
mov edx, dword [0x10102404]
mov eax, dword [0x10102400]
mov dword [eax], edx
mov cx, word [0x10102408]
lea edx, [ebp - 8]
push edx
mov word [eax + 4], cx
mov ecx, dword [ebp - 4]
push ecx
push 6
push eax
call edi
pop edi
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10001354
call fcn.10007e9c
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10001369
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esi + 8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100017c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002db68
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100ff120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Logon.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
xor eax, eax
cmp ebx, eax
je 0x100018d6
xor ecx, ecx
mov byte [esi + 0x11], al
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], cx
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 4], eax
call fcn.10001500
mov eax, dword [ebp - 0x1c]
add esp, 4
push str.5.4.800.0
mov edi, 9
lea ecx, [ebp - 0x2c]
call fcn.10001e30
test eax, eax
jne 0x10001846
mov dword [esi + 0x14], 0xf7b5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100018c4
add eax, ebx
je 0x100018c4
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0x38]
push edx
mov dword [0x101023fc], eax
add eax, 0xfffffffa
push 0x40
mov ecx, 0x100017a0
sub ecx, eax
push 6
sub ecx, 5
push eax
mov dword [0x10102400], eax
mov byte [ebp - 0x34], 0xe9
mov byte [ebp - 0x2f], 0x90
mov dword [ebp - 0x33], ecx
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], 0
call esi
mov eax, dword [0x10102400]
mov ecx, dword [eax]
mov dword [0x10102404], ecx
movzx edx, word [eax + 4]
mov ecx, dword [ebp - 0x34]
mov word [0x10102408], dx
movzx edx, word [ebp - 0x30]
mov dword [eax], ecx
lea ecx, [ebp - 0x3c]
push ecx
mov word [eax + 4], dx
mov edx, dword [ebp - 0x38]
push edx
push 6
push eax
call esi
cmp dword [ebp - 0x18], 8
jb 0x100018d6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100157f1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015100
mov esp, ebp
pop ebp
ret
Function at 0x10002280
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d5fb
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x100ff120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], esi
mov word [ebp - 0x82c], ax
push 0x7fe
lea edx, [ebp - 0x80e]
xor ecx, ecx
push esi
mov dword [ebp - 4], esi
push edx
mov word [ebp - 0x810], cx
call fcn.100174f0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1000231e
cmp dword [ebp - 0x818], 8
jb 0x10002316
mov ecx, dword [ebp - 0x82c]
push ecx
call fcn.100157f1
add esp, 4
or eax, 0xffffffff
jmp 0x1000242e
lea edx, [ebp - 0x810]
push edx
call fcn.10008519
lea eax, [ebp - 0x810]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10002336
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x82c]
call fcn.10001b40
push 0x13
push str.duowanyyimgroup_
lea ecx, [ebp - 0x82c]
call fcn.10002920
mov eax, dword [0x10102440]
xor ecx, ecx
mov word [ebp - 0x810], cx
cmp eax, esi
jne 0x100023bf
push 0x10004650
call fcn.100157da
push 0x3c
call fcn.1001584d
add esp, 8
cmp eax, esi
je 0x100023b8
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], esi
xor edx, edx
mov word [eax], dx
mov dword [eax + 0x30], 7
mov dword [eax + 0x2c], esi
xor ecx, ecx
mov word [eax + 0x1c], cx
mov dword [eax + 0x38], esi
jmp 0x100023ba
xor eax, eax
mov dword [0x10102440], eax
mov edx, dword [eax + 0x38]
push edx
lea eax, [ebp - 0x810]
push str._u_buddylist
push eax
call fcn.10001150
lea eax, [ebp - 0x810]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x100023e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x82c]
call fcn.10002920
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x82c]
push edx
lea ecx, [ebx + 0x20]
call fcn.100019f0
cmp dword [ebp - 0x818], 8
jb 0x1000242c
mov eax, dword [ebp - 0x82c]
push eax
call fcn.100157f1
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015100
mov esp, ebp
pop ebp
ret
Function at 0x100043f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002db68
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100ff120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.appmain.dll
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x10004581
xor ecx, ecx
mov byte [ebx + 0x11], al
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], cx
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 4], eax
call fcn.10004080
lea esi, [ebp - 0x2c]
call fcn.10004350
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x1000456f
cmp dword [ebx + 0x18], 0
jbe 0x1000456f
add eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
je 0x100044e7
lea edx, [ebp - 0x30]
push edx
mov dword [0x10102418], eax
add eax, 0xfffffffa
push 0x40
mov ecx, 0x10004320
sub ecx, eax
push 6
sub ecx, 5
push eax
mov dword [0x10102424], eax
mov byte [ebp - 0x38], 0xe9
mov byte [ebp - 0x33], 0x90
mov dword [ebp - 0x37], ecx
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x30], 0
call esi
mov eax, dword [0x10102424]
mov ecx, dword [eax]
mov dword [0x1010242c], ecx
movzx edx, word [eax + 4]
mov ecx, dword [ebp - 0x38]
mov word [0x10102430], dx
movzx edx, word [ebp - 0x34]
mov dword [eax], ecx
lea ecx, [ebp - 0x3c]
push ecx
mov word [eax + 4], dx
mov edx, dword [ebp - 0x30]
push edx
push 6
push eax
call esi
mov eax, dword [ebx + 0x18]
add eax, edi
je 0x10004563
lea ecx, [eax + 5]
mov dword [0x1010241c], ecx
mov edx, dword [eax + 1]
lea ecx, [edx + eax + 5]
mov dword [0x10102420], ecx
lea ecx, [ebp - 0x30]
push ecx
push 0x40
mov edx, 0x10004340
sub edx, eax
push 5
sub edx, 5
push eax
mov dword [0x10102428], eax
mov byte [ebp - 0x38], 0xe9
mov dword [ebp - 0x37], edx
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x30], 0
call esi
mov eax, dword [0x10102428]
mov edx, dword [eax]
mov dword [0x10102434], edx
movzx ecx, byte [eax + 4]
mov edx, dword [ebp - 0x38]
mov byte [0x10102438], cl
movzx ecx, byte [ebp - 0x34]
mov dword [eax], edx
lea edx, [ebp - 0x3c]
push edx
mov byte [eax + 4], cl
mov ecx, dword [ebp - 0x30]
push ecx
push 5
push eax
call esi
cmp dword [ebp - 0x18], 8
jb 0x10004581
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x10004579
cmp dword [ebp - 0x18], 8
jb 0x10004581
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100157f1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015100
mov esp, ebp
pop ebp
ret
Function at 0x100045a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10102424]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], 0x40
mov dword [ebp - 4], 0
test eax, eax
je 0x100045f4
lea ecx, [ebp - 4]
push ecx
push 0x40
push 6
push eax
call esi
mov edx, dword [0x1010242c]
mov eax, dword [0x10102424]
mov dword [eax], edx
mov cx, word [0x10102430]
lea edx, [ebp - 8]
push edx
mov word [eax + 4], cx
mov ecx, dword [ebp - 4]
push ecx
push 6
push eax
call esi
mov eax, dword [0x10102428]
test eax, eax
je 0x1000462b
lea edx, [ebp - 4]
push edx
push 0x40
push 5
push eax
call esi
mov ecx, dword [0x10102434]
mov eax, dword [0x10102428]
mov dword [eax], ecx
mov dl, byte [0x10102438]
lea ecx, [ebp - 8]
push ecx
mov byte [eax + 4], dl
mov edx, dword [ebp - 4]
push edx
push 5
push eax
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004e10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x100ff120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], vtable.CSqliteQueryResult.0
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [ebp - 4], edi
xor eax, eax
mov dword [esi + 0x84], 7
mov dword [esi + 0x80], edi
mov word [esi + 0x70], ax
mov byte [ebp - 4], 1
push 0x1c
mov dword [esi + 0x94], edi
call fcn.1001584d
add esp, 4
cmp eax, edi
je 0x10004f07
mov dword [esi + 0x90], eax
mov dword [eax], eax
mov eax, dword [esi + 0x90]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x90]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x90]
mov byte [ecx + 0x18], 1
mov edx, dword [esi + 0x90]
mov byte [edx + 0x19], 1
mov dword [esi + 0x9c], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edi
call fcn.10015197
push 0x100fcd8c
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.1001b87b
int3
Function at 0x10005210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x100ff120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x802]
push ecx
mov word [ebp - 0x804], ax
call fcn.100174f0
add esp, 0xc
lea edx, [ebp - 0x804]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1000526f
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015100
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x804]
push eax
call fcn.10008519
lea eax, [ebp - 0x804]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005287
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x804]
add esi, 0x70
push ecx
mov ecx, esi
call fcn.10001b40
push 0x13
push str.duowanyyimgroup_
mov ecx, esi
call fcn.10002920
mov eax, dword [0x10102440]
xor edx, edx
mov word [ebp - 0x804], dx
test eax, eax
jne 0x1000530c
push 0x10004650
call fcn.100157da
push 0x3c
call fcn.1001584d
add esp, 8
test eax, eax
je 0x10005305
mov ecx, 7
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], 0
xor edx, edx
mov word [eax], dx
mov dword [eax + 0x30], ecx
xor ecx, ecx
mov dword [eax + 0x2c], edx
mov word [eax + 0x1c], cx
mov dword [eax + 0x38], ecx
jmp 0x10005307
xor eax, eax
mov dword [0x10102440], eax
mov eax, dword [eax + 0x38]
push eax
push eax
lea edx, [ebp - 0x804]
push str._uyydb_u.yydb
push edx
call fcn.10001150
lea eax, [ebp - 0x804]
add esp, 0x10
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005330
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x804]
push eax
mov ecx, esi
call fcn.10002920
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10015100
mov esp, ebp
pop ebp
ret