joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44df49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x44df62
call fcn.00415a0e
mov esi, dword [eax + 0xc]
push 0x58a8f4
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x44dfb8
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44dfb7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x44df98
xor esi, esi
jmp 0x44dfae
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0044dfc0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e361b
Capabilities:
Get file system object information

Disassembly:
push 0x4cc
mov eax, 0x57bd8c
call fcn.00545ef4
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004174b6
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x5bac20
call fcn.00426546
cmp eax, 0xffffffff
jne 0x4e36e6
push 0
push 0x58a8b0
lea ecx, [ebp - 0x4d0]
call fcn.00426546
cmp eax, 0xffffffff
jne 0x4e36e6
push 0
push 0x5badb4
lea ecx, [ebp - 0x4d0]
call fcn.00426546
cmp eax, 0xffffffff
jne 0x4e36e6
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.004174b6
mov edi, eax
pop ecx
mov dword [ebp - 0x4d4], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x218]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4e36c3
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.00545d9c
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x4d4]
mov edi, eax
call fcn.00415c54
jmp 0x4e371e
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00416a80
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00415c54
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4e370c
mov edi, dword [ebp - 0x4cc]
jmp 0x4e371e
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call fcn.00545d9c
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00415c54
mov eax, edi
call fcn.00545e9e
ret
Function at 0x4f9c41
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x4f9c3e
cmp dword [eax + 0xc], ebx
je 0x4f9ce1
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.004f9699
push es
jbe 0x4f9c8f
mov bh, byte [ecx]
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x4f9ccf
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x4f9caa
and eax, 0xffff
push eax
jmp 0x4f9cae
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f965e
add esp, 0xc
cmp edi, ebx
mov dword [edi], eax
je 0x4f9e88
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x4f9c8f
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x4f9c30
call fcn.004f9699
cmpsb byte [esi], byte es:[edi]
fbld tbyte [edi]
mov eax, dword [0xa0878b]
add byte [eax], al

Function at 0x4fa5a9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0xfffffafd
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004f9677
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.004f96a9
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004f965e
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.004f9699
invalid

Function at 0x564cad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00564970

Function at 0x564cb8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00564af1

Function at 0x569182
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00568e42
Function at 0x1000e884
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x100b9948]
xor esi, esi
dec esi
mov dword [esp + 4], eax
mov eax, 0xfab56ebb
cmp eax, 0xff1d2278
jle 0x1000e902
cmp eax, 0x22f49be6
jg 0x1000e946
cmp eax, 0x187dfd0e
jg 0x1000e9e0
cmp eax, 0xff1d2279
je 0x1000ea69
cmp eax, 0x9c3d536
jne 0x1000e89b
mov eax, dword [0x100b9968]
mov ecx, dword [0x100b9964]
mov ebx, 0xff1d2279
lea edx, [eax - 1]
imul edx, eax
mov edi, edx
xor edi, 0xfffffffe
test edi, edx
sete al
cmp ecx, 0xa
setl ah
xor ah, al
mov eax, 0xff1d2279
je 0x1000ea9e
jmp 0x1000eb17
cmp eax, 0xe5245791
jg 0x1000e9ab
cmp eax, 0xbb6750f0
jle 0x1000ea3f
cmp eax, 0xbb6750f1
je 0x1000eabf
cmp eax, 0xbc88838b
jne 0x1000e89b
push 2
call fcn.100a05f8
add esp, 4
mov dword [esp + 8], eax
mov eax, 0x7add7ac4
jmp 0x1000e89b
cmp eax, 0x6d2601f0
jle 0x1000ea54
cmp eax, 0x6d2601f1
je 0x1000eac9
cmp eax, 0x7add7ac4
jne 0x1000e89b
mov eax, dword [0x100b9968]
mov ecx, dword [0x100b9964]
mov edi, 0x52928c75
lea edx, [eax - 1]
imul edx, eax
xor edx, esi
or edx, 0xfffffffe
cmp edx, esi
sete al
cmp ecx, 0xa
setl ah
xor ah, al
mov eax, 0x52928c75
jne 0x1000e99b
mov edi, 0x9f87d6d7
cmp edx, esi
cmovne eax, edi
cmp ecx, 0xa
cmovge eax, edi
jmp 0x1000e89b
cmp eax, 0xe5245792
je 0x1000ead9
cmp eax, 0xf885cec5
je 0x1000eae3
cmp eax, 0xfab56ebb
jne 0x1000e89b
cmp dword [esp + 4], 0
mov eax, 0x187dfd0f
sete byte [esp + 3]
jmp 0x1000e89b
cmp eax, 0x187dfd0f
je 0x1000eaa5
cmp eax, 0x1f9d6d23
jne 0x1000e89b
mov eax, dword [0x100b9968]
mov ecx, dword [0x100b9964]
mov edi, 0xbb6750f1
lea edx, [eax - 1]
imul edx, eax
mov eax, 0xbb6750f1
xor edx, esi
or edx, 0xfffffffe
cmp edx, esi
mov edx, 0x9fc71ab6
sete bl
je 0x1000ea27
mov edi, 0x9fc71ab6
cmp ecx, 0xa
setl cl
cmovl edx, edi
xor cl, bl
jne 0x1000e89b
mov eax, edx
jmp 0x1000e89b
cmp eax, 0x9fc71ab6
jne 0x1000eb27
mov eax, 0x1f9d6d23
jmp 0x1000e89b
cmp eax, 0x22f49be7
jne 0x1000eb34
mov eax, 0xf885cec5
jmp 0x1000e89b
mov eax, dword [esp + 4]
call eax
mov eax, dword [0x100b9968]
mov ecx, dword [0x100b9964]
mov ebx, 0x22f49be7
lea edx, [eax - 1]
imul edx, eax
mov edi, edx
xor edi, 0xfffffffe
test edi, edx
sete al
cmp ecx, 0xa
setl ah
xor ah, al
mov eax, 0x22f49be7
jne 0x1000eb17
mov ebx, 0x6d2601f1
jmp 0x1000eb17
cmp byte [esp + 3], 0
mov eax, 0xbc88838b
jne 0x1000e89b
mov eax, 0x9c3d536
jmp 0x1000e89b
mov eax, 0xbc88838b
jmp 0x1000e89b
mov eax, dword [esp + 4]
call eax
mov eax, 0xff1d2279
jmp 0x1000e89b
mov eax, 0xf398603c
jmp 0x1000e89b
mov eax, dword [0x100b9968]
mov ecx, dword [0x100b9964]
mov ebx, 0x1f9d6d23
lea edx, [eax - 1]
imul edx, eax
mov edi, edx
xor edi, 0xfffffffe
test edi, edx
sete al
cmp ecx, 0xa
setl ah
xor ah, al
mov eax, 0x1f9d6d23
jne 0x1000eb17
mov ebx, 0x9fc71ab6
test edi, edx
cmovne eax, ebx
cmp ecx, 0xa
cmovge eax, ebx
jmp 0x1000e89b
cmp eax, 0x9f87d6d7
jne 0x1000e89b
jmp 0x1000eb3f
cmp eax, 0x52928c75
jne 0x1000e89b
mov ecx, dword [esp + 8]
mov edx, str.out_of_memory_n
call fcn.1000eb54
push 1
call fcn.100a0b34
Function at 0x1000eb54
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x100b9960]
mov edi, edx
mov dword [esp + 4], ecx
mov ecx, dword [0x100b995c]
mov ebp, 0x2cb38415
lea edx, [eax - 1]
imul edx, eax
mov eax, edx
xor eax, 0xfffffffe
test eax, edx
sete al
sete byte [esp + 1]
cmp ecx, 0xa
setl cl
setl byte [esp + 2]
mov edx, ecx
xor cl, al
and dl, al
mov eax, 0xe6889c79
or cl, dl
mov ecx, 0x89f361d8
mov edx, 0xa58f9c5
cmove ecx, eax
cmove ebp, eax
mov eax, 0xbafc6d3d
cmovne edx, eax
mov eax, 0x1e4f1e85
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov ecx, eax
cmp eax, 0xa58f9c4
jle 0x1000ebfc
cmp ecx, 0x3ef3e70a
jg 0x1000ec2b
cmp ecx, 0xa58f9c5
je 0x1000ec7e
cmp ecx, 0x1e4f1e85
je 0x1000ec88
cmp ecx, 0x2cb38415
mov eax, ecx
jne 0x1000ebc3
mov eax, dword [esp + 0xc]
jmp 0x1000ebc3
cmp ecx, 0xb557006e
jle 0x1000ec56
cmp ecx, 0xb557006f
mov eax, ebp
je 0x1000ebc3
cmp ecx, 0xbafc6d3d
je 0x1000ecc3
cmp ecx, 0xe6889c79
mov eax, ecx
jne 0x1000ebc3
mov eax, 0x2cb38415
jmp 0x1000ebc3
cmp ecx, 0x3ef3e70b
je 0x1000eccd
cmp ecx, 0x496694a2
je 0x1000ecdd
cmp ecx, 0x3f65eba8
mov eax, ecx
jne 0x1000ebc3
jmp 0x1000ed14
cmp ecx, 0x89f361d8
je 0x1000ecfc
cmp ecx, 0xa069e7fa
mov eax, ecx
jne 0x1000ebc3
mov ebx, dword [esp + 0x10]
mov eax, 0x3f65eba8
jmp 0x1000ebc3
mov eax, 0x3ef3e70b
jmp 0x1000ebc3
mov dl, byte [esp + 1]
mov al, byte [esp + 2]
mov esi, ebx
mov ebx, edi
mov edi, 0x3ef3e70b
mov ecx, eax
xor cl, dl
test al, al
mov eax, 0xa58f9c5
jne 0x1000ecab
mov edi, 0xa58f9c5
test dl, dl
mov edx, 0x3ef3e70b
cmovne eax, edi
test cl, cl
mov edi, ebx
mov ebx, esi
cmovne eax, edx
jmp 0x1000ebc3
mov eax, 0xb557006f
jmp 0x1000ebc3
mov eax, dword [esp + 8]
test edi, edi
setne byte [esp + 3]
jmp 0x1000ebc3
push edi
call fcn.100a0b50
add esp, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, 0xa069e7fa
jmp 0x1000ebc3
cmp byte [esp + 3], 0
mov eax, 0x496694a2
jne 0x1000ed0d
mov eax, 0x3f65eba8
xor ebx, ebx
jmp 0x1000ebc3
mov esi, dword [esp + 4]
push esi
push ebx
push 1
push edi
call fcn.100a0dfa
add esp, 0x10
push esi
call fcn.100a1150
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1001d26e
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
push esi
sub esp, 8
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
mov dword [esp + 4], eax
mov eax, 0x94659a27
dec esi
cmp eax, 0xe4f0b0aa
jg 0x1001d308
cmp eax, 0xd12af08d
jle 0x1001d3a4
cmp eax, 0xddb2bf9e
jg 0x1001d3d3
cmp eax, 0xd12af08e
je 0x1001d43f
cmp eax, 0xdbe93186
jne 0x1001d28e
mov eax, dword [0x100b982c]
mov ecx, dword [0x100b9828]
mov ebx, 0xd12af08e
lea edx, [eax - 1]
imul edx, eax
mov edi, edx
xor edi, 0xfffffffe
test edi, edx
sete al
cmp ecx, 0xa
setl ah
xor ah, al
mov eax, 0xd12af08e
jne 0x1001d2f1
mov ebx, 0xc39ed801
test edi, edx
cmovne eax, ebx
cmp ecx, 0xa
cmovge eax, ebx
cmp dword [esp + 4], 0
sete byte [esp + 3]
jmp 0x1001d28e
cmp eax, 0x3ecd8e90
jle 0x1001d33a
cmp eax, 0x51aeadbf
jle 0x1001d3fc
cmp eax, 0x51aeadc0
je 0x1001d453
cmp eax, 0x5b28a024
jne 0x1001d28e
mov eax, 0x51aeadc0
jmp 0x1001d28e
cmp eax, 0xe4f0b0ab
je 0x1001d53d
cmp eax, 0xeb033385
je 0x1001d489
cmp eax, 0x2e18e053
jne 0x1001d28e
mov eax, dword [0x100b982c]
mov ecx, dword [0x100b9828]
mov edi, 0x51aeadc0
lea edx, [eax - 1]
imul edx, eax
mov eax, 0x51aeadc0
xor edx, esi
or edx, 0xfffffffe
cmp edx, esi
mov edx, 0x5b28a024
sete bl
je 0x1001d38c
mov edi, 0x5b28a024
cmp ecx, 0xa
setl cl
cmovl edx, edi
xor cl, bl
jne 0x1001d28e
mov eax, edx
jmp 0x1001d28e
cmp eax, 0x94659a27
je 0x1001d4a3
cmp eax, 0xa29736ad
je 0x1001d4e7
cmp eax, 0xc39ed801
jne 0x1001d28e
mov eax, dword [esp + 4]
mov eax, 0xdbe93186
jmp 0x1001d28e
cmp eax, 0xddb2bf9f
je 0x1001d449
cmp eax, 0xe3ea29f9
jne 0x1001d28e
push str.virtualFree_failing_
call fcn.10051319
add esp, 4
mov eax, 0x3ecd8e91
jmp 0x1001d28e
cmp eax, 0x5084fbec
jne 0x1001d52b
mov eax, dword [0x100b982c]
mov ecx, dword [0x100b9828]
mov ebx, 0x299f982a
lea edx, [eax - 1]
imul edx, eax
mov edi, edx
xor edi, 0xfffffffe
test edi, edx
sete al
cmp ecx, 0xa
setl ah
xor ah, al
mov eax, 0x299f982a
je 0x1001d516
jmp 0x1001d51b
mov eax, 0x2e18e053
jmp 0x1001d28e
mov eax, 0x5084fbec
jmp 0x1001d28e
mov eax, dword [0x100b982c]
mov ecx, dword [0x100b9828]
mov edi, 0xeb033385
lea edx, [eax - 1]
imul edx, eax
xor edx, esi
or edx, 0xfffffffe
cmp edx, esi
sete al
cmp ecx, 0xa
setl ah
xor ah, al
mov eax, 0xeb033385
jne 0x1001d4d7
mov edi, 0x5b28a024
jmp 0x1001d4d7
cmp byte [esp + 3], 0
mov eax, 0xe3ea29f9
jne 0x1001d28e
mov eax, 0xe4f0b0ab
jmp 0x1001d28e
mov eax, dword [0x100b982c]
mov ecx, dword [0x100b9828]
mov edi, 0xdbe93186
lea edx, [eax - 1]
imul edx, eax
xor edx, esi
or edx, 0xfffffffe
cmp edx, esi
sete al
cmp ecx, 0xa
setl ah
xor ah, al
mov eax, 0xdbe93186
jne 0x1001d4d7
mov edi, 0xc39ed801
cmp edx, esi
cmovne eax, edi
cmp ecx, 0xa
cmovge eax, edi
jmp 0x1001d28e
mov eax, dword [0x100b982c]
mov ecx, dword [0x100b9828]
mov ebx, 0x5084fbec
lea edx, [eax - 1]
imul edx, eax
mov edi, edx
xor edi, 0xfffffffe
test edi, edx
sete al
cmp ecx, 0xa
setl ah
xor ah, al
mov eax, 0x5084fbec
jne 0x1001d51b
mov ebx, 0xddb2bf9f
test edi, edx
cmovne eax, ebx
cmp ecx, 0xa
cmovge eax, ebx
jmp 0x1001d28e
cmp eax, 0x3ecd8e91
jne 0x1001d28e
push 1
call fcn.100a0b34
add esp, 8
pop esi
pop edi
pop ebx
ret
Function at 0x1003fe3f
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x100b9640]
mov dword [esp + 4], edx
mov edi, ecx
mov ecx, dword [0x100b963c]
mov esi, 0x1aeef13c
lea edx, [eax - 1]
imul edx, eax
xor ebx, ebx
mov eax, 0xa6355a39
dec ebx
xor edx, ebx
or edx, 0xfffffffe
cmp edx, ebx
sete byte [esp + 2]
cmp ecx, 0xa
setl byte [esp + 3]
cmp eax, 0x1aeef13b
jg 0x1003feb3
cmp eax, 0xa6355a39
je 0x1003ff17
cmp eax, 0xc545316d
je 0x1003ff8c
cmp eax, 0xcf9022c7
jne 0x1003fe7e
push 2
call fcn.100a05f8
add esp, 4
mov eax, 0x7d8d6940
jmp 0x1003fe7e
cmp eax, 0x1aeef13c
je 0x1003ff41
cmp eax, 0x484682f1
je 0x1003ff4b
cmp eax, 0x7d8d6940
jne 0x1003fe7e
push 2
call fcn.100a05f8
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [0x100b9640]
mov ebp, 0xcf9022c7
lea ecx, [eax - 1]
imul ecx, eax
mov eax, 0xcf9022c7
xor ecx, ebx
or ecx, 0xfffffffe
cmp ecx, ebx
sete cl
cmove eax, esi
cmp dword [0x100b963c], 0xa
setl dl
cmovge eax, ebp
xor dl, cl
cmovne eax, esi
jmp 0x1003fe7e
mov cl, byte [esp + 2]
mov al, byte [esp + 3]
mov ebp, 0x7d8d6940
mov edx, ecx
xor dl, al
mov edx, 0xcf9022c7
cmovne edx, ebp
test al, al
mov eax, edx
cmovne eax, ebp
test cl, cl
cmove eax, edx
jmp 0x1003fe7e
mov eax, 0x484682f1
jmp 0x1003fe7e
mov ebp, dword [esp + 8]
push ebp
push dword [esp + 8]
push 1
push edi
call fcn.100a0dfa
add esp, 0x10
mov eax, 0x3dae1b1
cmp eax, 0xdb267d2b
je 0x1003ff82
cmp eax, 0x3dae1b1
jne 0x1003ff64
push ebp
call fcn.100a1150
add esp, 4
mov eax, 0xdb267d2b
jmp 0x1003ff64
mov eax, 0xc545316d
jmp 0x1003fe7e
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10041ac7
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, 2
push edi
call fcn.100a05f8
add esp, 4
mov ecx, eax
mov edx, str.could_not_import:
call fcn.1000eb54
push edi
call fcn.100a05f8
add esp, 4
mov ecx, eax
mov edx, esi
call fcn.1000eb54
xor esi, esi
mov ecx, 0xfeaf989d
mov ebp, 0xf3b45d4d
dec esi
cmp ecx, 0xf3b45d4c
jle 0x10041b6a
cmp ecx, 0xf3b45d4d
je 0x10041bc5
cmp ecx, 0xfd76d17f
je 0x10041be3
cmp ecx, 0xfeaf989d
jne 0x10041b07
mov eax, dword [0x100b95cc]
mov ebx, 0xc838c3ac
mov edi, 0xb1cac0c3
lea ecx, [eax - 1]
imul ecx, eax
mov eax, ecx
xor eax, 0xfffffffe
test eax, ecx
mov ecx, 0xb1cac0c3
sete al
cmove ecx, ebx
cmp dword [0x100b95c8], 0xa
setl dl
cmovge ecx, edi
xor dl, al
cmovne ecx, ebx
jmp 0x10041b07
cmp ecx, 0xb1cac0c3
je 0x10041bcf
cmp ecx, 0xc838c3ac
jne 0x10041b07
push 2
call fcn.100a05f8
add esp, 4
mov ecx, dword [0x100b95cc]
mov edx, dword [0x100b95c8]
mov edi, 0xb1cac0c3
mov dword [esp], eax
lea ebx, [ecx - 1]
imul ebx, ecx
xor ebx, esi
or ebx, 0xfffffffe
cmp ebx, esi
sete cl
cmp edx, 0xa
setl ch
xor ch, cl
cmovne edi, ebp
cmp ebx, esi
mov ecx, edi
cmove ecx, ebp
cmp edx, 0xa
cmovge ecx, edi
jmp 0x10041b07
mov ecx, 0xfd76d17f
jmp 0x10041b07
push 2
call fcn.100a05f8
add esp, 4
mov ecx, 0xc838c3ac
jmp 0x10041b07
mov ecx, dword [esp]
mov edx, 0x100af5e6
call fcn.1000eb54
push 1
call fcn.100a0b34
Function at 0x4097ac
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409860
jmp 0x409855
cmp dword [esi + 0x10], 0x1000
jne 0x409841
test byte [esi + 0x15], 1
jne 0x409841
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409800
cmp eax, 2
je 0x409800
cmp eax, 0x10
je 0x409800
cmp eax, 0x20
jne 0x409815
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409815
mov bl, 1
xor ebp, ebp
jmp 0x409826
mov eax, dword [esi]
add eax, ebp
call fcn.004097a4
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409819
test bl, bl
je 0x409841
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409860
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4097d8
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x479b6403
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x5c993e3a
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401920
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 0x401939
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40194d
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 0x40196e
cmp esi, eax
jae 0x401947
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401960
cmp esi, eax
jae 0x401947
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x408160
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4494c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x45b9b4]
push ebx
mov eax, 0x92ea28a3
imul ecx
add edx, ecx
sar edx, 0x12
push esi
mov esi, dword [0x45b9ac]
push edi
mov edi, dword [0x45b9c8]
mov eax, edx
imul edi, edi, 0xde7fc
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x6352a551
imul esi
sar edx, 0x12
mov ebx, edx
add edi, edx
mov eax, 0x6352a551
imul ecx
sar edx, 0x12
mov ecx, edx
shr ebx, 0x1f
add ebx, edi
add ebx, edx
mov edx, dword [0x45b9c0]
imul edx, edx, 0x6a5ba
shr ecx, 0x1f
add ecx, ebx
add ecx, edx
mov eax, 0x9dbc161
imul esi
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x571d2c]
sub ecx, eax
mov dword [str._r_____r____], ecx
mov ecx, 0x571d2c
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [0x45b9bc]
mov esi, dword [str._r_____r____]
mov eax, 0x92ea28a3
imul esi, esi, 0x6f854
imul ecx
add edx, ecx
mov ecx, dword [0x45b9c8]
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul edx, edx, 0x6f3fe
sub esi, eax
add esi, edx
mov edx, dword [0x45b9b0]
mov eax, 0x10779897
imul edx
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x6352a551
imul ecx
sar edx, 0x12
add esi, edx
mov ecx, edx
mov edx, dword [0x45b9a8]
imul edx, edx, 0xc0c12
shr ecx, 0x1f
add ecx, esi
mov esi, dword [0x45b9c4]
mov dword [esp + 0x18], 0
add ecx, edx
sub ecx, esi
sub ecx, 0x53d95
mov dword [0x45b9b0], ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00407ed0
mov ecx, dword [0x45b9b0]
mov eax, 0x92ea28a3
imul ecx
mov eax, dword [0x45b9c0]
add edx, ecx
imul eax, eax, 0x85399
imul ecx, ecx, 0x67dee
sar edx, 0x12
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [0x45b9c8]
imul edx, edx, 0x6f3fe
add esi, edx
mov edx, dword [0x45b9b8]
add esi, eax
mov eax, 0x6352a551
imul edx
sar edx, 0x12
add esi, edx
mov edi, edx
mov edx, dword [0x45b9bc]
imul edx, edx, 0x53d95
shr edi, 0x1f
add edi, esi
mov esi, dword [esp + 0xc]
add edi, edx
mov edx, dword [0x45b9ac]
mov eax, 0x2a7feb
imul edx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
add edi, ecx
push esi
mov dword [0x45b9bc], edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebx
jg 0x40835a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41a610
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x45d320]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41a732
lea ecx, [esp + 8]
call fcn.0041a4f0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x41a736
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41a6e0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.0041a610
mov edi, eax
test edi, edi
jne 0x41a75a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x41a6a2
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41a6f9
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41a718
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042ec21
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x41a741
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.0042ec21
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41a769
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.0042ec21
add esp, 0x118
ret 4