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

Disassembly:
sub esp, 0x214
mov eax, dword [0x432040]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x18], cl
push 0x27
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x4808b0]
mov byte [esp + ecx + 0x118], al
inc ecx
cmp ecx, ebp
jl 0x401f65
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x18]
movzx eax, byte [esp + esi + 0x118]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x401fab
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + ebx + 0x18], dl
cmp esi, ebp
jl 0x401f88
mov ebx, edi
mov ebp, edi
inc edi
and edi, 0x800000ff
jns 0x401fd1
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x18]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x401fea
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x18]
sub esp, 0x10
movaps xmm0, xmmword [0x42ed90]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movups xmmword [esp], xmm0
call fcn.0040f7e0
add esp, 0x10
fstp dword [esp + 0x14]
movss xmm1, dword [esp + 0x14]
call fcn.004023d8
push eax
call fcn.004047a7
movzx eax, byte [esp + edi + 0x1c]
add eax, esi
movzx eax, al
pop ecx
mov al, byte [esp + eax + 0x18]
xor byte [ebp + section..bss], al
inc ebp
cmp ebp, 0x4b400
jl 0x401fc0
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409173
add esp, 0x214
ret

Function at 0x40238e
Capabilities:
Create thread

Disassembly:
push ecx
call fcn.00402500
xor eax, eax
push eax
push eax
push eax
push 0x402236
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
ret
Function at 0x10007803
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x1000ba37
call fcn.1000ad64
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x100079d7
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.1000a3b2
add esp, 0xc
test eax, eax
js 0x100079d1
mov esi, dword [ebp - 0x41c]
cmp esi, 0x400
jg 0x1000789f
push esi
call fcn.1000415a
pop ecx
test al, al
je 0x1000789f
mov eax, esi
call fcn.1000b08f
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x100078ab
push esi
lea ecx, [ebp - 0x428]
call fcn.1000a3b2
push 3
push esi
push edi
push eax
call fcn.1000a3b2
test eax, eax
je 0x100079d1
push 2
push ebx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
test edi, edi
jne 0x100078df
call fcn.1000436e
mov esi, eax
jmp 0x100079b6
push dword [ebp - 0x424]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x10007902
call fcn.1000436e
jmp 0x100079ad
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x100078f8
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x420], esi
cmp eax, esi
jae 0x10007932
mov esi, 0x8007000e
jmp 0x100079af
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1000a3b2
mov dword [ebp - 4], 1
jmp 0x10007971
cmp dword [ebp - 0x418], 0
je 0x1000792b
push esi
push dword [ebp - 0x424]
push esi
push dword [ebp - 0x418]
call fcn.1000a3b2
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.1000a3b2
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100079f1
lea ecx, [ebp - 0x418]
call fcn.10007ab8
jmp 0x100079f1
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x100079ec
lea ecx, [ebp - 0x418]
call fcn.10007ab8
mov esi, 0x8007000e
lea ecx, [ebp - 0x428]
call fcn.10002e8b
mov eax, esi
lea esp, [ebp - 0x444]
call fcn.1000adbd
ret 0x10
Function at 0x1000a02b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10001f10]
jne 0x1000af38
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1000eba8], eax
mov dword [0x1000eba4], ecx
mov dword [0x1000eba0], edx
mov dword [0x1000eb9c], ebx
mov dword [0x1000eb98], esi
mov dword [0x1000eb94], edi
mov word [0x1000ebc0], ss
mov word [0x1000ebb4], cs
mov word [0x1000eb90], ds
mov word [0x1000eb8c], es
mov word [0x1000eb88], fs
mov word [0x1000eb84], gs
pushfd
pop dword [0x1000ebb8]
mov eax, dword [ebp]
mov dword [0x1000ebac], eax
mov eax, dword [ebp + 4]
mov dword [0x1000ebb0], eax
lea eax, [ebp + 8]
mov dword [0x1000ebbc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1000eaf8], 0x10001
mov eax, dword [0x1000ebb0]
mov dword [0x1000eaac], eax
mov dword [0x1000eaa0], 0xc0000409
mov dword [0x1000eaa4], 1
mov eax, dword [0x10001f10]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1000e7d0]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1000eaf0], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10002110
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1000eaf0], 0
jne 0x1000b024
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x403d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov eax, dword [edi + 0x3c]
mov ebp, dword [eax + edi + 0x78]
lea esi, [eax + edi + 0x78]
add ebp, edi
mov dword [esp + 0x1c], esi
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
add edx, edi
add eax, edi
add ecx, edi
test dword [esp + 0x28], 0xffff0000
mov dword [esp + 0x18], edx
jne 0x403db5
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x10]
and eax, 0xffff
cmp eax, ecx
jb 0x403e4e
mov ebx, dword [ebp + 0x14]
add ebx, ecx
cmp eax, ebx
ja 0x403e4e
sub eax, ecx
mov ebx, dword [edx + eax*4]
add ebx, edi
jmp 0x403e32
mov edx, dword [ebp + 0x18]
test edx, edx
jbe 0x403e32
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [ecx]
mov esi, dword [esp + 0x28]
add eax, edi
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x403df4
test cl, cl
je 0x403df0
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x403df4
add esi, 2
add eax, 2
test cl, cl
jne 0x403dd0
xor eax, eax
jmp 0x403df9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403e0d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ax, word [ecx]
mov ebx, dword [edx + eax*4]
add ebx, edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
add ecx, 4
add edx, 2
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], eax
jne 0x403dc8
mov esi, dword [esp + 0x1c]
cmp ebx, ebp
jb 0x403e95
mov eax, dword [esi + 4]
add eax, ebp
cmp ebx, eax
jae 0x403e95
push ebx
call fcn.0040f49c
mov esi, eax
add esp, 4
test esi, esi
jne 0x403e58
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0x2e
push esi
xor ebx, ebx
call fcn.0040eae0
add esp, 8
mov edi, eax
mov byte [edi], bl
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x403e80
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x403e8c
push edi
push eax
call fcn.00403d50
add esp, 8
mov ebx, eax
push esi
call fcn.0040ea85
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4054e0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x437133
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x130], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14c]
mov dword [esp + 8], 0
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
push ecx
push eax
push eax
call fcn.00403760
add esp, 0xc
mov esi, eax
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push esi
call fcn.00402fa0
mov eax, dword [esp + 0x144]
mov dword [edi + 8], esi
test eax, eax
jbe 0x4055a9
mov eax, dword [esp + 0x140]
test eax, eax
jne 0x405561
mov eax, 0x439998
mov edx, dword [esp + 0x138]
lea ecx, [esp + 8]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4055b4
push 1
lea ecx, [esp + 0x140]
mov dword [esp + 0x134], 0xffffffff
call fcn.00402d20
pop edi
pop esi
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
add esp, 0x12c
ret
mov eax, dword [esp + 0x138]
mov dword [esp + 8], eax
push ebx
push ebp
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push 0x104
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, eax
test ebx, ebx
jne 0x405698
mov cl, byte [esp + 0x1b]
push eax
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
call fcn.00402d20
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x13c], 1
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
call fcn.004031d0
test al, al
je 0x40563f
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov byte [eax + ebp], bl
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
jbe 0x405660
mov ecx, dword [esp + 0x154]
lea edx, [esp + 0x1c]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00405b60
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x138], 0
cmp ecx, esi
je 0x40568c
mov al, byte [ecx - 1]
test al, al
je 0x405682
cmp al, 0xff
je 0x405682
dec al
mov byte [ecx - 1], al
jmp 0x40568c
dec ecx
push ecx
call fcn.00420fbe
add esp, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov ecx, dword [esp + 0x14]
inc ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x4055be
mov eax, dword [esp + 0x140]
pop ebp
test eax, eax
pop ebx
je 0x4056c1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x140]
test ecx, ecx
je 0x4056fd
mov al, byte [ecx - 1]
test al, al
je 0x4056f3
cmp al, 0xff
je 0x4056f3
dec al
pop edi
mov byte [ecx - 1], al
pop esi
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
add esp, 0x12c
ret
dec ecx
push ecx
call fcn.00420fbe
add esp, 4
mov ecx, dword [esp + 0x128]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x41325d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4488f8
cmp edx, dword [eax]
je 0x41327f
add eax, 8
inc ecx
cmp eax, 0x448988
jl 0x413270
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4488f8]
jne 0x4133ad
mov eax, dword [0x44b9dc]
cmp eax, 1
je 0x413387
test eax, eax
jne 0x4132b0
cmp dword [0x448404], 1
je 0x413387
cmp edx, 0xfc
je 0x4133ad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4132e7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413750
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413840
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41332a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413840
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43e3ac
push edi
call fcn.00415000
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413750
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413760
lea eax, [ebp - 0xa0]
push 0x43e38c
push eax
call fcn.00413760
push dword [esi + 0x4488fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413760
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00414f70
add esp, 0x2c
pop edi
jmp 0x4133ad
lea eax, [ebp + 8]
lea esi, [esi + 0x4488fc]
push 0
push eax
push dword [esi]
call fcn.00413840
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
Function at 0x41d3a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4371f4
call fcn.0040ede8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00432540
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41d3e2
call fcn.00432540
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41d3f0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41d3fe
or eax, 0xffffffff
jmp 0x41d4e6
mov ecx, esi
call fcn.0041d319
mov dword [ebp - 0x14], eax
call fcn.0041e1b1
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41d435
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41d435
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041e165
push dword [ebp - 0x14]
call fcn.0041dcb3
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041d0a6
cmp eax, edi
je 0x41d4a8
test byte [esi + 0x24], 0x10
je 0x41d476
push 4
mov ecx, esi
pop ebx
call fcn.0042076b
test ah, 1
je 0x41d46e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00420104
cmp dword [esi + 0x1c], edi
je 0x41d4a8
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004208dc
jmp 0x41d4a8
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41d4bc
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41d4d5
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41d4d5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041d353
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41fead
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41feef
call fcn.00432540
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41feef
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41fee6
xor eax, eax
jmp 0x41fef7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041fefd
pop edi
pop esi
pop ebx
ret 4
Function at 0x433f11
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 0x433f3f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x433f5d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00433e77
jmp 0x433f5d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x433f5d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00433e77
test edi, edi
mov eax, edi
jne 0x433f47
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4111d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
inc ebx
push ebx
xor edi, edi
push edi
push 0x431bfc
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0x200
call esi
test eax, eax
jne 0x411235
lea eax, [ebp - 8]
push eax
push str.EnableJavaUpdate
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
call main
add esp, 0xc
test eax, eax
je 0x411227
cmp dword [ebp - 8], ebx
je 0x41122a
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x411243
push str.ISAUDisabled__:_Error_opening_HKLM_Policy_key_for_reading
call main
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], edi
jne 0x4112d5
call fcn.00410107
test eax, eax
jne 0x4112d2
call main
test eax, eax
je 0x4112d2
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push 0x431c74
push 0x80000001
call esi
test eax, eax
jne 0x4112d5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push 0x431c9c
push dword [ebp - 0xc]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp esi, edi
jne 0x4112d5
mov dword [ebp - 8], edi
call fcn.0040feb9
test eax, eax
je 0x4112c7
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.0040ff5d
mov eax, dword [ebp - 8]
add esp, 0x10
jmp 0x4112cd
mov eax, dword [ebp - 0x210]
cmp eax, 0x64
jne 0x4112d5
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x413fbf
pop dword [ebp - 0x28]
mov eax, 0x413fbf
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x426a6
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x28b12037
sub ecx, 0x28b0d4f5
xor ebx, ebx
add ebx, eax
mov edx, 0xf606556a
add edx, 0xa3db296
add edx, dword [ebp - 0x28]
mov edi, 0x48ac0725
add edi, 0x5b7f34a9
sub dword [ebp - 4], 0xd6f6f577
mov esi, dword [edx]
sub dword [ebp - 0x14], ecx
add esi, edi
xor dword [ebp - 0x10], eax
mov dword [ebx], esi
mov dword [ebp - 0x24], 0x1d0245a3
add ebx, 4
add edx, 4
loop 0x414016
add eax, 0x11fdb
mov ebx, eax
add eax, 0x37573f36
add eax, 0xc8a8c0cf
mov ecx, 0x5e14344
add ecx, 0xfa5ebcbc
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x4187e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43a210]
jne 0x4187ee
repz ret
jmp fcn.00420617

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403208
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.00417820
push edi
push esi
push ebx
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x2010], 0
mov dword [ebp - 0x200c], 0
test esi, esi
jg 0x403244
jne 0x403373
test ebx, ebx
jbe 0x403373
add esp, 0xfffffff4
push 0
lea eax, [ebp - 0x2004]
push eax
mov eax, ebx
mov edx, esi
sub eax, dword [ebp - 0x2010]
sbb edx, dword [ebp - 0x200c]
js 0x403270
jne 0x40326b
cmp eax, 0x2000
jb 0x403270
mov eax, 0x2000
push eax
lea edi, [ebp - 0x2000]
push edi
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x403292
mov edx, dword [ebp - 0x2004]
test edx, edx
jne 0x4032c4
add esp, 0xfffffff4
mov eax, dword [ebp - 0x2010]
mov edx, dword [ebp - 0x200c]
push edx
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push dword [ebp - 0x2004]
push 0x4031d2
call fcn.004086e0
mov eax, 1
jmp 0x403375
cmp byte [ebp + 0x18], 0
je 0x4032dd
xor eax, eax
cmp eax, edx
jae 0x4032dd
xor byte [eax + edi], 0x88
inc eax
cmp eax, dword [ebp - 0x2004]
jb 0x4032d0
xor edi, edi
cmp edi, dword [ebp - 0x2004]
jae 0x403346
nop
add esp, 0xfffffff4
push 0
lea eax, [ebp - 0x2008]
push eax
mov eax, dword [ebp - 0x2004]
sub eax, edi
push eax
lea eax, [edi + ebp - 0x2000]
push eax
mov edx, dword [ebp + 0xc]
push edx
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
test eax, eax
jne 0x403338
add esp, 0xfffffffc
call sub.KERNEL32.dll_GetLastError
push eax
mov eax, dword [ebp - 0x2004]
sub eax, edi
push eax
push 0x4031ee
call fcn.004086e0
mov eax, 2
jmp 0x403375
add edi, dword [ebp - 0x2008]
cmp edi, dword [ebp - 0x2004]
jb 0x4032e8
mov eax, dword [ebp - 0x2004]
add dword [ebp - 0x2010], eax
adc dword [ebp - 0x200c], 0
cmp esi, dword [ebp - 0x200c]
jg 0x403244
jne 0x403373
cmp ebx, dword [ebp - 0x2010]
ja 0x403244
xor eax, eax
lea esp, [ebp - 0x2028]
pop ebx
pop esi
pop edi
leave
ret