joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440531
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40c], eax
test esi, esi
jne 0x44057a
xor eax, eax
jmp 0x4406f4
and dword [esi], 0
push ebx
push edi
xor edi, edi
inc edi
push edi
push eax
push ecx
push 0x400
lea eax, [ebp - 0x404]
push eax
call fcn.00440eee
mov ecx, dword [ebp - 0x40c]
and dword [ebp - 0x408], 0
and dword [ebp - 0x41c], 0
mov ebx, eax
mov eax, ecx
shr eax, 0x1a
not eax
and eax, edi
mov dword [ebp - 0x410], eax
test ebx, ebx
je 0x4405e1
mov eax, ecx
shr eax, 0x17
push ebx
and eax, edi
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ecx, dword [ebp - 0x40c]
mov dword [esi], eax
mov eax, dword [ebp - 0x410]
cmp dword [esi], 0
jne 0x44068e
test eax, eax
je 0x44068e
and dword [ebp - 0x418], 0
push edi
lea eax, [ebp - 0x414]
push eax
push ecx
call fcn.00440d72
test eax, eax
je 0x440670
mov eax, dword [ebp - 0x40c]
shr eax, 0x19
push ebx
and eax, edi
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x418], eax
push edi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x40c]
call fcn.00440ea6
mov ecx, dword [ebp - 0x418]
cmp ecx, 5
jne 0x440676
cmp dword [ebp - 0x41c], 0
jne 0x440676
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x41c], edi
jmp 0x4405bb
mov ecx, dword [ebp - 0x418]
cmp dword [esi], 0
je 0x44068e
xor eax, eax
cmp ecx, 0xb7
setne al
mov dword [ebp - 0x408], eax
jmp 0x440694
mov eax, dword [ebp - 0x408]
cmp dword [esi], 0
je 0x44069e
cmp dword [esi], 0xffffffff
jne 0x4406be
cmp dword [ebp - 0x410], 0
je 0x4406b1
push 0x1631e1
call fcn.0044a6b6
and dword [esi], 0
xor eax, eax
mov dword [ebp - 0x408], eax
xor edi, edi
mov ecx, dword [ebp - 0x420]
test ecx, ecx
je 0x4406e4
test ebx, ebx
jne 0x4406d1
mov ebx, 0x402759
push ebx
push dword [ebp + 0x14]
push ecx
call fcn.004603b8
mov eax, dword [ebp - 0x408]
add esp, 0xc
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x4406f0
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045cd7f
leave
ret 0x1c
Function at 0x441177
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
test ebx, ebx
jne 0x4411bc
push 0x15b3c8
call fcn.0044a6b6
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4411b5
and dword [ebp - 0x4c], ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x441320
cmp dword [0x4c0b94], eax
je 0x4411d3
mov eax, dword [0x478b30]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x441320
push edi
mov dword [ebx], eax
lea eax, [ebp - 0x4c]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x441201
push 0x15b3c9
call fcn.0044a6b6
xor edi, edi
jmp 0x44130b
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 2
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x441221
push 0x15b3ca
jmp 0x4411f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x441233
push 0x15b3cb
jmp 0x4411f5
push esi
push dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
call fcn.00441b27
mov esi, dword [ebp - 0x50]
test al, al
jne 0x441257
push 0x15b3cc
call fcn.0044a6b6
xor edi, edi
jmp 0x4412ff
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push esi
push 2
push dword [ebp - 0x4c]
call edi
test eax, eax
jne 0x441271
push 0x15b3cd
jmp 0x44124b
push 0x43
lea eax, [ebp - 0x47]
push 0
push eax
mov byte [ebp - 0x48], 0
call fcn.0045d10c
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0xb
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x4412a9
push 0x15b3ce
jmp 0x44124b
and dword [ebp - 0x58], 0
xor edi, edi
inc edi
cmp dword [esi], 0
jbe 0x4412f2
lea eax, [esi + 4]
mov dword [ebp - 0x50], eax
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4412da
mov eax, dword [ebp - 0x50]
push dword [eax]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4412f0
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
inc ecx
add eax, 8
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], eax
cmp ecx, dword [esi]
jb 0x4412bb
jmp 0x4412f2
mov dword [ebx], edi
mov dword [0x4c0b94], edi
mov eax, dword [ebx]
mov dword [0x478b30], eax
test esi, esi
je 0x44130a
push esi
call fcn.0044a6ad
pop ecx
pop esi
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x44131d
and dword [ebp - 0x4c], 0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret 4
Function at 0x4461a2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4c17d4], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
jne 0x4461cb
mov esi, 0x8ff000ff
jmp 0x446210
test ebx, ebx
je 0x44620b
call fcn.004466f8
mov esi, eax
test esi, esi
js 0x446210
push edi
call fcn.004466bd
mov edi, eax
test edi, edi
je 0x44620b
test byte [edi + 0x1f], 4
jne 0x446202
push edi
call fcn.00447b0e
mov esi, eax
test esi, esi
jns 0x446202
cmp esi, 0x8007000e
je 0x446210
xor esi, esi
mov eax, dword [ebp + 0xc]
dec eax
je 0x446223
dec eax
je 0x44623b
mov esi, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret 0xc
mov eax, dword [edi + 0x18]
test eax, eax
je 0x44623b
cmp byte [edi + 0x1e], 0
jbe 0x44623b
mov eax, dword [eax]
and eax, 0xff
mov dword [ebx], eax
jmp 0x446210
push 3
lea eax, [ebp - 0xc]
push eax
push 0x1009
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x44620b
lea eax, [ebp - 0xc]
push eax
call fcn.0045fc96
pop ecx
push ebx
push eax
call fcn.004460b2
mov esi, eax
jmp 0x446210
Function at 0x4471b7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x218], 0
and dword [ebp - 0x220], 0
push ebx
push edi
mov edi, dword [ebp + 8]
push 0x4c17bc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [edi + 0x1f]
test byte [ebx], 2
jne 0x4473a4
cmp dword [edi + 0x14], 0
je 0x44720f
push dword [edi + 0x14]
mov ecx, 0x4c17d8
call fcn.0044a1b0
and dword [edi + 0x14], 0
mov byte [edi + 0x1d], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
push 8
lea eax, [ebp - 0x14]
push eax
push 0x1004
push dword [edi + 4]
call esi
test eax, eax
je 0x447312
lea eax, [ebp - 0x238]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x4147e0
push 0
call fcn.00447fa4
mov dword [ebp - 0x218], eax
test eax, eax
js 0x447312
mov eax, dword [ebp - 0x234]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
mov dword [ebp - 0x220], 1
neg ecx
or ecx, eax
push ecx
mov ecx, 0x4c17d8
call fcn.0044a186
mov dword [edi + 0x14], eax
test eax, eax
je 0x447325
xor ebx, ebx
cmp dword [ebp - 0x234], ebx
jbe 0x4472d7
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x238]
push dword [eax + ebx*4]
call fcn.00445927
mov dword [ebp - 0x218], eax
test eax, eax
js 0x4472c7
movzx edx, byte [edi + 0x1d]
mov ecx, dword [edi + 0x14]
mov eax, dword [ebp - 0x21c]
mov dword [ecx + edx*4], eax
inc byte [edi + 0x1d]
jmp 0x4472ce
cmp eax, 0x8007000e
je 0x4472f8
inc ebx
cmp ebx, dword [ebp - 0x234]
jb 0x447293
cmp byte [edi + 0x1d], 0
lea ebx, [edi + 0x1f]
jne 0x447390
mov eax, dword [ebp - 0x220]
mov byte [edi + 0x1d], al
mov eax, dword [edi + 0x14]
and dword [eax], 0
jmp 0x447390
push dword [edi + 0x14]
mov ecx, 0x4c17d8
call fcn.0044a1b0
and dword [edi + 0x14], 0
mov byte [edi + 0x1d], 0
jmp 0x4473a3
push 4
mov ecx, 0x4c17d8
call fcn.0044a186
mov dword [edi + 0x14], eax
test eax, eax
jne 0x447331
mov dword [ebp - 0x218], 0x8007000e
jmp 0x4473a3
mov byte [edi + 0x1d], 1
and dword [eax], 0
push 0x100
lea eax, [ebp - 0x214]
push eax
push 4
push dword [edi + 4]
call esi
test eax, eax
je 0x447390
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00446e1e
test eax, eax
je 0x447384
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call fcn.00449035
mov ecx, dword [edi + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x218], 0x8007000e
je 0x4473a3
cmp dword [edi + 8], 0xc00
je 0x44739c
or byte [ebx], 2
and dword [ebp - 0x218], 0
pop esi
push 0x4c17bc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x220], 0
pop edi
pop ebx
je 0x4473c6
lea eax, [ebp - 0x238]
push eax
call fcn.00448017
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
xor ecx, ebp
call fcn.0045cd7f
leave
ret 4
Function at 0x44b8ac
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x23c], eax
mov edi, 0x104
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.00450b9c
pop ecx
pop ecx
test eax, eax
jne 0x44b8e9
or eax, 0xffffffff
jmp 0x44ba65
push ebx
xor eax, eax
lea ebx, [ebp - 0x22c]
push esi
mov dword [ebp - 0x230], ebx
cmp word [ebp - 0x22c], ax
je 0x44b910
add ebx, 2
cmp word [ebx], ax
jne 0x44b902
mov dword [ebp - 0x230], ebx
push 1
call fcn.00450b42
pop ecx
push dword [0x4aaa1c]
call fcn.00472033
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, 0x64
jbe 0x44b933
xor esi, esi
inc esi
lea eax, [ebp - 0x22c]
sub ebx, eax
sar ebx, 1
push esi
push 0x4147f4
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.0044c862
add esp, 0x10
test ebx, ebx
js 0x44b9c7
cmp ebx, edi
ja 0x44b9c7
mov eax, edi
sub eax, ebx
cmp eax, 0x7fffffff
ja 0x44b9c7
push eax
push dword [ebp - 0x230]
lea eax, [ebp - 0x24]
push eax
call fcn.0043f84e
push 1
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x22c]
push eax
call fcn.004403fb
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
jne 0x44ba1d
cmp esi, 0x64
jb 0x44b9a6
xor esi, esi
inc esi
cmp esi, dword [ebp - 0x238]
jne 0x44b93d
push esi
push 0x4147f4
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.0044c862
add esp, 0x10
test ebx, ebx
jns 0x44b9cc
call fcn.0045c7d8
cmp ebx, edi
ja 0x44b9c7
sub edi, ebx
cmp edi, 0x7fffffff
ja 0x44b9c7
push edi
push dword [ebp - 0x230]
lea eax, [ebp - 0x24]
push eax
call fcn.0043f84e
mov ebx, 0x80
push ebx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push 0
push ebx
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x22c]
push eax
call fcn.004403fb
mov edi, eax
jmp 0x44ba23
mov edi, dword [ebp - 0x234]
cmp esi, 0x64
jb 0x44ba2a
xor esi, esi
cmp byte [ebp + 0x10], 0
je 0x44ba3f
lea eax, [esi + 1]
push eax
push dword [0x4aaa1c]
call fcn.0047205b
call fcn.0044b740
mov eax, dword [ebp - 0x23c]
pop esi
pop ebx
test eax, eax
je 0x44ba63
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0044aa3b
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0045cd7f
leave
ret
Function at 0x44bb37
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x44bb46
xor eax, eax
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
push eax
inc esi
call fcn.0044c8b6
mov ebx, eax
push ebx
call fcn.004200b8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44bc6a
push 0x4c1838
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
call fcn.0044b30d
pop ecx
test eax, eax
jne 0x44bb8b
xor esi, esi
jmp 0x44bc54
cmp byte [0x4c1ad7], 0
je 0x44bb9e
push 0x72766c72
call fcn.0044a6b6
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov byte [0x4c1ad7], 1
call fcn.0044c8b6
pop ecx
cmp eax, ebx
jne 0x44bbbf
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x44bbeb
push edi
call fcn.0041f1f0
lea eax, [ebp - 4]
push eax
call fcn.0044c8b6
mov ebx, eax
push ebx
call fcn.004200b8
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x44bbeb
push 0x72766c73
call fcn.0044a6b6
xor esi, esi
cmp dword [ebp + 0x14], 0
jne 0x44bbf9
cmp ebx, 0xea60
ja 0x44bb84
test esi, esi
je 0x44bc0f
push dword [ebp + 0xc]
push dword [ebp - 4]
push ebx
push edi
call fcn.0044ca6f
add esp, 0x10
mov esi, eax
mov byte [0x4c1ad7], 0
test esi, esi
je 0x44bc4a
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44bc39
cmp dword [ebp - 8], ebx
jne 0x44bc39
xor esi, esi
inc esi
jmp 0x44bc3b
xor esi, esi
push ebx
push edi
push dword [ebp + 0x10]
call fcn.0044cd3f
add esp, 0xc
jmp 0x44bc54
push 0x74697970
call fcn.0044a6b6
push 0x4c1838
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x44bc6a
push edi
call fcn.0041f1f0
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x44cd3f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x44cd87
push esi
push 1
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.004403fb
mov esi, eax
cmp esi, 0xffffffff
je 0x44cd86
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x44cd89
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test dword [0x4c1874], 0x2000
je 0x44cdb5
call fcn.00450ac7
jmp 0x44ce4a
push ebx
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00450b9c
pop ecx
pop ecx
test eax, eax
je 0x44ce49
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x414804
call fcn.0043e61b
call fcn.0044b867
test al, al
je 0x44ce47
push edi
call fcn.0044ba72
push 1
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0044b8ac
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x44ce46
push esi
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
call fcn.0044bb37
add esp, 0x10
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x414]
test esi, esi
jne 0x44ce37
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x44ce46
push ebx
push 0x4c18c4
push eax
call fcn.0044aa3b
add esp, 0xc
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045cd7f
leave
ret
Function at 0x44fff7
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov byte [eax], bl
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ebx
mov esi, ebx
mov byte [edi], 1
call fcn.00450a1e
mov dword [ebp - 0x220], eax
cmp eax, 3
je 0x450211
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044ffc8
pop ecx
pop ecx
test eax, eax
je 0x450211
xor eax, eax
inc eax
push eax
push ebx
push 0x80
push 3
push ebx
push eax
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call fcn.004403fb
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x210]
cmp ecx, 0xffffffff
jne 0x4500af
cmp eax, 0x20
jne 0x4500a5
push 0x1c8016
call fcn.0044a6b6
mov eax, ebx
mov byte [edi], al
jmp 0x450211
cmp eax, 5
je 0x45009c
xor eax, eax
inc eax
jmp 0x45009e
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi - 0x8c]
cmp eax, 0xf74
ja 0x4501fb
push edi
call fcn.0044a635
mov esi, eax
test esi, esi
je 0x4501fb
push ebx
lea eax, [ebp - 0x218]
push eax
push edi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4501fb
cmp edi, dword [ebp - 0x218]
jne 0x4501fb
push ebx
push edi
push esi
call fcn.0044b78b
add esp, 0xc
test eax, eax
je 0x4501fb
cmp dword [esi + 0x78], ebx
jne 0x4501fb
mov eax, dword [esi + 0x7c]
push 0xc
xor edx, edx
pop ecx
div ecx
mov ecx, eax
imul ecx, ecx, 0xc
mov dword [ebp - 0x214], eax
cmp dword [esi + 0x7c], ecx
jne 0x4501fb
lea edi, [esi + 0x80]
test eax, eax
jle 0x4501cf
cmp dword [edi], 0x2102
ja 0x450175
je 0x450195
cmp dword [edi], 0x10
je 0x450195
cmp dword [edi], 0x195b
je 0x450195
cmp dword [edi], 0x19df
jbe 0x4501a5
cmp dword [edi], 0x19e2
jbe 0x450195
jmp 0x4501a5
cmp dword [edi], 0x24c8
jb 0x4501a5
cmp dword [edi], 0x24cb
jbe 0x450195
cmp dword [edi], 0x24cd
je 0x450195
cmp dword [edi], 0x2696
jne 0x4501a5
push dword [edi + 4]
push dword [edi]
call fcn.0044abac
mov eax, dword [ebp - 0x214]
cmp dword [edi], 0x195b
je 0x4501bd
cmp dword [edi], 0x19e1
je 0x4501bd
cmp dword [edi], 0x24cd
jne 0x4501be
inc ebx
add edi, 0xc
dec eax
mov dword [ebp - 0x214], eax
jne 0x45014c
cmp ebx, 3
je 0x4501dd
call fcn.004709ff
test eax, eax
je 0x4501e8
cmp ebx, 2
jl 0x4501e8
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], 1
jmp 0x4501fb
xor eax, eax
inc eax
cmp dword [ebp - 0x220], eax
jne 0x4501fb
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], al
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x450211
push esi
call fcn.0044a645
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret
Function at 0x4503ad
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0045c182
and dword [ebp - 0x38], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x38]
push eax
push 0x11
call fcn.0044abac
push dword [ebp - 0x24]
push 0x12
call fcn.0044abac
mov edi, SysReAllocString
xor ecx, ecx
mov eax, edi
cpuid
lea esi, [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp dword [ebp - 0x14], edi
jbe 0x450434
xor ecx, ecx
lea eax, [edi + 1]
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
test dword [ebp - 8], 0x20000000
je 0x450430
push 9
jmp 0x450439
push 0
jmp 0x450439
push 0xffff
push 0x2699
call fcn.0044abac
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045cd7f
leave
ret

Function at 0x450837
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x118
lea eax, [ebp - 0x11c]
push esi
push eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], esi
call fcn.0045d10c
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 1
push esi
push 0x41b9ac
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4508df
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
push eax
push esi
push 0x41b9d8
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4508d1
push dword [ebp - 0x130]
push 0x22df
call fcn.0044abac
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4508e9
push 0x1c800b
call fcn.0044a6b6
lea eax, [ebp - 0x120]
push eax
call fcn.0047191a
pop ecx
pop esi
test al, al
je 0x45096a
push dword [ebp - 0x114]
push 0x1a
call fcn.0044abac
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
or ecx, eax
push ecx
push 0x43
call fcn.0044abac
movzx eax, word [ebp - 8]
push eax
push 0x3a5
call fcn.0044abac
push dword [ebp - 0x11c]
push 0x22e1
call fcn.0044abac
push dword [ebp - 0x118]
push 0x22e2
call fcn.0044abac
movzx eax, word [ebp - 0xc]
push eax
push 0x22e4
call fcn.0044abac
movzx eax, word [ebp - 0xa]
push eax
push 0x22e5
call fcn.0044abac
lea eax, [ebp - 0x124]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
test eax, eax
je 0x4509a3
push dword [ebp - 0x124]
push 0x1af7
call fcn.0044abac
jmp 0x4509b9
push 0xffffffffffffffff
push 0x1af7
call fcn.0044abac
push 0x1c800c
call fcn.0044a6b6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045cd7f
leave
ret
Function at 0x4509d3
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4a95d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add ecx, 0x80000
adc eax, 0
shrd ecx, eax, 0x14
push ecx
push 0xc
shr eax, 0x14
call fcn.0044abac
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045cd7f
leave
ret

Function at 0x450b9c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
call fcn.00470981
test eax, eax
je 0x450bbf
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004700eb
pop ecx
pop ecx
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call fcn.00450f1f
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x450c4d
push edi
call fcn.0044aa13
cmp word [edi + eax*2 - 2], 0x5c
pop ecx
je 0x450c00
push 0xffffffffffffffff
push 0x4032d0
push dword [ebp + 0xc]
push edi
call fcn.0046065b
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
test ebx, ebx
je 0x450c4d
push 0xffffffffffffffff
push 0x41ba28
push dword [ebp + 0xc]
push edi
call fcn.0046065b
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
test ebx, ebx
je 0x450c4d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x450c4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax - 0xb7]
neg ebx
sbb ebx, ebx
inc ebx
jne 0x450c4d
push 0x1cb247
call fcn.0044a6b6
pop edi
mov eax, ebx
pop ebx
pop ebp
ret