joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5129b0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523dd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x14], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x1c]
call fcn.00498d80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00498d80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0045a3c0
push eax
push 0x52b90c
push 1
push 0
push 0x52b92c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x512a20
jmp 0x512b47
lea ecx, [ebp - 0x1c]
call fcn.00477060
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.00477060
push eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
lea ecx, [ebp - 0x1c]
call fcn.00477060
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00477060
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
call ecx
lea ecx, [ebp - 0x1c]
call fcn.00477060
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
add ecx, 0x10
call fcn.00477060
push eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
call edx
lea ecx, [ebp - 0x1c]
call fcn.00477060
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00477060
push eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
lea ecx, [ebp - 0x1c]
call fcn.00477060
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x14
call fcn.00477060
push eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
lea ecx, [ebp - 0x1c]
call fcn.00477060
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x10]
call fcn.0045a3c0
push eax
push 0x52b9cc
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov ecx, dword [eax]
call ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x512b11
jmp 0x512b47
lea ecx, [ebp - 0x10]
call fcn.00477060
mov dword [ebp - 0x3c], eax
push 1
mov ecx, dword [ebp + 0xc]
call fcn.00477060
push eax
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
call edx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x512b40
jmp 0x512b47
mov dword [ebp - 0x14], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00476fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00476fc0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x512b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5246e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x220]
call fcn.004070d0
mov dword [ebp - 4], 0
mov word [ebp - 0x21c], 0
push 0x208
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.0049e730
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x512c21
lea edx, [ebp - 0x21c]
push edx
call fcn.0049f3cb
add esp, 4
test eax, eax
je 0x512c21
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00407020
lea edx, [ebp - 0x220]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406750
mov eax, dword [ebp - 0x224]
or eax, 1
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.004070b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x512c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x10]
call fcn.004070d0
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.0049e730
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea edx, [ebp - 0x21c]
push edx
call fcn.0049f3cb
add esp, 4
test eax, eax
je 0x512d2e
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00407020
push 0
lea ecx, [ebp - 0x220]
call fcn.00476fe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.0045a3c0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x512d81
lea ecx, [ebp - 0x220]
call fcn.00477060
mov dword [ebp - 0x22c], eax
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406750
mov edx, dword [ebp - 0x228]
or edx, 1
mov dword [ebp - 0x228], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.00476fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x514120
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52699e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x10], 0
call fcn.0050cae0
cmp eax, 0xc
je 0x514151
jmp 0x5142b2
push 0x1a
lea eax, [ebp - 0x24]
push eax
call fcn.00512c70
add esp, 8
mov dword [ebp - 4], 0
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
lea ecx, [ebp - 0x24]
call fcn.004087b0
lea ecx, [ebp - 0x14]
call fcn.004070d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x24]
push eax
push str._s_s.lnk
lea ecx, [ebp - 0x14]
push ecx
call fcn.00407e40
add esp, 0x10
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00404380
lea ecx, [ebp - 0x14]
call fcn.00477060
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x5141e7
cmp dword [ebp + 0xc], 0
jne 0x5141e7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004070b0
jmp 0x5142b2
lea eax, [ebp - 0x1c]
push eax
call fcn.00512b80
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005129b0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x514239
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004070b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004070b0
jmp 0x5142b2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push str._s.lnk
lea edx, [ebp - 0x1c]
push edx
call fcn.0040d910
add esp, 0xc
mov dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00477060
push eax
push 0x150a
call fcn.005140a0
add esp, 0xc
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
call fcn.00477060
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004070b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004070b0
xor ecx, ecx
jne 0x514142
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x517b90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0040a390
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x517be5
jmp 0x517c89
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x200000
jbe 0x517c07
jmp 0x517c89
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040a400
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x517c53
cmp dword [ebp - 8], 0
jne 0x517c57
jmp 0x517c89
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x20], 0
jne 0x517c2c
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov byte [edx], 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0040b3d0
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x1c], 0
je 0x517c99
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 8
Function at 0x51abb0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov ecx, dword [ebp + 8]
call fcn.0045a3c0
mov ecx, eax
call fcn.00402b20
cmp eax, 0x104
jb 0x51abd6
xor al, al
jmp 0x51ad6e
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x51ac8c
lea ecx, [ebp - 0x260]
call fcn.0050a2f0
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0051aad0
add esp, 8
movzx eax, al
test eax, eax
je 0x51ac4a
movzx ecx, byte [ebp - 0x258]
test ecx, ecx
je 0x51ac4a
mov ecx, dword [ebp + 8]
call fcn.0045a3c0
mov ecx, eax
call fcn.004077a0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x261], al
lea ecx, [ebp - 0x260]
call fcn.0050a2e0
mov al, byte [ebp - 0x261]
jmp 0x51ad6e
mov ecx, dword [ebp + 8]
call fcn.0045a3c0
mov ecx, eax
call fcn.004077a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x51ac81
mov byte [ebp - 0x262], 1
lea ecx, [ebp - 0x260]
call fcn.0050a2e0
mov al, byte [ebp - 0x262]
jmp 0x51ad6e
lea ecx, [ebp - 0x260]
call fcn.0050a2e0
mov word [ebp - 0x230], 0
push 0x208
push 0
lea edx, [ebp - 0x22e]
push edx
call fcn.0049e730
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.0045a3c0
mov ecx, eax
call fcn.004077a0
push eax
push 0x105
lea eax, [ebp - 0x230]
push eax
call fcn.004a0ffe
add esp, 0xc
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov word [ebp - 4], cx
mov dword [ebp - 0x1c], 3
lea edx, [ebp - 0x230]
mov dword [ebp - 0x18], edx
mov word [ebp - 0x10], 0x414
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x51ad1a
movzx ecx, word [ebp - 0x10]
or ecx, 0x1080
mov word [ebp - 0x10], cx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0xe], 0
je 0x51ad34
xor al, al
jmp 0x51ad6e
cmp dword [ebp - 0x234], 0
je 0x51ad5e
cmp dword [ebp - 0x234], 2
je 0x51ad5e
cmp dword [ebp - 0x234], 0x402
je 0x51ad5e
mov dword [ebp - 0x268], 0
jmp 0x51ad68
mov dword [ebp - 0x268], 1
mov al, byte [ebp - 0x268]
mov esp, ebp
pop ebp
ret
Function at 0x51c150
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.0040b3b0
movzx eax, al
test eax, eax
je 0x51c173
mov eax, 0x13a
jmp 0x51c229
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.00477060
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x51c193
mov eax, 0x13b
jmp 0x51c229
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.00477060
push eax
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.00477060
push eax
call fcn.004dbc30
add esp, 0xc
test eax, eax
je 0x51c1c2
xor eax, eax
jmp 0x51c229
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.00477060
push eax
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.00477060
push eax
call fcn.004dbf50
add esp, 0xc
test eax, eax
je 0x51c1f1
xor eax, eax
jmp 0x51c229
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
push 0
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.00477060
push eax
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.00477060
push eax
call fcn.004dc1e0
add esp, 0x14
test eax, eax
je 0x51c224
xor eax, eax
jmp 0x51c229
mov eax, 0x139
mov esp, ebp
pop ebp
ret 4
Function at 0x51c2d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525cd2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov dword [ebp - 0x78], ecx
call fcn.004d2b00
mov ecx, eax
call fcn.004d1d60
test eax, eax
jne 0x51c305
xor eax, eax
jmp 0x51c4d2
mov dword [ebp - 0x28], 0
call fcn.004086f0
mov dword [ebp - 0x48], eax
push 0x535a5c
mov ecx, dword [ebp + 8]
call fcn.00511120
push eax
lea ecx, [ebp - 0x68]
call fcn.00402890
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00402b20
push eax
lea ecx, [ebp - 0x68]
call fcn.00402b00
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x78]
call fcn.004dd2a0
mov byte [ebp - 4], 1
push 0x535a60
mov ecx, dword [ebp + 8]
call fcn.00511120
push eax
lea ecx, [ebp - 0x44]
call fcn.00402890
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00402b20
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b00
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x78]
call fcn.004dd2a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.004070d0
mov byte [ebp - 4], 4
push 0x535a68
mov ecx, dword [ebp + 8]
call fcn.00511120
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x51c3f3
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0049c9c0
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x78]
call fcn.004dd2a0
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00404380
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.004070b0
lea ecx, [ebp - 0x10]
call fcn.004070d0
mov byte [ebp - 4], 6
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00406830
push eax
push 1
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d520
lea ecx, [ebp - 0x10]
push ecx
call fcn.004dc590
add esp, 4
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040a960
lea eax, [ebp - 0x10]
push eax
call fcn.004dc590
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040a960
lea ecx, [ebp - 0x10]
call fcn.0040ed60
push eax
lea ecx, [ebp - 0x4c]
call fcn.00477060
push eax
mov ecx, dword [ebp - 0x78]
add ecx, 4
call fcn.00477060
push eax
call fcn.004dc7c0
add esp, 0xc
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.004070b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004070b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00402910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00402910
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x520340
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5251d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov dword [ebp - 0x64], ecx
cmp dword [ebp + 8], 0
jne 0x52036e
mov eax, 0x80070057
jmp 0x5204b5
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ab60
mov dword [ebp - 4], 0
mov ecx, dword [0x540fcc]
push ecx
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.0040aba0
mov dword [ebp - 0x2c], eax
mov edx, dword [0x540fcc]
cmp edx, dword [ebp - 0x2c]
je 0x52048b
mov eax, dword [ebp - 0x2c]
push eax
push 0
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040abc0
mov dword [ebp - 0x68], eax
push 0
mov ecx, dword [ebp - 0x68]
call fcn.004077a0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x50]
call fcn.00407750
cmp dword [ebp - 0x30], 0
je 0x520412
cmp dword [ebp - 0x30], 0x50
je 0x520412
cmp dword [ebp - 0x30], 0xb7
je 0x520412
mov edx, dword [ebp - 0x30]
push edx
call fcn.004086b0
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407750
mov eax, dword [ebp - 0x54]
jmp 0x5204b5
push 0
push 0x80
push 1
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x28]
call fcn.004077a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x520464
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004086b0
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407750
mov eax, dword [ebp - 0x58]
jmp 0x5204b5
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407750
mov eax, dword [ebp - 0x5c]
jmp 0x5204b5
mov dword [ebp - 0x60], 0x80070057
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407750
mov eax, dword [ebp - 0x60]
jmp 0x5204b5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x5204d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x5204ea
jmp 0x52052f
cmp dword [ebp + 0xc], 0
je 0x520516
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x520516
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00520340
xor edx, edx
test eax, eax
setge dl
mov dword [ebp - 4], edx
jmp 0x52051d
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x52052f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00407020
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x402b14
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x44d008], 0x8088405
inc edx
mov dword [ebx + 0x44d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402f6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x44d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403004
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fe4
xor eax, eax
push ebp
push 0x402fdd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403020
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fe4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x44d024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x44d024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cb0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44f048], 0
je 0x403d11
cmp word [0x44f21c], 0xd7b2
jne 0x403cd9
cmp dword [0x44f224], 0
jbe 0x403cd9
mov eax, 0x44f218
call dword [0x44f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x44d070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d38
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44d034], 0
jne 0x403d2d
push 0
push 0x44d068
push 0x44d070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40508c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4052bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40510f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4052bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40510f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4052d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405198
xor eax, eax
push ebp
push 0x405191
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404ed4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405176
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4052f8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405176
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405198
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4052b2
cmp byte [ebp - 0xd], 0
jne 0x4051df
cmp byte [ebp - 0x12], 0
je 0x4052b2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4051f8
dec ebx
cmp byte [ebx], 0x2e
je 0x405207
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4051f7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4052b2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405244
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4052b2
cmp byte [ebp - 0xd], 0
je 0x4052b2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4052b2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret