joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f67af
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 0x4f67c7
mov edi, dword [esi + 0xc]
jmp 0x4f6807
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4f67e0
call fcn.00412408
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f67f5
call fcn.00412408
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f6807
call fcn.00412408
call fcn.00420d8c
cmp dword [eax + 0x3c], 0
je 0x4f681c
push edi
mov ecx, ebx
call fcn.004f55e1
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f66c9
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f683a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f6846
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 0x50fafb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58dc28]
jne 0x50fb05
repz ret
jmp fcn.005188c3
Function at 0x524538
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58dc28]
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.005182eb
and dword [ebp - 0x14], 0
cmp dword [0x5968b8], 0
mov dword [ebp - 0x18], eax
jne 0x5245eb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x524693
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5671f8
push ebx
call edi
test eax, eax
je 0x524693
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5671e8
push ebx
mov dword [0x5968b8], eax
call edi
push eax
call esi
push 0x5671d4
push ebx
mov dword [0x5968bc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5968c0], eax
call edi
push eax
call esi
mov dword [0x5968c8], eax
test eax, eax
je 0x5245eb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5968c4], eax
mov eax, dword [0x5968c4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x524644
cmp dword [0x5968c8], ecx
je 0x524644
push eax
call esi
push dword [0x5968c8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x524644
test ebx, ebx
je 0x524644
call edi
test eax, eax
je 0x52463b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x52463b
test byte [ebp - 8], 1
jne 0x524644
or dword [ebp + 0x10], 0x200000
jmp 0x524677
mov eax, dword [0x5968bc]
cmp eax, dword [ebp - 0x18]
je 0x524677
push eax
call esi
test eax, eax
je 0x524677
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x524677
mov eax, dword [0x5968c0]
cmp eax, dword [ebp - 0x18]
je 0x524677
push eax
call esi
test eax, eax
je 0x524677
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5968b8]
call esi
test eax, eax
je 0x524693
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x524695
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050fafb
leave
ret
Function at 0x10087670
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor eax, esi
inc ebp
mov eax, dword [0xa245c62e]
xor eax, 0x24a345c6
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10087292
push eax
push esi
push dword [ebp + 8]
call fcn.10087247
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10087292
push eax
push esi
push dword [ebp + 8]
call fcn.10087247
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10087282
movq mm0, mm4
salc
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.10087282
mov ecx, 0x8d83a44b
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
push eax
invalid
sbb al, 0xfb
invalid
Function at 0x4034ac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406690
test esi, esi
jne 0x4034e4
push 0x105
lea eax, [esp + 4]
push eax
push 0
call fcn.004013c8
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004067cc
jmp 0x403502
call fcn.004013b0
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403390
mov edi, eax
test esi, esi
je 0x403502
cmp dword [ebx], 0
je 0x403502
dec esi
jmp 0x4034eb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403d20
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403d3e
push dword [eax]
call fcn.00401340
dec eax
je 0x403d48
jmp fcn.00403264
mov eax, 0x67
jmp fcn.00403254
ret

Function at 0x404340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x545020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4043d8
push 0x80000002
call fcn.00401420
test eax, eax
jne 0x4043b8
xor eax, eax
push ebp
push 0x4043b1
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 0x404410
mov eax, dword [ebp - 4]
push eax
call fcn.00401428
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4043b8
mov eax, dword [ebp - 4]
push eax
call fcn.00401418
ret
movzx eax, word [0x545020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x545020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4055ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x551054], 0
je 0x40560d
cmp word [0x551330], 0xd7b2
jne 0x4055d5
cmp dword [0x551338], 0
jbe 0x4055d5
mov eax, 0x55132c
call dword [0x551348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call fcn.00401320
push eax
call fcn.00401358
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405638
push 0xfffffffffffffff5
call fcn.00401320
push eax
call fcn.00401358
pop edx
ret
cmp byte [0x545030], 0
jne 0x405629
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call fcn.00401390
pop edx
ret
Function at 0x40563c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, 0x553aec
mov edi, 0x551050
cmp byte [esi + 0x28], 0
jne 0x405664
cmp dword [edi], 0
je 0x405664
mov eax, dword [edi]
mov ebx, eax
xor eax, eax
mov dword [edi], eax
call ebx
cmp dword [edi], 0
jne 0x405655
cmp dword [0x545004], 0
je 0x40567e
call fcn.00405510
call fcn.004055ac
xor eax, eax
mov dword [0x545004], eax
cmp byte [esi + 0x28], 2
jne 0x405692
cmp dword [section..data], 0
jne 0x405692
xor eax, eax
mov dword [esi + 0xc], eax
call fcn.00403190
mov ebx, eax
test ebx, ebx
je 0x4056af
mov eax, ebx
call fcn.00404578
call fcn.00403190
mov ebx, eax
test ebx, ebx
jne 0x40569d
call fcn.004052c4
cmp byte [esi + 0x28], 1
jbe 0x4056c3
cmp dword [section..data], 0
je 0x4056e9
mov ebp, dword [esi + 0x10]
test ebp, ebp
je 0x4056e9
mov eax, ebp
call fcn.004086a4
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 0x10]
mov eax, dword [esi + 0x10]
cmp edi, dword [eax + 4]
je 0x4056e9
test edi, edi
je 0x4056e9
push edi
call fcn.004013a8
call fcn.0040529c
cmp byte [esi + 0x28], 1
jne 0x4056f7
call dword [esi + 0x24]
cmp byte [esi + 0x28], 0
je 0x405702
call fcn.0040557c
cmp dword [esi], 0
jne 0x405721
cmp dword [0x551030], 0
je 0x405716
call dword [0x551030]
mov eax, dword [section..data]
push eax
call fcn.00401388
mov eax, dword [esi]
push esi
mov edi, esi
mov esi, eax
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x40567e

Function at 0x4057ac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x545038], 0
je 0x4057d2
mov edx, esi
mov eax, ebx
call dword [0x545038]
jmp 0x4057e1
mov eax, 8
call fcn.004030cc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x551055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405774
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call fcn.00401378
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408278
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x22a]
push eax
push 0
call fcn.004013c8
mov word [ebp - 0x1c], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4084f8
push 0x80000001
call fcn.00401420
test eax, eax
je 0x40831b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4084f8
push 0x80000002
call fcn.00401420
test eax, eax
je 0x40831b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40852c
push 0x80000001
call fcn.00401420
test eax, eax
je 0x40831b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x408560
push 0x80000001
call fcn.00401420
test eax, eax
jne 0x4083b3
xor eax, eax
push ebp
push 0x4083ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0xa
lea eax, [ebp - 0x22a]
mov edx, 0x105
call fcn.0040807c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea eax, [ebp - 0x22a]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.00401428
test eax, eax
je 0x408384
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x4085a0
mov eax, dword [ebp - 8]
push eax
call fcn.00401428
test eax, eax
je 0x408384
mov word [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
sar eax, 1
jns 0x40838e
adc eax, 0
mov word [ebp + eax*2 - 0x1c], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4083b3
mov eax, dword [ebp - 8]
push eax
call fcn.00401418
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x22a]
push eax
call fcn.00401400
push 5
lea eax, [ebp - 0x12]
push eax
push 3
call fcn.004013e8
push eax
call fcn.004013c0
xor esi, esi
cmp word [ebp - 0x22a], 0
je 0x4084f0
cmp word [ebp - 0x12], 0
jne 0x4083fd
cmp word [ebp - 0x1c], 0
je 0x4084f0
lea eax, [ebp - 0x22a]
push eax
call fcn.00401408
mov ebx, eax
add ebx, ebx
lea eax, [ebp - 0x22a]
add ebx, eax
jmp 0x40841a
sub ebx, 2
cmp word [ebx], 0x2e
je 0x40842a
lea eax, [ebp - 0x22a]
cmp ebx, eax
jne 0x408417
lea eax, [ebp - 0x22a]
cmp ebx, eax
je 0x4084f0
add ebx, 2
cmp word [ebp - 0x1c], 0
je 0x408471
mov edx, ebx
sub edx, eax
sar edx, 1
jns 0x40844d
adc edx, 0
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.00401400
push 2
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.004013f0
mov esi, eax
test esi, esi
jne 0x4084f0
cmp word [ebp - 0x12], 0
je 0x4084f0
lea eax, [ebp - 0x22a]
mov edx, ebx
sub edx, eax
sar edx, 1
jns 0x40848d
adc edx, 0
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call fcn.00401400
push 2
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.004013f0
mov esi, eax
test esi, esi
jne 0x4084f0
mov word [ebp - 0xe], 0
lea eax, [ebp - 0x22a]
mov edx, ebx
sub edx, eax
sar edx, 1
jns 0x4084cc
adc edx, 0
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call fcn.00401400
push 2
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.004013f0
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aa30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405ed4
xor eax, eax
push ebp
push 0x40aae7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.00407c50
mov esi, eax
cmp dword [ebp - 4], 0
jne 0x40aa78
test esi, esi
jle 0x40aa78
lea eax, [ebp - 4]
lea edx, [esi + esi*2]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx + edx*8 - 8]
call fcn.004058d8
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x40a718]
call fcn.00407e18
add esp, 4
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x38]
mov dword [eax + edi*8], edx
mov edx, dword [ebx + 0x3c]
mov dword [eax + edi*8 + 4], edx
mov eax, dword [ebx + 0x30]
mov edx, dword [ebp + 8]
mov dword [eax + edi*8 + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + edi*8 + 0xc], edx
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebp - 4]
call fcn.0040587c
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aaee
lea eax, [ebp - 4]
call fcn.00405828
ret
Function at 0x40d450
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x40d4f0
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.004061c8
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.00405f5c
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x40d47a
cmp byte [esp], 0
je 0x40d4bf
mov eax, edi
call fcn.00405f5c
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40d4fc
mov eax, edi
call fcn.00405f5c
push eax
mov eax, edi
call fcn.00405f5c
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00403290
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.004061c8
jmp 0x40d4fc
mov eax, edi
mov edx, 0x40d510
call fcn.0040587c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40e180
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp byte [0x545a04], 0
jne 0x40e1b4
push 2
lea eax, [esp + 4]
push eax
push 0xe
call fcn.00409748
push eax
call fcn.00409644
test eax, eax
jle 0x40e1ad
movzx eax, byte [esp]
mov byte [0x545a04], al
jmp 0x40e1b4
mov byte [0x545a04], 0x2c
movzx eax, byte [0x545a04]
pop edx
ret

Function at 0x40e708
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0040587c
mov eax, ebx
call fcn.00405f54
mov eax, dword [ebx]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x40e730
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x40e744
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40e739
pop edx
pop esi
pop ebx
ret
Function at 0x40e988
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x40ead2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x40e9b0
cmp dword [ebx + 4], 0
jne 0x40ead2
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x40e9d6
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x40e9d6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call fcn.00409978
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.0040e8dc
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x40ead2
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x40ea85
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x40ea2b
push 4
push 0x1000
push 0x100000
push 0
call fcn.00409980
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.0040e91c
test al, al
je 0x40ea7b
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call fcn.004098c0
test eax, eax
je 0x40ea7b
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x40ea7b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x40eaa3
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x40eaa3
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.0040e970
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x40ead2
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.00412c1c
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x40ee9c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
mov esi, dword [ebx + 0x24]
sub esi, dword [ebx + 0x5c]
sub esi, dword [ebx + 0x54]
test esi, esi
jne 0x40eecd
cmp dword [ebx + 0x54], 0
jne 0x40eecd
cmp dword [ebx + 0x5c], 0
jne 0x40eecd
mov esi, dword [ebp - 8]
jmp 0x40ef78
cmp esi, 0xffffffff
jne 0x40eed8
dec esi
jmp 0x40ef78
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x40ef78
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call fcn.00403290
mov eax, dword [ebp - 8]
sub dword [ebx + 0x58], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x54], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x2c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x40ef3a
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x40ef3f
mov word [edx], 0
dec eax
test eax, eax
jne 0x40ef1c
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x28]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x40ef6b
movzx ecx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x40ef70
mov word [edx], 0
dec eax
test eax, eax
jne 0x40ef4d
add esi, dword [ebp - 8]
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
push edx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
cmp edx, dword [esp + 4]
jne 0x40ef94
cmp eax, dword [esp]
pop edx
pop eax
je 0x40f002
push ebp
mov eax, dword [ebx + 0x54]
add eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x20]
add edx, eax
mov eax, ecx
mov ecx, esi
call fcn.0040ee28
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x40efdc
mov eax, dword [ebx + 0x54]
mov edx, dword [ebx + 0x20]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x40]
shl eax, cl
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x20]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x3c]
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x5c], 0x106
jae 0x40f002
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0x18]
jne 0x40eeac
cmp eax, dword [ecx + 0x14]
jne 0x40eeac
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x410558
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x4106a5
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x410580
cmp dword [ebx + 4], 0
jne 0x4106a5
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x4105a6
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x4105a6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call fcn.00409978
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.0040e8dc
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x4106a5
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x410655
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x4105fb
push 4
push 0x1000
push 0x100000
push 0
call fcn.00409980
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.0040e91c
test al, al
je 0x41064b
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call fcn.004098c0
test eax, eax
je 0x41064b
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x41064b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x410673
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x410673
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.0040e970
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
cmp dword [ebx + 0xc], 0
jne 0x4106a5
cmp dword [ebx + 8], 0
jne 0x4106a5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
cdq
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
add dword [ebx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
sub dword [ebx + 4], eax
pop esi
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x412c40
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
movzx edx, dl
mov edx, dword [edx*4 + 0x5466d8]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x412c27
mov eax, esi
pop esi
ret