joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0x103b1fe4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103b1fee
pushal
call 0x103b1ff4
pop ebp
sub ebp, 0x10
sub ebp, 0x3b1fe4
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103b2018
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103b2021
mov eax, 0x3b1fe4
add eax, ebp
add eax, 0x63
mov ecx, 0x5d5
mov edx, 0x6ddd3b86
xor byte [eax], dl
inc eax
dec ecx
jne 0x103b2038
jmp 0x103b204b
or eax, 0xba0f0d4b
xchg byte [esi + 0x7e470786], al
xchg byte [esi + 0x3e4b8586], al
test byte [esi - 0x51c3797a], al
xchg byte [esi - 0x7a9b8e7a], al
dec esi
or eax, 0x86868a07
xchg byte [ebp - 0x1df429bd], al
mov byte [0xa2820f7a], al
out dx, al
invalid
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40121c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40121c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40120b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401204
test edi, edi
je 0x401204
push ebx
push eax
push edi
call fcn.0041d320
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [esp + 0x10]
push ebx
mov ecx, esi
call fcn.00401230
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc

Function at 0x401aa0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10c
mov eax, dword [0x507a30]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x114]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
push 0x104
mov ebx, ecx
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.0041d6a0
add esp, 0xc
cmp dword [esi + 0x18], 8
lea ebp, [esi + 4]
jb 0x401aed
mov eax, dword [ebp]
jmp 0x401aef
mov eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 1
call edi
cmp dword [esi + 0x18], 8
jb 0x401b12
mov ecx, dword [ebp]
jmp 0x401b14
mov ecx, ebp
xor ebp, ebp
push ebp
push ebp
push eax
lea edx, [esp + 0x20]
push edx
push 0xffffffffffffffff
push ecx
push ebp
push 1
call edi
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 4]
push eax
lea edx, [esp + 0x18]
call fcn.004018f0
mov esi, dword [ebx + 4]
lea ecx, [esp + 0x10]
push ecx
push ebp
push esi
push 0x401870
push ebp
push ebp
mov dword [esp + 0x28], ebp
call fcn.004a4ca1
add esp, 0x18
cmp eax, ebp
mov dword [esi + 0xc], eax
pop edi
je 0x401b86
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401b7e
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebp
mov eax, dword [ebx + 4]
mov al, byte [eax + 4]
jmp 0x401b8c
mov ecx, dword [ebx + 4]
mov al, byte [ecx + 4]
jmp 0x401b8c
mov edx, dword [ebx + 4]
mov al, byte [edx + 4]
mov ecx, dword [esp + 0x114]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d685
add esp, 0x10c
ret 8
Function at 0x4029c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4c0f61
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
mov eax, dword [0x507a30]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x18], 2
cmp dword [esi + 0x54], ebx
mov ebp, 8
je 0x402a0f
cmp dword [esi + 0x58], ebp
jb 0x402a05
mov eax, dword [esi + 0x44]
jmp 0x402a08
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x74], 0x10
jb 0x402a21
mov eax, dword [esi + 0x60]
push eax
call fcn.004956ba
add esp, 4
mov dword [esi + 0x74], 0xf
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov byte [esp + 0x18], 1
cmp dword [esi + 0x58], ebp
jb 0x402a44
mov eax, dword [esi + 0x44]
push eax
call fcn.004956ba
add esp, 4
mov dword [esi + 0x58], 7
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
mov byte [esp + 0x18], bl
cmp dword [esi + 0x3c], ebp
jb 0x402a67
mov eax, dword [esi + 0x28]
push eax
call fcn.004956ba
add esp, 4
mov dword [esi + 0x3c], 7
mov dword [esi + 0x38], ebx
mov word [esi + 0x28], bx
mov dword [esp + 0x18], 0xffffffff
cmp dword [esi + 0x20], ebp
jb 0x402a8e
mov eax, dword [esi + 0xc]
push eax
call fcn.004956ba
add esp, 4
mov dword [esi + 0x20], 7
mov dword [esi + 0x1c], ebx
mov word [esi + 0xc], bx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x404020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c10c1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x507a30]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00402340
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 1
call fcn.00403f10
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], bx
call fcn.00402340
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x4040c3
mov edx, dword [esp + 0x14]
push edx
call fcn.004956ba
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x4040e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c10c1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x507a30]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00402340
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], 1
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404140
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00403e10
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], bx
call fcn.00402340
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x404197
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004956ba
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x404aa0
Capabilities:
Get http content length

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
je 0x404adf
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0x20000005
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x404adf
mov eax, dword [esp]
xor edx, edx
add esp, 8
ret
xor eax, eax
xor edx, edx
add esp, 8
ret
Function at 0x404af0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c1131
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x507a30]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov eax, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404b36
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00402090
mov eax, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
mov edi, 1
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], edi
call fcn.00403f10
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], bx
call fcn.00402340
mov byte [esp + 0x38], bl
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x10], edi
jb 0x404b9f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004956ba
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x404e55
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esi]
test edi, edi
jne 0x404e65
xor eax, eax
jmp 0x404e8e
push ebx
mov ebx, dword [esp + 0x10]
push dword [ebx]
push edi
push 1
push dword [esp + 0x20]
call fcn.0041cf74
add esp, 0x10
cmp eax, edi
mov dword [esi], eax
jne 0x404e85
xor eax, eax
jmp 0x404e8d
push dword [ebx]
call fcn.0041cbb3
pop ecx
pop ebx
pop edi
pop esi
ret
Function at 0x4053bf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4053d8
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x4053fb
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x405400
inc esi
cmp esi, dword [ebp - 4]
jb 0x4053f2
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x4054f5
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x405454
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x40542b
cmp cl, 0xff
jne 0x40547f
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x40548d
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x405494
dec ecx
shl edx, cl
and edx, 7
je 0x40541c
movzx ecx, byte [edx + 0x4c2754]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x4c274c], 0
mov cl, byte [ebx + 4]
je 0x40547c
test cl, cl
je 0x40547c
cmp cl, 0xff
jne 0x40541c
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4053ed
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4054c8
movzx edi, byte [edx + 0x4c2754]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4054b3
cmp al, 0xff
jne 0x4054c5
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x405446
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4053ed
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x408ae0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x408ae8
mov dword [ecx*4 + 0x50a1e0], eax
inc ecx
cmp ecx, 0x100
jl 0x408ae3
mov edx, 0x800
jmp 0x408b35
mov eax, dword [ecx*4 + 0x509de0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x50a1e0]
inc ecx
mov dword [ecx*4 + 0x50a1dc], eax
cmp ecx, edx
jb 0x408b14
mov dword [0x50c1e0], 0x4056a2
call fcn.0040560f
test eax, eax
pop esi
jne 0x408b57
mov dword [0x50c1e0], 0x405738
ret
Function at 0x409b6b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x507a30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.0041d84a
xor ebx, ebx
cmp eax, ebx
pop ecx
je 0x409bd4
cmp eax, 3
jle 0x409bd4
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call fcn.0041d6a0
push 3
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0041d88b
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409bf8
lea eax, [esi + 0x658]
cmp dword [eax], ebx
je 0x409beb
mov eax, dword [eax]
mov edx, dword [eax]
push ebx
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x660]
cmp dword [eax], ebx
je 0x409c28
push ebx
jmp 0x409c1c
lea eax, [esi + 0x658]
cmp dword [eax], ebx
je 0x409c10
mov eax, dword [eax]
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0xd8]
lea eax, [esi + 0x660]
cmp dword [eax], ebx
je 0x409c28
push 1
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xd8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d685
leave
ret 4

Function at 0x40a227
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x4bdbc9
call fcn.0041e19c
lea ecx, [ebp - 0x40]
call fcn.0040c5a2
xor esi, esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.0040c579
test eax, eax
je 0x40a2c0
lea eax, [ebp - 0x10]
push eax
mov edi, 0xf013f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40a327
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x4c2ad4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40a299
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a327
push 0x104
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
jmp 0x40a325
lea eax, [ebp - 0x14]
push eax
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x40a327
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push esi
push esi
push esi
push 0x4c2ad4
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x40a300
push dword [ebp - 0x14]
jmp 0x40a28e
push 0x104
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x14]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040c49c
call fcn.0041e23b
ret 8
Function at 0x40a5cf
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5a4]
sub esp, 0x624
mov eax, dword [0x507a30]
xor eax, ebp
mov dword [ebp + 0x5a0], eax
push ebx
push esi
push edi
mov edi, 0x206
xor esi, esi
push edi
lea eax, [ebp + 0x39a]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x80], ebx
mov word [ebp + 0x398], si
call fcn.0041d6a0
push edi
lea eax, [ebp + 0x192]
push esi
push eax
mov word [ebp + 0x190], si
call fcn.0041d6a0
add esp, 0x18
push esi
push 0x2b
lea eax, [ebp + 0x398]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebx + 0x8c], 8
jb 0x40a645
mov ebx, dword [ebx + 0x78]
jmp 0x40a648
add ebx, 0x78
lea eax, [ebp + 0x190]
push ebx
push eax
call fcn.0041d82e
mov edi, 0x4e58a0
lea eax, [ebp + 0x398]
push edi
push eax
call fcn.0041d804
mov ebx, 0x4c2ad4
lea eax, [ebp + 0x398]
push ebx
push eax
call fcn.0041d804
lea eax, [ebp + 0x398]
push edi
push eax
call fcn.0041d804
lea eax, [ebp + 0x398]
push eax
call fcn.004134ee
lea eax, [ebp + 0x398]
push str.JiPin
push eax
call fcn.0041d804
lea eax, [ebp + 0x398]
push str..ini
push eax
call fcn.0041d804
add esp, 0x34
lea eax, [ebp + 0x398]
push eax
lea eax, [ebp + 0x190]
push eax
mov edi, str.InstallPath
push edi
push str.Globals
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x190]
push eax
push edi
call fcn.0040a227
push 0x206
lea eax, [ebp - 0x76]
push esi
push eax
mov word [ebp - 0x78], si
call fcn.0041d6a0
lea eax, [ebp - 0x78]
push str.SOFTWARE_
push eax
call fcn.0041d82e
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.0041d804
add esp, 0x1c
push esi
lea eax, [ebp - 0x7c]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40a74e
push 0x104
lea eax, [ebp + 0x190]
push eax
push 1
push esi
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x5a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d685
add ebp, 0x5a4
leave
ret
Function at 0x40ad6a
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7f8]
sub esp, 0x878
mov eax, dword [0x507a30]
xor eax, ebp
mov dword [ebp + 0x7f4], eax
push ebx
push edi
mov edi, dword [ebp + 0x800]
push edi
lea eax, [ebp + 0x1dc]
push str._s.
push eax
mov dword [ebp - 0x80], ecx
call fcn.0041e5d1
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], ebx
je 0x40ae8f
push esi
mov esi, 0x206
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40ae8e
cmp word [ebp - 0x48], 0x2e
je 0x40adcd
cmp word [ebp - 0x46], bx
je 0x40adcd
cmp word [ebp - 0x46], 0x2e
jne 0x40adfc
cmp word [ebp - 0x44], bx
je 0x40adcd
test byte [ebp - 0x74], 0x10
je 0x40adcd
push esi
lea eax, [ebp + 0x5ee]
push ebx
push eax
mov word [ebp + 0x5ec], bx
call fcn.0041d6a0
push esi
lea eax, [ebp + 0x3e6]
push ebx
push eax
mov word [ebp + 0x3e4], bx
call fcn.0041d6a0
lea eax, [ebp + 0x3e4]
push str.JiPinInfo.ini
push eax
call fcn.0041d82e
lea eax, [ebp + 0x3e4]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
lea eax, [ebp + 0x5ec]
push 0x4c2b60
push eax
call fcn.0041e5d1
add esp, 0x34
lea eax, [ebp + 0x5ec]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40adcd
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x5ec]
push eax
add ecx, 0xc8
mov dword [ebp - 0x7c], 1
call fcn.004039b0
pop esi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x7f4]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041d685
add ebp, 0x7f8
leave
ret 4

Function at 0x40b2e3
Capabilities:
Read .ini file

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x507a30]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x4bdc87
call fcn.0041e19c
mov esi, ecx
lea eax, [esi + 0x3c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403980
mov eax, dword [ebp - 0x24]
xor edi, edi
cmp dword [ebp - 0x10], 8
mov dword [ebp - 4], edi
jae 0x40b326
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0040ad6a
test eax, eax
je 0x40b38a
push 0x206
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.0041d6a0
lea eax, [esi + 0xc8]
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x40b359
mov eax, dword [eax + 4]
jmp 0x40b35c
add eax, 4
push eax
push 0x104
lea eax, [ebp]
push eax
push 0x4e58c0
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp]
push eax
lea ecx, [esi + 0x90]
call fcn.004039b0
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401df0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0041d685
add ebp, 0x20c
leave
ret