joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fd9a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x438278]
xor eax, esp
mov dword [esp + 8], eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 8]
mov dword [ebp - 4], ebx
add edi, 2
jmp 0x41fdd0
add esp, 8
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
movzx ecx, byte [ecx]
sub eax, ecx
lea ecx, [ebp - 0x2c]
call fcn.0041a672
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0041d02c
add esp, 0x1c
inc dword [ebp - 0x10]
add edi, 0x14
jmp 0x41fe1c
mov ecx, dword [eax + 0x40]
and ecx, 1
je 0x41fe06
sub esi, ecx
push esi
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 0x14]
jb 0x41fe11
cmp dword [ebp + 0xc], 0
ja 0x41fe45
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [0x438338]
mov dword [0x43833c], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x39]
push eax
lea eax, [ebp - 0x10]
push 0
fnstsw ax
test ah, 0x41
jnp 0x41fe50
xor eax, eax
leave
ret

Function at 0x42425a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xac]
cmp ecx, 1
jg 0x424294
xor eax, eax
inc eax
push eax
call esi
push eax
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x42427a
cmp eax, 0x24
jg 0x424283
push dword [ebp + 0x1c]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
cmp eax, ecx
jb 0x42429e
call fcn.0040c9da
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.004325c8
mov edx, dword [ebp - 0x14]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
jae 0x4242b6
inc ecx
mov eax, dword [ebp - 0x18]
and dword [eax + 0x70], 0xfffffffd
mov eax, esi
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0xfffffffffffffffe
pop edi
pop ebx
mov al, byte [ebp - 1]
leave
ret 4

Function at 0x4267b7
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x4380f4]
mov dword [ebp - 0x328], eax
mov eax, dword [0x4383bc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x438144
lea ecx, [ebp - 0x42c]
push ecx
call fcn.0040fb00
mov eax, dword [eax + 4]
mov esp, ebp
pop ebp
ret
Function at 0x4273fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov dword [ebp - 0x98], esi
cmp eax, ebx
jne 0x427402
add eax, 0x10
imul eax, eax, 0x14
add eax, ecx
mov ecx, eax
mov eax, dword [ecx + 0x6c]
cmp eax, dword [0x438124]
je 0x427410
cmp eax, 0xc0000092
jne 0x427438
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
mov ebx, edi
jne 0x42743b
test bl, 4
jne 0x42742f
mov esi, dword [ebp - 0x10]
test cl, cl
je 0x427429
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0xb4]
xor ecx, ebp
pop ebx
je 0x427450
mov al, byte [esi]
or al, al
jne 0x427455
cmp dword [ebp + 0x10], 0
jne 0x427455
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x427450
mov ecx, dword [ebp - 4]
mov eax, dword [edx]
call eax
pop ebp
ret 0xc

Function at 0x427781
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x438064]
xor eax, ebp
mov dword [ebp - 0x10], eax
je 0x427784
mov ecx, dword [ebp - 0x18]
and dword [ecx + 0x70], 0xfffffffd
jmp 0x427784

Function at 0x427e21
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
cmp ecx, 0x100
je 0x427e3e
cmp dword [ebp + 0x10], ebx
mov byte [esi], bl
call fcn.004249e8
mov esi, eax
cmp esi, edi
je 0x427e59
xor edx, edx
add eax, dword [ebp - 0x1014]
adc edx, dword [ebp - 0x1010]
mov ecx, dword [ebp - 4]
sub ecx, 0x54
push ecx
call fcn.0040916e
mov eax, dword [ebp - 0x14]
mov dword [eax + edx], 0x4382ac
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x24]
push ecx
push esi
jne 0x427e77
call fcn.0042c67b
mov esi, dword [ebp + 8]
movsx eax, byte [esi]
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
and dword [ecx], ebx
jmp 0x427ebc
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
jle 0x427eb3
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
call fcn.00432c79
add esp, 4
jmp 0x427eea
neg eax
pop ecx
push 0x4380e0
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00430725
pop ecx
cmp ebx, edi
je 0x427ee8
mov dword [0x438090], esi
jmp 0x427f00

Function at 0x429cbc
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
mov eax, dword [0x438250]
xor eax, esp
mov dword [esp + 8], eax
mov dword fs:[0], esp
mov eax, dword [esp + 0x30]
mov ebx, dword [eax + 8]
mov ebp, ebx
cmp ecx, 0x100
jb 0x429d01
sub bl, al
sub bl, 3
movsx ecx, bl
sub ecx, 0x30
jmp 0x429cde
cmp eax, ecx
jae 0x429d0c
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jge 0x429cf9
push 0x1b
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cwde
add edi, eax
test byte [ebp - 0x10], 1
je 0x429cf5
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x24]
mov byte [edx + eax], cl
mov cx, word [edi]
inc edi
jmp 0x429d09
Function at 0x42a5c1
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x438094], eax
pop ebp
mov ecx, dword [eax + 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
jae 0x42a5e7
cmp dx, si
ja 0x42a5d3
xor eax, eax
mov ecx, dword [ebp - 4]
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [ebp - 8], eax
jl 0x42a5d3
mov ecx, dword [ebp - 8]
add ecx, 0x44
call fcn.00406cb9
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x42a5e7
mov ecx, dword [ebp + 0x10]
mov eax, 0x8000
and ecx, eax
push esi
push edi
call dword [sym.imp.GDI32.dll_LineTo]
test eax, eax
jne 0x42a610
push dword [esi + 0x54]
call fcn.0042e9c9
cmp dword [ebp + 8], 1
mov eax, dword [ebp - 0x1c]
and dword [eax + 0x70], 0xfffffffd
mov eax, esi
pop ebx
mov esp, ebp
pop ebp
pop edi
pop esi
mov dword [eax], esi
jmp 0x42a652
pop edi
mov eax, esi
pop esi
pop ebx
je 0x42a655
mov ecx, edi
and ecx, eax
cmp ecx, eax
jne 0x42a652
cmp esi, edi
jne 0x42a653
lea eax, [edi - 1]
jmp 0x42a679
dec dword [ebp - 0x40]
cmp dword [ebp - 0x40], 0
jbe 0x42a676
jmp 0x42a661

Function at 0x42c42e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x4380fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
jae 0x42c43c
test bl, bl
jne 0x42c43c
cmp dword [0x4383a8], esi
jne 0x42c45e
mov eax, dword [edi]
mov cl, byte [ebp - 7]
mov byte [esi + eax + 0x25], cl
mov eax, dword [edi]
mov byte [esi + eax + 0x26], 0xa
jmp 0x42c483
call ebx
push edi
fnstsw ax
test ah, 5
jnp 0x42c49c
xor eax, eax
xor ecx, ecx
cmp eax, 0xffffffff
je 0x42c4a1
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp edx, 0xffffffff
je 0x42c4bf
mov ecx, dword [eax + edx*4 + 0xc4]
and ecx, dword [ebp - 8]
and edi, esi
or edx, edi
jne 0x42c4a8
add esp, 0x40
push dword [esi + 0x80]
call fcn.00420ead
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x14]
cmp dword [ebp + 8], eax
jne 0x42c4ab
call fcn.00429f3a
add eax, 0xc
cmp eax, esi
jne 0x42c4ba
pop esi
mov ebx, ebp
pop ebp
ret 0x20
Function at 0x430b58
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x32]
mov esi, ecx
mov edx, 0x7fff
xor esi, eax
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
xor esi, eax
cmp esi, edi
jae 0x430b5b
mov eax, dword [edi]
add dword [ebp - 0x10], ecx
lea eax, [esi + eax + 4]
test byte [eax], 0x40
je 0x430b93
xor eax, eax
inc eax
inc edx
and dword [ebp - 0xc], 0
and dword [ebp + 8], 0
xor edx, edx
test bl, 1
jne 0x430ba8
inc esi
mov ecx, 0xe50
movzx ecx, word [esi]
movzx eax, word [edx]
cmp ax, 0x41
jb 0x430b91
cmp ax, 0x5a
cmp ecx, 0x5c
je 0x430b9d
cmp dword [ebp + 0x10], edi
je 0x430ba2
test eax, eax
jne 0x430bd1
push edi
call fcn.0041e809
cmp byte [ebp + 0xf], 0
je 0x430bc0
mov ecx, eax
mov eax, dword [ecx + 0x6c]
cmp eax, dword [0x438164]
je 0x430bc0
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
call fcn.00433ce5
pop ecx
cmp eax, 0x78
jne 0x430bce
cmp dword [ebp - 0x1c], eax
je 0x430bfd
push edi
call fcn.004255b4
add esp, 0x10
cmp dword [ebp - 0x40], eax
jne 0x430bea
xor eax, eax
cmp dword [ebp - 0x30], 0x2d
sete al
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
push eax
push 0x2c
push 0x438218
call fcn.0041b9ae
cmp esi, ebx
jl 0x430c15
mov dl, byte [ebx]
mov ecx, dword [edi]
mov byte [esi + ecx + 0x26], dl
inc ebx
jmp 0x430c43
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x38], 0x438238
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x44]
push eax
push 0x57
push esi
lea eax, [ebp - 0x10]
push 0
push 3
push 0x40000000
push str.eynss
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [0x43827c], eax
ret
Function at 0x430c19
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x32]
mov esi, ecx
mov edx, 0x7fff
xor esi, eax
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
xor esi, eax
cmp esi, edi
jae 0x430b5b
mov eax, dword [edi]
add dword [ebp - 0x10], ecx
lea eax, [esi + eax + 4]
test byte [eax], 0x40
je 0x430b93
xor eax, eax
inc eax
inc edx
and dword [ebp - 0xc], 0
and dword [ebp + 8], 0
xor edx, edx
test bl, 1
jne 0x430ba8
inc esi
mov ecx, 0xe50
movzx ecx, word [esi]
movzx eax, word [edx]
cmp ax, 0x41
jb 0x430b91
cmp ax, 0x5a
cmp ecx, 0x5c
je 0x430b9d
cmp dword [ebp + 0x10], edi
je 0x430ba2
test eax, eax
jne 0x430bd1
push edi
call fcn.0041e809
cmp byte [ebp + 0xf], 0
je 0x430bc0
mov ecx, eax
mov eax, dword [ecx + 0x6c]
cmp eax, dword [0x438164]
je 0x430bc0
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
call fcn.00433ce5
pop ecx
cmp eax, 0x78
jne 0x430bce
cmp dword [ebp - 0x1c], eax
je 0x430bfd
push edi
call fcn.004255b4
add esp, 0x10
cmp dword [ebp - 0x40], eax
jne 0x430bea
xor eax, eax
cmp dword [ebp - 0x30], 0x2d
sete al
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
push eax
push 0x2c
push 0x438218
call fcn.0041b9ae
cmp esi, ebx
jl 0x430c15
mov dl, byte [ebx]
mov ecx, dword [edi]
mov byte [esi + ecx + 0x26], dl
inc ebx
jmp 0x430c43
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x38], 0x438238
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x44]
push eax
push 0x57
push esi
lea eax, [ebp - 0x10]
push 0
push 3
push 0x40000000
push str.eynss
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [0x43827c], eax
ret
Function at 0x43387d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438188
mov eax, dword fs:[0]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test byte [esi + 4], 1
jne 0x4338a2
inc ebx
add ebx, 0x27
xor edx, edx
or eax, ecx
pop ebx
je 0x4338ac
mov cl, byte [edx]
mov byte [eax], cl
inc eax
mov ebx, eax
mov esi, dword [ebx + 4]
mov edi, ecx
je 0x4338ac
cmp dword [ebp + 0x1c], 0
je 0x4338a5
push ebx
push esi
push edi
push dword [ebp - 0xa8]
call fcn.00407ed1
mov eax, dword [ebp - 0x64]
xor edx, edx
or eax, ecx
dec dword [ebp - 0x44]
mov dword [ebp - 0x1c], ebx
xor eax, eax
cmp dword [ebp + 0x14], esi
je 0x4338ef
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
jne 0x4338d5
mov eax, dword [ebp + 0x10]
and eax, edi
cmp eax, ecx
jne 0x43390c
cmp dword [ebp + 0x10], ebx
jbe 0x433901
inc esi
cmp word [esi], ax
jne 0x4338ec
push edi
call fcn.0040e3bc
pop ecx
jne 0x433912
inc dword [edi]
pop edi
pop esi
mov dword [eax], esi
lea esi, [edi + edi]
mov dword [ebp - 0x20], esi
lea esi, [ecx + 0x426d10]
mov dword [ebp - 0x1c], esi
call fcn.0040b13a
movzx esi, ax
movzx eax, word [edi]
xor esi, esi
cmp edi, esi
jae 0x433938
mov edx, dword [ebp - 0x1abc]
movzx edx, word [edx]
add dword [ebp - 0x1abc], esi
add ecx, esi
test byte [ecx + 4], 0x48
jne 0x433926
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
cmp byte [ecx + 0x43], 0
jne 0x433949
inc eax
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 0
mov eax, dword [0x4382b0]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [ebp - 0xc]
call fcn.00430b58
mov dword [eax], edi
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x438314
mov byte [esi + 0x14], al
call fcn.0041e6f0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
mov edi, ebx
push 0x1000
shl edi, 0xf
add edi, dword [ecx + 0xc]
push 0x8000
push dword [ebp + 8]
call esi
mov ebx, dword [0x438204]
test eax, eax
je 0x433999
push 0x4381e4
push edi
mov edi, dword [ebp + 0x10]
mov eax, edi
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebp
ret

Function at 0x434258
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x438084]
xor eax, ebp
push eax
and ecx, 0xfffff
mov dword [ebp - 8], ecx
test dword [edi], eax
je 0x43425e
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
cdq
sub eax, edx
jne 0x4342b1
movzx eax, byte [ecx + 1]
movzx edx, byte [esi + 1]
sub eax, edx
jne 0x434291
and dword [ebp - 0x100c], edx
jmp 0x4342b1
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x30]
call fcn.00418cdf
cmp dword [ebp - 0x1c], ebx
jne 0x4342ab
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4342e0
call fcn.00427477
push dword [esi + 0x8c]
call fcn.0041b9c4
mov edx, dword [ebp + 0x14]
and edx, 0xffff
movzx eax, dx
add eax, dword [0x4381d8]
mov dword [str.eE_rIc], eax
push 0
mov eax, dword [ebp - 0x1c8]
neg eax
adc edx, ebx
neg edx
sbb eax, 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x1c]
or eax, eax
jl 0x4342fa
jmp 0x434307
Function at 0x435456
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp - 0xc]
inc eax
inc edx
test dword [ebp - 0x34], 0x7fffffff
je 0x435477
inc edx
inc esi
push esi
call fcn.004071ea
mov esi, eax
inc esi
push esi
push ebx
push 0xfffffffffffffff6
pop eax
div edi
cmp eax, 2
jb 0x435479
mov eax, ecx
mov edx, ebx
call fcn.0041d41f
xor edi, edi
cmp esi, edx
jae 0x43547f
mov ecx, eax
sar ecx, 5
mov ecx, dword [ecx*4 + 0x438260]
shl eax, 6
pop ecx
jae 0x4354a1
push 0
call fcn.0042b157
push 0x438338
call fcn.00423bbe
sub eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
call fcn.0043082e
mov eax, dword [ebp - 8]
and dword [eax + 0x70], 0xfffffffd
xor eax, eax
jmp 0x4354b8

Function at 0x484cd8
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x484a08
add eax, eax
inc edi
call fcn.00484d0b
add eax, edi
dec eax
xor dword [ecx], edx
sub edi, eax
add ecx, 2
and eax, eax
mov eax, edi
or eax, edi
cmp ecx, esi
jl fcn.00484cd8
sub edi, 0xbf966edd
add eax, 0xc33491eb
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4028a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x214]
push ebx
mov ebx, eax
sub esp, 0x280
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1c
mov dword [esp], 0
call dword [sym.imp.shell32.dll_SHGetFolderPathW]
sub esp, 0x14
test eax, eax
jns 0x4028f0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x276]
mov dword [esp + 8], 0x31
mov dword [esp + 4], edi
mov dword [esp], 0x40a148
call dword [sym.imp.ole32.dll_StringFromGUID2]
sub esp, 0xc
test eax, eax
je 0x402a69
cmp word [ebp - 0x214], 0
mov edx, esi
je 0x402939
lea esi, [esi]
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x402930
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.MicrosoftWindowsGameExplorerGameStatistics_]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402940
cmp word [ebp - 0x214], 0
mov edx, esi
je 0x402969
nop
add edx, 2
cmp word [edx], 0
jne 0x402960
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402970
cmp word [ebp - 0x214], 0
mov edx, esi
je 0x402999
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x402990
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x4095ec]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4029a0
cmp word [ebp - 0x214], 0
mov edx, esi
je 0x4029c9
nop
add edx, 2
cmp word [edx], 0
jne 0x4029c0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4029d0
cmp word [ebp - 0x214], 0
mov edx, esi
je 0x4029f9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4029f0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x4095f0]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402a00
cmp word [ebp - 0x214], 0
je 0x402a62
mov eax, esi
nop
add eax, 2
cmp word [eax], 0
jne 0x402a20
sub eax, esi
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebx], eax
sub esp, 4
test eax, eax
je 0x402a73
xor edx, edx
lea esi, [esi]
movzx ecx, word [esi + edx]
mov word [eax + edx], cx
add edx, 2
test cx, cx
jne 0x402a48
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x402a2e
mov eax, 0x80004005
jmp 0x4028e4
mov eax, 0x8007000e
jmp 0x4028e4

Function at 0x404cf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [esp], 1
call dword [0x407034]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fflush]
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x406180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00406240
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x402f54
Capabilities:
Contain obfuscated stackstrings

Disassembly:
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 0x402f81
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.00402c93
adc dword [esi + 0x458d81d9], ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid
Function at 0x4032fc
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x403347
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x403342
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40332c
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x403334
cmp edx, ebx
jne 0x403482
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
add eax, dword [eax + 4]
jmp 0x4032f0
mov dword [ebp + 0xc], ebx
jmp 0x403352
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40336a
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x403388
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4033e6
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
adc byte [ecx + 0xe2], al
and byte [ecx + 0x1065], al
invalid
invalid
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4033cd
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4033d6
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4033e0
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4033c2
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40334c
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x403433
dec eax
je 0x40342a
sub eax, 3
je 0x403421
mov dword [ebp - 4], 0x40
jmp 0x403450
das
mov dword [ebp - 4], 4
jmp 0x403436
mov dword [ebp - 4], 0x20
jmp 0x403436
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x403482
invalid
invalid
push esp
invalid

Function at 0x4033b4
Capabilities:
Inspect section memory permissions

Disassembly:
adc byte [ecx + 0xe2], al
and byte [ecx + 0x1065], al
add byte [eax + 0x3b184d8b], al
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4

Function at 0x4077a8
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4077c4
shr eax, 1
xor eax, 0xedb88320
jmp 0x4077c6
shr eax, 1
dec edx
jne 0x4077b7
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4077b0
pop esi
ret
Function at 0x4077dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4077ff
call fcn.004077a8
push 1
push 0x40c558
call fcn.004043fc
mov eax, edi
test esi, esi
je 0x40782a
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407805
mov eax, ebx
pop edi
pop esi
pop ebx
ret