joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4045c1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x408398]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esi + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x48]
cmp cl, bl
mov dword [esi + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x44]
mov byte [esp + 0x20], 1
mov dword [esi + 0xc], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], ebx
jne 0x4032c4
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x48], edi
jbe 0x403291
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x403278
mov edi, eax
add ecx, 0x10
sub edx, 1
jne 0x403270
cmp edi, 0x100000
mov dword [esp + 0x48], edi
mov eax, 0x40651c
ja 0x403295
lea eax, [esp + 0x48]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.004038eb
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x4032bb
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x24], edi
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor ecx, ecx
mov eax, ebp
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.004038eb
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, ebx
mov byte [esp + 0x20], 2
je 0x403312
push 0x402410
push 0x4023d0
push ebp
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebp
call fcn.00403a33
jmp 0x403314
xor edi, edi
mov eax, dword [esi + 0x2c]
cmp eax, edi
mov byte [esp + 0x20], 1
je 0x403344
cmp eax, ebx
je 0x403341
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402410
push ecx
push 0x44
push eax
call fcn.004039d0
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.00402e70
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x24

Function at 0x4038fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408398]
jne 0x403906
repz ret
jmp fcn.00403dae

Function at 0x438c85
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x438a14
sub ecx, esi
add ecx, 0x8e72d5d3
and esi, ecx
call fcn.00438cc7
sub ecx, 0x5b84939e
or esi, esi
add esi, esi
xor dword [edx], eax
and esi, esi
add ecx, esi
and ecx, esi
add edx, 1
or ecx, ecx
cmp edx, edi
jne fcn.00438c85
sub ecx, esi
mov ecx, 0xb78eb2fe
ret
Function at 0xa0b810
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa0b960
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa0b836
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0b822
add dl, dl
jne 0xa0b841
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0b894
xor eax, eax
add dl, dl
jne 0xa0b84e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa0b935
add dl, dl
jne 0xa0b85d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0b868
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0b873
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0b87e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa0b88a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa0b82d
mov eax, 1
add dl, dl
jne 0xa0b8a2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa0b8ad
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa0b899
sub eax, ebx
mov ebx, 1
jne 0xa0b8e0
mov ecx, 1
add dl, dl
jne 0xa0b8c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa0b8d1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa0b8bd
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa0b82d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa0b8f7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa0b902
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa0b8ee
cmp eax, 0x7d00
jae 0xa0b925
cmp eax, 0x500
jb 0xa0b920
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa0b82d
cmp eax, 0x7f
ja 0xa0b928
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa0b82d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa0b956
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa0b82d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x41cec2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436064]
jne 0x41cecc
repz ret
jmp fcn.0041f35c

Function at 0x428fdb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x436064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004224d2
and dword [ebp - 0x14], 0
cmp dword [0x43945c], 0
mov dword [ebp - 0x18], eax
jne 0x42908e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x429136
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x429136
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43945c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x439460], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x439464], eax
call edi
push eax
call esi
mov dword [0x43946c], eax
test eax, eax
je 0x42908e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x439468], eax
mov eax, dword [0x439468]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4290e7
cmp dword [0x43946c], ecx
je 0x4290e7
push eax
call esi
push dword [0x43946c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4290e7
test ebx, ebx
je 0x4290e7
call edi
test eax, eax
je 0x4290de
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4290de
test byte [ebp - 8], 1
jne 0x4290e7
or dword [ebp + 0x10], 0x200000
jmp 0x42911a
mov eax, dword [0x439460]
cmp eax, dword [ebp - 0x18]
je 0x42911a
push eax
call esi
test eax, eax
je 0x42911a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42911a
mov eax, dword [0x439464]
cmp eax, dword [ebp - 0x18]
je 0x42911a
push eax
call esi
test eax, eax
je 0x42911a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43945c]
call esi
test eax, eax
je 0x429136
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x429138
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cec2
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x416010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b88
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b68
xor eax, eax
push ebp
push 0x402b61
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402ba4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402b68
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x416010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x416010], ax
mov esp, ebp
pop ebp
ret

Function at 0x40343c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x417034], 0
je 0x40349d
cmp word [0x417208], 0xd7b2
jne 0x403465
cmp dword [0x417210], 0
jbe 0x403465
mov eax, 0x417204
call dword [0x417220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x416058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4034c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41601c], 0
jne 0x4034b9
push 0
push 0x416050
push 0x416058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4035f8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402818
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x417035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4035c0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x403b8c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403bf2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403770
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004029e4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403bdc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403bf9
lea eax, [ebp - 0x10]
call fcn.0040363c
ret
Function at 0x405170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [edi + 5]
push eax
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x4052c6
test edi, edi
jle 0x40543e
mov ecx, edi
dec ecx
test ecx, ecx
jl 0x40543e
inc ecx
xor esi, esi
mov eax, ebx
add eax, 5
xor edx, edx
push edx
push eax
mov eax, esi
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0x90
inc esi
dec ecx
jne 0x4052dc
jmp 0x40543e
mov byte [ebx], 0xe9
mov edx, ebx
mov eax, edx
add eax, 5
push eax
mov eax, dword [ebp - 4]
pop ecx
sub eax, ecx
inc edx
mov dword [edx], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
add edi, 5
push edi
push ebx
call sub.kernel32.dll_VirtualProtect
jmp 0x40558f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ac3c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
jmp 0x40ad81
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x40], 0xe9
jne 0x40b313
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x40aee2
cmp byte [ebp - 5], 5
je 0x40aef2
cmp byte [ebp - 5], 0xa
jne 0x40b06e
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [ebp - 4]
call fcn.0040a578
mov dword [ebp - 0x10], eax
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
mov byte [eax], 0xb8
jmp 0x40b04b
push 4
lea ecx, [ebp - 0x10]
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
inc edx
mov eax, dword [0x4160fc]
mov eax, dword [eax]
call fcn.0040406c
jmp 0x40b1c2
mov dword [ebp - 0x14], 0x4160b4
jmp 0x40b1a5
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [0x4160fc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.0040406c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x40b30d
mov byte [ebp - 6], 1
jmp 0x40b317
mov byte [ebp - 6], 0
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret

Function at 0x40b320
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
jmp 0x40b455
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
cmp byte [edx + eax + 0x40], 0xe9
jne 0x40b736
lea eax, [ebp - 0xc]
push eax
push 0x40
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x40b5b8
push 5
xor eax, eax
mov al, byte [ebp - 5]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 4]
lea ecx, [edx + eax + 0x40]
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax*4 + 4]
mov eax, dword [0x4160fc]
mov eax, dword [eax]
call fcn.0040406c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 5
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 4]
push eax
call sub.kernel32.dll_VirtualProtect
jmp 0x40b730
mov byte [ebp - 6], 1
jmp 0x40b73a
mov byte [ebp - 6], 0
mov al, byte [ebp - 6]
mov esp, ebp
pop ebp
ret
Function at 0x401160
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ecx, 0x4180a1
call fcn.0040207e
lea eax, [ebp - 4]
push eax
call fcn.004012b0
add esp, 4
test al, al
je 0x4012a2
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4011a9
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x4012a2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.CreateToolhelp32Snapshot
push ebx
call esi
mov edi, dword [ebp + 8]
push str.Process32First
push ebx
mov dword [edi], eax
call esi
push str.Process32Next
push ebx
mov dword [edi + 4], eax
call esi
push str.Module32First
push ebx
mov dword [edi + 8], eax
call esi
push str.Module32Next
push ebx
mov dword [edi + 0xc], eax
call esi
push str.Thread32First
push ebx
mov dword [edi + 0x10], eax
call esi
push str.Thread32Next
push ebx
mov dword [edi + 0x14], eax
call esi
push 0x40f26c
push ebx
mov dword [edi + 0x18], eax
call esi
push str.OpenThread
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.VirtualAllocEx
push ebx
mov dword [edi + 0x20], eax
call esi
push str.VirtualFreeEx
push ebx
mov dword [edi + 0x24], eax
call esi
cmp byte [ebp - 4], 0
mov dword [edi + 0x28], eax
je 0x40123b
mov dword [edi + 0x20], 0x401a20
jmp 0x401241
cmp byte [ebp - 3], 0
je 0x40124f
mov dword [edi + 0x28], 0x401b30
mov dword [edi + 0x24], 0x401ae0
cmp dword [edi], 0
je 0x401299
cmp dword [edi + 4], 0
je 0x401299
cmp dword [edi + 8], 0
je 0x401299
cmp dword [edi + 0xc], 0
je 0x401299
cmp dword [edi + 0x10], 0
je 0x401299
cmp dword [edi + 0x14], 0
je 0x401299
cmp dword [edi + 0x18], 0
je 0x401299
cmp dword [edi + 0x1c], 0
je 0x401299
cmp dword [edi + 0x20], 0
je 0x401299
cmp dword [edi + 0x24], 0
je 0x401299
cmp dword [edi + 0x28], 0
je 0x401299
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4012b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x416004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x4180a1
call fcn.0040207e
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4012fd
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020b0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x94]
cmp eax, 1
jne 0x401323
cmp edx, 4
jne 0x401323
cmp ecx, 0xa
ja 0x401323
mov byte [esi], 1
jmp 0x401330
mov byte [esi], 0
cmp eax, 1
jne 0x401339
cmp edx, 4
jne 0x401339
cmp ecx, 0x5a
jb 0x401339
mov cl, 1
jmp 0x40133b
xor cl, cl
cmp eax, 2
mov byte [esi + 1], cl
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
mov byte [esi + 2], al
mov al, 1
pop esi
call fcn.004020b0
mov esp, ebp
pop ebp
ret
Function at 0x402000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x418144
call fcn.0040207e
push str.Laser
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x402040
push 0x40
push str.Information
push str.The_program_is_already_running_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop ebp
ret 0x10
push 4
call fcn.004020be
add esp, 4
push eax
push 0
push 0
push 0x401b80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp + 8]
push 0
push 0x401dc0
push 0
push 0x65
push eax
mov dword [0x416950], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
xor eax, eax
pop ebp
ret 0x10

Function at 0x402b08
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408c6b
push ebx
push esi
call fcn.00408b97
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00408ae0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x408c18
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408c6a
push edi
push eax
call fcn.004076c7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x408c38
call fcn.00407772
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408c69
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00408ae0
add esp, 0x20
test eax, eax
jne 0x408c57
push edi
call fcn.00407772
jmp 0x408c5f
push ebx
call fcn.00407772
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x409a44
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411278
push 0x411270
push str.FlsAlloc
push 0x1e
call fcn.00409962
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409a78
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f18c]
call esi
jmp 0x409a7e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x409ac2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411288
push 0x411280
push str.FlsGetValue
push 0x20
call fcn.00409962
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409af9
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f18c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40e640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e66d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e66d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x108e605e
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x274a0275
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219