joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4088d2
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call fcn.0040871d
mov esi, eax
test esi, esi
je 0x408a4f
push 0x401874
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401880
push esi
mov dword [0x41bf2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40188c
push esi
mov dword [0x41bf30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401898
push esi
mov dword [0x41bf34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x41bf2c], 0
mov dword [0x41bf38], eax
je 0x408948
cmp dword [0x41bf30], 0
je 0x408948
cmp dword [0x41bf34], 0
je 0x408948
test eax, eax
jne 0x408970
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x41bf30], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x41bf34], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x41bf2c], 0x408490
mov dword [0x41bf38], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x41b624], eax
cmp eax, 0xffffffff
je 0x408a54
push dword [0x41bf30]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x408a54
call fcn.004064d2
push dword [0x41bf2c]
call fcn.00408542
push dword [0x41bf30]
mov dword [0x41bf2c], eax
call fcn.00408542
push dword [0x41bf34]
mov dword [0x41bf30], eax
call fcn.00408542
push dword [0x41bf38]
mov dword [0x41bf34], eax
call fcn.00408542
add esp, 0x10
mov dword [0x41bf38], eax
call fcn.0040a9c0
test eax, eax
je 0x408a4f
push 0x4085c0
push dword [0x41bf2c]
call fcn.004084cd
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x41e154]
call esi
mov dword [0x41b620], eax
cmp eax, 0xffffffff
je 0x408a4f
push 0x214
push 1
call fcn.00410cb5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x408a4f
push edi
push dword [0x41b620]
push dword [0x41bf34]
call fcn.004084cd
pop ecx
mov esi, eax
mov ecx, eax
call dword [0x41e154]
call esi
test eax, eax
jne 0x408a59
push edi
call fcn.0040c002
pop ecx
call fcn.00408a6c
xor eax, eax
pop edi
pop esi
ret
push 0
push edi
call fcn.004087f9
pop ecx
pop ecx
or dword [edi + 4], 0xffffffff
xor eax, eax
inc eax
jmp 0x408a56
Function at 0x408aee
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
cmp edi, dword [esi*8 + 0x401058]
je 0x408b0d
inc esi
cmp esi, 0x17
jb 0x408afe
cmp esi, 0x17
jae 0x408c4d
push 3
call fcn.00410cff
pop ecx
cmp eax, 1
je 0x408c17
push 3
call fcn.00410cff
pop ecx
test eax, eax
jne 0x408b40
cmp dword [0x41b610], 1
je 0x408c17
cmp edi, 0xfc
je 0x408c4d
push 0x401df8
push 0x314
mov edi, 0x41bf40
push edi
call fcn.0040c27b
add esp, 0xc
test eax, eax
je 0x408b75
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040aab8
add esp, 0x14
push 0x104
push 0x41bf59
push ebx
mov byte [0x41c05d], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408bb8
push 0x401e14
push 0x2fb
push 0x41bf59
call fcn.0040c27b
add esp, 0xc
test eax, eax
je 0x408bb8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040aab8
add esp, 0x14
push 0x401e2c
push 0x314
push edi
call fcn.0040f5d7
add esp, 0xc
test eax, eax
je 0x408bdc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040aab8
add esp, 0x14
push dword [esi*8 + 0x40105c]
push 0x314
push edi
call fcn.0040f5d7
add esp, 0xc
test eax, eax
je 0x408c02
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040aab8
add esp, 0x14
push 0x12010
push 0x401e30
push edi
call fcn.00410d4b
add esp, 0xc
jmp 0x408c4d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, eax
test edx, edx
je 0x408c4d
cmp edx, 0xffffffff
je 0x408c4d
mov esi, dword [esi*8 + 0x40105c]
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408c36
push ebx
lea eax, [ebp - 4]
sub ecx, edi
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4093a2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x409434
xor edx, edx
push esi
mov esi, edi
cmp word [edi], dx
je 0x4093d7
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x4093d2
add esi, 2
movzx ecx, word [esi]
test cx, cx
jne 0x4093bf
push ebx
push edx
push edx
push edx
sub esi, edi
push edx
sar esi, 1
inc esi
push esi
push edi
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
je 0x409429
push eax
call fcn.00408126
mov ebx, eax
pop ecx
test ebx, ebx
je 0x409429
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push ebx
push esi
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40941e
push ebx
call fcn.0040c002
pop ecx
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x409432
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret
Function at 0x40ab60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40ab9e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40ab96
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40aba0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40ab86
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40ac70
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40aca1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40aca1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40aca1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40fdf2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x41b650]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x7c]
push 0x78
push eax
mov eax, dword [ebp + 8]
and eax, 0x3ff
push 1
or eax, 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40fe5e
lea eax, [ebp - 0x7c]
push eax
call fcn.0040fce1
pop ecx
cmp dword [ebp + 8], eax
je 0x40fe59
cmp dword [ebp + 0xc], 0
je 0x40fe59
push esi
mov esi, dword [edi]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40fe43
push dword [edi]
sub esi, ecx
call fcn.0040f9de
pop ecx
cmp eax, esi
pop esi
je 0x40fe5e
xor eax, eax
inc eax
jmp 0x40fe60
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004062ff
leave
ret
Function at 0x40fed1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.00408759
mov edi, dword [ebp + 8]
lea esi, [eax + 0x9c]
test edi, edi
jne 0x40fef7
or dword [esi + 8], 0x104
jmp 0x40ffc4
lea ecx, [edi + 0x40]
mov dword [esi], edi
lea ebx, [esi + 4]
mov eax, edi
mov dword [ebx], ecx
test ecx, ecx
je 0x40ff1e
cmp byte [ecx], 0
je 0x40ff1e
push ebx
push 0x16
push 0x401340
call fcn.0040fe6d
mov eax, dword [esi]
add esp, 0xc
and dword [esi + 8], 0
test eax, eax
je 0x40ff7f
cmp byte [eax], 0
je 0x40ff7f
mov eax, dword [ebx]
test eax, eax
je 0x40ff3e
cmp byte [eax], 0
je 0x40ff3e
push esi
call fcn.0040f908
jmp 0x40ff44
push esi
call fcn.0040f990
cmp dword [esi + 8], 0
pop ecx
jne 0x40ffd0
push esi
push 0x41
push 0x401130
call fcn.0040fe6d
add esp, 0xc
test eax, eax
je 0x40ffd0
mov eax, dword [ebx]
test eax, eax
je 0x40ff76
cmp byte [eax], 0
je 0x40ff76
push esi
call fcn.0040f908
jmp 0x40ff7c
push esi
call fcn.0040f990
pop ecx
jmp 0x40ffd0
mov ecx, dword [ebx]
test ecx, ecx
je 0x40ffbd
cmp byte [ecx], 0
je 0x40ffbd
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ff8d
xor eax, eax
sub ecx, edx
cmp ecx, 3
push 1
sete al
push 0x40f870
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
mov eax, dword [esi + 8]
test al, 4
jne 0x40ffd3
and dword [esi + 8], 0
xor eax, eax
jmp 0x40ffd3
mov dword [esi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x4100d8
lea eax, [edi + 0x80]
neg edi
push esi
sbb edi, edi
and edi, eax
push edi
call fcn.0040fd1b
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4100d8
cmp ebx, 0xfde8
je 0x4100d8
mov edi, 0xfde9
cmp ebx, edi
jne 0x41001d
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp eax, edi
jne 0x4100d8
movzx edi, bx
push edi
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4100d8
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4100d8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41005c
mov ax, word [esi + 0x18]
mov word [ecx], ax
mov ax, word [esi + 0x1c]
mov word [ecx + 2], ax
mov word [ecx + 4], di
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4100d3
mov eax, 0x814
cmp word [ecx], ax
jne 0x410092
push 0x402f20
push 0x40
push edi
call fcn.0040c27b
add esp, 0xc
test eax, eax
je 0x4100a7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040aab8
add esp, 0x14
jmp 0x4100a7
push 0x40
push edi
push 0x1001
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4100d8
push 0x40
lea eax, [edi + 0x40]
push eax
push 0x1002
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4100d8
push 0xa
push 0x10
lea ecx, [edi + 0x80]
push ecx
push ebx
call fcn.00414933
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4100da
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x410d4b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41b650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x18], eax
call fcn.004085b7
xor esi, esi
mov ebx, eax
cmp dword [0x41c840], esi
jne 0x410e2b
push esi
push esi
push 0x403298
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410f0d
push 0x4032b0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410f0d
push eax
call fcn.00408542
mov dword [esp], 0x4032bc
push edi
mov dword [0x41c840], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00408542
mov dword [esp], 0x4032cc
push edi
mov dword [0x41c844], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00408542
mov dword [esp], 0x4032e0
push edi
mov dword [0x41c848], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00408542
pop ecx
mov ecx, eax
mov dword [0x41c850], ecx
test ecx, ecx
je 0x410e24
push 0x4032fc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.00408542
pop ecx
mov dword [0x41c84c], eax
jmp 0x410e30
mov eax, dword [0x41c84c]
jmp 0x410e36
mov eax, dword [0x41c84c]
mov ecx, dword [0x41c850]
cmp eax, ebx
je 0x410e9c
cmp ecx, ebx
je 0x410e9c
push eax
call fcn.004084cd
push dword [0x41c850]
mov dword [ebp - 0x14], eax
call fcn.004084cd
mov edi, eax
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
test eax, eax
je 0x410e9c
test edi, edi
je 0x410e9c
mov ecx, eax
call dword [0x41e154]
mov eax, dword [ebp - 0x14]
call eax
test eax, eax
je 0x410e93
lea ecx, [ebp - 0x20]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
mov ecx, edi
call dword [0x41e154]
call edi
test eax, eax
je 0x410e93
test byte [ebp - 8], 1
jne 0x410e9c
or dword [ebp + 0x10], 0x200000
jmp 0x410ee5
mov eax, dword [0x41c844]
cmp eax, ebx
je 0x410ee5
push eax
call fcn.004084cd
mov edi, eax
pop ecx
test edi, edi
je 0x410ee5
mov ecx, edi
call dword [0x41e154]
call edi
mov esi, eax
test esi, esi
je 0x410ee5
mov eax, dword [0x41c848]
cmp eax, ebx
je 0x410ee5
push eax
call fcn.004084cd
mov edi, eax
pop ecx
test edi, edi
je 0x410ee5
push esi
mov ecx, edi
call dword [0x41e154]
call edi
mov esi, eax
push dword [0x41c840]
call fcn.004084cd
mov edi, eax
pop ecx
test edi, edi
je 0x410f0d
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push esi
call dword [0x41e154]
call edi
jmp 0x410f0f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004062ff
leave
ret
Function at 0x414747
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41b650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x90], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
cmp eax, 1
jne 0x414881
xor esi, esi
lea ebx, [ebp - 0x84]
push esi
push 0x80
mov eax, ebx
mov dword [ebp - 0x8c], esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
call fcn.00415c62
add esp, 0x18
mov dword [ebp - 0x88], eax
test eax, eax
jne 0x414817
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x414838
push esi
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x90]
call fcn.00415c62
add esp, 0x18
mov dword [ebp - 0x88], eax
test eax, eax
je 0x414838
push 1
push eax
call fcn.004100df
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x414838
push esi
push dword [ebp - 0x88]
mov dword [ebp - 0x8c], 1
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x90]
call fcn.00415c62
add esp, 0x18
mov dword [ebp - 0x88], eax
test eax, eax
je 0x414831
push 1
push eax
call fcn.004100df
mov edx, eax
mov dword [edi], edx
pop ecx
pop ecx
test edx, edx
jne 0x41484a
cmp dword [ebp - 0x8c], esi
je 0x414838
push ebx
call fcn.0040c002
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004062ff
leave
ret
mov ecx, dword [ebp - 0x88]
lea eax, [ecx - 1]
push eax
push ebx
push ecx
push edx
call fcn.0040f751
add esp, 0x10
test eax, eax
je 0x414870
push esi
push esi
push esi
push esi
push esi
call fcn.0040aab8
add esp, 0x14
cmp dword [ebp - 0x8c], esi
je 0x4148c0
push ebx
call fcn.0040c002
pop ecx
jmp 0x4148c0
cmp eax, 2
jne 0x4148d6
xor esi, esi
push esi
push esi
push dword [ebp + 0x14]
mov dword [edi], esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
test ebx, ebx
je 0x4148c7
push 2
push ebx
call fcn.004100df
mov dword [edi], eax
pop ecx
pop ecx
test eax, eax
je 0x4148c7
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4148c7
xor eax, eax
jmp 0x41483b
push dword [edi]
call fcn.0040c002
pop ecx
mov dword [edi], esi
jmp 0x414838
test eax, eax
jne 0x414838
and dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
push 2
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x414838
mov al, byte [ebp - 0x88]
mov byte [edi], al
jmp 0x4148c0
Function at 0x415168
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 1
push esi
push esi
push edi
mov ebx, esi
mov dword [ebp - 8], esi
call fcn.004154a4
mov ecx, edx
mov dword [ebp - 0x18], eax
and eax, ecx
mov dword [ebp - 0x14], ecx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4151f2
push 2
push esi
push esi
push edi
call fcn.004154a4
mov ecx, eax
add esp, 0x10
and eax, edx
cmp eax, 0xffffffff
je 0x4151f2
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub esi, ecx
sbb eax, edx
mov dword [ebp - 4], eax
js 0x415289
jg 0x4151cc
test esi, esi
je 0x415289
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4151fe
call fcn.0040aa5d
mov dword [eax], 0xc
call fcn.0040aa5d
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push edi
call fcn.0041555d
pop ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
pop ecx
test eax, eax
jl 0x415226
jg 0x41521f
cmp esi, 0x1000
jb 0x415226
mov eax, 0x1000
jmp 0x415228
mov eax, esi
push eax
push dword [ebp - 0xc]
push edi
call fcn.00412f3d
add esp, 0xc
cmp eax, 0xffffffff
je 0x41524f
cdq
sub esi, eax
mov eax, dword [ebp - 4]
sbb eax, edx
mov dword [ebp - 4], eax
js 0x41526a
jg 0x415211
test esi, esi
je 0x41526a
jmp 0x415211
call fcn.0040aa27
cmp dword [eax], 5
jne 0x415264
call fcn.0040aa5d
mov dword [eax], 0xd
or ebx, 0xffffffff
or dword [ebp - 8], ebx
push dword [ebp - 0x10]
push edi
call fcn.0041555d
pop ecx
pop ecx
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4152ef
test eax, eax
jg 0x4152fb
jl 0x415293
test esi, esi
jae 0x4152fb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.004154a4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4151f2
push edi
call fcn.00412c22
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov ebx, eax
mov eax, edx
mov ecx, ebx
mov dword [ebp - 8], eax
and ecx, eax
cmp ecx, 0xffffffff
jne 0x4152fb
call fcn.0040aa5d
mov dword [eax], 0xd
call fcn.0040aa27
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
and ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
je 0x4151f2
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push edi
call fcn.004154a4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4151f2
xor eax, eax
jmp 0x4151f9
Function at 0x41562f
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x41b650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
xor esi, esi
pop eax
mov dword [ebp - 0xc], esi
call fcn.004157a0
mov eax, esp
lea ecx, [ebp - 0x34]
push 0x1c
push ecx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41573e
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x54]
push 0x401630
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4156c0
push 0x403418
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4156c0
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call dword [0x41e154]
call edi
cmp eax, 1
jne 0x4156c0
cmp dword [ebp - 0xc], esi
jbe 0x4156c0
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], esi
lea eax, [ebp - 8]
push eax
lea edi, [ebx - 1]
push edi
push esi
call fcn.00408eb3
add esp, 0xc
test eax, eax
js 0x41573e
mov esi, dword [ebp - 8]
not edi
and esi, edi
mov dword [ebp - 8], esi
je 0x4156f6
lea eax, [ebp - 8]
push eax
push ebx
push esi
call fcn.00408eb3
add esp, 0xc
test eax, eax
js 0x41573e
mov esi, dword [ebp - 8]
lea eax, [ebx + ebx]
cmp esi, eax
jae 0x4156ff
mov esi, eax
mov eax, dword [ebp - 0x14]
mov edi, ebx
neg edi
add eax, ebx
and edi, dword [ebp - 0x10]
sub edi, esi
cmp edi, eax
jb 0x41573e
push 4
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x41573e
lea ecx, [ebp - 0x18]
push ecx
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41573e
xor eax, eax
inc eax
jmp 0x415740
xor eax, eax
lea esp, [ebp - 0x64]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062ff
leave
ret
Function at 0x415b7d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x41b650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0x1c], esi
jne 0x415ba2
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x1c], eax
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
test ebx, ebx
je 0x415c4e
jle 0x415c0b
push 0xffffffffffffffe0
xor edx, edx
pop eax
div ebx
cmp eax, 2
jb 0x415c0b
lea ecx, [ebx*2 + 8]
lea eax, [ebx + ebx]
cmp ecx, eax
jbe 0x415c0b
cmp ecx, 0x400
ja 0x415bf6
mov eax, ecx
call fcn.00414dc0
mov edi, esp
test edi, edi
je 0x415c4e
mov dword [edi], 0xcccc
add edi, 8
jmp 0x415c0d
push ecx
call fcn.00408126
mov edi, eax
pop ecx
test edi, edi
je 0x415c4e
mov dword [edi], 0xdddd
jmp 0x415bf1
mov edi, esi
test edi, edi
je 0x415c4e
push ebx
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415c43
push esi
push esi
cmp dword [ebp + 0x18], esi
jne 0x415c2e
push esi
push esi
jmp 0x415c34
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push edi
call fcn.0041025b
pop ecx
mov eax, esi
jmp 0x415c50
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004062ff
leave
ret
Function at 0x10005737
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10005746
pop dword [ebp - 0x1c]
mov eax, 0x9e24442b
add eax, 0x71dc131b
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xe5a1ab0b
sub dword [ebp - 0x2c], 0x974f65c0
mov dword [ebp - 0x28], 0x2d3440e3
add dword [ebp - 0x28], 0x4ff0b62
mov dword [ebp - 0x24], 0xa03238e9
add dword [ebp - 0x24], 0xac1a0b45
mov dword [ebp - 0x20], 0xb14ff0b3
add dword [ebp - 0x20], 0x4eb00f4d
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x70d7bde6
add dword [ebp - 0x2c], 0x39aab70
mov dword [ebp - 0x28], 0xd058e77
add dword [ebp - 0x28], 0x3466d2fe
mov dword [ebp - 0x24], 0xde006590
sub dword [ebp - 0x24], 0x7a90f924
mov dword [ebp - 0x20], 0x8757c4f8
add dword [ebp - 0x20], 0x78a83b08
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x341b492e
sub eax, 0x241747d6
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d459
push 0
call eax
mov ecx, 0x503f
mov edi, eax
mov ebx, 0x612eaa3d
add ebx, 0xaeda9fc3
add ebx, dword [ebp - 0x1c]
mov esi, 0x7c6afa3f
add esi, 0x71038b91
mov edx, dword [ebx]
mov dword [ebp - 0x10], 0x7377329
xor edx, esi
xor dword [ebp - 0x14], ecx
mov dword [edi], edx
sub dword [ebp - 0x18], 0x2933a6aa
add edi, 4
add ebx, 4
loop 0x1000585d
add eax, 0x69a136a1
sub eax, 0x69a002d2
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x100058e1
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
and dword [eax + 0x20], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret