joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00450420
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004504a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004504a0
lea ecx, [esi + 0xc]
call fcn.004650b9
lea ecx, [esi + 0x10]
call fcn.004650b9
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00452cd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00452cd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00452cd0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046512e
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046512e
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x451518
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4738b8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x451528
call fcn.00451a40
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x45160b
cmp byte [edi], 0
je 0x45160b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x45154d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00450240
test eax, eax
jne 0x45156d
push 0x55e0b8
lea ecx, [esi + 0x38]
call fcn.0046526b
jmp 0x45160b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00450290
test eax, eax
jne 0x45159c
mov ecx, esi
call fcn.00450390
push edi
add esi, 0x38
push 0x55e094
push esi
call fcn.004630ca
add esp, 0xc
jmp 0x45160b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004522c0
test eax, eax
je 0x451604
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004516e0
test eax, eax
jne 0x451620
push edi
lea eax, [esi + 0x38]
push 0x55e070
push eax
call fcn.004630ca
add esp, 0xc
mov ecx, esi
call fcn.00451a40
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4516c8
mov ecx, dword [0x55e384]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004630ca
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00450340
test eax, eax
jne 0x45168a
push 0x55e054
lea ecx, [esi + 0x38]
call fcn.0046526b
jmp 0x45169a
push 0xfa
mov ecx, esi
call fcn.004522c0
test eax, eax
jne 0x4516b7
mov ecx, esi
call fcn.00451a40
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046512e
jmp 0x45160b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046512e
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x4674d5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46750d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00465589
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00465561
jmp 0x467519
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x468bc3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x468c05
call fcn.0046e737
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x468c05
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x468bfc
xor eax, eax
jmp 0x468c0d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00468c13
pop edi
pop esi
pop ebx
ret 4

Function at 0x46ec67
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46ec95
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46ecb3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046ebcd
jmp 0x46ecb3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46ecb3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046ebcd
test edi, edi
mov eax, edi
jne 0x46ec9d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4c01a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.DATA
lea edi, [esi - 0x5c000]
push edi
jmp 0x4c01ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c01c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c01b0
mov eax, 1
add ebx, ebx
jne 0x4c01d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c01e4
jne 0x4c0203
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c0203
dec eax
add ebx, ebx
jne 0x4c01f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c01c8
add ebx, ebx
jne 0x4c01ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c0255
xor ecx, ecx
sub eax, 3
jb 0x4c021b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c028a
sar eax, 1
mov ebp, eax
jmp 0x4c0226
add ebx, ebx
jne 0x4c0226
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c01f4
inc ecx
add ebx, ebx
jne 0x4c0234
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c01f4
add ebx, ebx
jne 0x4c0241
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c0236
jne 0x4c0252
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c0236
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c0274
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c0266
jmp 0x4c01b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c0274
add edi, ecx
jmp 0x4c01b6
pop esi
mov edi, esi
mov ecx, 0xce
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c0292
cmp byte [edi], 6
jne 0x4c0292
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 0x4c0297
lea edi, [esi + 0xbe000]
mov eax, dword [edi]
or eax, eax
je 0x4c0306
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc4570]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc45ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c02c4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc45b0]
or eax, eax
je 0x4c0300
mov dword [ebx], eax
add ebx, 4
jmp 0x4c02e1
call dword [esi + 0xc45c0]
mov ebp, dword [esi + 0xc45b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x4c033a
sub esp, 0xffffff80
jmp 0x403861
Function at 0x401020
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 0x401039
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401074
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401070
lea ebx, [ebx]
cmp esi, eax
jae 0x401074
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x40107a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407bd0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xa8], 0
je 0x407be2
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x407b90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xa8], eax
je 0x407bdd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x40dc60
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a8efb
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x4e86e0]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e86e0]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov edi, dword [esp + 0x4c8]
mov ebx, ecx
cmp dword [ebx + 0xec], 0
jne 0x40de48
push 0xffffffffffffffff
call fcn.00438330
mov ecx, eax
call fcn.004370e0
test eax, eax
je 0x40de48
mov ecx, 0x4ea5e0
call fcn.0040bcf0
mov al, 0x30
mov byte [esp + 0x48f], al
mov dl, 0x34
mov cl, 0x37
mov byte [esp + 0x496], al
mov byte [esp + 0x497], al
mov byte [esp + 0x49b], al
mov eax, dword [ebx + 0x108]
mov byte [esp + 0x48c], 0x31
mov byte [esp + 0x48d], 0x62
mov byte [esp + 0x48e], 0x33
mov byte [esp + 0x490], dl
mov byte [esp + 0x491], 0x63
mov byte [esp + 0x492], cl
mov byte [esp + 0x493], 0x61
mov byte [esp + 0x494], 0x32
mov byte [esp + 0x495], 0x64
mov byte [esp + 0x498], dl
mov byte [esp + 0x499], cl
mov byte [esp + 0x49a], 0x31
mov byte [esp + 0x49c], 0
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40dd60
sub eax, esi
lea esi, [eax + 0x10]
lea ecx, [esp + 0x18]
and esi, 0xfffffff0
call fcn.00416e80
mov eax, dword [0x4dc334]
push 0x10
push 0x10
push eax
lea ecx, [esp + 0x498]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x4d0], 0
call fcn.00416ea0
mov eax, dword [ebx + 0x108]
push 0
push esi
push eax
push eax
lea ecx, [esp + 0x28]
call fcn.00417950
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40de28
xor edi, edi
test esi, esi
jle 0x40de21
lea ebx, [ebx]
mov edx, dword [ebx + 0x108]
movzx eax, byte [edx + edi]
push eax
push str._02x
lea ecx, [esp + 0x4b4]
push 8
push ecx
call fcn.00491baa
add esp, 0x10
push 0
lea edx, [esp + 0x18]
push edx
push 2
lea eax, [esp + 0x4b8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, 1
cmp edi, esi
jl 0x40dde0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00438330
mov ecx, eax
call fcn.00436c70
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c0], 0xffffffff
call fcn.00416e90
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.00490dce
add esp, 0x4b0
ret 4
Function at 0x40e6a1
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xa4], 0
je 0x40e6b2
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x40e680
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xa4], eax
je 0x40e6ad
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x40fcf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4e86e0]
xor eax, esp
mov dword [esp + 0x10c], eax
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x124]
lea edx, [esp + 8]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40fd69
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
xor ecx, esp
call fcn.00490dce
add esp, 0x110
ret 0xc

Function at 0x40fee0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4e86e0]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push eax
push 0
push 0
push ebp
push str.open
push 0
mov edi, ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40ffdc
lea ecx, [esp + 0xc]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.0040fcf0
test eax, eax
jne 0x40fffa
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
mov ecx, eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.0040fcf0
test eax, eax
jne 0x40fff6
lea edx, [esp + 0x10]
push 0x4b354c
push edx
call fcn.00491fd4
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ffb3
lea eax, [esp + 0x10]
push 0x4b3548
push eax
call fcn.00491fd4
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ffb3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x40ffb6
mov byte [esi], 0
push 0x4b12ec
push esi
call ebx
push ebp
push esi
call ebx
call dword [0x4e9c00]
mov edx, dword [esp + 0x224]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00490dce
add esp, 0x20c
ret 8
mov eax, esi
jmp 0x40ffdb
mov eax, esi
jmp 0x40ffdc
Function at 0x415270
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x415285
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x415298
pop ebx
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov cl, byte [esi + 0xe]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalSize]
push edi
mov edi, 1
push esi
shl edi, cl
mov word [esp + 0x14], 0x4d42
call ebp
add eax, 0xe
mov dword [esp + 0x12], eax
xor eax, eax
push ebx
mov word [esp + 0x1a], ax
mov word [esp + 0x1c], ax
mov eax, dword [esi]
push 0xe
lea edx, [esp + 0x18]
lea ecx, [eax + edi*4 + 0xe]
push 1
push edx
mov dword [esp + 0x2a], ecx
call fcn.004929d9
add esp, 0x10
push ebx
push esi
call ebp
push eax
push 1
push esi
call fcn.004929d9
add esp, 0x10
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x10
ret 8
Function at 0x417950
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
xor edx, edx
cmp eax, 1
push edi
mov esi, ecx
jne 0x4179f9
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x3cc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
div ecx
mov ebp, dword [esp + 0x18]
test eax, eax
jbe 0x417ac8
lea edi, [esi + 0x3f4]
nop
xor edx, edx
test ecx, ecx
mov eax, edi
jle 0x4179b3
mov ecx, dword [esp + 0x14]
sub ecx, edi
mov edi, edi
mov bl, byte [ecx + eax]
xor byte [eax], bl
add edx, 1
add eax, 1
cmp edx, dword [esi + 0x3cc]
jl 0x4179a0
push ebp
push edi
mov ecx, esi
call fcn.00417680
mov ecx, dword [esi + 0x3cc]
push ecx
push ebp
push edi
call fcn.00492bf0
mov eax, dword [esi + 0x3cc]
add dword [esp + 0x20], eax
add ebp, eax
mov ecx, eax
mov eax, dword [esp + 0x28]
xor edx, edx
div ecx
mov ebx, dword [esp + 0x2c]
add ebx, 1
add esp, 0xc
mov dword [esp + 0x20], ebx
cmp ebx, eax
jb 0x417990
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
cmp eax, 2
mov eax, dword [esp + 0x1c]
jne 0x417a8e
div dword [esi + 0x3cc]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
xor ebx, ebx
test eax, eax
jbe 0x417ac8
mov edi, edi
push edi
lea eax, [esi + 0x3f4]
push eax
mov ecx, esi
call fcn.00417680
xor ecx, ecx
cmp dword [esi + 0x3cc], ecx
mov eax, edi
jle 0x417a53
jmp 0x417a40
mov dl, byte [ecx + ebp]
xor byte [eax], dl
add ecx, 1
add eax, 1
cmp ecx, dword [esi + 0x3cc]
jl 0x417a40
mov eax, dword [esi + 0x3cc]
push eax
lea eax, [esi + 0x3f4]
push edi
push eax
call fcn.00492bf0
mov eax, dword [esi + 0x3cc]
add ebp, eax
add edi, eax
mov eax, dword [esp + 0x28]
xor edx, edx
div dword [esi + 0x3cc]
add ebx, 1
add esp, 0xc
cmp ebx, eax
jb 0x417a20
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
div dword [esi + 0x3cc]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
xor ebp, ebp
test eax, eax
jbe 0x417ac8
push ebx
push edi
mov ecx, esi
call fcn.00417680
mov eax, dword [esi + 0x3cc]
add edi, eax
add ebx, eax
mov eax, dword [esp + 0x1c]
xor edx, edx
div dword [esi + 0x3cc]
add ebp, 1
cmp ebp, eax
jb 0x417aa2
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x421a2b
Capabilities:
Get common file path

Disassembly:
sub esp, 0x204
mov eax, dword [0x4e86e0]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
or eax, 0xffffffff
push ebp
xor ebx, ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 0x204], eax
mov dword [esi + 0xb50], eax
mov dword [esi + 0xb54], eax
mov dword [esi + 0xb58], eax
mov dword [esi + 0xb64], eax
mov dword [esi + 0xd70], eax
mov dword [esi + 0xd74], eax
mov dword [esi + 0xd78], eax
mov dword [esi + 0xd7c], eax
mov dword [esi + 0xd80], eax
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 0xb70]
lea ebp, [esi + 0xb6c]
push 0x200
mov dword [esi], vtable.CKMDriver.0
mov byte [esi + 0x410], bl
mov byte [esi + 0x610], bl
mov byte [esi + 0x210], bl
mov byte [esi + 0xa10], bl
mov byte [esi + 0xb10], bl
mov byte [esi + 0x810], bl
mov byte [esi + 4], bl
mov byte [edi], bl
mov dword [esi + 0xb68], ebx
mov dword [esi + 0x208], ebx
mov dword [esi + 0x20c], ebx
mov dword [esi + 0xb5c], ebx
mov dword [esi + 0xb60], ebx
mov dword [ebp], ebx
mov byte [esp + 0x18], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x421b1a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4bd408
push 0x200
push edi
call fcn.00437120
push 0x4b0854
push edi
push ebp
call fcn.0049176c
mov ebp, dword [ebp]
add esp, 0x20
cmp ebp, ebx
je 0x421b1a
push ebp
call fcn.0049162c
add esp, 4
mov ecx, dword [esp + 0x210]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00490dce
add esp, 0x204
ret
Function at 0x421be0
Capabilities:
Check os version

Disassembly:
sub esp, 0xc8
mov eax, dword [0x4e86e0]
xor eax, esp
mov dword [esp + 0xc4], eax
push esi
push edi
push 0x9c
lea eax, [esp + 0x34]
push 0
push eax
mov esi, ecx
call fcn.00491b30
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x9c
call edi
test eax, eax
jne 0x421c70
push 0x94
push eax
lea edx, [esp + 0x38]
push edx
call fcn.00491b30
add esp, 0xc
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 0x94
call edi
test eax, eax
jne 0x421c70
push str.GetVersionEx_returned_NULL_n
push esi
call fcn.00421b50
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.00490dce
add esp, 0xc8
ret
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
push ebp
push edx
push ecx
push eax
push str.m_iOSVersion___d___d._d__n
push esi
mov dword [esi + 0xb50], eax
mov dword [esi + 0xb54], ecx
mov dword [esi + 0xb58], edx
call fcn.00421b50
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x4b17e0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x421d1e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push edi
call ebx
test eax, eax
je 0x421d16
lea ecx, [esp + 0x14]
push ecx
call eax
movzx eax, word [esp + 0x14]
cmp eax, 9
mov dword [esi + 0xb64], eax
jne 0x421d07
push str.IsWow64Process
push edi
call ebx
test eax, eax
je 0x421d16
lea edx, [esp + 0x10]
push edx
push ebp
call eax
test eax, eax
je 0x421d16
mov eax, dword [esp + 0x10]
mov dword [esi + 0xb5c], eax
jmp 0x421d16
cmp eax, 6
jne 0x421d16
mov dword [esi + 0xb60], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov ecx, dword [esi + 0xb5c]
push ecx
push str.m_bIsAMD64___d_n
push esi
call fcn.00421b50
mov ecx, dword [esp + 0xdc]
add esp, 0xc
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.00490dce
add esp, 0xc8
ret

Function at 0x421d50
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xb68]
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x421d98
mov eax, dword [esi + 0xb50]
sub eax, 1
je 0x421d84
sub eax, 1
jne 0x421d8b
mov ecx, dword [esp + 8]
push ecx
mov ecx, esi
call fcn.00422cd0
jmp 0x421d8b
mov ecx, esi
call fcn.00422690
mov edx, dword [esi + 0xb68]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0xb68]
test eax, eax
je 0x421dc2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
push str.CloseHandle_mutex____d_n
push esi
call fcn.00421b50
add esp, 0xc
mov dword [esi + 0xb68], 0
cmp byte [esi + 0xb70], 0
lea eax, [esi + 0xb70]
pop esi
je 0x421ddc
mov dword [esp + 4], eax
jmp dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret 4
Function at 0x421f10
Capabilities:
Check os version

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x4e86e0]
xor eax, esp
mov dword [esp + 0x29c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2b4]
push edi
push 0x9c
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
mov ebp, ecx
call fcn.00491b30
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x9c
call edi
test eax, eax
jne 0x421f81
push 0x94
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00491b30
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call edi
push esi
lea ecx, [esp + 0xb0]
push 0x200
push ecx
call fcn.00437120
mov eax, dword [esp + 0x2c]
add esp, 0xc
sub eax, 1
je 0x422024
sub eax, 1
jne 0x42203e
mov eax, dword [esp + 0x14]
cmp eax, 4
jbe 0x421ff5
cmp eax, 5
jne 0x421fc1
cmp dword [esp + 0x18], ebx
je 0x421ff5
push esi
push str.Global_s
lea edx, [esp + 0xb4]
push 0x200
push edx
call fcn.00437120
mov edx, dword [esp + 0x2c4]
add esp, 0x10
lea ecx, [esp + 0xac]
push ecx
push edx
mov ecx, ebp
call fcn.00436c80
jmp 0x422040
push esi
lea eax, [esp + 0xb0]
push 0x200
push eax
call fcn.00437120
mov edx, dword [esp + 0x2c0]
add esp, 0xc
lea ecx, [esp + 0xac]
push ecx
push edx
mov ecx, ebp
call fcn.00436c80
jmp 0x422040
mov ecx, dword [esp + 0x2b4]
lea eax, [esp + 0xac]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x422040
mov eax, ebx
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00490dce
add esp, 0x2a0
ret 8