joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a12c8
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005a1244
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5a1440
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5a1440
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5a13ef
jg 0x5a1321
test eax, eax
je 0x5a13e5
push 1
push 0x1000
call fcn.005911e0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5a1347
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x5a13dc
push 0x8000
push ebx
call fcn.0058dd60
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5a1373
jg 0x5a136e
cmp ecx, 0x1000
jb 0x5a1373
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00595a27
add esp, 0x10
cmp eax, 0xffffffff
je 0x5a13b8
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5a136e
jl 0x5a139f
test ecx, ecx
jne 0x5a1360
push dword [ebp - 0xc]
push ebx
call fcn.0058dd60
push esi
call fcn.00591158
add esp, 0xc
xor edi, edi
jmp 0x5a1451
cmp byte [edi + 0x24], 0
je 0x5a13cf
cmp dword [edi + 0x20], 5
jne 0x5a13cf
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5a13da
mov edi, dword [edi + 0x18]
jmp 0x5a13dc
xor edi, edi
push esi
call fcn.00591158
pop ecx
jmp 0x5a1451
test ecx, ecx
jg 0x5a13b1
jl 0x5a13ef
test eax, eax
jae 0x5a13b1
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00596ec5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5a1412
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5a13b1
jmp 0x5a1449
push ebx
call fcn.0058cfb7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5a13b1
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x5a1451
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5a144e
mov edi, dword [edi + 0x18]
jmp 0x5a1451
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00596ec5
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5a2400
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [0x62f5d4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x6303fc]
cmp eax, dword [ecx + 4]
jg 0x5a2422
mov eax, 0x6303e8
ret
push 0x6303fc
call fcn.0056e8de
add esp, 4
cmp dword [0x6303fc], 0xffffffff
jne 0x5a241c
push esi
push 0x5fbe10
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x5a24a5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5fbe28
push esi
call edi
mov dword [0x6303e8], eax
test eax, eax
je 0x5a24a4
push 0x5fbe40
push esi
call edi
mov dword [0x6303ec], eax
test eax, eax
je 0x5a24a4
push 0x5fbe54
push esi
call edi
mov dword [0x6303f0], eax
test eax, eax
je 0x5a24a4
push 0x5fbe74
push esi
call edi
mov dword [0x6303f4], eax
test eax, eax
je 0x5a24a4
push 0x5fbe88
push esi
call edi
mov dword [0x6303f8], eax
jmp 0x5a24a4
pop edi
push 0x5b90e0
call fcn.0056e796
push 0x6303fc
call fcn.0056e894
add esp, 8
pop esi
jmp 0x5a241c
Function at 0x414e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x414e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e70
mov eax, 1
add ebx, ebx
jne 0x414e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414e88
jne 0x414ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414e88
xor ecx, ecx
sub eax, 3
jb 0x414eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414f2a
mov ebp, eax
add ebx, ebx
jne 0x414ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ef4
inc ecx
add ebx, ebx
jne 0x414ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414ed5
jne 0x414ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414f05
jmp 0x414e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414f14
add edi, ecx
jmp 0x414e76
pop esi
mov edi, esi
mov ecx, 0x5a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414f32
cmp byte [edi], 5
jne 0x414f32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x414f37
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414fa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1551c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414f64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15520]
or eax, eax
je 0x414fa0
mov dword [ebx], eax
add ebx, 4
jmp 0x414f81
call dword [esi + 0x15530]
mov ebp, dword [esi + 0x15524]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414fda
sub esp, 0xffffff80
jmp 0x40a764

Function at 0xf06828
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf06832
pushal
call 0xf06838
pop ebp
sub ebp, 0x10
sub ebp, 0xb06828
jmp 0xf0684e
mov eax, 0xb06828
add eax, ebp
add eax, 0x4c
mov ecx, 0x59c
mov edx, 0x8fa3bdc9
xor byte [eax], dl
inc eax
dec ecx
jne 0xf06865
jmp 0xf06878
inc edx
add al, 0x42
inc eax
cmc
leave
leave
leave
dec eax
or byte [ecx], dh
leave
leave
leave
retf 0x7104
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x10ef97c4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10ef97ce
pushal
call 0x10ef97d4
pop ebp
sub ebp, 0x10
sub ebp, 0xef97c4
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10ef97f8
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x10ef9801
mov eax, 0xef97c4
add eax, ebp
add eax, 0x63
mov ecx, 0x5c9
mov edx, 0x42b388de
leave
add eax, 0xdeba0000
mov byte [ebx + 0x40103042], dh
xor byte [eax], dl
inc eax
dec ecx
jne 0x10ef9818
jmp 0x10ef982b
push ebp
adc edx, dword [ebp + 0x57]
loop 0x10ef980f
invalid
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40633c
pop dword [ebp - 0x14]
mov eax, 0xa3d6203a
sub eax, 0xa395bcfe
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x89adacdc
add dword [ebp - 0x24], 0xc4a4986f
mov dword [ebp - 0x20], 0xa6b38502
sub dword [ebp - 0x20], 0x748038bd
mov dword [ebp - 0x1c], 0xed43186e
add dword [ebp - 0x1c], 0x5f092bc0
mov dword [ebp - 0x18], 0xc82d50c3
add dword [ebp - 0x18], 0x37d2af3d
lea eax, [ebp - 0x24]
push eax
mov eax, 0x457dc226
sub eax, 0x453d51c6
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xbb126fd6
sub dword [ebp - 0x24], 0x46a00680
mov dword [ebp - 0x20], 0x80f66646
sub dword [ebp - 0x20], 0x3f8a04d1
mov dword [ebp - 0x1c], 0x273020a4
sub dword [ebp - 0x1c], 0xc3c0b438
mov dword [ebp - 0x18], 0x1bf7cf54
sub dword [ebp - 0x18], 0x1bf7cf54
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xdb4185cd
sub eax, 0xdb0114cd
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x38fc5
push 0
call eax
mov ecx, 0x8f19671d
add ecx, 0x70e6ea5b
xor ebx, ebx
add ebx, eax
mov edx, 0x410000
add edx, dword [ebp - 0x14]
mov edi, 0x53df38cc
add edi, 0x90948156
xor dword [ebp - 8], edx
mov esi, dword [edx]
sub dword [ebp - 4], esi
sub esi, edi
xor dword [ebp - 0x10], edx
mov dword [ebx], esi
xor dword [ebp - 0xc], eax
add ebx, 0x815f19c0
add ebx, 0x7ea0e644
add edx, 0xecfa10bf
sub edx, 0xecfa10bb
loop 0x40645a
add eax, 0xd55c1834
add eax, 0x2aa5207f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5dcd3748
sub ecx, 0x5d8d3748
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x407350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40735f
pop dword [ebp - 0x50]
mov eax, 0x5fbc1095
add eax, 0xa08462ca
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x4086e
push 0
mov eax, 0xb6629fb5
sub eax, 0xb6204d9d
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xb1b25be4
add ecx, 0x4e4df733
mov ebx, eax
mov esi, 0x435400
add esi, dword [ebp - 0x50]
mov edx, 0x616ddadd
add edx, 0x7e3640f
sub dword [ebp - 0x18], edi
mov edi, dword [esi]
add dword [ebp - 0x10], esi
add edi, edx
xor dword [ebp - 0x34], ecx
mov dword [ebx], edi
sub dword [ebp - 0x1c], edi
add ebx, 4
add esi, 4
loop 0x4073b8
add eax, 0x15886f3b
add eax, 0xea78cff4
xor ebx, ebx
add ebx, eax
add eax, 0x89fe6a51
add eax, 0x760195b4
mov ecx, 0x3fb3ae67
sub ecx, 0x3f73ae67
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x407875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f180]
jne 0x40787f
repz ret
jmp fcn.0040bbd7
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10029ea1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret

Function at 0x10029ea1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10029eb0
pop dword [ebp - 0xc]
mov eax, 0x252e5c3b
add eax, 0xead44275
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x40366
push 0
mov eax, 0xa2656e8b
add eax, 0x6d9d82d1
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0xf9a444d5
add ecx, 0x65c031e
xor edi, edi
add edi, eax
mov ebx, 0x1004ac00
add ebx, dword [ebp - 0xc]
mov esi, 0x2f086a4e
add dword [ebp - 8], edx
mov edx, dword [ebx]
sub dword [ebp - 8], 0xfead45bb
sub edx, esi
mov dword [edi], edx
xor dword [ebp - 8], 0x69df7a
add edi, 4
add ebx, 0x27c15f0d
add ebx, 0xd83ea0f7
loop 0x10029f05
add eax, 0x1129f
mov ebx, eax
add eax, 0x3f1319dc
sub eax, 0x3f1319d7
mov ecx, 0x2ee3e042
sub ecx, 0x1ee3e042
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x100074f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 0x100bde58
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10007551
mov ecx, dword [ebp - 4]
shr ecx, 8
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
xor edx, eax
mov eax, dword [ebp - 0x10]
xor ecx, dword [eax + edx*4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x1000750b
mov eax, dword [ebp - 4]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x10007560
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0x100bde58
cmp dword [ebp + 0xc], 0
je 0x10007619
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 0x14], 0
je 0x10007617
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 3], al
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov dl, byte [ebp - 3]
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 2]
cmp eax, 0x23
jne 0x100075f4
cmp dword [ebp + 0xc], 2
jb 0x100075f4
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x100075f4
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x23
jne 0x100075f4
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 8
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
movzx edx, byte [ebp - 2]
xor ecx, edx
mov edx, dword [ebp - 0x10]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 0xc], eax
jmp 0x1000758b
jmp 0x1000768e
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov al, byte [ebp - 4]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x1000768e
movzx edx, byte [ebp - 1]
cmp edx, 0x23
jne 0x1000766f
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x1000766f
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp - 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x23
jne 0x1000766f
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shr edx, 8
mov eax, dword [ebp - 0xc]
and eax, 0xff
movzx ecx, byte [ebp - 1]
xor eax, ecx
mov ecx, dword [ebp - 0x10]
xor edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
jmp 0x10007619
mov eax, dword [ebp - 0xc]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x10007840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1008db2a
add esp, 0x10
xor edx, edx
pop ebp
ret

Function at 0x10007860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1008d737
add esp, 0x10
xor edx, edx
pop ebp
ret
Function at 0x10052ed0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.10052ea0
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0xc], ecx
push 4
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
push 0x20001004
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x10052f20
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], 0
mov esp, ebp
pop ebp
ret

Function at 0x100771a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100f426c]
mov dword [ebp - 4], eax
jmp 0x100771b8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100771ce
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x100771cc
mov eax, dword [ebp - 4]
jmp 0x10077249
jmp 0x100771b0
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10077246
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x10077208
mov edx, dword [ebp - 4]
mov eax, dword [0x100f426c]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100f426c], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10078390
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x100f2010]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x1007852e
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10078524
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x20], 0x10
jb 0x100784c4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100784c4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100784c4
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1007844f
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
push edx
push 0
mov eax, dword [0x100f4154]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1007844d
mov dword [ebp - 0x24], 0
jmp 0x100784e1
jmp 0x100784a4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x100784a4
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 2
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x100f4154]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x1007849c
mov dword [ebp - 0x24], 0
jmp 0x100784e1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0x20], 0x1c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100783e2
cmp dword [ebp - 0x24], 0
je 0x100784f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x100784f9
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0
jne 0x10078524
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x10078524
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x100f4154]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084889
mov esp, ebp
pop ebp
ret
Function at 0x10078540
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10078390
add esp, 4
test eax, eax
jne 0x10078583
mov dword [ebp - 0xc], 9
jmp 0x100785f1
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x100785f1
mov dword [ebp - 4], 0
jmp 0x1007859d
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jae 0x100785f1
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
push edx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100785ef
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10078210
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10078594
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x10078600
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x10078674
mov dword [ebp - 4], 0
jmp 0x10078620
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jae 0x10078660
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1007865e
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10078617
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x100f4154]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esp, ebp
pop ebp
ret