joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438934
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5bbd60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0042c166
pop ecx
cmp eax, esi
je 0x438a1e
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x438a1e
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.0052cb80
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x438a1e
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x438a1e
cmp esi, 0x14
jge 0x438a1e
push 0x10
push 0
push edi
call fcn.0052f3f3
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x438a0d
call fcn.0052ca3e
cmp dword [eax], 0x22
je 0x438a0d
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0052c016
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x4389e3
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5c5a00], 0
jne 0x438aa9
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x438ad2
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00438844
pop ecx
pop ecx
test eax, eax
jne 0x438ad4
inc edi
cmp edi, esi
jl 0x438aaf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527d0f
leave
ret 8
Function at 0x43970e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x439756
call fcn.0042a532
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x439756
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x439799
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x439782
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x439782
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x439796
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x442b77
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5bbd60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x442bac
xor eax, eax
jmp 0x442bff
lea eax, [ebp - 0x210]
push eax
call fcn.0052c016
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x442bdd
push 0x56abb4
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005300c1
add esp, 0xc
test eax, eax
jne 0x442ba8
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005300c1
add esp, 0xc
test eax, eax
jne 0x442ba8
lea eax, [ebp - 0x210]
push eax
call fcn.0042c1ec
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00527d0f
leave
ret
Function at 0x48374b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00504a1d
call fcn.00429f4f
cmp dword [eax + 0x14], 0
jne 0x483768
mov ecx, esi
pop esi
jmp fcn.00483250
pop esi
ret

Function at 0x486ced
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0049a40d
call fcn.00429f4f
cmp dword [eax + 0x14], 0
jne 0x486d0a
mov ecx, esi
pop esi
jmp fcn.004866c0
pop esi
ret

Function at 0x496750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x49676a
call fcn.0042a532
mov esi, dword [eax + 0xc]
push dword [0x5c77e4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x496788
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x496780
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4967b5
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x496782
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0049667e
mov esi, eax
jmp 0x4967a7

Function at 0x51033e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x510356
mov edi, dword [esi + 0xc]
jmp 0x510396
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x51036f
call fcn.00433ea9
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x510384
call fcn.00433ea9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x510396
call fcn.00433ea9
call fcn.0042a532
cmp dword [eax + 0x3c], 0
je 0x5103ab
push edi
mov ecx, ebx
call fcn.0050f172
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00510258
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x5103c9
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x5103d5
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x527d0f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5bbd60]
jne 0x527d19
repz ret
jmp fcn.005317a4
Function at 0x54218e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5bbd60]
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.00533b15
and dword [ebp - 0x14], 0
cmp dword [0x5ca104], 0
mov dword [ebp - 0x18], eax
jne 0x542241
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5422e9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x5422e9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x58e150
push ebx
mov dword [0x5ca104], eax
call edi
push eax
call esi
push 0x58e13c
push ebx
mov dword [0x5ca108], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5ca10c], eax
call edi
push eax
call esi
mov dword [0x5ca114], eax
test eax, eax
je 0x542241
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5ca110], eax
mov eax, dword [0x5ca110]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x54229a
cmp dword [0x5ca114], ecx
je 0x54229a
push eax
call esi
push dword [0x5ca114]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x54229a
test ebx, ebx
je 0x54229a
call edi
test eax, eax
je 0x542291
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x542291
test byte [ebp - 8], 1
jne 0x54229a
or dword [ebp + 0x10], 0x200000
jmp 0x5422cd
mov eax, dword [0x5ca108]
cmp eax, dword [ebp - 0x18]
je 0x5422cd
push eax
call esi
test eax, eax
je 0x5422cd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5422cd
mov eax, dword [0x5ca10c]
cmp eax, dword [ebp - 0x18]
je 0x5422cd
push eax
call esi
test eax, eax
je 0x5422cd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5ca104]
call esi
test eax, eax
je 0x5422e9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5422eb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527d0f
leave
ret
Function at 0x548780
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e608
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5bbd60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.00427a86
add esp, 4
cmp eax, ebx
je 0x548864
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea edi, [esi + 0x18]
push 8
mov dword [ebp - 4], ebx
mov dword [edi], ebx
call fcn.00427a86
add esp, 4
cmp eax, ebx
je 0x548840
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.00527d89
push 0x5af5f0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::bad_alloc.0
call fcn.0052c78a
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
call fcn.00527d89
push 0x5af5f0
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], vtable.std::bad_alloc.0
call fcn.0052c78a
int3
Function at 0x54cda0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x54ce02
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
mov eax, 0x400000
cmp esi, 0x400000
ja 0x54cdcf
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x54ce07
test ecx, ecx
je 0x54ce00
test esi, esi
ja 0x54cdc0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x54ce20
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x54ce82
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
mov eax, 0x400000
cmp esi, 0x400000
ja 0x54ce4f
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x54ce87
test ecx, ecx
je 0x54ce80
test esi, esi
ja 0x54ce40
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x54f4c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x5cb780], ecx
inc edx
cmp edx, 0x100
jb 0x54f4c2
cmp edx, 0x800
jae 0x54f599
lea esp, [esp]
mov eax, dword [edx*4 + 0x5cb380]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5cb780]
inc edx
mov dword [edx*4 + 0x5cb77c], eax
cmp edx, 0x800
jb 0x54f570
mov dword [0x5ca370], 0x550180
call fcn.00550350
test eax, eax
jne 0x54f5b6
mov dword [0x5ca370], 0x550230
ret
Function at 0x552100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x552119
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x552140
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x55215d
jmp 0x552150
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x55215d
inc edi
cmp edi, edx
jb 0x552150
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x552272
cmp ecx, 3
jbe 0x552191
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x5521cb
cmp cl, 0xff
je 0x5521cb
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x552140
dec ecx
shl ebp, cl
and ebp, 7
je 0x552176
movzx ecx, byte [ebp + 0x58fdf8]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x58fdf0], 0
mov cl, byte [ebx + 4]
je 0x5521b9
test cl, cl
je 0x5521b9
cmp cl, 0xff
jne 0x552176
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
inc eax
jmp 0x552140
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x5521fe
lea ebx, [edx + eax]
add ebx, esi
jmp 0x552204
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x552244
movzx esi, byte [ebp + 0x58fdf8]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x552229
cmp dl, 0xff
jne 0x552240
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x5521f0
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x552140
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x552285
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret
Function at 0x10001370
Capabilities:
Get disk information

Disassembly:
adc byte [edx - 0x18], dl
leave
pop eax
add byte [eax], al
mov dword [ebp - 4], eax
mov eax, dword [0x10021520]
mov ecx, dword [0x1002154c]
shl eax, cl
mov dword [0x10021530], eax
mov dword [ebp - 8], 0x54
mov ecx, dword [0x10021544]
and ecx, dword [0x10021538]
mov dword [0x10021520], ecx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
shl edx, cl
mov dword [ebp - 8], edx
push 0x77
push 0x63a
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
shl eax, cl
test eax, eax
je 0x100013d3
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000c0ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ch, ah
push ebx
push esi
inc edi
mov eax, dword [0x10021010]
sub dword [eax + edx], eax
adc dword [edx], eax
adc byte [ebx + 0x10439514], ah
mov cl, byte [0x100215a8]
adc ecx, dword [0x100205b4]
test ecx, ecx
je 0x1000c125
mov edx, dword [0x10021459]
mov bl, 0x1d
add al, 0x15
add dl, byte [eax]
mov dword [0x1013153c], edx
mov eax, dword [0x10027532]
mov ebp, dword [0x11021549]
sar esp, cl
and eax, dword [esi - 0x3b78effe]
and al, 0xf5
xor al, 0x14
add dl, byte [eax]
mov ecx, dword [0x500617b8]
xor ebx, dword [edi]
lodsb al, byte [esi]
adc eax, 0x4d899002
or al, 0x8b
push ebp
or al, 0x23
adc eax, 0x100215aa
mov dword [ebp - 0x50], edx
adc eax, 0xaca11002
adc eax, 0x854b1503
lodsb al, byte [esi]
adc eax, 0xc0851002
adc byte fs:[ebx - 0x50f0d7b3], cl
sub eax, 0x100215b0
or eax, 0x215b10d
adc byte [ebx + 0x215b035], cl
adc byte [ebx + 0x1217ac0d], cl
adc bl, dl
cli
adc dword [ebp + 0xc], 0x8b08458b
dec ebp
or bl, dl
loopne 0x1000c139
mov al, 0x14
add dl, byte [eax]
inc edi
inc esp
and al, 0xc0
dec eax
add al, 0x42
adc byte [ebx + 0x215b015], cl
adc byte [ebx + 0x235a815], cl
adc bl, dl
out 0x89, al
adc eax, 0x100215a8
mov eax, dword [str.BreederBenefits]
sub eax, dword [edi]
test eax, 0x85100215
inc eax
je 0x1000c1db
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x108215f0]
shl edx, cl
mov dword [ebp + 0x28], edx
inc ebx
inc esp
and al, 0xf4
pop esp
adc al, 0xe
adc al, 0x8b
lds ecx, [0x8908450f]
mov eax, ebp
or eax, 0x8908450f
inc ebp
sbb byte [ebx + 0x215a01d], cl
adc byte [ebx], dh
or eax, 0x100190a0
mov dword [ebp + 0xc], ecx
mov edx, dword [eax + ebp*8 + 0x2120215]
adc eax, 0x100215a4
mov dword [0x211ac], eax
mov dword [eax + 4], 0x21478dc
sbb byte [ecx + 0x100205bc], ah
or eax, dword [0x10021590]
mov dword [ebp + 0xc], eax
mov ecx, dword [0x120216a8]
das
pop ebp
or al, 0x89
dec ebp
nop
adc eax, 0xa8a51002
adc eax, 0x52b9002
mov ah, 0x15
add dl, byte [eax]
push edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x402b40
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404be8
test esi, esi
jne 0x402b76
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404cd8
jmp 0x402b94
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a54
mov edi, eax
test esi, esi
je 0x402b94
cmp dword [ebx], 0
je 0x402b94
dec esi
jmp 0x402b7d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403b68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x654010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403be0
xor eax, eax
push ebp
push 0x403bd9
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 0x403c1c
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 0x403be0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x654010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x654010], ax
mov esp, ebp
pop ebp
ret

Function at 0x4049c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x65c04c], 0
je 0x404a29
cmp word [0x65c220], 0xd7b2
jne 0x4049f1
cmp dword [0x65c228], 0
jbe 0x4049f1
mov eax, 0x65c21c
call dword [0x65c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x654060
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 0x404a50
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x654020], 0
jne 0x404a45
push 0
push 0x654080
push 0x654060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404b9c
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 [0x65c04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404b64
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc