joyce8/EMBER2024-capa huggingface dataset:
Function at 0x518962
Capabilities:
Terminate thread

Disassembly:
push 0
call fcn.004da870
ret
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
lea eax, [esi + 0x4c]
push eax
lea ecx, [esp + 0xc]
call fcn.004b24b0
cmp byte [esi + 0x50], 0
jne 0x4e0746
mov eax, dword [esp + 8]
test al, 1
je 0x4e0777
and eax, 0xfffffffe
mov ecx, eax
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x4e072a
pop edi
pop esi
add esp, 4
jmp fcn.004dc610
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
cmp eax, 1
je 0x4e0777
pop edi
pop esi
add esp, 4
jmp fcn.004dc640
cmp byte [esi + 0x70], 0
jne 0x4e0756
mov eax, dword [esp + 8]
mov byte [esi + 0x71], 1
jmp 0x4e070f
mov eax, dword [esi + 0x64]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push edi
mov byte [esi + 0x52], 1
call fcn.004e0510
mov eax, dword [esp + 0x10]
add esp, 8
jmp 0x4e070f
pop edi
pop esi
pop ecx
ret
cmp dword [esp + 8], 0
jne case.default.0x518920
mov eax, dword [esp + 0xc]
cmp eax, 6
ja case.default.0x518920
jmp dword [eax*4 + 0x518974]
mov ecx, dword [esp + 4]
jmp fcn.005188b0
mov ecx, dword [esp + 4]
jmp fcn.005188d0
mov ecx, dword [esp + 4]
jmp fcn.005188f0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [esp + 4]
push edx
call fcn.004e0bf0
ret
mov ecx, dword [esp + 4]
push 7
call fcn.004e0bf0
ret
mov ecx, dword [esp + 4]
jmp 0x4e06f0
mov ecx, dword [esp + 4]
jmp 0x4da910

Function at 0x519980
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x2c
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0
push edi
jne 0x519a6a
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 8
lea eax, [esp + 0xc]
push eax
push 0x1014
push ecx
call edi
test eax, eax
jne 0x5199d1
mov eax, 3
pop edi
mov dword [esi + 8], eax
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0057372c
add esp, 0x2c
ret
mov ax, word [esp + 8]
cmp ax, 0x31
jne 0x5199f7
mov dword [esi + 8], 3
mov eax, dword [esi + 8]
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0057372c
add esp, 0x2c
ret
cmp ax, 0x30
jne 0x519a18
mov dword [esi + 8], 1
mov eax, dword [esi + 8]
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0057372c
add esp, 0x2c
ret
cmp ax, 0x32
jne 0x519a39
mov dword [esi + 8], 2
mov eax, dword [esi + 8]
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0057372c
add esp, 0x2c
ret
mov eax, dword [esi + 4]
push 0xb
lea edx, [esp + 0x1c]
push edx
push 0x13
push eax
call edi
test eax, eax
je 0x5199b8
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 8]
add ecx, 2
xor eax, eax
cmp edx, ecx
setne al
add eax, 2
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
xor ecx, esp
call fcn.0057372c
add esp, 0x2c
ret
Function at 0x519b00
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x208
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x204], eax
mov dword [esi], 0x6ae0d4
mov eax, 0x6ae0d4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x20c]
push 0xff
lea edx, [esp + 8]
push edx
push 0x5a
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x519b7a
push 0xffffffffffffffff
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
call fcn.004bae70
add esp, 0xc
push eax
mov ecx, esi
call fcn.004b7f40
mov eax, dword [esp]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x519b7a
mov edx, dword [esp]
push edx
call fcn.004b7f30
add esp, 4
mov ecx, dword [esp + 0x204]
xor ecx, esp
mov eax, esi
call fcn.0057372c
add esp, 0x208
ret

Function at 0x519be0
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword [ecx + 4]
sub esp, 0xc
push esi
push 2
lea eax, [esp + 0xc]
push eax
push 0xd
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x519c73
push 0xffffffffffffffff
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004bae70
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0x68073c
call fcn.004b7fd0
test al, al
je 0x519c59
mov esi, dword [esp + 0x14]
push 1
mov ecx, esi
call fcn.004c8000
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x519c80
mov ecx, dword [esp + 4]
push ecx
call fcn.004b7f30
add esp, 4
mov eax, esi
pop esi
add esp, 0xc
ret 4
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x519c73
mov ecx, dword [esp + 4]
push ecx
call fcn.004b7f30
add esp, 4
mov esi, dword [esp + 0x14]
push 0
mov ecx, esi
call fcn.004c8000
mov eax, esi
pop esi
add esp, 0xc
ret 4

Function at 0x519c90
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x28
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + 4]
push esi
mov esi, dword [esp + 0x30]
push 0xf
lea eax, [esp + 0xc]
push eax
push 0x28
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x519d04
push 0xffffffffffffffff
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004bae70
add esp, 0xc
push eax
mov ecx, esi
call fcn.004ca020
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x519d11
mov eax, dword [esp + 4]
push eax
call fcn.004b7f30
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0057372c
add esp, 0x28
ret 4
mov dword [esi + 8], closesocket
mov dword [esi], 0
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0057372c
add esp, 0x28
ret 4
Function at 0x519d30
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x28
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + 4]
push esi
mov esi, dword [esp + 0x30]
push 0xf
lea eax, [esp + 0xc]
push eax
push 0x29
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x519da4
push 0xffffffffffffffff
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004bae70
add esp, 0xc
push eax
mov ecx, esi
call fcn.004ca020
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x519db1
mov eax, dword [esp + 4]
push eax
call fcn.004b7f30
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0057372c
add esp, 0x28
ret 4
mov dword [esi + 8], closesocket
mov dword [esi], 0
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0057372c
add esp, 0x28
ret 4

Function at 0x519dd0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x10
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0xc], eax
mov ecx, dword [ecx + 4]
push esi
mov esi, dword [esp + 0x18]
push 4
lea eax, [esp + 0xc]
push eax
push 0x100c
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x519e53
push 0xa
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004bae70
add esp, 0xc
mov ecx, eax
call fcn.004b8450
inc eax
push eax
mov ecx, esi
call fcn.004c8020
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x519e5c
mov eax, dword [esp + 4]
push eax
call fcn.004b7f30
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0057372c
add esp, 0x10
ret 4
push 1
mov ecx, esi
call fcn.004c8000
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0057372c
add esp, 0x10
ret 4
Function at 0x519e70
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x21c
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, 0x6ae0d4
push ebx
mov dword [esp + 8], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0x10], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xff
lea edx, [esp + 0x20]
push edx
push 1
push edi
call ebx
test eax, eax
je 0x519ef7
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004bae70
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004b7f40
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x519ef7
mov ecx, dword [esp + 4]
push ecx
call fcn.004b7f30
add esp, 4
mov edx, dword [esp + 0x10]
cmp dword [edx + 8], 0
je 0x519f72
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.004b9890
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xc]
lea edx, [esp + 0xf]
push edx
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0051c880
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x519f58
mov edx, dword [esp + 0x14]
cmp byte [edx], 0
jne 0x519f58
cmp eax, 0x814
jne 0x519f58
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x642f00
call fcn.004bab40
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x519f72
mov eax, dword [esp + 4]
push eax
call fcn.004be5e0
add esp, 4
mov eax, dword [esp + 8]
cmp dword [eax + 8], 0
je 0x519fbc
mov dword [esi], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [esp + 0x10]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x519fa1
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004b7f30
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x51a04a
mov ecx, dword [esp + 8]
push ecx
jmp 0x51a042
push 0xff
lea edx, [esp + 0x20]
push edx
push 0x59
push edi
call ebx
test eax, eax
je 0x51a007
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004bae70
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
call fcn.004b7f40
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x51a007
mov ecx, dword [esp + 4]
push ecx
call fcn.004b7f30
add esp, 4
mov eax, dword [esp + 8]
mov dword [esi], eax
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x51a030
mov edx, dword [esp + 0x10]
push edx
call fcn.004b7f30
add esp, 4
mov eax, dword [esp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x51a04a
mov edx, dword [esp + 8]
push edx
call fcn.004b7f30
add esp, 4
mov ecx, dword [esp + 0x21c]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.0057372c
add esp, 0x21c
ret
Function at 0x51a420
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x9c
push ebx
push esi
push edi
mov ebx, ecx
test eax, eax
jne 0x51a438
mov eax, 0x40
cmp eax, 0x40
mov ecx, eax
mov dword [esp + 0x14], ecx
jle 0x51a458
add eax, eax
push eax
call fcn.004be5d0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x10], ecx
jmp 0x51a464
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x40
mov esi, dword [esp + 0xb0]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ecx
mov ecx, dword [ebx + 4]
push eax
push esi
push ecx
mov dword [esp + 0x28], eax
call edi
test eax, eax
jne 0x51a4a2
mov esi, dword [esp + 0xac]
mov dword [esi], 0x6ae0d4
mov edx, 0x6ae0d4
mov eax, 1
lock xadd dword [edx], eax
jmp 0x51a532
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x51a51b
mov edx, dword [ebx + 4]
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x51a4e3
mov esi, dword [esp + 0xac]
mov dword [esi], 0x6ae0d4
mov eax, 0x6ae0d4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
cmp eax, edx
jmp 0x51a53c
cmp eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
jl 0x51a4f5
lea ecx, [esp + 0xc]
mov ecx, dword [ecx]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.004fdd60
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
push edx
push eax
push esi
push ecx
call edi
test eax, eax
je 0x51a482
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xac]
push 0xffffffffffffffff
push edx
push esi
call fcn.004bae70
add esp, 0xc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x51a547
push eax
call fcn.004be5e0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret 0xc
Function at 0x51a7d0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xc8
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xd0]
sub eax, 0
push ebx
push esi
push edi
mov edi, dword [esp + 0xd8]
mov esi, ecx
je 0x51a97a
sub eax, 1
je 0x51a91a
sub eax, 1
jne 0x51a860
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, 0x40
lea ecx, [esp + 0x2c]
push eax
mov edx, ecx
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
push 0x1008
push eax
mov dword [esp + 0x34], ecx
call ebx
test eax, eax
jne 0x51a8c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x51a889
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x51a860
push eax
call fcn.004be5e0
add esp, 4
mov dword [edi + 8], closesocket
mov dword [edi], 0
mov ecx, dword [esp + 0xd0]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057372c
add esp, 0xc8
ret 8
mov ecx, 0xff
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x1c]
jg 0x51a8a0
lea eax, [esp + 0x18]
mov edx, dword [eax]
push edx
push ecx
lea ecx, [esp + 0x24]
call fcn.004fdd60
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 4]
push eax
push ecx
push 0x1008
push edx
call ebx
test eax, eax
je 0x51a84b
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004bae70
add esp, 0xc
push eax
mov ecx, edi
call fcn.004ca020
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x51a8fc
mov eax, dword [esp + 0x14]
push eax
call fcn.004b7f30
add esp, 4
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x51a86d
push eax
call fcn.004be5e0
add esp, 4
jmp 0x51a86d
mov eax, dword [esi + 4]
push 0xd
lea edx, [esp + 0xb8]
push edx
push 0x14
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51a860
push 0xffffffffffffffff
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004bae70
add esp, 0xc
push eax
mov ecx, edi
call fcn.004ca020
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x51a86d
mov edx, dword [esp + 0x10]
push edx
call fcn.004b7f30
add esp, 4
jmp 0x51a86d
mov ecx, dword [esi + 4]
push 9
lea eax, [esp + 0xb8]
push eax
push 0x15
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51a860
push 0xffffffffffffffff
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004bae70
add esp, 0xc
push eax
mov ecx, edi
call fcn.004ca020
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x51a86d
mov eax, dword [esp + 0xc]
push eax
call fcn.004b7f30
add esp, 4
jmp 0x51a86d
Function at 0x521730
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push edi
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov ebx, dword [edi + 0xc]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], ebx
jl 0x5218e6
mov ebp, dword [esp + 0x24]
jg 0x52175b
cmp ebp, eax
jb 0x5218e6
cmp ebp, ebp
jne 0x5218e6
cmp ecx, eax
jne 0x5218e6
push esi
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x58], eax
je 0x521828
mov byte [esp + 0x13], 1
mov eax, dword [edi + 0x58]
mov edx, dword [esp + 0x24]
push eax
mov ecx, ebp
sub ecx, esi
push ecx
lea eax, [esi + edx]
push 1
push eax
call fcn.00577963
mov ecx, dword [edi + 0x58]
push ecx
mov ebx, eax
call fcn.0057765b
add esp, 0x14
test eax, eax
setne al
cmp byte [esp + 0x13], 0
mov byte [esp + 0x12], al
je 0x5217e3
test al, al
je 0x5217e3
test ebx, ebx
jne 0x5217e3
mov edx, dword [edi + 0x58]
push ebx
push edx
call fcn.0057a711
add esp, 4
push edx
push eax
mov eax, dword [edi + 0x58]
push eax
call fcn.0057c20f
mov al, byte [esp + 0x22]
add esp, 0x10
mov byte [esp + 0x13], bl
jmp 0x5217ea
add esi, ebx
adc dword [esp + 0x1c], 0
test al, al
jne 0x5218d6
test ebx, ebx
jne 0x52180f
call fcn.00578d71
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x521780
jmp 0x521883
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x2c]
jg 0x521887
jl 0x521780
cmp esi, ebp
jae 0x521887
jmp 0x521780
cmp dword [edi + 0x70], 0xffffffff
je 0x521897
mov edi, edi
mov ecx, dword [esp + 0x24]
mov eax, ebp
sub eax, esi
push eax
mov eax, dword [edi + 0x70]
lea edx, [esi + ecx]
push edx
push eax
call fcn.0057c076
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x52185c
call fcn.00578d71
cmp dword [eax], 4
je 0x521830
jmp 0x52187b
test ebx, ebx
jle 0x52187b
mov eax, ebx
cdq
add esi, eax
mov eax, dword [esp + 0x1c]
adc eax, edx
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jl 0x521830
jg 0x52187b
cmp esi, ebp
jb 0x521830
cmp ebx, 0xffffffff
setne byte [esp + 0x12]
mov al, byte [esp + 0x12]
test al, al
jne 0x5218d6
mov ecx, esi
or ecx, dword [esp + 0x1c]
jne 0x5218d6
mov ebx, dword [esp + 0x14]
or esi, 0xffffffff
mov dword [esp + 0x1c], esi
call fcn.00578d71
mov edx, dword [eax]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004b1250
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.005247d0
mov ecx, dword [esp + 0x24]
or edx, esi
lock xadd dword [ecx], edx
jne 0x5218d6
mov eax, dword [esp + 0x24]
push eax
call fcn.004b7f30
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
lea ecx, [esp + 0x20]
push 0x16
push ecx
call fcn.004b1250
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.005247d0
mov edx, dword [esp + 0x20]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x521919
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004b7f30
add esp, 4
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
add esp, 0x10
ret 0xc
Function at 0x521a60
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0xc], esi
test ecx, ecx
jl 0x521b9b
mov edi, dword [esp + 0x18]
jg 0x521a87
test edi, edi
jb 0x521b9b
xor eax, eax
cmp edi, edi
jne 0x521b9b
cmp ecx, eax
jne 0x521b9b
push ebx
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 0x58], eax
je 0x521aea
mov eax, dword [ebp + 0x58]
mov edx, dword [esp + 0x18]
push eax
mov ecx, edi
sub ecx, esi
push ecx
lea eax, [esi + edx]
push 1
push eax
call fcn.005774e6
add esp, 0x10
add esi, eax
adc ebx, 0
test eax, eax
jne 0x521adc
call fcn.00578d71
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x521aa3
jmp 0x521b2f
cmp ebx, dword [esp + 0x20]
jg 0x521b2f
jl 0x521aa3
cmp esi, edi
jae 0x521b2f
jmp 0x521aa3
cmp dword [ebp + 0x70], 0xffffffff
je 0x521b2f
mov eax, dword [esp + 0x18]
mov edx, edi
sub edx, esi
push edx
mov edx, dword [ebp + 0x70]
lea ecx, [esi + eax]
push ecx
push edx
call fcn.0057cad9
add esp, 0xc
cmp eax, 0xffffffff
jne 0x521b1a
call fcn.00578d71
cmp dword [eax], 4
je 0x521af0
jmp 0x521b2f
test eax, eax
jle 0x521b2f
cdq
add esi, eax
adc ebx, edx
cmp ebx, dword [esp + 0x20]
jl 0x521af0
jg 0x521b2f
cmp esi, edi
jb 0x521af0
or edi, dword [esp + 0x20]
je 0x521b8f
mov eax, esi
or eax, ebx
jne 0x521b8f
or esi, 0xffffffff
or ebx, esi
call fcn.00578d71
mov edi, eax
call fcn.00578d71
mov ecx, dword [edi]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebp, eax
call fcn.004b1250
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
xor eax, eax
cmp dword [ebp], 0x1c
sete al
lea eax, [eax + eax + 2]
push eax
call fcn.005247d0
mov ecx, dword [esp + 0x18]
or edx, esi
lock xadd dword [ecx], edx
jne 0x521b8f
mov eax, dword [esp + 0x18]
push eax
call fcn.004b7f30
add esp, 4
mov edx, ebx
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 0xc
lea ecx, [esp + 0x14]
push 0x16
push ecx
call fcn.004b1250
add esp, 8
push eax
push 2
mov ecx, esi
call fcn.005247d0
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x521bce
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004b7f30
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebp
pop ecx
ret 0xc
Function at 0x522830
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esp + 0xf], 0
mov dword [esp + 0x14], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea edx, [esp + 0x1c]
push edx
push 0x66424c
push 1
push 0
push 0x66425c
xor bl, bl
call edi
cmp eax, 0x800401f0
jne 0x522893
push 0
mov bl, 1
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x1c]
push eax
push 0x66424c
push 1
push 0
push 0x66425c
call edi
test eax, eax
jl 0x5229ca
push 1
push ecx
mov eax, esp
mov ecx, 0x5c
push ecx
mov word [eax], cx
mov eax, esp
mov edx, 0x2f
mov word [eax], dx
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
push 3
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004bb790
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx]
mov ecx, eax
call fcn.004b9cd0
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edi + 0x50]
push edx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5228fe
mov eax, dword [esp + 0x10]
push eax
call fcn.004b7f30
add esp, 4
test edi, edi
jl 0x5229b7
push 1
push ecx
mov eax, esp
mov ecx, 0x5c
push ecx
mov word [eax], cx
mov eax, esp
mov edx, 0x2f
mov word [eax], dx
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
push 4
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004bb790
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx]
mov ecx, eax
call fcn.004b9cd0
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edi + 0x24]
push edx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x522969
mov eax, dword [esp + 0x10]
push eax
call fcn.004b7f30
add esp, 4
test edi, edi
jl 0x5229b7
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x66426c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x5229b7
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx]
push 1
lea ecx, [esp + 0x18]
call fcn.004b9cd0
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edi + 0x18]
push edx
call eax
test eax, eax
jl 0x5229ab
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp byte [esp + 0xf], 0
jne 0x5229fd
lea eax, [esp + 0x10]
push 0xffffffffffffffff
push eax
call fcn.004b1250
add esp, 8
push eax
push 0xa
mov ecx, esi
call fcn.005247d0
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5229fd
mov eax, dword [esp + 0x10]
push eax
call fcn.004b7f30
add esp, 4
test bl, bl
je 0x522a07
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x522a21
mov eax, dword [esp + 0x14]
push eax
call fcn.004b7f30
add esp, 4
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4