joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100099f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100d67c7
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x1013d900]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov byte [esi + 4], bl
mov dword [esi + 0x20], 0xf
mov dword [esi + 0x1c], ebx
mov byte [esi + 0xc], bl
mov dword [esi + 0x24], ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x28], vtable.IHtmlDlgObserver.0
lea eax, [esi + 0x34]
push eax
mov dword [esi], vtable.CFlushVast.0
mov dword [esi + 0x28], vtable.CFlushVast.1.0
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.1000e0c0
lea ecx, [esi + 0x4c]
push ecx
mov byte [esp + 0x18], 1
call fcn.1000e0c0
mov dword [esi + 0x7c], 0xf
mov dword [esi + 0x78], ebx
mov byte [esi + 0x68], bl
mov dword [esi + 0x98], 0xf
mov dword [esi + 0x94], ebx
mov byte [esi + 0x84], bl
lea edx, [esi + 0xa4]
mov byte [esp + 0x14], 4
push edx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
call fcn.1000f220
push 3
call fcn.10077e70
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x1000af20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100d6738
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1013d900]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push edi
mov eax, dword [0x1013d900]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
cmp ecx, ebx
jne 0x1000af79
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x10129b58
mov ecx, esi
mov byte [esi + 4], bl
call fcn.100058b0
jmp 0x1000b028
mov eax, ecx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1000af90
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.100058b0
push 9
push str.___CDATA_
lea eax, [esp + 0x18]
push eax
xor eax, eax
mov dword [esp + 0x44], ebx
call fcn.10007210
cmp eax, 0xffffffff
je 0x1000aff8
push 9
push str.___CDATA_
lea ecx, [esp + 0x18]
push ecx
xor eax, eax
call fcn.10007210
push ebx
push 9
lea edi, [esp + 0x18]
call fcn.1000eac0
push 3
push 0x10129fac
mov edx, edi
push edx
xor eax, eax
call fcn.10007210
push ebx
push 3
call fcn.1000eac0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x18]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10005490
cmp dword [esp + 0x28], 0x10
jb 0x1000b028
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10032562
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10056c06
add esp, 0x30
ret
Function at 0x1000c800
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x100d6710
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1013d900]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebx, ecx
push 3
mov esi, 0xf
xor edi, edi
push 0x1012a064
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], edi
mov byte [esp + 0x58], 0
call fcn.100058b0
mov dword [esp + 0x8c], edi
push 1
push 0x1012a068
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
call fcn.100058b0
lea eax, [esp + 0x4c]
push eax
lea edi, [esp + 0x18]
mov byte [esp + 0x90], 1
call fcn.1000c7a0
mov ebp, 0x10
cmp dword [esp + 0x2c], ebp
jb 0x1000c8a2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10032562
add esp, 4
xor edi, edi
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
cmp dword [esp + 0x64], ebp
jb 0x1000c8cf
mov edx, dword [esp + 0x50]
push edx
call fcn.10032562
add esp, 4
push 3
push 0x1012a06c
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], edi
mov byte [esp + 0x58], 0
call fcn.100058b0
mov dword [esp + 0x8c], 2
push 1
push 0x1012a070
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
call fcn.100058b0
lea eax, [esp + 0x4c]
push eax
lea edi, [esp + 0x18]
mov byte [esp + 0x90], 3
call fcn.1000c7a0
cmp dword [esp + 0x2c], ebp
jb 0x1000c93d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10032562
add esp, 4
xor edi, edi
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
mov byte [esp + 0x18], 0
cmp dword [esp + 0x64], ebp
jb 0x1000c96a
mov edx, dword [esp + 0x50]
push edx
call fcn.10032562
add esp, 4
push 3
push 0x1012a074
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], edi
mov byte [esp + 0x74], 0
call fcn.100058b0
mov dword [esp + 0x8c], 4
push 1
push 0x1012a078
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
call fcn.100058b0
lea eax, [esp + 0x68]
push eax
lea edi, [esp + 0x34]
mov byte [esp + 0x90], 5
call fcn.1000c7a0
cmp dword [esp + 0x48], ebp
jb 0x1000c9de
mov ecx, dword [esp + 0x34]
push ecx
call fcn.10032562
add esp, 4
xor eax, eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], eax
mov byte [esp + 0x34], al
cmp dword [esp + 0x80], ebp
jb 0x1000ca02
mov edx, dword [esp + 0x6c]
push edx
call fcn.10032562
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x10011190
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x100d6e38
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1013d900]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi - 4]
lea esi, [esp + 0x68]
call fcn.10001030
mov ebx, eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x8c], 0
call fcn.10020b00
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [edi + 0x88]
mov byte [esp + 0x94], 1
call fcn.10001a00
cmp dword [esp + 0x48], 8
jb 0x1001120a
mov eax, dword [esp + 0x34]
push eax
call fcn.10032562
add esp, 4
xor ecx, ecx
mov ebp, 0x10
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], cx
cmp dword [esp + 0x80], ebp
jb 0x10011243
mov edx, dword [esp + 0x6c]
push edx
call fcn.10032562
add esp, 4
mov eax, dword [edi - 4]
lea esi, [esp + 0x68]
call fcn.10010c90
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [edi + 0xa4]
mov dword [esp + 0x98], 2
call fcn.10005490
mov dword [esp + 0x8c], 0xffffffff
cmp dword [esp + 0x80], ebp
jb 0x1001128a
mov eax, dword [esp + 0x6c]
push eax
call fcn.10032562
add esp, 4
push ebx
push 0x10129b58
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.100058b0
mov dword [esp + 0x8c], 3
mov eax, dword [edi - 4]
lea esi, [esp + 0x4c]
call fcn.10010cc0
push eax
lea edx, [edi - 0x28]
lea ecx, [esp + 0x18]
mov byte [esp + 0x90], 4
call fcn.10011960
cmp dword [esp + 0x64], ebp
jb 0x100112e8
mov ecx, dword [esp + 0x50]
push ecx
call fcn.10032562
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
cmp dword [esp + 0x2c], ebp
jb 0x1001130b
mov edx, dword [esp + 0x18]
push edx
call fcn.10032562
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x10018850
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100d6ce0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x1013d900]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 8]
push ecx
lea ecx, [esp + 0x10]
call fcn.100199a0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x18], 0
mov eax, dword [edx + 8]
push eax
lea ecx, [esp + 0xc]
call fcn.100199a0
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x18], 1
mov eax, dword [ecx + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x21c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x34], 0
call edx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x100188e3
mov ecx, dword [esp + 0x24]
neg ecx
sbb ecx, ecx
mov word [eax], cx
mov byte [esp + 0x18], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10018908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10018930
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret 0x14
Function at 0x10018f00
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100d5010
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1013d900]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xf4]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setl cl
dec ecx
and ecx, dword [esp + 0x18]
mov esi, ecx
mov dword [esp + 0x1c], esi
cmp esi, ebx
je 0x10018f62
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x28], ebx
cmp esi, ebx
je 0x100190c3
mov dword [esp + 0x34], ebx
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x2c], 1
mov ecx, dword [esi]
mov eax, dword [ecx]
push 0x100e08c8
push esi
call eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x100190c3
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], ebx
mov ecx, dword [eax]
push 0x1012ad9c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jge 0x10018fda
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x10018fc5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
jmp 0x100190d7
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, ebx
jne 0x10019015
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x10019000
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x28], 0xffffffff
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
jmp 0x100190d7
lea eax, [esp + 0x30]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push ebx
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp dword [ebp + 0x18], 0x10
jb 0x10019040
mov eax, dword [ebp + 4]
jmp 0x10019043
lea eax, [ebp + 4]
push 0x1012ab34
push eax
call fcn.1005a56d
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x1001907c
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10019060
push ebp
sub eax, edx
push eax
push 1
push edi
call fcn.10059b86
push ebp
call fcn.1005a125
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x100190af
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov al, 1
jmp 0x100190d9
mov dword [esp + 0x28], 0xffffffff
cmp esi, ebx
je 0x100190d7
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x10019660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10019679
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100196b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x100196b0
lea ebx, [ebx]
cmp esi, eax
jae 0x100196b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100196a0
cmp esi, eax
jb 0x100196ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x1001af70
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
push edi
push str.DSound.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x1001af8a
pop edi
add esp, 8
ret
push esi
push str.DirectSoundCreate
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x1001afa3
pop esi
pop edi
add esp, 8
ret
push ebx
lea eax, [esp + 0x10]
push eax
push 0x40
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, eax
test ebx, ebx
jne 0x1001afca
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop ebx
pop esi
pop edi
add esp, 8
ret
push 3
lea ecx, [esp + 0x10]
push ecx
push esi
mov byte [esp + 0x18], 0xc2
mov byte [esp + 0x19], 0xc
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0x48
call fcn.1005a590
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop esi
mov eax, 1
pop edi
add esp, 8
ret

Function at 0x1001b010
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
push edi
push str.winmm.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x1001b02a
pop edi
add esp, 8
ret
push esi
push str.waveOutWrite
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x1001b043
pop esi
pop edi
add esp, 8
ret
push ebx
lea eax, [esp + 0x10]
push eax
push 0x40
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, eax
test ebx, ebx
jne 0x1001b06a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop ebx
pop esi
pop edi
add esp, 8
ret
push 3
lea ecx, [esp + 0x10]
push ecx
push esi
mov byte [esp + 0x18], 0xc2
mov byte [esp + 0x19], 0xc
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0x48
call fcn.1005a590
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
pop esi
mov eax, 1
pop edi
add esp, 8
ret
Function at 0x1001cef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100d52c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x1013d900]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1001cf3d
mov eax, dword [eax]
jmp 0x1001cf3f
xor eax, eax
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x20]
push esi
call eax
test eax, eax
jge 0x1001cf62
push 0x1012b920
push esi
push eax
call fcn.100cf4c0
push 0x10
lea ecx, [esp + 0x10]
push ecx
push 0x10
push ebx
call fcn.10056c15
mov esi, dword [esp + 0x40]
xor edx, edx
add esp, 0x10
mov word [esp + 0xc], dx
test esi, esi
je 0x1001cfbb
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1001cfbb
test esi, esi
je 0x1001cfbb
mov eax, dword [esi]
test eax, eax
je 0x1001cfa2
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x1001cfb2
push eax
call fcn.10032562
add esp, 4
push esi
call fcn.10032562
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8

Function at 0x1001f310
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
push 0xffffffffffffffff
mov esi, ecx
push 0
push eax
lea ecx, [esi + 4]
call fcn.10005490
call fcn.100094c0
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x1001f0f0
push 0
push 0
mov byte [eax + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x1001f352
mov edi, str.create_upload_thread_failed.
call fcn.10001f00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ecx
ret
Function at 0x100200b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100d8398
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push edi
mov eax, dword [0x1013d900]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x40], 0
mov ecx, dword [esi + 0x34]
sub ecx, dword [esi + 0x30]
mov byte [esp + 0xf], 0
test ecx, 0xfffffffc
je 0x10020218
mov ebx, dword [esi + 0x34]
sub ebx, dword [esi + 0x30]
sar ebx, 2
sub ebx, 1
js 0x10020218
mov edx, dword [esi + 0x34]
sub edx, dword [esi + 0x30]
sar edx, 2
cmp ebx, edx
jb 0x10020129
call fcn.100596cf
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + ebx*4]
cmp byte [ecx + 4], 0
je 0x100201ea
mov edx, dword [esi + 0x34]
sub edx, eax
sar edx, 2
mov byte [esp + 0xf], 1
cmp ebx, edx
jb 0x1002014f
call fcn.100596cf
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + ebx*4]
mov edi, eax
mov dword [esp + 0x10], ecx
cmp edi, dword [esi + 0x34]
jbe 0x10020165
call fcn.100596cf
mov eax, dword [esi + 0x24]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x1002018b
call fcn.100596cf
xor eax, eax
lea edi, [edi + ebx*4]
cmp edi, dword [eax + 0x10]
ja 0x10020196
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1002018f
mov eax, dword [eax]
jmp 0x10020191
mov eax, dword [eax]
jmp 0x10020177
xor eax, eax
cmp edi, dword [eax + 0xc]
jae 0x1002019b
call fcn.100596cf
mov eax, dword [esi + 0x34]
lea ecx, [edi + 4]
sub eax, ecx
sar eax, 2
test eax, eax
jle 0x100201ba
add eax, eax
add eax, eax
push eax
push ecx
push eax
push edi
call fcn.10056f19
add esp, 0x10
add dword [esi + 0x34], 0xfffffffc
mov eax, dword [esi + 0x34]
cmp dword [esi + 0x30], edi
ja 0x100201ca
cmp edi, eax
jbe 0x100201cf
call fcn.100596cf
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x100201df
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
sub ebx, 1
jns 0x10020117
jmp 0x100201f1
cmp byte [esp + 0xf], 0
je 0x10020218
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push esi
push 0x1001ff80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10020218
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x34]
sub ecx, dword [esi + 0x30]
test ecx, 0xfffffffc
jne 0x10020230
cmp byte [esi + 4], 0
jne 0x10020230
mov bl, 1
jmp 0x10020232
xor bl, bl
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov al, bl
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10022e90
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x63c
mov eax, dword [0x1013d900]
xor eax, esp
mov dword [esp + 0x638], eax
xor eax, eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2a]
push edx
mov word [esp + 0x18], ax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], cx
call fcn.1005e2a0
add esp, 0xc
push 0x104
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 3
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.1005bea6
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x446]
push ecx
mov word [esp + 0x448], ax
call fcn.1005e2a0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x24a]
push eax
mov word [esp + 0x24c], dx
call fcn.1005e2a0
add esp, 0x24
push 0x104
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x104
lea edx, [esp + 0x448]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10022faf
mov ecx, dword [esp]
push ecx
push str._08X
push esi
call fcn.1005aea2
add esp, 0xc
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.10056c06
add esp, 0x63c
ret
mov eax, 0x1012a320
mov edx, esi
sub edx, eax
jmp 0x10022fc0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10022fc0
mov ecx, dword [esp + 0x638]
xor ecx, esp
call fcn.10056c06
add esp, 0x63c
ret
Function at 0x10023fc0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x1013d900]
xor eax, esp
mov dword [esp + 0x410], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.1005e2a0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21e]
push eax
mov word [esp + 0x220], dx
call fcn.1005e2a0
add esp, 0x18
push 0
push 0x2b
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x10024022
mov edx, dword [str._shiqiang_]
mov ecx, dword [0x1012bf40]
mov dword [eax], edx
mov edx, dword [0x1012bf44]
mov dword [eax + 4], ecx
mov ecx, dword [0x1012bf48]
mov dword [eax + 8], edx
mov edx, dword [0x1012bf4c]
mov dword [eax + 0xc], ecx
mov cx, word [0x1012bf50]
mov dword [eax + 0x10], edx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 4]
push edx
mov word [eax + 0x14], cx
call esi
test eax, eax
jne 0x10024083
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
jmp 0x10024090
movzx ecx, word [esp + eax + 4]
mov word [esp + eax + 0x20c], cx
add eax, 2
test cx, cx
jne 0x10024090
lea eax, [esp + 0x20c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x100240b0
mov ecx, dword [str.wnsoft.ini]
mov edx, dword [0x1012bf58]
mov dword [eax], ecx
mov ecx, dword [0x1012bf5c]
mov dword [eax + 4], edx
mov edx, dword [0x1012bf60]
mov dword [eax + 8], ecx
mov ecx, dword [0x1012bf64]
mov dword [eax + 0xc], edx
mov dx, word [0x1012bf68]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [esp + 4]
push eax
call esi
test eax, eax
je 0x10024171
mov edx, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x20c]
push ecx
push edx
push str.OnlyIdentifier1
push str.Globals
call esi
mov ecx, dword [edi]
lea eax, [esp + 0x20c]
push eax
add ecx, 0x208
push ecx
push str.OnlyIdentifier2
push str.Globals
call esi
mov eax, dword [edi]
lea edx, [esp + 0x20c]
push edx
add eax, 0x410
push eax
push str.OnlyIdentifier3
push str.Globals
call esi
mov edx, dword [edi]
lea ecx, [esp + 0x20c]
push ecx
add edx, 0x618
push edx
push str.OnlyIdentifier4
push str.Globals
call esi
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
call fcn.10056c06
add esp, 0x414
ret