joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a87c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0042e78c
xor esi, esi
inc esi
cmp dword [0x44b2a4], esi
pop ecx
jne 0x42a8a4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x44b2a0], esi
mov byte [0x44b29c], al
jne 0x42a90a
mov ecx, dword [0x44caac]
test ecx, ecx
je 0x42a8eb
mov eax, dword [0x44caa8]
sub eax, 4
cmp eax, ecx
jmp 0x42a8e4
mov eax, dword [eax]
test eax, eax
je 0x42a8d6
call eax
mov eax, dword [0x44caa8]
sub eax, 4
cmp eax, dword [0x44caac]
mov dword [0x44caa8], eax
jae 0x42a8ce
mov eax, 0x446028
mov esi, 0x446030
cmp eax, esi
mov edi, eax
jae 0x42a90a
mov eax, dword [edi]
test eax, eax
je 0x42a903
call eax
add edi, 4
cmp edi, esi
jb 0x42a8fb
mov eax, 0x446034
mov esi, 0x446038
cmp eax, esi
mov edi, eax
jae 0x42a929
mov eax, dword [edi]
test eax, eax
je 0x42a922
call eax
add edi, 4
cmp edi, esi
jb 0x42a91a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x42a93a
push 8
call fcn.0042e6f8
jmp 0x42a94c
push dword [ebp + 8]
mov dword [0x44b2a4], 1
call fcn.0042a7d5
pop ecx
pop ebp
ret

Function at 0x42c4e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42c504
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042d312
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42c527
test byte [esp + 8], 2
je 0x42c527
call fcn.0042d300
mov dword [eax], 0xd
call fcn.0042d309
mov dword [eax], 5
jmp 0x42c500
xor eax, eax
ret
Function at 0x42ce38
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x42cffe
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x44b960]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x42cffe
test cl, 0x48
je 0x42ce9e
mov al, byte [eax + 5]
cmp al, 0xa
je 0x42ce9e
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42cef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42ced8
call fcn.0042d300
mov dword [eax], 9
call fcn.0042d309
mov dword [eax], esi
jmp 0x42cee8
cmp eax, 0x6d
je 0x42cffe
push eax
call fcn.0042d312
pop ecx
or eax, 0xffffffff
jmp 0x42d000
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x42cff9
test edx, edx
je 0x42cf13
cmp byte [ebx], 0xa
jne 0x42cf13
or al, 4
jmp 0x42cf15
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x42cff3
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x42cfe3
cmp al, 0xd
je 0x42cf49
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x42cfd5
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42cf63
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x42cf5e
add dword [ebp + 0x10], 2
jmp 0x42cfb7
mov dword [ebp + 0x10], eax
jmp 0x42cfd1
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42cf8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42cfd1
cmp dword [ebp - 0xc], 0
je 0x42cfd1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42cfac
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42cfb7
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42cfd4
cmp ebx, dword [ebp + 0xc]
jne 0x42cfbc
cmp byte [ebp - 1], 0xa
jne 0x42cfbc
mov byte [ebx], 0xa
jmp 0x42cfd4
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00430b5d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42cfd5
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x42cf2d
jmp 0x42cff3
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x42cff3
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x42d000
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42d0b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x449e50]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x42d0d9
xor eax, eax
jmp 0x42d247
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x44b960]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x42d10c
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0042c648
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42d1de
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x42d219
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x42d167
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42d158
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x42d13b
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42d1a7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x42d1b0
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x42d12c
jmp 0x42d1b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x42d242
cmp dword [ebp - 8], edi
je 0x42d219
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x42d20b
call fcn.0042d300
mov dword [eax], 9
call fcn.0042d309
mov dword [eax], esi
jmp 0x42d214
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42d200
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x42d1b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x42d1b2
push dword [ebp - 8]
call fcn.0042d312
pop ecx
or eax, 0xffffffff
jmp 0x42d245
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42d22e
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x42d22e
xor eax, eax
jmp 0x42d245
call fcn.0042d300
mov dword [eax], 0x1c
call fcn.0042d309
mov dword [eax], edi
jmp 0x42d214
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00430729
leave
ret
Function at 0x4304f8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x44b44c], ebx
push esi
push edi
jne 0x430578
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4305b3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44436c
push edi
call esi
test eax, eax
mov dword [0x44b44c], eax
je 0x4305b3
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x44b450], eax
call esi
cmp dword [0x44b264], 2
mov dword [0x44b454], eax
jne 0x430578
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x44b45c], eax
je 0x430578
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x44b458], eax
mov eax, dword [0x44b458]
test eax, eax
je 0x4305bd
call eax
test eax, eax
je 0x4305a4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x44b45c]
test eax, eax
je 0x4305a4
test byte [ebp - 8], 1
jne 0x4305bd
cmp dword [0x44b270], 4
jb 0x4305b7
or byte [ebp + 0x12], 0x20
jmp 0x4305dc
xor eax, eax
jmp 0x4305ec
or byte [ebp + 0x12], 4
jmp 0x4305dc
mov eax, dword [0x44b450]
test eax, eax
je 0x4305dc
call eax
mov ebx, eax
test ebx, ebx
je 0x4305dc
mov eax, dword [0x44b454]
test eax, eax
je 0x4305dc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x44b44c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430c7c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x449e50]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x449e60]
je 0x430ca9
inc eax
cmp eax, 0x12
jb 0x430c9a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x449e60]
jne 0x430ddd
mov eax, dword [0x44b2b4]
cmp eax, 1
je 0x430db8
cmp eax, edx
jne 0x430cd9
cmp dword [0x4499c8], 1
je 0x430db8
cmp ecx, 0xfc
je 0x430ddd
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x430d12
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00430600
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0042db10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x430d54
lea eax, [ebp - 0x10c]
push eax
call fcn.0042db10
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x443e38
push edi
call fcn.0042ad20
add esp, 0x10
push edi
call fcn.0042db10
push dword [esi + 0x449e64]
mov ebx, eax
call fcn.0042db10
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00431390
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00430600
push edi
push ebx
call fcn.00430610
push 0x443e34
push ebx
call fcn.00430610
push dword [esi + 0x449e64]
push ebx
call fcn.00430610
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004304f8
add esp, 0x2c
jmp 0x430ddd
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x449e64]
push dword [esi]
call fcn.0042db10
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.00430729
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4323e3
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00431390
mov eax, dword [0x449e50]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00430b5d
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x43250d
push 2
push esi
push dword [ebp + 8]
call fcn.00430b5d
add esp, 0xc
cmp eax, ebx
je 0x43250d
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4324b0
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00432da0
push 0x8000
push dword [ebp + 8]
call fcn.00434340
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x432469
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0042d0b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x432489
sub edi, eax
test edi, edi
jg 0x432461
jmp 0x4324a1
call fcn.0042d309
cmp dword [eax], 5
jne 0x43249e
call fcn.0042d300
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00434340
pop ecx
pop ecx
jmp 0x4324f8
jge 0x4324f8
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00430b5d
push dword [ebp + 8]
call fcn.0042cc15
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4324f8
call fcn.0042d300
mov dword [eax], 0xd
call fcn.0042d309
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00430b5d
add esp, 0xc
mov eax, esi
pop edi
jmp 0x43250f
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00430729
leave
ret
Function at 0x43324e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00431390
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4332e3
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x44b264]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4332e3
cmp eax, 1
je 0x4332fb
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4332e3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4332b8
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4332df
xor eax, eax
inc eax
jmp 0x433317
cmp esi, ebx
jae 0x4332e7
xor eax, eax
jmp 0x433317
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44b264]
jmp 0x4332fd
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433545
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x449e50]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4335c0
push ebx
call fcn.0043350e
test eax, eax
pop ecx
jne 0x433592
call fcn.0042d309
mov dword [eax], 0xf
call fcn.0042d300
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.00430729
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4335d2
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x433582
inc eax
cmp eax, 0x104
ja 0x433582
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x43360a
cmp eax, dword [ebp + 0x10]
jg 0x4335ed
mov eax, dword [ebp + 0x10]
push eax
call fcn.0042a754
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x43361f
call fcn.0042d300
mov dword [eax], 0xc
jmp 0x433582
cmp eax, dword [ebp + 0x10]
jle 0x43361f
call fcn.0042d300
mov dword [eax], 0x22
jmp 0x433582
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.00430600
pop ecx
pop ecx
jmp 0x433584
Function at 0x433acd
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x433b38
push 0x3d
push dword [ebp + 8]
call fcn.0043443c
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x433b38
cmp dword [ebp + 8], esi
je 0x433b38
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x44b284]
cmp eax, dword [0x44b288]
jne 0x433b1e
mov edi, eax
call fcn.00433a6c
mov dword [0x44b284], eax
cmp eax, ebx
jne 0x433b77
cmp dword [ebp + 0xc], ebx
je 0x433b40
cmp dword [0x44b28c], ebx
je 0x433b40
call fcn.00431bd5
test eax, eax
je 0x433b77
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x433c7b
push 4
call fcn.0042a754
cmp eax, ebx
pop ecx
mov dword [0x44b284], eax
je 0x433b38
mov dword [eax], ebx
cmp dword [0x44b28c], ebx
jne 0x433b77
push 4
call fcn.0042a754
cmp eax, ebx
pop ecx
mov dword [0x44b28c], eax
je 0x433b38
mov dword [eax], ebx
mov ebx, dword [0x44b284]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00433a1f
mov edi, eax
test edi, edi
pop ecx
jl 0x433bd0
cmp dword [ebx], 0
je 0x433bd0
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0042a63c
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x433bb8
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x433c06
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x433baf
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0042c060
test eax, eax
pop ecx
pop ecx
je 0x433c06
jmp 0x433c01
cmp dword [ebp - 4], 0
jne 0x433c74
test edi, edi
jge 0x433be0
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0042c060
test eax, eax
pop ecx
pop ecx
je 0x433b38
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x44b284], eax
cmp dword [ebp + 0xc], 0
je 0x433c5d
push dword [ebp + 8]
call fcn.0042db10
inc eax
inc eax
push eax
call fcn.0042a754
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x433c5d
push dword [ebp + 8]
push esi
call fcn.00430600
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x433c56
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0042a63c
pop ecx
cmp dword [ebp - 4], 0
je 0x433c6c
push dword [ebp + 8]
call fcn.0042a63c
pop ecx
mov eax, dword [ebp - 8]
jmp 0x433b3b
push esi
call fcn.0042a63c
pop ecx
xor eax, eax
jmp 0x433b3b
Function at 0x40b490
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40b4cb
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40b4b2
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40b4c3
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40b4cd
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40b4a8
xor eax, eax
pop edi
pop esi
ret

Function at 0x40b650
Capabilities:
Contain obfuscated stackstrings

Disassembly:
clc
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.0040b450
sbb eax, 0xf22ef1c
mov bh, 0x47
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.0040b450
push ecx
cmp dl, byte [ebx + 0x478b662b]
push es
cmp ax, bx
jbe 0x40b6aa
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x40b6a4
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x40b695
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
inc ebp
mov eax, 0xb945c6c8
cmpsd dword [esi], dword es:[edi]
call fcn.0040b450
lcall 0xa845, 0x8d7b01fc
push eax
call fcn.0040b460
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0040b415
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40b73e
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0040b450
wait
in eax, 0xb5
bound ecx, qword [ebp - 0x17af3fbb]
invalid
Function at 0x40be3c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
invalid
test dword [esp + edi*8], esp

Function at 0x419a84
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x419a8a
ret

Function at 0x41c1d4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41c225
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41c20c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41c1fc
jmp 0x41c225
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41c20d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d2ec
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44d491
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40fa6c]
call fcn.00402f70
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403b94
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44d467
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043ca48
test al, al
je 0x44d45a
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44d4a0
lea eax, [ebp - 0x254]
call fcn.00409748
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44d45a
xor eax, eax
push ebp
push 0x44d453
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44d4d8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44d43c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403dc0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x44d43c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403dc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d45a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44d35d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00413558
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d498
lea eax, [ebp - 0x260]
call fcn.00403b94
ret