joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013e9
Capabilities:
Get common file path
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
mov dword [ebp - 0x13c], ecx
push eax
xor eax, eax
xor eax, eax
je 0x401409
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add eax, 0x400
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x18]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x1a]
mov dword [ebp - 0x130], eax
push 0
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x130]
mov ecx, dword [ebp - 0x13c]
call fcn.004010e8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x40149f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x138], eax
push dword [ebp - 0x138]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
xor eax, eax
jmp 0x4015b7
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0xc]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0x10], 0
je 0x4014f9
push 0x18
push 0x950
push dword [ebp + 0x10]
call fcn.00401ffa
add esp, 0xc
push 0
lea eax, [ebp - 8]
push eax
push 0x950
push dword [ebp + 0x10]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x18
push 0x950
push dword [ebp + 0x10]
call fcn.00401ffa
add esp, 0xc
and byte [ebp - 0x12c], 0
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xc8
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._svchost.exe
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40156a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x4015b7
and dword [ebp - 0x24], 0
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401648
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push eax
xor eax, eax
xor eax, eax
je 0x40165f
push ebp
adc byte [ecx], 0x58
pop eax
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401688
cmp dword [ebp - 0xc], 0x6f
je 0x401688
jmp 0x40175c
cmp dword [ebp - 0xc], 0x6f
jne 0x4016c9
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call sub.iphlpapi.dll_GetAdaptersInfo
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4016c9
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40175c
push 6
mov eax, dword [ebp - 0x14]
add eax, 0x194
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
and byte [ebp - 4], 0
xor eax, eax
lea edi, [ebp - 3]
stosw word es:[edi], ax
push 0
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
and dword [ebp - 8], 0
jmp 0x401717
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x401742
call dword [sym.imp.MSVCRT.dll_rand]
cdq
push 0x1a
pop ecx
idiv ecx
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 4], dl
mov eax, dword [ebp - 8]
mov al, byte [ebp + eax - 4]
add al, 0x61
mov ecx, dword [ebp - 8]
mov byte [ebp + ecx - 4], al
jmp 0x401710
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
mov byte [eax], cl
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 3]
mov byte [eax + 6], cl
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 2]
mov byte [eax + 7], cl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x223cf20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x14ee015
lea edi, [esi - 0x10ed015]
push edi
or ebp, 0xffffffff
jmp 0x223cf42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x223cf49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x223cf38
mov eax, 1
add ebx, ebx
jne 0x223cf5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x223cf50
jne 0x223cf6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x223cf50
xor ecx, ecx
sub eax, 3
jb 0x223cf80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x223cff2
mov ebp, eax
add ebx, ebx
jne 0x223cf8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x223cf98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x223cfbc
inc ecx
add ebx, ebx
jne 0x223cfa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x223cf9d
jne 0x223cfb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x223cf9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x223cfdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x223cfcd
jmp 0x223cf3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x223cfdc
add edi, ecx
jmp 0x223cf3e
pop esi
mov edi, esi
mov ecx, 0x4e40b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x223cffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x223cfff
lea edi, [esi + 0x1de5000]
mov eax, dword [edi]
or eax, eax
je 0x223d067
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e3d000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e3d028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x223d025
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e3d030]
or eax, eax
je 0x223d061
mov dword [ebx], eax
add ebx, 4
jmp 0x223d042
call dword [esi + 0x1e3d02c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x223d0a1
cmp al, 0xef
ja 0x223d08b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x223d06d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x223d07a
mov eax, dword [edi]
add edi, 4
jmp 0x223d07a
mov ebp, dword [esi + 0x1e3d034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x223d0d5
sub esp, 0xffffff80
jmp 0x471ac0
Function at 0x401120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401139
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40114d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40116e
cmp esi, eax
jae 0x401147
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401160
cmp esi, eax
jae 0x401147
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4213a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00401e50
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004019a0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4037f2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ebp
mov eax, ecx
push esi
shr eax, 4
inc eax
movzx esi, ax
xor eax, eax
mov ax, word [0x42f69c]
push edi
mov edi, dword [esp + 0x14]
and ecx, 0xf
mov ebp, ecx
push eax
push esi
push 6
push edi
call ebx
test eax, eax
jne 0x404d01
push 0x809
push esi
push 6
push edi
call ebx
test eax, eax
jne 0x404d01
push 0x1009
push esi
push 6
push edi
call ebx
test eax, eax
je 0x404d68
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404d68
mov edx, eax
xor eax, eax
mov si, word [edx]
add edx, 2
test si, si
je 0x404d27
cmp eax, ebp
je 0x404d35
movsx ecx, si
lea edx, [edx + ecx*2]
inc eax
cmp eax, 0x10
jl 0x404d12
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
ret
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov ebp, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
push 0
push 0
mov ecx, ebp
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push eax
movsx ecx, si
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
ret
Function at 0x405210
Capabilities:
Get common file path

Disassembly:
mov eax, 0x7434
call fcn.00407520
mov eax, dword [0x42e660]
push ebx
push esi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x743c], eax
call fcn.00403580
lea ecx, [esp + 0x14]
call fcn.00401a00
lea ecx, [esp + 0x10]
call fcn.00401a00
lea eax, [esp + 0x703c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x703c]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405260
mov cx, word [0x422c3c]
mov word [edi], cx
lea edi, [esp + 0x703c]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405280
mov edx, dword [str.Localization.ini]
mov eax, dword [0x422c2c]
mov ecx, dword [0x422c30]
mov dword [edi], edx
mov edx, dword [0x422c34]
mov dword [edi + 4], eax
mov al, byte [0x422c38]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov byte [edi + 0x10], al
lea eax, [esp + 0x703c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4052c0
sub eax, edx
push eax
lea ecx, [esp + 0x7040]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401580
mov esi, dword [esp + 0x744c]
mov edi, dword [esp + 0x7448]
mov ebx, dword [esp + 0x7444]
push esi
push edi
push 0x8c
push ebx
call fcn.00404cb0
add esp, 0xc
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00401a20
lea ecx, [esp + 0x1c]
call fcn.00403b00
push 0x422a7c
lea ecx, [esp + 0x1c]
call fcn.00404370
test eax, eax
jne 0x405416
xor eax, eax
mov ax, word [0x42f69c]
push eax
call fcn.004046a0
push eax
call fcn.00404d70
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00401690
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.CDKEY
call fcn.00401690
lea ecx, [esp + 0x24]
call fcn.00404080
lea ecx, [esp + 0xc]
call fcn.00401a00
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.00401fe0
lea ecx, [esp + 0xc]
call fcn.00405170
lea ecx, [esp + 0xc]
call fcn.00405120
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00401fe0
mov ecx, dword [esp + 0x10]
push 0x422a84
push ecx
call fcn.004082c2
add esp, 8
test eax, eax
jne 0x4053c8
push esi
push edi
push 0x8c
jmp 0x405404
mov edx, dword [esp + 0x10]
push 0x422c1c
push edx
call fcn.004082c2
add esp, 8
test eax, eax
jne 0x4053e7
push esi
push edi
push 0x8d
jmp 0x405404
mov eax, dword [esp + 0x10]
push 0x422c18
push eax
call fcn.004082c2
add esp, 8
test eax, eax
jne 0x40540d
push esi
push edi
push 0x8e
push ebx
call fcn.00404cb0
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.00401410
lea ecx, [esp + 0x10]
call fcn.00401410
lea ecx, [esp + 0x14]
call fcn.00401410
lea ecx, [esp + 0x18]
call fcn.004042a0
mov ecx, dword [esp + 0x743c]
call fcn.0040758e
pop edi
pop esi
pop ebx
add esp, 0x7434
ret
Function at 0x405510
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x50c
push ebx
push eax
push ecx
lea edx, [esp + 0x14]
push str.SOFTWARE_s_s
push edx
xor bl, bl
call fcn.0040813d
add esp, 0x10
lea eax, [esp + 4]
push eax
push 1
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4055a8
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x114]
push eax
push 0
push 0
push str.DisplayName
push ecx
mov dword [esp + 0x20], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40559d
mov edx, dword [esp + 0x51c]
lea eax, [esp + 0x110]
mov ecx, eax
mov bl, 1
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405593
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x50c
ret 0xc

Function at 0x4055c0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x108
push ebx
push eax
push ecx
lea edx, [esp + 0x10]
push str.SOFTWAREElectronic_Arts_s_sergc
push edx
xor bl, bl
call fcn.0040813d
add esp, 0x10
push 0
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40564e
mov edx, dword [esp + 0x118]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405620
sub eax, esi
push eax
push edx
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
jne 0x405643
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x108
ret 0xc
Function at 0x405660
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x294
push esi
mov esi, dword [esp + 0x29c]
push edi
mov edi, dword [esp + 0x2a4]
push edi
push esi
lea eax, [esp + 0x20]
push str.SOFTWAREElectronic_Arts_s_sergc
push eax
call fcn.0040813d
push edi
push esi
lea ecx, [esp + 0xb0]
push str.SOFTWAREElectronic_Arts_s_s
push ecx
call fcn.0040813d
push esi
lea edx, [esp + 0x13c]
push str.SOFTWAREElectronic_Arts_s
push edx
call fcn.0040813d
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x2c
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x80000002
call esi
test eax, eax
jne 0x405767
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea edx, [esp + 0x18]
push edx
push 0x80000002
call edi
test eax, eax
jne 0x405767
lea eax, [esp + 0x98]
push eax
push 0x80000002
call edi
test eax, eax
jne 0x405767
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x124]
push eax
push 0x80000002
call esi
test eax, eax
jne 0x405767
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push eax
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1ac]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x405767
lea edx, [esp + 0x118]
push edx
push 0x80000002
call edi
pop edi
pop esi
add esp, 0x294
ret 8
Function at 0x405a80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
push 0xd
push esi
call fcn.00405780
mov ebx, dword [esp + 0x64]
xor eax, ebx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00405850
lea ebp, [esp + 0x20]
add esp, 0x10
mov eax, esi
sub ebp, esi
nop
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x405ab0
lea eax, [esp + 0x30]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ac0
lea edi, [esp + 0x10]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405ad0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebx
xor ecx, ecx
lea ebx, [ebx]
xor edx, edx
mov dl, byte [esp + ecx + 0x10]
add ecx, 5
xor edx, eax
and edx, 0xff
mov ebx, dword [edx*4 + 0x42fab8]
xor edx, edx
mov dl, byte [esp + ecx + 0xc]
shr eax, 8
xor eax, ebx
xor edx, eax
and edx, 0xff
mov edi, dword [edx*4 + 0x42fab8]
xor edx, edx
mov dl, byte [esp + ecx + 0xd]
shr eax, 8
xor eax, edi
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x42fab8]
xor edx, edx
mov dl, byte [esp + ecx + 0xe]
shr eax, 8
xor eax, esi
xor edx, eax
and edx, 0xff
mov ebx, dword [edx*4 + 0x42fab8]
xor edx, edx
mov dl, byte [esp + ecx + 0xf]
shr eax, 8
xor eax, ebx
xor edx, eax
and edx, 0xff
mov edi, dword [edx*4 + 0x42fab8]
shr eax, 8
xor eax, edi
cmp ecx, 0x14
jl 0x405af0
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00405910
mov eax, dword [esp + 0x60]
add esp, 8
mov cl, byte [eax]
mov byte [eax + ebp], cl
inc eax
test cl, cl
jne 0x405b90
lea eax, [esp + 0x30]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ba0
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405bb0
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push edx
call fcn.004059d0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret

Function at 0x405cd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10c
push ebx
push edi
push eax
mov edi, ecx
mov ecx, dword [esp + 0x11c]
push ecx
lea edx, [esp + 0x18]
push str.SOFTWAREElectronic_Arts_s_sergc
push edx
xor bl, bl
call fcn.0040813d
add esp, 0x10
lea eax, [esp + 8]
push eax
push 1
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405d64
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x124]
push esi
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push 0
push ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405d58
mov edx, dword [edi + 4]
push edx
push esi
call fcn.00405bf0
add esp, 8
test eax, eax
setne bl
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov al, bl
pop ebx
add esp, 0x10c
ret 0x10
Function at 0x40723c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00407520
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4072d7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x431e48]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4072d7
cmp eax, 1
je 0x4072f8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4072d7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4072a4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4072d3
xor eax, eax
inc eax
jmp 0x407317
cmp edi, eax
jae 0x4072db
xor eax, eax
jmp 0x407317
cmp eax, esi
jae 0x4072e2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x431e48]
jmp 0x4072fb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40934e
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x424bf0
call fcn.00409f04
mov edi, 0x94
mov eax, edi
call fcn.00407520
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x431e48], ecx
mov eax, dword [esi + 4]
mov dword [0x431e54], eax
mov edx, dword [esi + 8]
mov dword [0x431e58], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x431e4c], esi
cmp ecx, 2
je 0x4093ae
or esi, 0x8000
mov dword [0x431e4c], esi
shl eax, 8
add eax, edx
mov dword [0x431e50], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4093e9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4093e9
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x409401
cmp eax, 0x20b
je 0x4093ee
mov dword [ebp - 0x1c], esi
jmp 0x409415
cmp dword [ecx + 0x84], 0xe
jbe 0x4093e9
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40940f
cmp dword [ecx + 0x74], 0xe
jbe 0x4093e9
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040aec3
pop ecx
test eax, eax
jne 0x409429
push 0x1c
call fcn.0040932a
pop ecx
call fcn.0040c8b1
test eax, eax
jne 0x40943a
push 0x10
call fcn.0040932a
pop ecx
call fcn.004109b9
mov dword [ebp - 4], esi
call fcn.004107bb
test eax, eax
jge 0x409453
push 0x1b
call fcn.00409305
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4336f0], eax
call fcn.00410699
mov dword [0x431e34], eax
call fcn.004105f7
test eax, eax
jge 0x409479
push 8
call fcn.00409305
pop ecx
call fcn.004103c4
test eax, eax
jge 0x40948a
push 9
call fcn.00409305
pop ecx
push 1
call fcn.00409d69
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4094a0
push eax
call fcn.00409305
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00410367
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4094c1
movzx eax, word [ebp - 0x40]
jmp 0x4094c4
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00416190
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4094e2
push edi
call fcn.00409e96
call fcn.00409eb8
jmp 0x409514
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00409f3f
ret