joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fb88
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41fb9d
xor al, al
jmp 0x41fc5f
mov eax, dword [ebp + 8]
mov edx, dword [eax]
test edx, edx
jne 0x41fbf7
mov edx, dword [esi + 0x68]
and dword [eax + 4], 0
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x10]
mov dword [ecx], eax
mov eax, dword [edx + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x18]
mov cx, word [edx + 0x18]
mov word [eax], cx
movzx eax, byte [edx + 6]
mov ecx, dword [ebp + 0x1c]
push eax
movzx eax, byte [edx + 7]
add eax, edx
push eax
call fcn.00413735
test al, al
setne al
jmp 0x41fc5f
movzx ecx, word [edx + 4]
test cx, cx
je 0x41fb96
push edi
mov edi, ecx
mov ecx, dword [eax + 4]
add ecx, edi
cmp ecx, dword [esi + 0x6c]
jb 0x41fc11
xor al, al
jmp 0x41fc5e
mov dword [eax + 4], ecx
add edx, edi
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x10]
mov dword [ecx], eax
mov eax, dword [edx + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0x18]
mov cx, word [edx + 0x18]
mov word [eax], cx
movzx eax, byte [edx + 6]
mov ecx, dword [ebp + 0x1c]
push eax
movzx eax, byte [edx + 7]
add eax, edx
push eax
call fcn.00413735
test al, al
setne al
pop edi
pop esi
pop ebp
ret 0x18
Function at 0x4311c2
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x7c]
push edi
call fcn.0041bcc4
xor ebx, ebx
lea eax, [ebp - 5]
push ebx
push 0x80
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.004268bb
test al, al
je 0x431304
cmp dword [ebp - 0x3c], ebx
je 0x431208
push 0x40b5b4
jmp 0x4312fd
push ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x7c]
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [ebp - 0xc]
push eax
push 4
pop esi
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.0041d175
test al, al
je 0x4312f8
cmp dword [ebp - 0xc], esi
jne 0x4312f8
cmp byte [ebp + 8], bl
jne 0x431273
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0x444b4843
push eax
push esi
push ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x7c]
mov dword [eax], ebx
mov dword [eax + 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0041d729
test al, al
je 0x431304
cmp dword [ebp - 0xc], esi
je 0x4312f4
jmp 0x431304
call fcn.00419738
mov esi, eax
test esi, esi
je 0x431304
push ecx
push ecx
mov edx, esp
lea ecx, [esi + 0x10]
mov dword [edx], ecx
mov dword [edx + 4], ebx
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.0041f22b
test al, al
jne 0x431304
xor eax, eax
mov dword [ebp + 8], ebx
lea edi, [ebp - 0x24]
mov ecx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov edi, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], 0x444b4843
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x10
push ecx
push ecx
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp - 0x7c]
mov dword [eax + 4], ebx
lea eax, [ebp - 0x24]
push eax
call fcn.0041d729
test al, al
je 0x431304
cmp dword [ebp - 0xc], 0x10
jne 0x431304
mov ecx, dword [ebp + 8]
inc edi
add ecx, esi
mov dword [ebp + 8], ecx
cmp edi, 2
jb 0x4312c0
mov bl, 1
jmp 0x431304
push 0x40b5e4
call dword [sym.imp.ntdll.dll_DbgPrint]
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.0041bd3f
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4333cf
Capabilities:
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlComputeCrc32]
mov ebx, edx
push 1
mov dword [ebp - 4], ecx
lea esi, [ebx + 0x40]
push esi
push 0
call edi
push 1
lea ecx, [ebx + 0x41]
push ecx
push eax
call edi
push 4
lea ecx, [ebp - 4]
push ecx
push eax
call edi
push 8
push ebx
push eax
call edi
movzx ecx, byte [esi]
add ecx, ecx
push ecx
lea ecx, [ebx + 0x42]
push ecx
push eax
call edi
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x433425
Capabilities:
Hash data with crc32

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x18
pop edi
push edi
mov esi, ecx
mov ebx, edx
push esi
push 0
call dword [sym.imp.ntdll.dll_RtlComputeCrc32]
cmp byte [0x47d139], 2
mov ecx, eax
jb 0x43344f
test dword [esi + 0x30], 0x400
jne 0x433452
push 0x16
pop edi
push edi
lea eax, [esi + 0x20]
push eax
push ecx
call dword [sym.imp.ntdll.dll_RtlComputeCrc32]
pop edi
pop esi
mov dword [ebx], eax
pop ebx
ret

Function at 0x43e35e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push esi
push edi
mov edi, ecx
push 0x20
mov dword [ebp - 0x10], edi
pop esi
movzx eax, word [edi + 0x10]
movzx ecx, word [edi + 0xe]
mov dword [ebp - 4], eax
mov edi, eax
mov dword [ebp - 0xc], ecx
movzx eax, ax
and ecx, ebx
sub esi, edi
xor edx, ecx
mov ecx, eax
shr ebx, cl
mov ecx, dword [ebp - 0xc]
test si, si
jg 0x43e389
mov edi, dword [ebp - 0x10]
movzx eax, dx
imul esi, eax, 0xc
add esi, dword [edi + 8]
cmp dword [esi + 8], 0
jne 0x43e3ce
movzx ecx, word [edi + 0x12]
shl ecx, 2
call fcn.004143f5
mov dword [esi + 8], eax
test eax, eax
jne 0x43e3c4
xor al, al
jmp 0x43e412
and dword [esi], 0
movzx eax, word [edi + 0x12]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp dword [esi], eax
jne 0x43e3f4
movzx edx, word [edi + 0x12]
mov ecx, dword [esi + 8]
add edx, eax
shl edx, 2
call fcn.0041462c
test eax, eax
je 0x43e3c0
mov dword [esi + 8], eax
movzx eax, word [edi + 0x12]
add dword [esi + 4], eax
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [ebp + 0xc]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 8]
inc dword [esi]
mov edx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401c22
Capabilities:
Parse pe header

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

Function at 0x4067e7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00406155

Function at 0x4067f2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00406390

Function at 0x40ca10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ca3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ca3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401e10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401e29
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401e64
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401e60
lea ebx, [ebx]
cmp esi, eax
jae 0x401e64
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401e50
cmp esi, eax
jb 0x401e6a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4024ee
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x42cda8]
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 0x40258c
push 0x42388c
push 4
push eax
call fcn.00410167
push eax
call fcn.00401e80
add esp, 0x10
push ebx
push edi
call fcn.004105c6
mov edi, dword [eax]
call fcn.004105c6
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.0041056c
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.004105c6
cmp dword [eax], ebx
je 0x4025a3
call fcn.004105c6
push dword [eax]
call fcn.00402466
pop ecx
jmp 0x4025aa
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40253d
jmp 0x40261c
call fcn.004105c6
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x402618
cmp dword [ebp - 0x40], esi
jae 0x402618
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.00410610
add esp, 0xc
push 0x4235ec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x40260a
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40260a
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40260a
push ebx
push ebx
push esi
jmp 0x402610
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40261a
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.0040f61d
add ebp, 0x1f4
leave
ret
Function at 0x4048be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x421864
call fcn.0040fdbc
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.0040b0c8
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x404909
call fcn.0040b0c8
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 0x40491a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x404927
or eax, 0xffffffff
jmp 0x404a83
mov ecx, esi
call fcn.004043e3
mov dword [ebp - 0x14], eax
call fcn.0040775c
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4049a5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4049a5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4049a5
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.004024b6
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4049a5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4049a5
mov ecx, ebx
call fcn.0040a4cf
test eax, eax
je 0x4049a5
push 0
mov ecx, ebx
call fcn.0040a4ea
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040909a
push dword [ebp - 0x14]
call fcn.004076b4
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004046c6
xor edi, edi
cmp eax, edi
je 0x404a02
test byte [esi + 0x3c], 0x10
je 0x4049ec
push 4
pop edi
mov ecx, esi
call fcn.0040a47a
test ax, 0x100
je 0x4049e2
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040724a
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x404a02
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040a52c
or dword [ebp - 4], 0xffffffff
jmp 0x404a2d
cmp dword [ebp - 0x28], edi
je 0x404a3b
push 1
mov ecx, ebx
call fcn.0040a4ea
cmp dword [ebp - 0x2c], edi
je 0x404a4b
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x404a64
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x404a64
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.0040441d
cmp dword [esi + 0x58], edi
je 0x404a80
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0040fe28
ret
Function at 0x40a1b4
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 0x40a1f7
call fcn.0040b0c8
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40a1f7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a212
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00409d6e
test ebx, ebx
mov esi, eax
je 0x40a210
test edi, edi
je 0x40a210
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40c443
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 0x40c471
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40c48f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040c3ad
jmp 0x40c48f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40c48f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040c3ad
test edi, edi
mov eax, edi
jne 0x40c479
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x42fd28]
test ecx, ecx
je 0x40c552
jmp 0x40c442
ret 8
Function at 0x412a52
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 + 0x42cdc0]
je 0x412a6d
inc edi
cmp edi, 0x17
jb 0x412a5e
cmp edi, 0x17
jae 0x412bed
push ebp
push 3
call fcn.00419c00
cmp eax, 1
pop ecx
je 0x412bb9
push 3
call fcn.00419c00
test eax, eax
pop ecx
jne 0x412aa1
cmp dword [0x42cc14], 1
je 0x412bb9
cmp ebx, 0xfc
je 0x412bec
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x430040
push ebp
call fcn.00419b9b
add esp, 0xc
test eax, eax
je 0x412ad7
push esi
push esi
push esi
push esi
push esi
call fcn.004142df
add esp, 0x14
push 0x104
mov esi, 0x430059
push esi
push 0
mov byte [0x43015d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412b1b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00419b9b
add esp, 0xc
test eax, eax
je 0x412b1b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004142df
add esp, 0x14
push esi
call fcn.00419b10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x412b60
push esi
call fcn.00419b10
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x430354
push 0x425614
sub ecx, eax
push ecx
push eax
call fcn.00419a50
add esp, 0x14
test eax, eax
je 0x412b60
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004142df
add esp, 0x14
jmp 0x412b62
xor esi, esi
push 0x425610
push ebx
push ebp
call fcn.004199df
add esp, 0xc
test eax, eax
je 0x412b82
push esi
push esi
push esi
push esi
push esi
call fcn.004142df
add esp, 0x14
push dword [edi*8 + 0x42cdc4]
push ebx
push ebp
call fcn.004199df
add esp, 0xc
test eax, eax
je 0x412ba4
push esi
push esi
push esi
push esi
push esi
call fcn.004142df
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00419822
add esp, 0xc
jmp 0x412bec
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x412bec
cmp ebp, 0xffffffff
je 0x412bec
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42cdc4]
push dword [esi]
call fcn.00419b10
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 0x419822
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00413616
xor ebx, ebx
cmp dword [0x430af8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4198f8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4199d8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4199d8
push eax
call fcn.004135a8
mov dword [esp], 0x4257d8
push edi
mov dword [0x430af8], eax
call esi
push eax
call fcn.004135a8
mov dword [esp], 0x4257c4
push edi
mov dword [0x430afc], eax
call esi
push eax
call fcn.004135a8
mov dword [0x430b00], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040fef4
test eax, eax
pop ecx
pop ecx
je 0x4198c6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004142df
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4198f8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004135a8
cmp eax, ebx
pop ecx
mov dword [0x430b08], eax
je 0x4198f8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004135a8
pop ecx
mov dword [0x430b04], eax
mov eax, dword [0x430b04]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41997d
cmp dword [0x430b08], ecx
je 0x41997d
push eax
call fcn.0041361f
push dword [0x430b08]
mov esi, eax
call fcn.0041361f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41997d
cmp edi, ebx
je 0x41997d
call esi
cmp eax, ebx
je 0x41994a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41994a
test byte [ebp - 0x18], 1
jne 0x41997d
lea eax, [ebp - 0x10]
push eax
call fcn.0040ff2b
test eax, eax
pop ecx
je 0x419965
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004142df
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x419974
or dword [ebp + 0x10], 0x200000
jmp 0x4199b8
or dword [ebp + 0x10], 0x40000
jmp 0x4199b8
mov eax, dword [0x430afc]
cmp eax, dword [ebp - 8]
je 0x4199b8
push eax
call fcn.0041361f
cmp eax, ebx
pop ecx
je 0x4199b8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4199b8
mov eax, dword [0x430b00]
cmp eax, dword [ebp - 8]
je 0x4199b8
push eax
call fcn.0041361f
cmp eax, ebx
pop ecx
je 0x4199b8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430af8]
call fcn.0041361f
cmp eax, ebx
pop ecx
je 0x4199d8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4199da
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42129e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42cda8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00421233
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.00410610
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 0x4212ed
cmp dword [ebp - 0x1c], 5
jb 0x421305
jmp 0x421301
cmp dword [ebp - 0x10], 1
jne 0x421305
cmp dword [ebp - 0x1c], 4
ja 0x421301
jne 0x421305
cmp dword [ebp - 0x18], 0
jbe 0x421305
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x426a28
call fcn.00421124
test eax, eax
jge 0x421326
mov byte [0x430cd4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040f61d
add ebp, 0x78
leave
ret
Function at 0x44411b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x114], ecx
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x444188
mov dword [ebp - 0x110], 0x104
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x444386
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
ja 0x4444c4
lea edx, [ebp - 0x20c]
push edx
push str..htm
push 0x80000000
mov ecx, dword [ebp - 0x214]
call fcn.0044411b
test eax, eax
jne 0x4444c4
push str._shellopencommand
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0x80000000
mov ecx, dword [ebp - 0x214]
call fcn.0044411b
test eax, eax
jne 0x4444c4
push str.__1_
lea eax, [ebp - 0x20c]
push eax
call fcn.004467a0
add esp, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x444484
push 0x481984
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004467a0
add esp, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x444479
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x20d]
mov dword [ebp - 0x210], eax
jmp 0x444482
mov ecx, dword [ebp - 0x210]
mov byte [ecx], 0
jmp 0x44448d
mov edx, dword [ebp - 0x210]
mov byte [edx], 0
push 0x481988
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x449be5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x482770
cmp edx, dword [eax]
je 0x449c07
add eax, 8
inc ecx
cmp eax, 0x482800
jl 0x449bf8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x482770]
jne 0x449d35
mov eax, dword [0x485280]
cmp eax, 1
je 0x449d0f
test eax, eax
jne 0x449c38
cmp dword [0x482144], 1
je 0x449d0f
cmp edx, 0xfc
je 0x449d35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x449c6f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004466b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004475a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x449cb2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004475a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46744c
push edi
call fcn.0044c8c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004466b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004466c0
lea eax, [ebp - 0xa0]
push 0x46742c
push eax
call fcn.004466c0
push dword [esi + 0x482774]
lea eax, [ebp - 0xa0]
push eax
call fcn.004466c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0044c828
add esp, 0x2c
pop edi
jmp 0x449d35
lea eax, [ebp + 8]
lea esi, [esi + 0x482774]
push 0
push eax
push dword [esi]
call fcn.004475a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret