joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ff2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x44
mov eax, 0x4bd59d
call fcn.00435ea4
mov edi, ecx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x18], eax
call fcn.0040e65d
and dword [ebp - 4], 0
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040e65d
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 3
call dword [eax + 0x3c]
mov dword [edi + 0x3b8], eax
jmp 0x40604e
mov eax, dword [edi + 0x3b8]
mov dword [ebp - 4], 2
cmp eax, 0x80004004
je 0x40609e
cmp dword [ebp - 0x34], 0
jne 0x40609e
test eax, eax
je 0x40609e
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00405f80
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.0040e681
push dword [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00435f15
pop ecx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040e681
lea eax, [edi + 0x33c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00405e9f
xor esi, esi
pop ecx
pop ecx
cmp dword [edi + 0x324], esi
jbe 0x4060dc
cmp esi, 0x20
jae 0x4060dc
mov eax, dword [edi + 0x320]
push dword [eax + esi*4]
lea eax, [ebp - 0x38]
push eax
call fcn.00405e9f
inc esi
pop ecx
pop ecx
cmp esi, dword [edi + 0x324]
jb 0x4060ba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
cmp eax, 0x3e8
ja 0x406106
cmp byte [edi + 0x318], 0
jne 0x4060fb
cmp dword [ebp - 0x40], 0
je 0x406106
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [edi + 0x280]
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x378]
mov byte [ebp - 4], 7
push eax
lea ecx, [edi + 0x1e0]
call fcn.00405ec9
mov ecx, edi
call fcn.00402da5
cmp dword [ebp - 0x34], 0
jne 0x4061dc
cmp dword [edi + 0x364], 0
je 0x40629b
lea eax, [edi + 0x354]
push eax
lea ecx, [edi + 0x204]
call fcn.00403dad
jmp 0x40629b
lea ecx, [ebp - 0x50]
call fcn.0040e65d
xor ebx, ebx
mov byte [ebp - 4], 8
cmp dword [edi + 0x1d4], ebx
jbe 0x40620c
mov eax, dword [edi + 0x1d0]
lea ecx, [ebp - 0x50]
push dword [eax + ebx*4]
call fcn.0040e825
inc ebx
cmp ebx, dword [edi + 0x1d4]
jb 0x4061f2
cmp dword [ebp - 0x4c], 0
lea ebx, [edi + 0x1ec]
mov ecx, ebx
lea eax, [ebp - 0x44]
je 0x406220
lea eax, [ebp - 0x50]
push eax
call fcn.0040e681
cmp dword [edi + 0x324], 0
jbe 0x40626b
lea eax, [edi + 0x33c]
mov ecx, ebx
push eax
call fcn.0040e825
push 0x4c4c40
mov ecx, ebx
call fcn.0040e8b2
mov eax, dword [edi + 0x320]
mov ecx, ebx
push dword [eax]
call fcn.0040e825
mov eax, dword [edi + 0x320]
lea ecx, [edi + 0x1f8]
push dword [eax]
call fcn.0040e681
cmp dword [edi + 0x1f0], 0
jne 0x40627f
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.0040e681
cmp dword [edi + 0x3b8], 0
jne 0x406292
mov dword [edi + 0x3b8], 0x80004005
push dword [ebp - 0x50]
call fcn.00435f15
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x38]
call fcn.00435f15
pop ecx
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 9
call dword [eax + 0x34]
push dword [ebp - 0x44]
call fcn.00435f15
pop ecx
call fcn.00435e02
ret
Function at 0x40636a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x228
mov eax, 0x4bd5c3
call fcn.00435e6d
mov edi, ecx
mov dword [ebp - 0x224], edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x228], eax
call fcn.004062c5
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0047a400
push esi
lea eax, [ebp - 0x218]
push str.LANG__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x218]
push 0x4c4c68
push eax
push dword [0x4f6b48]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4063e1
xor al, al
jmp 0x4064cd
push esi
push dword [0x4f6b48]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x4f6b48]
mov dword [ebp - 0x220], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp dword [ebp - 0x220], ebx
je 0x4063da
cmp esi, 0x100000
ja 0x4063da
lea ecx, [ebp - 0x234]
call fcn.0040e495
push esi
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
call fcn.00406346
push esi
push dword [ebp - 0x220]
mov dword [ebp - 0x21c], eax
push eax
call fcn.004794c0
mov edx, dword [ebp - 0x21c]
add esp, 0xc
mov eax, edx
mov ecx, ebx
test esi, esi
je 0x40647a
mov edi, eax
mov dl, byte [ecx + edi]
test dl, dl
je 0x40646e
cmp dl, 0xd
je 0x406469
mov byte [eax], dl
inc eax
inc ecx
cmp ecx, esi
jb 0x40645a
mov edi, dword [ebp - 0x224]
mov edx, dword [ebp - 0x21c]
mov byte [eax], bl
mov ecx, edi
sub eax, edx
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x234]
push eax
call fcn.004064d5
test al, al
je 0x4064b8
push ebx
mov ecx, edi
call fcn.00406316
test eax, eax
je 0x4064b8
push dword [ebp - 0x228]
push eax
call fcn.0040f14c
pop ecx
pop ecx
test al, al
je 0x4064b8
mov bl, 1
jmp 0x4064bf
mov ecx, edi
call fcn.004062c5
push dword [ebp - 0x234]
call fcn.00435f15
pop ecx
mov al, bl
call fcn.00435e17
ret 8
Function at 0x406cc1
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x406cf7
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x406cea
cmp esi, ecx
jae 0x406dda
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x406d70
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x4c4d90]
xor ecx, eax
or ecx, edx
jmp 0x406dc0
cmp edi, 6
jbe 0x406dc0
cmp edx, 4
jne 0x406dc0
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x406d09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40820b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov edx, dword [edx]
and edx, 7
cmp eax, 5
jae 0x408228
xor eax, eax
jmp 0x408345
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [eax - 4]
add ecx, ebx
push esi
mov dword [ebp + 0xc], ecx
lea esi, [edi + ebx]
jmp 0x408243
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x408247
inc esi
cmp esi, ecx
jb 0x40823a
mov ecx, esi
sub ecx, edi
mov edi, esi
sub ecx, ebx
sub edi, ebx
cmp esi, dword [ebp + 0xc]
jae 0x408332
cmp ecx, 2
jbe 0x40829d
xor edx, edx
movzx ebx, byte [esi + 4]
lea eax, [ebx + 1]
test al, 0xfe
jne 0x408323
movzx eax, byte [esi + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 1]
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 0x10]
add eax, 5
add eax, edi
cmp dword [ebp + 0x18], 0
je 0x4082c9
add ebx, eax
jmp 0x4082cb
shr edx, cl
test edx, edx
je 0x408261
cmp edx, 4
ja 0x4082bb
cmp edx, 3
je 0x4082bb
mov eax, edx
shr eax, 1
movzx eax, byte [eax + esi + 1]
inc eax
test al, 0xfe
jne 0x408261
or edx, 8
shr edx, 1
inc edi
mov ecx, dword [ebp + 0xc]
jmp 0x408235
sub ebx, eax
test edx, edx
je 0x408300
and edx, 6
mov eax, ebx
shl edx, 2
mov ecx, edx
shr eax, cl
inc eax
test al, 0xfe
jne 0x4082fe
mov eax, 0x100
shl eax, cl
dec eax
xor ebx, eax
mov eax, dword [ebp + 0x10]
add eax, 5
add eax, edi
cmp dword [ebp + 0x18], 0
je 0x4082fc
add ebx, eax
jmp 0x4082fe
sub ebx, eax
xor edx, edx
mov eax, ebx
mov byte [esi + 1], bl
shr eax, 8
mov byte [esi + 2], al
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
and bl, 1
neg bl
mov byte [esi + 3], al
push 5
mov byte [esi + 4], bl
pop eax
jmp 0x40832b
or edx, 8
xor eax, eax
shr edx, 1
inc eax
mov ebx, dword [ebp + 8]
add edi, eax
jmp 0x4082c1
xor eax, eax
shr edx, cl
cmp ecx, 2
pop esi
cmova edx, eax
mov eax, dword [ebp + 0x14]
pop ebx
mov dword [eax], edx
mov eax, edi
pop edi
pop ebp
ret

Function at 0x408434
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x4f030c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40848f
cmp dword [ebp - 0x114], 5
sbb eax, eax
add eax, 1
je 0x40848f
lea eax, [ebp - 0x13c]
push eax
call fcn.0040858c
pop ecx
test eax, eax
je 0x40848f
mov eax, dword [ebp - 0x124]
shr eax, 0x19
and eax, 1
jmp 0x408491
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435df1
mov esp, ebp
pop ebp
ret
Function at 0x408748
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e8
mov eax, dword [0x4f030c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3e8]
mov dword [ebp - 0x3e8], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x408788
cmp dword [ebp - 0x3e4], 6
jne 0x408788
cmp dword [ebp - 0x3e0], 0
je 0x4087b2
push str.SetDefaultDllDirectories
push 0x4c4c70
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4087b2
push 0xc00
call eax
test eax, eax
jne 0x408847
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x408847
cmp eax, 0x104
ja 0x408847
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x4087f2
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [0x4c4de0], 0
push esi
mov esi, 0x4c4de0
je 0x408846
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov edx, edi
mov cl, byte [esi]
inc esi
movzx eax, cl
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x40880d
push str..dll
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x40880b
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435df1
mov esp, ebp
pop ebp
ret
Function at 0x40b9be
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x40ba6b
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x40ba4a
push edi
call fcn.0040b993
pop ecx
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x40ba3c
cmp dword [esi + 0x5c], ebx
je 0x40ba66
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
pop ecx
pop ecx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.0040be82
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.0040b955
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40baed
lea eax, [ebx + 0x20]
push eax
call fcn.0040dfb1
mov edi, eax
pop ecx
test edi, edi
jne 0x40baed
lea eax, [ebx + 0x1c]
push eax
call fcn.0040dfb1
mov edi, eax
pop ecx
test edi, edi
jne 0x40baed
push ebx
call fcn.0040c85a
mov edi, eax
test edi, edi
je 0x40baed
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
push ebx
call fcn.0040b8c7
add ebx, 0x28
pop ecx
sub esi, 1
jne 0x40badb
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x40bb01
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x40bb15
cmp dword [esi + 0x40], edx
jne 0x40bb15
cmp dword [esi + 0x3c], edx
jne 0x40bb15
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
pop ebp
ret

Function at 0x40dc48
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 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
pop ebp
ret
Function at 0x40e02a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.0047e17f
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x40e056
call fcn.0040dfcd
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410446
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x4bd85a
call fcn.00435e39
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x410466
mov al, 1
jmp 0x4104ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x410477
xor al, al
jmp 0x4104ad
lea ecx, [ebp - 0x44]
call fcn.004106a1
lea ecx, [ebp - 0x1c]
call fcn.0040e65d
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00410786
test al, al
je 0x4104a2
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00435f15
pop ecx
mov al, bl
call fcn.00435e02
ret

Function at 0x410614
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x410ca6
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret

Function at 0x410d52
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410d78
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x410d78
xor al, al
jmp 0x410d8c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4110a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f030c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.0040e75c
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00435df1
mov esp, ebp
pop ebp
ret
Function at 0x411e83
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4f030c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push str.GlobalMemoryStatusEx
push 0x4c4c70
mov dword [ebp - 0x64], 0x40
and dword [esi + 4], 0
mov dword [esi], SysReAllocStringLen
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411ee6
lea ecx, [ebp - 0x64]
push ecx
call eax
test eax, eax
je 0x411ee6
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.00411e06
add esp, 0x10
mov dword [esi + 4], edx
jmp 0x411f05
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xc], eax
cmovb eax, dword [ebp - 0xc]
and dword [esi + 4], 0
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov al, 1
pop esi
call fcn.00435df1
mov esp, ebp
pop ebp
ret
Function at 0x41a17d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x41a18b
and dword [esi], 0
mov eax, dword [ebp + 0x10]
xor edx, edx
inc edx
test eax, eax
je 0x41a1cd
push 0
lea ecx, [ebp + 0x14]
push ecx
mov ecx, 0x8000
cmp eax, ecx
cmovae eax, ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov edx, eax
mov eax, dword [ebp + 0x14]
add dword [ecx + 8], eax
adc dword [ecx + 0xc], 0
test esi, esi
je 0x41a1cd
add dword [esi], eax
test edx, edx
setne al
movzx eax, al
push eax
call fcn.00419cc8
pop ecx
pop esi
pop ebp
ret 0x10

Function at 0x420ce3
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be28a
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4f030c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00424acc
lea ecx, [esi + 0x30]
call fcn.00420c89
push dword [esi + 0x24]
call fcn.00435f15
pop ecx
lea ecx, [esi + 0xc]
call fcn.00402a86
mov ecx, esi
call fcn.00420ba0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x429770
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4f030c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x4c6bb0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4297b8
xor eax, eax
jmp 0x4298a2
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0047a400
add esp, 0xc
mov dword [ebp - 0x41c], 0x104
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], 1
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x420]
push eax
push ebx
push 0x4c41d4
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x429884
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0047a400
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push str.Internet_Exploreriexplore.exe
push eax
call fcn.004819eb
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4297b1
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.0047df11
pop ecx
pop ecx
jmp 0x42989f
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0047df11
pop ecx
pop ecx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00435df1
mov esp, ebp
pop ebp
ret 4
Function at 0x4298b4
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4f030c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x20c]
push 0x208
push edi
push eax
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], edi
call fcn.0047a400
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x218]
add esp, 0xc
mov ebx, 0x20019
push eax
push ebx
push edi
push 0x4c6b00
push SysReAllocStringLen
call esi
test eax, eax
je 0x429924
xor eax, eax
jmp 0x4299f2
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
push str.shell
push dword [ebp - 0x218]
call esi
test eax, eax
jne 0x42991d
lea eax, [ebp - 0x214]
push eax
push ebx
push edi
push str.opencommand
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x42991d
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x104
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], 1
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x4c41d4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x214]
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00481ed3
mov edi, 0x4c6bac
push edi
push eax
call fcn.0047b6e3
add esp, 0xc
test eax, eax
je 0x42991d
lea esi, [eax + 2]
push edi
push esi
call fcn.0047b6e3
pop ecx
pop ecx
test eax, eax
je 0x42991d
xor ecx, ecx
push esi
mov word [eax], cx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435df1
mov esp, ebp
pop ebp
ret

Function at 0x429a28
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fa4
call fcn.00436d80
mov eax, dword [0x4f030c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push edi
mov edi, 0x800
xor ebx, ebx
push edi
push ebx
push eax
call fcn.0047a400
push edi
lea eax, [ebp - 0x1004]
push ebx
push eax
call fcn.0047a400
add esp, 0x18
lea eax, [ebp - 0x1fa4]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Program_FilesInternet_Exploreriexplore.exe
push 0x4c6b98
call fcn.0047df33
pop ecx
lea ecx, [ebp - 0x1fa4]
lea eax, [ecx + eax*2]
push eax
call fcn.0047df11
lea eax, [ebp - 0x1fa4]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0047df11
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.0047df11
lea eax, [ebp - 0x1fa4]
push esi
push eax
call fcn.004819eb
add esp, 0x20
push 1
push ebx
push ebx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x429afb
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x804]
push ecx
lea ecx, [ebp - 0x1004]
push ecx
call fcn.00476060
add esp, 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00435df1
mov esp, ebp
pop ebp
ret 4