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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8db6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x514080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x30], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
push 0
mov dword [ebp - 0x38], esi
push 0
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 0xc]
push 0x2000003
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov edi, eax
test edi, edi
je 0x404a5f
push 0
push edi
lea ecx, [ebp - 0x28]
call fcn.00405050
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
mov eax, dword [ebp - 0x30]
cmova ecx, dword [ebp - 0x28]
push edi
push ecx
mov eax, dword [eax + 0xc]
push 0x2000003
add eax, 0x30
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
dec ecx
xorps xmm0, xmm0
cmp dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
cmova eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
xor eax, eax
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x28]
mov word [ebp - 0x28], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x404a90
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1550
mov esp, ebp
pop ebp
ret
Function at 0x406360
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
push edi
push eax
push 0x23
push 0
mov esi, edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jns 0x406407
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4063ff
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4063ff
push 0x20a
call fcn.004a18f7
add esp, 4
mov dword [esi + 4], eax
mov ecx, edi
mov dword [esi], 0x105
push 0
push 0x23
push eax
push 0
call dword [0x4e1514]
call edi
test eax, eax
je 0x4063f3
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x4063f3
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x4063d6
test edx, edx
je 0x4063f3
cmp word [esi + edx*2 - 2], 0x5c
je 0x4063f3
mov dword [esi + edx*2], 0x5c
cmp eax, 1
pop edi
sete al
pop esi
add esp, 8
ret
pop edi
xor al, al
pop esi
add esp, 8
ret
push 0x20a
call fcn.004a18f7
add esp, 4
mov dword [esi + 4], eax
mov dword [esi], 0x105
push eax
push dword [esp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, eax
test edi, edi
je 0x40645d
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x40645d
nop word [eax + eax]
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x406440
test edx, edx
je 0x40645d
cmp word [esi + edx*2 - 2], 0x5c
je 0x40645d
mov dword [esi + edx*2], 0x5c
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 8]
push dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x4e1514]
call esi
cmp edi, 1
pop edi
sete al
pop esi
add esp, 8
ret
Function at 0x406bb0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c91b9
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x514080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x238], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x234], 0
cmp dword [edx + 0x14], 7
jbe 0x406c00
mov edx, dword [edx]
lea ecx, [ebp - 0x218]
push ecx
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406c48
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 1
jmp 0x406d69
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406c90
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403fa0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x238], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call fcn.004048c0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.004236a0
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.00423a90
mov byte [ebp - 4], 3
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x406d4c
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406d42
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406d86
push ecx
push edx
call fcn.004a18b4
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1550
mov esp, ebp
pop ebp
ret
call fcn.004a68cf
int3
Function at 0x407660
Capabilities:
Create directory
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9525
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x514080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x516dc4]
cmp eax, dword [esi + 4]
jle 0x407778
push 0x516dc4
call fcn.004a15ff
add esp, 4
cmp dword [0x516dc4], 0xffffffff
jne 0x407778
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x5c], 0x516dc8
mov dword [0x516dc8], 0
mov dword [0x516dcc], 0
mov dword [0x516dd0], 0
call fcn.004a18c2
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [0x516dcc], eax
mov byte [ebp - 4], 1
mov dword [0x516dd4], 0
mov dword [0x516dd8], 0
mov dword [0x516ddc], 0
mov byte [ebp - 4], 2
mov ecx, 0x516dd4
push dword [0x516dcc]
mov dword [0x516de0], 7
push 0x10
mov dword [0x516de4], 8
mov dword [0x516dc8], 0x3f800000
call fcn.004079c0
mov byte [ebp - 4], 0
push 0x4e0490
call fcn.004a189f
mov dword [ebp - 4], 0xffffffff
push 0x516dc4
call fcn.004a15ae
add esp, 8
mov eax, dword [0x516db4]
cmp eax, dword [esi + 4]
jle 0x4077c0
push 0x516db4
call fcn.004a15ff
add esp, 4
cmp dword [0x516db4], 0xffffffff
jne 0x4077c0
mov dword [ebp - 4], 5
push 0x4e03f0
call fcn.004a189f
mov dword [ebp - 4], 0xffffffff
push 0x516db4
call fcn.004a15ae
add esp, 8
cmp dword [edi + 0x14], 7
mov esi, edi
mov ebx, dword [edi + 0x10]
jbe 0x4077cd
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
add ebx, ebx
je 0x4077e9
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x4077d8
push edx
push edi
lea eax, [ebp - 0x68]
push eax
call fcn.004083f0
mov esi, dword [0x516dcc]
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
cmp esi, dword [0x516dcc]
jne 0x407811
mov esi, 0x514b38
jmp 0x407814
add esi, 0x20
cmp dword [esi + 0x10], 0
je 0x407834
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x407824
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, esi
jmp 0x4078b8
cmp dword [edi + 0x14], 7
mov edx, edi
jbe 0x40783e
mov edx, dword [edi]
push 0
lea ecx, [ebp - 0x58]
call fcn.00406ae0
add esp, 4
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x40]
push edi
call fcn.004048c0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x58]
push eax
call fcn.004048c0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00407ac0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.004040e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.004040e0
mov esi, dword [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004040e0
lea eax, [esi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1550
mov esp, ebp
pop ebp
ret
Function at 0x4084b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x4084da
mov edx, dword [esp + 0xc]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4084c4
pop edi
mov eax, edx
pop esi
ret
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret

Function at 0x4085e0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x4c977d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x514080]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x105
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40872b
cmp eax, 0x105
jae 0x40872b
call fcn.004046f0
mov ebx, eax
test ebx, ebx
je 0x408750
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403700
test al, al
jne 0x40869c
lea ecx, [ebp]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408680
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00403890
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 1
push 0x4ee1ec
call fcn.004025b0
test edi, edi
jne 0x4086ba
xor ecx, ecx
jmp 0x4086cf
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4086c0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.004025b0
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.004a2a9c
add esp, 8
test eax, eax
jne 0x4086ef
xor ebx, ebx
jmp 0x4086fc
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x408727
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov eax, ebx
jmp 0x40872d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004a1550
lea esp, [ebp + 0x210]
pop ebp
ret
push 0x80004005
call fcn.00402720
int3
Function at 0x408d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c98ed
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x408e78
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
push dword [ebx]
mov dword [ebp - 0x10], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408e78
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x408e78
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a18f7
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push esi
push 0
push 0
push dword [ebx]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x408e26
xor bl, bl
jmp 0x408e4b
mov eax, esi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408e30
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.00403890
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004a18f2
add esp, 4
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408e90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004a2640
push 0xffffffffffffffff
push 0x4c992d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x514080]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
cmp dword [ecx + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x24], eax
jne 0x408ee6
xor al, al
jmp 0x408fe6
cmp byte [ebp + 0x8010], 0
je 0x408ef9
mov ecx, eax
call fcn.004094c0
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
nop dword [eax + eax]
push 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x408fd1
mov edi, dword [ebp - 0x10]
call fcn.004046f0
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40901a
mov ecx, dword [eax]
push 2
push edi
mov esi, dword [ecx]
mov ecx, esi
call dword [0x4e1514]
mov ecx, dword [ebp - 0x1c]
call esi
mov esi, eax
test esi, esi
je 0x409015
lea ecx, [esi + 0x10]
mov dword [ebp - 0x20], ecx
test edi, edi
js 0x40900b
cmp edi, dword [ecx - 8]
jg 0x40900b
mov dword [ecx - 0xc], edi
xor eax, eax
add edi, edi
mov word [edi + ecx], ax
test edi, edi
je 0x408f93
push edi
lea eax, [ebp]
push eax
push ecx
call fcn.004a2fb0
add esp, 0xc
mov dword [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push eax
call fcn.00409580
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408fce
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x14]
inc ebx
test eax, eax
jne 0x408fde
mov ecx, dword [ebp - 0x18]
jmp 0x408f00
cmp eax, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.004a1550
lea esp, [ebp + 0x8004]
pop ebp
ret 8
push 0x80070057
call fcn.00402720
call fcn.00402740
push 0x80004005
call fcn.00402720
int3
Function at 0x40a5e0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9c3f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x40a71f
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x18], eax
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x40a71f
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
push edi
push dword [0x515d48]
mov dword [ebp - 0x14], 3
call fcn.0040aee0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x40a6c7
push 0
push edi
push dword [0x515d48]
lea ecx, [ebp - 0x10]
call fcn.0040aee0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00409950
mov eax, 3
mov dword [ebp - 0x14], eax
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40a70b
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402720
int3
Function at 0x40c170
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca01d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x4ec614
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x40c1cd
xor edi, edi
jmp 0x40c1d8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x4ec614
test esi, esi
je 0x40c1f8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c4a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca11d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x514080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
movzx ebx, cx
push 0x1004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x40c4f5
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a18f7
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push edi
push esi
push 0x1004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40c530
xor bl, bl
jmp 0x40c578
dec eax
lea ecx, [ebp - 0x14]
push eax
push esi
call fcn.004099d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push eax
call fcn.00409950
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40c576
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e1514]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x10]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004a18f2
add esp, 4
mov dword [ebp - 0x10], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e8a0
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x4ca5f5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x514080]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push ecx
mov byte [edx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], 0x4ec614
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x40ea31
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ea31
test ebx, ebx
je 0x40ea31
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push 0x10000
call fcn.00408530
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x40e950
xor bl, bl
jmp 0x40ea1b
xor edi, edi
mov byte [ebp + 0x68], 0
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x10]
push eax
push 0x10000
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e9c5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40e9c5
lea eax, [ecx + edi]
cmp eax, ebx
ja 0x40e9b6
push ecx
push esi
lea ecx, [ebp]
call fcn.00410290
add edi, dword [ebp - 0x10]
jmp 0x40e980
sub ebx, edi
lea ecx, [ebp]
push ebx
push esi
mov dword [ebp - 0x10], ebx
call fcn.00410290
lea ecx, [ebp]
call fcn.00410360
cmp byte [ebp + 0x68], 0
jne 0x40e9d7
xor bl, bl
jmp 0x40ea18
mov esi, dword [ebp - 0x1c]
xor edi, edi
nop dword [eax]
mov dl, byte [ebp + edi + 0x58]
mov cl, dl
shr cl, 4
cmp cl, 0xa
sbb al, al
and dl, 0xf
and al, 0xd9
add al, 0x57
add al, cl
cmp dl, 0xa
mov byte [esi + edi*2], al
sbb al, al
and al, 0xd9
add al, 0x57
add al, dl
mov byte [esi + edi*2 + 1], al
inc edi
cmp edi, 0x10
jl 0x40e9e0
mov byte [esi + 0x20], 0
mov bl, 1
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
push esi
call fcn.004a18f2
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x40ea33
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], 0x4ec614
test edi, edi
je 0x40ea53
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.004a1550
lea esp, [ebp + 0x70]
pop ebp
ret