joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3c1000
Capabilities:
Accept command line arguments
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x3c10bd
cmp dword [esp + 0x34], 2
jne 0x3c10b6
push 0x40
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 0x44
push 0
push eax
call fcn.003c21b0
add esp, 0xc
xor edi, edi
push dword [esi + 4]
call fcn.003c4936
add esp, 4
test eax, eax
jle 0x3c10b2
lea eax, [esp + 0x80]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x3c]
movaps xmmword [esp + 0x84], xmm0
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [esi + 4]
inc edi
call fcn.003c4936
add esp, 4
cmp edi, eax
jl 0x3c1074
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x3d64d0
push 0x67
push edi
call esi
push 0x64
push 0x3d6408
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [esp + 0x40], 0x30
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 0x3c1240
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6b
push dword [esp + 0x50]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 6
mov dword [esp + 0x64], 0x6d
mov dword [esp + 0x68], 0x3d6408
call esi
mov dword [esp + 0x64], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x3d64d0
push 0x3d6408
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x3c119e
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.003c126a
mov esp, ebp
pop ebp
ret 0x10
push 7
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
je 0x3c121a
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax + eax]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x3c1209
lea eax, [esp + 0x18]
push eax
call edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
jne 0x3c11e0
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
xor ecx, esp
call fcn.003c126a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x3c1aa0
Capabilities:
Parse pe header

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

Function at 0x3c6bd0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x3c6c1b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.003c6d6b
test al, al
jne 0x3c6c15
sub edx, 2
cmp edx, edi
jne 0x3c6bfb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x3c6c3d
lea eax, [edi + 2]
cmp edx, eax
je 0x3c6c3d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.003c6b1c
add esp, 0x10
jmp 0x3c6d37
push esi
lea ecx, [ebp - 0x255]
call fcn.003c6d6b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x3c6c80
push dword [ebp - 0x25c]
jmp 0x3c6c2d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x3c6cbd
cmp word [ebp - 0x226], 0
je 0x3c6cde
cmp word [ebp - 0x226], ax
jne 0x3c6cbd
cmp word [ebp - 0x224], 0
je 0x3c6cde
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.003c6b1c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x3c6d2a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x3c6c97
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x3c6d12
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x3c6d37
push 0x3c694c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.003c9870
add esp, 0x10
jmp 0x3c6d07
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.003c126a
leave
ret

Function at 0x3c87e8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x3d01f4
push 0x3d01ec
push str.FlsAlloc
push 0x1f
call fcn.003c8723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x3c881c
push dword [ebp + 8]
mov ecx, esi
call dword [0x3ce150]
call esi
jmp 0x3c8822
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x3c8866
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x3d0204
push 0x3d01fc
push str.FlsGetValue
push 0x21
call fcn.003c8723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x3c889d
push dword [ebp + 8]
mov ecx, esi
call dword [0x3ce150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x3c88a5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x3d020c
push 0x3d0204
push str.FlsSetValue
push 0x22
call fcn.003c8723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x3c88df
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x3ce150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x3cd5a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x3cd5cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x3cd5cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401267
Capabilities:
Encode data using xor

Disassembly:
jmp 0x408230
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x4083b7
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
nop dword [eax]
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x86
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x20
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xa2
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xdc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x3a
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x88
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x20
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xf9
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xfb
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xd8
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x4c
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xcc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x7d
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x83
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x28
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x20
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x67
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x11
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x1a
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xc7
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x6e
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x56
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xef
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xed
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x28
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x86
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xb8
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xa5
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x96
inc edi
cmp edi, ebx
jb 0x408250
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x402680
Capabilities:
Terminate process

Disassembly:
jmp 0x418452
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x418463
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00403ac6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402716
Capabilities:
Query environment variable

Disassembly:
jmp 0x448f88
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x448f99
pop esi
ret
push ebx
push edi
push esi
call fcn.00448e6f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402c48
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x448fc1
push ebx
push esi
push edi
call fcn.00403990
add esp, 0xc
push 0
call fcn.00403fe9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4039fe
Capabilities:
Parse pe header

Disassembly:
jmp 0x40a8f5
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a934
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a934
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a934
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a934
cmp dword [ecx + 0x74], 0xe
jbe 0x40a934
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x446e6f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x446eba
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00447430
test al, al
jne 0x446eb4
sub edx, 2
cmp edx, edi
jne 0x446e9a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x446edc
lea eax, [edi + 2]
cmp edx, eax
je 0x446edc
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00446a68
add esp, 0x10
jmp 0x446fd6
push esi
lea ecx, [ebp - 0x255]
call fcn.00447430
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x446f1f
push dword [ebp - 0x25c]
jmp 0x446ecc
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x446f5c
cmp word [ebp - 0x226], 0
je 0x446f7d
cmp word [ebp - 0x226], ax
jne 0x446f5c
cmp word [ebp - 0x224], 0
je 0x446f7d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00446a68
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x446fc9
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x446f36
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x446fb1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x446fd6
push 0x44634e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040389b
add esp, 0x10
jmp 0x446fa6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402356
leave
ret
Function at 0x459c59
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x478208]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x459c99
cmp byte [ebx], 0xa
jne 0x459c99
or byte [eax + edi + 0x28], 4
jmp 0x459c9e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x459d9c
mov al, byte [edx]
cmp al, 0x1a
je 0x459d7e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x459ccd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x459cf2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x459cfc
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x459caf
jmp 0x459d9c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x459d79
cmp dword [ebp - 0xc], 0
je 0x459d79
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x478208]
test byte [eax + edi + 0x28], 0x48
je 0x459d53
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x459d3e
mov byte [esi], dl
jmp 0x459d4f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x478208]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x459d9c
cmp byte [ebp - 1], 0xa
jne 0x459d62
cmp esi, ebx
jne 0x459d62
mov byte [esi], 0xa
jmp 0x459d9b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040156e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x459d9c
mov byte [esi], 0xd
jmp 0x459d9b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x478208]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x459d98
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x459d9c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x459df8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x478208]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x459e3b
cmp word [esi], dx
jne 0x459e3b
or byte [edi + eax + 0x28], 4
jmp 0x459e40
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x459f93
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x459f73
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x459e82
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x459eb8
cmp eax, edx
jae 0x459ec4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x459e5a
jmp 0x459f93
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x459f6f
cmp dword [ebp - 0x14], 0
je 0x459f6f
mov eax, dword [ebx*4 + 0x478208]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x459f47
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x459f10
mov word [esi], cx
jmp 0x459f43
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x478208]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x478208]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x478208]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x459f93
pop ebx
cmp word [ebp - 4], bx
jne 0x459f58
cmp esi, dword [ebp + 0xc]
jne 0x459f58
mov word [esi], bx
jmp 0x459f90
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040156e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x459f93
push 0xd
jmp 0x459f8c
mov ecx, dword [ebx*4 + 0x478208]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x459f8a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x459f93
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x430002
Capabilities:
Authenticate hmac
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x603610a1
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data_1
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x2313032d
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402680
Capabilities:
Terminate process

Disassembly:
jmp 0x418452
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x418463
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00403ac6
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402716
Capabilities:
Query environment variable

Disassembly:
jmp 0x448f88
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x448f99
pop esi
ret
push ebx
push edi
push esi
call fcn.00448e6f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402c48
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x448fc1
push ebx
push esi
push edi
call fcn.00403990
add esp, 0xc
push 0
call fcn.00403fe9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4039fe
Capabilities:
Parse pe header

Disassembly:
jmp 0x40a8f5
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a934
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a934
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a934
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a934
cmp dword [ecx + 0x74], 0xe
jbe 0x40a934
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x82f370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x82f38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x858074
push ecx
mov edi, eax
call fcn.00843198
mov esi, eax
add esp, 8
test esi, esi
jne 0x82f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0084302e
push esi
call fcn.00842fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x832850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x8328ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x85d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8328ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.008431e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x8328ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x85d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x83292a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00844082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x832957
mov word [eax], si
add eax, 2
push eax
call fcn.00844030
add esp, 4
jmp 0x832959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x8328ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8328b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x832ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret