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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8496
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 0x404a7f
push 0
push edi
lea ecx, [ebp - 0x28]
call fcn.00405080
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 eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
dec eax
xorps xmm0, xmm0
cmp dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
cmova ecx, dword [ebp - 0x28]
xor edx, edx
mov word [ecx + eax*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 0x404ab0
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.004a0c30
mov esp, ebp
pop ebp
ret
Function at 0x406390
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 0x406437
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x40642f
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40642f
push 0x20a
call fcn.004a0fd7
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 0x406423
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x406423
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x406406
test edx, edx
je 0x406423
cmp word [esi + edx*2 - 2], 0x5c
je 0x406423
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.004a0fd7
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 0x40648d
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x40648d
nop word [eax + eax]
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x406470
test edx, edx
je 0x40648d
cmp word [esi + edx*2 - 2], 0x5c
je 0x40648d
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 0x406be0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8899
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 0x406c30
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 0x406c78
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 0x406d99
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 0x406cc0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00403fc0
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.004048e0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.004232b0
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.004236a0
mov byte [ebp - 4], 3
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x406d7c
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406d72
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406db6
push ecx
push edx
call fcn.004a0f94
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.004a0c30
mov esp, ebp
pop ebp
ret
call fcn.004a5faf
int3
Function at 0x407690
Capabilities:
Create directory
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8c05
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 0x4077a8
push 0x516dc4
call fcn.004a0cdf
add esp, 4
cmp dword [0x516dc4], 0xffffffff
jne 0x4077a8
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.004a0fa2
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.004079f0
mov byte [ebp - 4], 0
push 0x4dfae0
call fcn.004a0f7f
mov dword [ebp - 4], 0xffffffff
push 0x516dc4
call fcn.004a0c8e
add esp, 8
mov eax, dword [0x516db4]
cmp eax, dword [esi + 4]
jle 0x4077f0
push 0x516db4
call fcn.004a0cdf
add esp, 4
cmp dword [0x516db4], 0xffffffff
jne 0x4077f0
mov dword [ebp - 4], 5
push 0x4dfa40
call fcn.004a0f7f
mov dword [ebp - 4], 0xffffffff
push 0x516db4
call fcn.004a0c8e
add esp, 8
cmp dword [edi + 0x14], 7
mov esi, edi
mov ebx, dword [edi + 0x10]
jbe 0x4077fd
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
add ebx, ebx
je 0x407819
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x407808
push edx
push edi
lea eax, [ebp - 0x68]
push eax
call fcn.00408420
mov esi, dword [0x516dcc]
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
cmp esi, dword [0x516dcc]
jne 0x407841
mov esi, 0x514b38
jmp 0x407844
add esi, 0x20
cmp dword [esi + 0x10], 0
je 0x407864
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x407854
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, esi
jmp 0x4078e8
cmp dword [edi + 0x14], 7
mov edx, edi
jbe 0x40786e
mov edx, dword [edi]
push 0
lea ecx, [ebp - 0x58]
call fcn.00406b10
add esp, 4
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x40]
push edi
call fcn.004048e0
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.004048e0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00407af0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.00404100
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.00404100
mov esi, dword [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00404100
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.004a0c30
mov esp, ebp
pop ebp
ret
Function at 0x4084e0
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x408600
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x4c8e5d
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 0x40874b
cmp eax, 0x105
jae 0x40874b
call fcn.00404710
mov ebx, eax
test ebx, ebx
je 0x408770
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.00403720
test al, al
jne 0x4086bc
lea ecx, [ebp]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4086a0
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004038b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 1
push 0x4ee1ec
call fcn.004025d0
test edi, edi
jne 0x4086da
xor ecx, ecx
jmp 0x4086ef
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4086e0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.004025d0
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.004a217c
add esp, 8
test eax, eax
jne 0x40870f
xor ebx, ebx
jmp 0x40871c
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 0x408747
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 0x40874d
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.004a0c30
lea esp, [ebp + 0x210]
pop ebp
ret
push 0x80004005
call fcn.00402740
int3
Function at 0x408da0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8fcd
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 0x408e98
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 0x408e98
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x408e98
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a0fd7
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 0x408e46
xor bl, bl
jmp 0x408e6b
mov eax, esi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408e50
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.004038b0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004a0fd2
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 0x408eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004a1d20
push 0xffffffffffffffff
push 0x4c900d
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 0x408f06
xor al, al
jmp 0x409006
cmp byte [ebp + 0x8010], 0
je 0x408f19
mov ecx, eax
call fcn.004094e0
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 0x408ff1
mov edi, dword [ebp - 0x10]
call fcn.00404710
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40903a
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 0x409035
lea ecx, [esi + 0x10]
mov dword [ebp - 0x20], ecx
test edi, edi
js 0x40902b
cmp edi, dword [ecx - 8]
jg 0x40902b
mov dword [ecx - 0xc], edi
xor eax, eax
add edi, edi
mov word [edi + ecx], ax
test edi, edi
je 0x408fb3
push edi
lea eax, [ebp]
push eax
push ecx
call fcn.004a2690
add esp, 0xc
mov dword [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push eax
call fcn.004095a0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x408fee
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 0x408ffe
mov ecx, dword [ebp - 0x18]
jmp 0x408f20
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.004a0c30
lea esp, [ebp + 0x8004]
pop ebp
ret 8
push 0x80070057
call fcn.00402740
call fcn.00402760
push 0x80004005
call fcn.00402740
int3
Function at 0x40a5f0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c931f
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.00404710
mov edi, eax
test edi, edi
je 0x40a72f
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.00404710
mov edi, eax
test edi, edi
je 0x40a72f
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.0040aef0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x40a6d7
push 0
push edi
push dword [0x515d48]
lea ecx, [ebp - 0x10]
call fcn.0040aef0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00409970
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 0x40a71b
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.00402740
int3
Function at 0x40c180
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c96fd
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 0x40c1dd
xor edi, edi
jmp 0x40c1e8
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 0x40c208
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 0x40c4b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c97fd
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 0x40c505
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.004a0fd7
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 0x40c540
xor bl, bl
jmp 0x40c588
dec eax
lea ecx, [ebp - 0x14]
push eax
push esi
call fcn.004099f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push eax
call fcn.00409970
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 0x40c586
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.004a0fd2
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 0x40e8c0
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 0x4c9cd5
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 - 0x14], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x40ea4e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ea4e
test ebx, ebx
je 0x40ea4e
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push 0x10000
call fcn.00408550
mov esi, dword [ebp - 0x18]
test esi, esi
jne 0x40e970
xor bl, bl
jmp 0x40ea38
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 - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e9e5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40e9e5
lea eax, [ecx + edi]
cmp eax, ebx
ja 0x40e9d6
push ecx
push esi
lea ecx, [ebp]
call fcn.004102a0
add edi, dword [ebp - 0x10]
jmp 0x40e9a0
sub ebx, edi
lea ecx, [ebp]
push ebx
push esi
mov dword [ebp - 0x10], ebx
call fcn.004102a0
lea ecx, [ebp]
call fcn.00410370
cmp byte [ebp + 0x68], 0
jne 0x40e9f7
xor bl, bl
jmp 0x40ea35
mov ebx, 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 [ebx + edi*2], al
sbb al, al
and al, 0xd9
add al, 0x57
add al, dl
mov byte [ebx + edi*2 + 1], al
inc edi
cmp edi, 0x10
jl 0x40ea00
mov byte [ebx + 0x20], 0
mov bl, 1
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 0
push esi
call fcn.004a0fd2
add esp, 4
mov dword [ebp - 0x18], 0
jmp 0x40ea50
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], 0x4ec614
test edi, edi
je 0x40ea70
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.004a0c30
lea esp, [ebp + 0x70]
pop ebp
ret