joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fdf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x40fe6e
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00431bc0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x40fe41
sub eax, ebx
jmp 0x40fe43
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x40fe32
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x40fe62
sub eax, ebx
jmp 0x40fe64
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x40fe53
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x40ff42
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.0040fc00
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x40feb9
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x40fecd
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x40fdf6
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x40ff42
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x40ff11
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x40fef4
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.00431f30
add esp, 0xc
add ebx, esi
pop esi
pop ebp
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x40ff42
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x40ff2b
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.00431f30
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebp
pop ebx
ret
Function at 0x415c1c
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x4615e0]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x415cba
push 0x44e1cc
push 4
push eax
call fcn.00430ec1
push eax
call fcn.00401810
add esp, 0x10
push ebx
push edi
call fcn.0043362f
mov edi, dword [eax]
call fcn.0043362f
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00431021
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0043362f
cmp dword [eax], ebx
je 0x415cd1
call fcn.0043362f
push dword [eax]
call fcn.00415b7f
pop ecx
jmp 0x415cd8
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x415c6b
jmp 0x415d4a
call fcn.0043362f
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x415d46
cmp dword [ebp - 0x40], esi
jae 0x415d46
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00431f30
add esp, 0xc
push 0x44df2c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x415d38
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x415d38
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x415d38
push ebx
push ebx
push esi
jmp 0x415d3e
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x415d48
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.00430ff6
add ebp, 0x1f4
leave
ret
Function at 0x417849
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41788f
call fcn.00419620
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41788f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4178d2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4178bb
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4178bb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4178cf
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41e8e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41e926
call fcn.00419620
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41e926
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41e941
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041e49d
test ebx, ebx
mov esi, eax
je 0x41e93f
test edi, edi
je 0x41e93f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41f0ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x447f18
call fcn.00433201
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00419620
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41f13a
call fcn.00419620
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41f14b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41f158
or eax, 0xffffffff
jmp 0x41f2b4
mov ecx, esi
call fcn.0041ec14
mov dword [ebp - 0x14], eax
call fcn.0041bea6
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41f1d6
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41f1d6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41f1d6
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00415c09
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41f1d6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41f1d6
mov ecx, ebx
call fcn.004201a7
test eax, eax
je 0x41f1d6
push 0
mov ecx, ebx
call fcn.004201c2
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041d7c9
push dword [ebp - 0x14]
call fcn.0041bdfe
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041eef7
xor edi, edi
cmp eax, edi
je 0x41f233
test byte [esi + 0x3c], 0x10
je 0x41f21d
push 4
pop edi
mov ecx, esi
call fcn.004200b8
test ax, 0x100
je 0x41f213
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041b994
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41f233
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042036c
or dword [ebp - 4], 0xffffffff
jmp 0x41f25e
cmp dword [ebp - 0x28], edi
je 0x41f26c
push 1
mov ecx, ebx
call fcn.004201c2
cmp dword [ebp - 0x2c], edi
je 0x41f27c
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41f295
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41f295
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041ec4e
cmp dword [esi + 0x58], edi
je 0x41f2b1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004332a6
ret
Function at 0x421486
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4214b4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4214d2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004213f0
jmp 0x4214d2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4214d2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004213f0
test edi, edi
mov eax, edi
jne 0x4214bc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4647f4]
test ecx, ecx
je 0x421595
jmp 0x421485
ret 8

Function at 0x430ff6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4615e0]
jne 0x431000
repz ret
jmp fcn.004383f8
Function at 0x43283c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x432879
cmp dword [ebp + 0x14], edi
je 0x432879
cmp ecx, edi
jne 0x432880
call fcn.0043362f
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00432335
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x432894
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4328b5
cmp ebx, 0xffffffff
je 0x4328a4
push ebx
push edi
push ecx
call fcn.00431f30
add esp, 0xc
cmp esi, edi
je 0x432861
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x432861
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4328d1
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4328d8
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4329c9
test word [esi + 0xc], 0x10c
je 0x43292c
mov eax, dword [esi + 4]
test eax, eax
je 0x43292c
jl 0x432a2a
cmp ebx, eax
mov edi, ebx
jb 0x4328fd
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4329d1
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00430942
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4329c1
cmp ebx, dword [ebp - 0xc]
jb 0x432999
cmp dword [ebp - 0xc], 0
je 0x432956
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x43294b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x432952
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x432961
mov eax, SysReAllocString
cmp ebx, eax
ja 0x432961
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4329fd
push eax
push dword [ebp - 8]
push esi
call fcn.0043b752
pop ecx
push eax
call fcn.0043b4b9
add esp, 0xc
test eax, eax
je 0x432a3c
cmp eax, 0xffffffff
je 0x432a2a
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4329c1
push esi
call fcn.0043bfd3
cmp eax, 0xffffffff
pop ecx
je 0x432a2e
cmp dword [ebp - 4], 0
je 0x4329fd
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4328e0
mov eax, dword [ebp + 0x14]
jmp 0x43287b
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4329e8
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00431f30
add esp, 0xc
call fcn.0043362f
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x432871
cmp dword [ebp + 0xc], 0xffffffff
je 0x432a13
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00431f30
add esp, 0xc
call fcn.0043362f
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x432871
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43287b
or dword [esi + 0xc], 0x10
jmp 0x432a2e
Function at 0x43620c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x461770]
je 0x436227
inc edi
cmp edi, 0x17
jb 0x436218
cmp edi, 0x17
jae 0x4363a7
push ebp
push 3
call fcn.00440470
cmp eax, 1
pop ecx
je 0x436373
push 3
call fcn.00440470
test eax, eax
pop ecx
jne 0x43625b
cmp dword [0x4615b8], 1
je 0x436373
cmp ebx, 0xfc
je 0x4363a6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x464b58
push ebp
call fcn.0043ad86
add esp, 0xc
test eax, eax
je 0x436291
push esi
push esi
push esi
push esi
push esi
call fcn.00432239
add esp, 0x14
push 0x104
mov esi, 0x464b71
push esi
push 0
mov byte [0x464c75], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4362d5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043ad86
add esp, 0xc
test eax, eax
je 0x4362d5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00432239
add esp, 0x14
push esi
call fcn.0043adf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43631a
push esi
call fcn.0043adf0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x464e6c
push 0x4514c4
sub ecx, eax
push ecx
push eax
call fcn.00431903
add esp, 0x14
test eax, eax
je 0x43631a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00432239
add esp, 0x14
jmp 0x43631c
xor esi, esi
push 0x4514c0
push ebx
push ebp
call fcn.004403ff
add esp, 0xc
test eax, eax
je 0x43633c
push esi
push esi
push esi
push esi
push esi
call fcn.00432239
add esp, 0x14
push dword [edi*8 + 0x461774]
push ebx
push ebp
call fcn.004403ff
add esp, 0xc
test eax, eax
je 0x43635e
push esi
push esi
push esi
push esi
push esi
call fcn.00432239
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00440242
add esp, 0xc
jmp 0x4363a6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4363a6
cmp ebp, 0xffffffff
je 0x4363a6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x461774]
push dword [esi]
call fcn.0043adf0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x440242
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00436dd0
xor ebx, ebx
cmp dword [0x465658], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x440318
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4403f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4403f8
push eax
call fcn.00436d62
mov dword [esp], 0x4517fc
push edi
mov dword [0x465658], eax
call esi
push eax
call fcn.00436d62
mov dword [esp], 0x4517e8
push edi
mov dword [0x46565c], eax
call esi
push eax
call fcn.00436d62
mov dword [0x465660], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00433381
test eax, eax
pop ecx
pop ecx
je 0x4402e6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00432239
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x440318
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00436d62
cmp eax, ebx
pop ecx
mov dword [0x465668], eax
je 0x440318
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00436d62
pop ecx
mov dword [0x465664], eax
mov eax, dword [0x465664]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44039d
cmp dword [0x465668], ecx
je 0x44039d
push eax
call fcn.00436dd9
push dword [0x465668]
mov esi, eax
call fcn.00436dd9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44039d
cmp edi, ebx
je 0x44039d
call esi
cmp eax, ebx
je 0x44036a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44036a
test byte [ebp - 0x18], 1
jne 0x44039d
lea eax, [ebp - 0x10]
push eax
call fcn.004333b8
test eax, eax
pop ecx
je 0x440385
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00432239
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x440394
or dword [ebp + 0x10], 0x200000
jmp 0x4403d8
or dword [ebp + 0x10], 0x40000
jmp 0x4403d8
mov eax, dword [0x46565c]
cmp eax, dword [ebp - 8]
je 0x4403d8
push eax
call fcn.00436dd9
cmp eax, ebx
pop ecx
je 0x4403d8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4403d8
mov eax, dword [0x465660]
cmp eax, dword [ebp - 8]
je 0x4403d8
push eax
call fcn.00436dd9
cmp eax, ebx
pop ecx
je 0x4403d8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x465658]
call fcn.00436dd9
cmp eax, ebx
pop ecx
je 0x4403f8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4403fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x447643
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4615e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004475d8
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00431f30
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x447692
cmp dword [ebp - 0x1c], 5
jb 0x4476aa
jmp 0x4476a6
cmp dword [ebp - 0x10], 1
jne 0x4476aa
cmp dword [ebp - 0x1c], 4
ja 0x4476a6
jne 0x4476aa
cmp dword [ebp - 0x18], 0
jbe 0x4476aa
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4530fc
call fcn.004474ac
test eax, eax
jge 0x4476cb
mov byte [0x466430], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00430ff6
add ebp, 0x78
leave
ret
Function at 0x4019b6
Capabilities:
Read file on windows

Disassembly:
add edi, esi
mov edi, 0xae
add eax, 1
lea esi, [0x17]
lea eax, [0xf]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, 0
push eax
mov esi, 5
push esi
mov ebx, 0x22a6fe
mov edi, ebx
mov edx, 0x1e7a92
add edi, edx
push dword [edi]
pop dword [0x429136]
mov edi, dword [0x429136]
call edi
or eax, eax
jne 0x4018ac
mov dword [0x42922f], 0
mov edx, dword [0x42922f]
push edx
xor ecx, ecx
push ecx
mov eax, 0
mov edi, eax
push edi
xor eax, eax
push eax
push 4
pop edx
push edx
mov esi, 0xc
push esi
mov ecx, 0xbf
mov esi, ecx
push esi
mov ebx, 9
push ebx
mov edi, 0x221f0f
mov eax, 0x1f0269
add edi, eax
push dword [edi]
pop dword [0x429245]
mov edi, dword [0x429245]
call edi
or eax, eax
jne 0x401788
jmp 0x4018a5
lea edi, [esi + 0x37]
lea esi, [8]
add esi, edi
lea eax, [2]
add edi, eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ebx, 7
mov ecx, ebx
push ecx
push 9
pop esi
push esi
push 0x13748a
pop ebx
mov edx, 0x2dacf2
add ebx, edx
push dword [ebx]
pop dword [section..data]
mov ebx, dword [section..data]
call ebx
or eax, eax
jne 0x4018b2
xor edi, edi
push edi
mov esi, pe_nt_image_headers32
mov eax, esi
push eax
mov ecx, 3
push ecx
push 0
pop edi
push edi
mov eax, 2
mov esi, eax
push esi
xor eax, eax
push eax
mov dword [0x429365], 0
mov ecx, dword [0x429365]
push ecx
mov edx, dword [sym.imp.KERNEL32.DLL_CreateFileA]
call edx
inc eax
jne 0x4015df
call fcn.004019b6
cmp esi, dword [0x429dab]
inc esi
or esi, 0x72
dec esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [0x429382], 0
mov ebx, dword [0x429382]
push ebx
mov eax, 7
push eax
mov ebx, 0xba55b9
mov eax, ebx
push 0x79342d
pop edi
sub eax, edi
call dword [eax]
mov dword [0x42932b], eax
or eax, eax
je 0x401a94
xor eax, ebx
mov ebx, eax
call 0x401a4e
sub edi, dword [0x429724]
cmp eax, 0xffffffab
jg 0x401aae
lea edx, [0x5d]
or edx, 0x62
inc edi
add eax, ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [0x42904e], 0
mov esi, dword [0x42904e]
push esi
mov eax, 0
push eax
mov edx, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
call edx
or eax, eax
jne 0x4015f0
mov esi, 0x5e5382bd
mov edi, esi
push edi
push 0x1689e3
pop eax
add eax, 0x2c0786
push eax
mov eax, 0x2b1bd7
mov dword [0x429285], 0x177479
add eax, dword [0x429285]
push eax
mov dword [0x429021], 0
mov ecx, dword [0x429021]
push ecx
mov edi, 0x365e36
mov ebx, edi
mov dword [0x429161], 0xc3264
add ebx, dword [0x429161]
push ebx
mov edx, 0x242c18
mov edi, edx
add edi, 0x1e64ee
push edi
mov esi, 0x9a
mov eax, esi
push eax
xor ecx, ecx
push ecx
mov eax, dword [sym.imp.ADVAPI32.DLL_RegEnumValueW]
call eax
or eax, eax
je 0x401778
ret
Function at 0x401a4e
Capabilities:
Create directory
Query or enumerate registry value
Read file on windows

Disassembly:
add edi, esi
mov edi, 0xae
add eax, 1
lea esi, [0x17]
lea eax, [0xf]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, 0
push eax
mov esi, 5
push esi
mov ebx, 0x22a6fe
mov edi, ebx
mov edx, 0x1e7a92
add edi, edx
push dword [edi]
pop dword [0x429136]
mov edi, dword [0x429136]
call edi
or eax, eax
jne 0x4018ac
mov dword [0x42922f], 0
mov edx, dword [0x42922f]
push edx
xor ecx, ecx
push ecx
mov eax, 0
mov edi, eax
push edi
xor eax, eax
push eax
push 4
pop edx
push edx
mov esi, 0xc
push esi
mov ecx, 0xbf
mov esi, ecx
push esi
mov ebx, 9
push ebx
mov edi, 0x221f0f
mov eax, 0x1f0269
add edi, eax
push dword [edi]
pop dword [0x429245]
mov edi, dword [0x429245]
call edi
or eax, eax
jne 0x401788
jmp 0x4018a5
lea edi, [esi + 0x37]
lea esi, [8]
add esi, edi
lea eax, [2]
add edi, eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ebx, 7
mov ecx, ebx
push ecx
push 9
pop esi
push esi
push 0x13748a
pop ebx
mov edx, 0x2dacf2
add ebx, edx
push dword [ebx]
pop dword [section..data]
mov ebx, dword [section..data]
call ebx
or eax, eax
jne 0x4018b2
xor edi, edi
push edi
mov esi, pe_nt_image_headers32
mov eax, esi
push eax
mov ecx, 3
push ecx
push 0
pop edi
push edi
mov eax, 2
mov esi, eax
push esi
xor eax, eax
push eax
mov dword [0x429365], 0
mov ecx, dword [0x429365]
push ecx
mov edx, dword [sym.imp.KERNEL32.DLL_CreateFileA]
call edx
inc eax
jne 0x4015df
call fcn.004019b6
cmp esi, dword [0x429dab]
inc esi
or esi, 0x72
dec esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [0x429382], 0
mov ebx, dword [0x429382]
push ebx
mov eax, 7
push eax
mov ebx, 0xba55b9
mov eax, ebx
push 0x79342d
pop edi
sub eax, edi
call dword [eax]
mov dword [0x42932b], eax
or eax, eax
je 0x401a94
xor eax, ebx
mov ebx, eax
call 0x401a4e
sub edi, dword [0x429724]
cmp eax, 0xffffffab
jg 0x401aae
lea edx, [0x5d]
or edx, 0x62
inc edi
add eax, ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [0x42904e], 0
mov esi, dword [0x42904e]
push esi
mov eax, 0
push eax
mov edx, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
call edx
or eax, eax
jne 0x4015f0
mov esi, 0x5e5382bd
mov edi, esi
push edi
push 0x1689e3
pop eax
add eax, 0x2c0786
push eax
mov eax, 0x2b1bd7
mov dword [0x429285], 0x177479
add eax, dword [0x429285]
push eax
mov dword [0x429021], 0
mov ecx, dword [0x429021]
push ecx
mov edi, 0x365e36
mov ebx, edi
mov dword [0x429161], 0xc3264
add ebx, dword [0x429161]
push ebx
mov edx, 0x242c18
mov edi, edx
add edi, 0x1e64ee
push edi
mov esi, 0x9a
mov eax, esi
push eax
xor ecx, ecx
push ecx
mov eax, dword [sym.imp.ADVAPI32.DLL_RegEnumValueW]
call eax
or eax, eax
je 0x401778
ret

Function at 0x401bda
Capabilities:
Read file on windows

Disassembly:
cmp ebx, dword [0x42ae88]
inc edi
mov ebx, esi