joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10107fd3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x10170640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov ebx, eax
push dword [ebx*4 + 0x10170174]
call dword [sym.imp.MSVCR120.dll_wcslen]
push eax
push dword [ebx*4 + 0x10170174]
mov dword [ebp - 0x808], eax
push edi
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0x10
test eax, eax
je 0x1010803f
inc ebx
cmp ebx, 3
jb 0x10107ff3
push edi
push esi
call dword [sym.imp.MSVCR120.dll_wcscpy]
pop ecx
pop ecx
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10123bfc
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x808]
lea edi, [edi + eax*2]
cmp word [edi], 0x5c
jne 0x10108051
add edi, 2
cmp ebx, 0xffffffff
je 0x10108022
test ebx, ebx
je 0x10108093
cmp ebx, 1
je 0x1010807d
cmp ebx, 2
jne 0x1010802c
mov ecx, dword [0x107ad68c]
push 0x104
push esi
push 1
mov edx, dword [ecx]
push ecx
call dword [edx + 0x108]
jmp 0x101080f8
mov eax, dword [0x107ad68c]
push 0x104
push esi
add eax, 0x10
push eax
call sym.rt3d.dll_public:_int___stdcall_e3_STRING::Get_unsigned_short_int___int_const
jmp 0x101080f8
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ebx, [ebp - 0x804]
push ebx
call dword [sym.imp.MSVCR120.dll_wcslen]
mov dword [ebp - 0x808], eax
pop ecx
test eax, eax
je 0x101080d4
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x101080e3
mov eax, dword [ebp - 0x808]
lea ebx, [ebx + eax*2]
xor eax, eax
add ebx, 2
cmp word [ebx], ax
jne 0x101080b0
jmp 0x101080ef
push ebx
push esi
call dword [sym.imp.MSVCR120.dll_wcscpy]
pop ecx
pop ecx
xor eax, eax
cmp word [esi], ax
je 0x1010802c
push esi
call fcn.100cc5fc
push edi
push esi
call dword [sym.imp.MSVCR120.dll_wcscat]
add esp, 0xc
mov al, 1
jmp 0x1010802e

Function at 0x10108236
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x101082b9
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 8]
push edi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x10108283
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x10108283
cmp edi, ebx
jge 0x10108283
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, edi
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x101082b3
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x101082b3
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
push 1
push dword [esi + 0x20]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 8]
mov eax, edi
pop edi
pop ebx
jmp 0x101082cb
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR120.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x101084a5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10170640]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107ad69c], 0
mov eax, dword [ebp + 8]
je 0x101084cd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x101084e7
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.rt3d.dll_void___stdcall_WtoA_unsigned_short_int_const___char__
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10123bfc
mov esp, ebp
pop ebp
ret 4

Function at 0x101084fc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10170640]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107ad69c], 0
mov eax, dword [ebp + 8]
je 0x10108524
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x10108543
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.rt3d.dll_int___stdcall_WtoAex_unsigned_short_int_const___char___int_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10123bfc
mov esp, ebp
pop ebp
ret

Function at 0x1010868e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x10170640]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107ad69c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x101086c4
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x1010872a
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call sym.rt3d.dll_void___stdcall_WtoA_unsigned_short_int_const___char__
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.rt3d.dll_void___stdcall_WtoA_unsigned_short_int_const___char__
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call sym.rt3d.dll_void___stdcall_AtoW_char_const___unsigned_short_int__
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10123bfc
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1010873d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10170640]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107ad69c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x10108769
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x1010879a
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x10108798
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call sym.rt3d.dll_int___stdcall_AtoWex_char_const___unsigned_short_int___int_
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x1010879a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10123bfc
mov esp, ebp
pop ebp
ret 8
Function at 0x10115161
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x10170640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
xor edi, edi
cmp dword [eax + 0x254], edi
je 0x101151bd
cmp dword [eax + 0x264], edi
je 0x1011529f
cmp byte [0x107ad69c], 0
push eax
push dword [eax + 0x250]
je 0x101151aa
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x101151b0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x264], eax
jmp 0x1011529f
mov eax, dword [eax + 0x25c]
test eax, eax
je 0x10115330
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy]
mov eax, dword [esi]
pop ecx
pop ecx
cmp dword [eax + 0x260], edi
je 0x10115209
lea eax, [ebp - 0x234]
push eax
call fcn.100cc5fc
mov eax, dword [esi]
push dword [eax + 0x260]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR120.dll_wcscat]
add esp, 0xc
mov ecx, dword [esi]
mov eax, 0x80
push 0x10
pop edx
test byte [ecx + 0x268], 1
cmovne eax, edx
mov dword [ecx], eax
cmp byte [0x107ad69c], 0
je 0x10115239
push dword [esi]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
jmp 0x1011525b
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x234]
push eax
call sym.rt3d.dll_void___stdcall_WtoA_unsigned_short_int_const___char__
push dword [esi]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x250], eax
xor eax, eax
mov ecx, dword [esi]
cmp dword [ecx + 0x250], 0xffffffff
setne al
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
cmp dword [eax + 0x264], edi
jne 0x10115287
mov dword [eax + 0x250], edi
mov eax, dword [esi]
xor ecx, ecx
inc ecx
mov dword [eax + 0x254], ecx
mov eax, dword [esi]
cmp dword [eax + 0x264], edi
jne 0x1011529f
mov dword [esi + 4], ecx
mov eax, dword [esi]
cmp dword [eax + 0x264], edi
je 0x101152c1
cmp byte [0x107ad69c], 0
jne 0x101152c1
push dword [eax + 0x258]
add eax, 0x2c
push eax
call sym.rt3d.dll_void___stdcall_AtoW_char_const___unsigned_short_int__
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [eax + 0x26c], ecx
xor ecx, ecx
mov ebx, dword [esi]
inc ecx
mov edi, dword [ebx + 0x26c]
shr edi, 4
and edi, ecx
je 0x101152f9
push esi
xor edi, edi
call sym.rt3d.dll_public:_unsigned_short_int_const____stdcall_e3_FILEITERATOR::GetFileName_void_
cmp word [eax], 0x2e
je 0x101152f4
test byte [ebx + 0x268], 3
jne 0x10115303
xor edi, edi
inc edi
jmp 0x10115303
test byte [ebx + 0x268], 1
cmovne edi, ecx
cmp dword [ebx + 0x264], 0
je 0x10115321
test edi, edi
jne 0x1011517a
test byte [ebx + 0x26c], 2
jne 0x1011517a
mov ecx, ebx
xor eax, eax
cmp dword [ecx + 0x264], eax
setne al
jmp 0x10115332
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10123bfc
mov esp, ebp
pop ebp
ret 4
Function at 0x1001e890
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov ebx, ecx
push eax
push 0x106
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1001e8db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1001e954
movzx esi, si
or esi, 0x80070000
jmp 0x1001e952
lea eax, [ebp - 0x41c]
push eax
push 0
push 0x10005fb4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1001e8c0
lea ecx, [ebp - 0x628]
mov edx, 0x105
lea esi, [ebp - 0x41c]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7ffffef9]
test eax, eax
je 0x1001e930
movzx eax, word [esi + ecx]
test ax, ax
je 0x1001e930
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1001e910
jmp 0x1001e934
test edx, edx
jne 0x1001e937
sub ecx, 2
xor eax, eax
mov esi, edx
neg esi
mov word [ecx], ax
sbb esi, esi
and esi, 0x7ff8ff86
add esi, 0x8007007a
test edx, edx
jne 0x1001e95a
test esi, esi
js 0x1001ea11
lea eax, [ebp - 0x62c]
push eax
lea edx, [ebx + 8]
lea ecx, [ebp - 0x628]
call fcn.10030590
mov esi, eax
test esi, esi
js 0x1001ea31
mov edx, dword [ebx]
test edx, edx
jle 0x1001e9a0
mov ecx, dword [ebp - 0x62c]
call fcn.10030730
mov esi, eax
test esi, esi
jns 0x1001e9a0
push esi
push 0x100048a0
push 0x1c809
jmp 0x1001ea3c
push 0x20c
push 0
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push eax
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x1001e9e2
mov eax, dword [0x1008d0f0]
push 0x8007000e
push 0x100048a0
push 0x1dc09
push eax
call fcn.100312d0
add esp, 0x10
mov ecx, 0x8007000e
jmp 0x1001ea4d
mov edi, eax
lea esi, [ebp - 0x628]
mov ecx, 0x82
mov eax, dword [ebp - 0x62c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
xor ecx, ebp
movsw word es:[edi], word [esi]
or dword [ebx + 0x2c], 0x10
pop edi
pop esi
mov dword [ebx + 0x28], eax
pop ebx
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1008d0f0]
push esi
push 0x100048a0
push 0x1a809
push eax
call fcn.100312d0
add esp, 0x10
mov ecx, esi
call fcn.10019740
push esi
push 0x100048a0
push 0x1b809
mov ecx, dword [0x1008d0f0]
push ecx
call fcn.100312d0
add esp, 0x10
mov ecx, esi
call fcn.10019740
int3
Function at 0x1001ebb0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor ecx, ecx
cmp dword [ebx + 0x24], ecx
jle 0x1001ebe3
nop
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + ecx*4]
inc ecx
add eax, dword [ebx + 0x14]
or byte [eax + 0x13], 2
cmp ecx, dword [ebx + 0x24]
jl 0x1001ebd0
mov ecx, ebx
call fcn.10019db0
test byte [ebx + 0x2c], 0x10
je 0x1001ec30
push esi
mov esi, dword [ebx + 0xc]
mov ecx, 0x82
push edi
push dword [ebx + 0x28]
lea edi, [ebp - 0x210]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
test eax, eax
jne 0x1001ec19
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1001ec30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx + 0xc]
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push eax
call dword [sym.imp.MSDART.DLL_MpHeapFree]
add esp, 8
mov dword [ebx + 0xc], 0
push dword [ebx + 0x10]
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push eax
call dword [sym.imp.MSDART.DLL_MpHeapFree]
add esp, 8
mov dword [ebx + 0x10], 0
push dword [ebx + 0x14]
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push eax
call dword [sym.imp.MSDART.DLL_MpHeapFree]
add esp, 8
mov dword [ebx + 0x14], 0
push ebx
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push eax
call dword [sym.imp.MSDART.DLL_MpHeapFree]
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop ebx
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret

Function at 0x1001eca0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test byte [esi + 0x2c], 0x10
jne 0x1001ecb4
call fcn.1001e890
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001ece6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1001ece4
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1001ecf0
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x1008d0f0]
push esi
push 0x100049a0
push 0x3b009
push eax
call fcn.100312d0
add esp, 0x10
mov ecx, esi
call fcn.100313b2
int3
Function at 0x10031f20
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 0x114], 0
push eax
push 0
push 2
push edx
push 0
push ecx
mov dword [esi], 0
mov dword [ebp - 0x228], 0x10e
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x10031f83
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x224]
call fcn.10031a70
test eax, eax
je 0x10031fb0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret 4

Function at 0x10035ac0
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1008a8e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 4
call fcn.1007c850
mov ebx, esp
lea eax, [ebp - 0x28]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10035b9d
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
lea edi, [eax - 1]
not edi
and edi, ebx
sub edi, eax
lea eax, [esi + 0x2000]
cmp edi, eax
jb 0x10035b9d
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10035b9d
add esi, dword [ebp - 0x1c]
test dword [ebp - 0x18], 0x1000
je 0x10035b20
test dword [ebp - 0x14], 0x100
mov esi, dword [ebp - 0x28]
je 0x10035b62
mov eax, 1
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret
cmp edi, esi
jb 0x10035b9d
mov edi, dword [ebp - 8]
push 4
push 0x1000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [ebp - 0xc]
push eax
push 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c0c0
mov esp, ebp
pop ebp
ret
Function at 0x415f73
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x415fb2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x415fb2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415fb2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x415fb2
cmp dword [ecx + 0x74], 0xe
jbe 0x415fb2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x428380
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4283ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4283ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4017ad
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4017ad
lcall 0x5de5, 0x8b10c483
jmp fcn.007c0cb8
Function at 0x402d60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44349d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x453040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.start_install_ca_cert
push 0x454a40
call fcn.00404350
add esp, 8
mov dword [ebp - 0x30], eax
push 0x404690
mov ecx, dword [ebp - 0x30]
call fcn.00403070
push str.Crypt32
lea ecx, [ebp - 0x28]
call fcn.00403230
mov dword [ebp - 4], 0
push str..dll
lea ecx, [ebp - 0x28]
call fcn.004031d0
lea ecx, [ebp - 0x28]
call fcn.004031b0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x402df8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004031f0
nop
jmp 0x402ee4
push str.CryptStringToBinaryA
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
push str.CertCreateCertificateContext
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
push str.CertOpenStore
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
push str.CertFindCertificateInStore
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
push str.CertAddCertificateContextToStore
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
push str.CertFreeCertificateContext
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
push str.CertCloseStore
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x34], 0
je 0x402ea0
cmp dword [ebp - 0x38], 0
je 0x402ea0
cmp dword [ebp - 0x3c], 0
je 0x402ea0
cmp dword [ebp - 0x40], 0
je 0x402ea0
cmp dword [ebp - 0x44], 0
je 0x402ea0
cmp dword [ebp - 0x48], 0
je 0x402ea0
cmp dword [ebp - 0x4c], 0
jne 0x402eb2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004031f0
nop
jmp 0x402ee4
push str.install_ca_cert_complete
push 0x454a40
call fcn.00404350
add esp, 8
mov dword [ebp - 0x50], eax
push 0x404690
mov ecx, dword [ebp - 0x50]
call fcn.00403070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004031f0
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420720
mov esp, ebp
pop ebp
ret
Function at 0x407089
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4070aa
jl 0x4070a1
test edi, edi
jne 0x4070aa
xor eax, eax
xor edx, edx
jmp 0x40716b
cmp dword [ebx + 0x38], 0
je 0x4070bf
push eax
push edi
push dword [ebp + 8]
call fcn.00407171
jmp 0x40716b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407106
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407106
cmp eax, edi
jb 0x4070e0
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00421d70
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40710c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407160
mov ecx, ebx
call fcn.004068cd
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40714b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004260e5
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x407160
jmp 0x40711e
test edx, edx
je 0x407160
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004260e5
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x41203a
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x41205d
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x41204b
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x42018f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0042cc6e
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4201d2
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4201d2
sub eax, 1
je 0x4201cd
sub eax, 1
je 0x4201c9
xor eax, eax
leave
ret
push 3
jmp 0x4201d4
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x421549
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x421588
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421588
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421588
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x421588
cmp dword [ecx + 0x74], 0xe
jbe 0x421588
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x433a3a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449c60
push 0x449c58
push str.FlsAlloc
push 0x1f
call fcn.004338a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433a6e
push dword [ebp + 8]
mov ecx, esi
call dword [0x445148]
call esi
jmp 0x433a74
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x433ab8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449c70
push 0x449c68
push str.FlsGetValue
push 0x21
call fcn.004338a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433aef
push dword [ebp + 8]
mov ecx, esi
call dword [0x445148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x433af7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x449c78
push 0x449c70
push str.FlsSetValue
push 0x22
call fcn.004338a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433b31
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x445148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]