joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fb310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
or edx, 0xffffffff
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
push edi
mov ebx, dword [ebx + 8]
test byte [esi + 0x1c], 0x80
jne 0x4fb330
xor edi, edi
jmp 0x4fb347
mov edi, dword [esi + 8]
test edi, edi
je 0x4fb347
mov eax, dword [edi + 0x38]
and al, 3
cmp al, 2
je 0x4fb347
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x4fb337
mov esi, dword [esi + 8]
test esi, esi
je 0x4fb46f
mov eax, dword [esp + 0x28]
push ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], eax
nop
cmp dword [esp + 0x2c], 0
je 0x4fb370
cmp dword [eax], 0
je 0x4fb457
cmp esi, edi
je 0x4fb457
cmp ebp, dword [esp + 0x30]
je 0x4fb457
push edx
push ecx
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push dword [esp + 0x38]
push esi
push dword [esp + 0x38]
call fcn.004fad20
add esp, 0x20
mov dword [esp + 0x20], eax
test byte [esi + 0x38], 8
je 0x4fb3ae
movzx edx, word [esi + 0x32]
jmp 0x4fb3b2
movzx edx, word [esi + 0x34]
mov ecx, dword [ebx + 0x74]
cmp dword [ebx + 0x78], ecx
jg 0x4fb3cd
push edx
push eax
push ebp
push 0x8b
push ebx
call fcn.004c7840
add esp, 0x14
jmp 0x4fb400
mov ebp, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4 + 4], ebp
mov ebp, dword [esp + 0x20]
mov dword [eax + ecx*4 + 8], ebp
mov ebp, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x8b
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x74]
test eax, eax
jle 0x4fb417
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [ebx + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4fb44d
mov eax, dword [esp + 0x1c]
not edx
mov ebp, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4fb440
push edx
push ebp
push ecx
call fcn.004d98e0
add esp, 0xc
jmp 0x4fb449
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebp + 0x74]
mov dword [ecx + edx*4], eax
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x20]
mov esi, dword [esi + 0x14]
add eax, 4
inc ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ebp
test esi, esi
jne 0x4fb360
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x50e850
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov dword [edi], 0
cmp dword [0x606158], 0
je 0x50e8a3
mov eax, dword [0x6107f0]
test eax, eax
je 0x50e878
push eax
call dword [0x6061a8]
add esp, 4
lea eax, [esp + 0xc]
push eax
push 0x14
call fcn.004cd7c0
mov eax, dword [0x6107f0]
add esp, 8
test eax, eax
je 0x50e89d
push eax
call dword [0x6061b0]
mov esi, dword [esp + 0x10]
jmp 0x50e8ad
mov esi, dword [esp + 0xc]
jmp 0x50e8b0
push 0x14
call dword [0x606178]
mov esi, eax
add esp, 4
test esi, esi
jne 0x50e8ba
pop edi
lea eax, [esi + 7]
pop esi
ret
cmp byte [0x60615c], 0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
je 0x50e909
mov eax, dword [0x606258]
test eax, eax
je 0x50e8e4
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x50e909
lea eax, [esi + 4]
mov dword [esi + 8], ebp
push eax
push 0
push esi
push 0x50e9a0
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x50e919
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x50e931
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call ebp
add esp, 4
mov dword [esi + 0x10], eax
pop ebp
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
ret
Function at 0x51b590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
push edi
call fcn.004c6650
mov ebx, dword [edi + 0x28]
xor eax, eax
movzx ecx, word [edi + 0x30]
xor ebp, ebp
mov esi, dword [edi + 0x2c]
add esp, 4
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x74]
mov dword [esp + 0x28], ebp
mov eax, dword [eax + 0x3c]
sub eax, ebx
cmp ecx, eax
jle 0x51b5d9
xor ecx, ecx
test eax, eax
sets cl
dec ecx
and ecx, eax
mov dword [esp + 0x20], ebx
cmp esi, ecx
ja 0x51b5f1
mov eax, 0x1010
mov dword [esp + 0x1c], esi
mov word [esp + 0x18], ax
jmp 0x51b616
lea eax, [esp + 0x10]
push eax
push esi
push 0
push edi
call fcn.0051c270
add esp, 0x10
test eax, eax
jne 0x51b6f7
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
movzx edi, byte [ebx]
mov dword [esp + 0x68], edi
cmp edi, 0x80
jb 0x51b637
lea eax, [esp + 0x68]
push eax
push ebx
call fcn.004fc100
mov edi, dword [esp + 0x70]
add esp, 8
cmp edi, 3
jb 0x51b6b9
cmp edi, esi
ja 0x51b6b9
lea eax, [edi - 1]
add eax, ebx
movzx ecx, byte [eax]
mov dword [esp + 0x68], ecx
cmp ecx, 0x80
jb 0x51b666
lea ecx, [esp + 0x68]
push ecx
push eax
call fcn.004fc100
mov ecx, dword [esp + 0x70]
add esp, 8
lea eax, [ecx - 1]
cmp eax, 8
ja 0x51b6b9
cmp ecx, 7
je 0x51b6b9
movzx edx, byte [ecx + 0x56cb40]
lea eax, [edx + edi]
cmp esi, eax
jb 0x51b6b9
lea eax, [esp + 0x38]
sub esi, edx
push eax
push ecx
add esi, ebx
push esi
call fcn.0051df80
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 4], eax
lea eax, [esp + 0x1c]
push eax
call fcn.0051c7f0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
test dword [esp + 0x18], 0x2400
jne 0x51b6c7
test ebp, ebp
je 0x51b6d4
lea eax, [esp + 0x10]
push eax
call fcn.0052d830
add esp, 4
push 0x5787dc
push 0x14b3d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0049bde0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x531c40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
mov ecx, 0xc
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
push edi
cmp byte [ebx + 0x2b], 2
lea edi, [esp + 0x10]
mov eax, dword [ebx + 0x20]
mov ebp, dword [eax]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
je 0x531c71
mov eax, dword [ebx + 4]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
call eax
add esp, 4
lea esi, [ebp + 0x30]
mov ecx, 0xc
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
mov esi, 0x2c
lea edx, [esp + 0x40]
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x531d41
add ecx, 4
add edx, 4
sub esi, 4
jae 0x531c90
cmp byte [esp + 0x1c], 0
je 0x531d41
xor edx, edx
lea ecx, [esp + 0x10]
xor esi, esi
mov eax, dword [ecx]
add eax, edx
add esi, eax
mov eax, dword [ecx + 4]
add eax, esi
add ecx, 8
add edx, eax
lea eax, [esp + 0x38]
cmp ecx, eax
jb 0x531cb8
cmp esi, dword [esp + 0x38]
jne 0x531d41
cmp edx, dword [esp + 0x3c]
jne 0x531d41
lea edi, [ebx + 0x34]
mov esi, 0x2c
mov ecx, edi
lea edx, [esp + 0x10]
lea ebx, [ebx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x531d0b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x531cf0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x78]
lea esi, [esp + 0x10]
mov ecx, 0xc
mov dword [eax], 1
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebx + 0x42]
mov eax, ecx
and ecx, 0xfe00
and eax, 1
pop edi
shl eax, 0x10
pop esi
add eax, ecx
mov dword [ebx + 0x24], eax
xor eax, eax
pop ebp
pop ebx
add esp, 0x60
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret
Function at 0x54006e
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x610b30], 0
push ebx
push esi
mov esi, 0x610b38
jne 0x54009a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x610b50], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x610b30], 1
push dword [0x610b50]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x540137
push 0x14
push 8
push dword [0x60aa40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x540161
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x610b34]
test eax, eax
je 0x5400dc
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x610b34], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x540166
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x610b50]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x60aa40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x540161
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x540649
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x60aa40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x6114a4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x6114a8], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.00543245
mov dword [esi + 0x58], 0x54125c
mov eax, esi
mov dword [esi + 0x5c], 0x5412a8
mov dword [esi + 0x10], fcn.00540dfd
mov dword [esi + 0x30], 0x540cef
mov dword [esi + 0x64], 0x541332
mov dword [esi + 0x60], 0x5412ea
mov dword [esi + 0x34], 0x54099f
mov dword [esi + 0x24], 0x540976
mov dword [esi + 0x28], 0x54094b
mov dword [esi + 0x2c], 0x54089d
mov dword [esi + 0x44], 0x541062
pop esi
ret 4
Function at 0x5464e9
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x54659f
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x54657f
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x54655a
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x546594
add edi, dword [esp + 0x14]
jmp 0x546598
add edi, dword [esp + 0x24]
test edx, edx
jne 0x546538
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x5468aa
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x546984
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x54695a
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x546922
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x546971
add edi, ecx
jmp 0x546975
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x5468f8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x546fa4
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x547059
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x54703a
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x547015
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x54704f
add edx, dword [esp + 0x14]
jmp 0x547053
add edx, dword [esp + 0x24]
test esi, esi
jne 0x546ff3
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x40e447
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40e456
pop dword [ebp - 0x48]
mov eax, 0x99b1bd37
add eax, 0x668f271f
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3eae2
push 0
mov eax, 0x4bc3c5a
sub eax, 0x479ea42
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x4b90
mov edi, eax
mov ebx, 0x30b3dc3f
add ebx, 0xcf8f77c1
add ebx, dword [ebp - 0x48]
mov edx, 0x94ea7b9a
add edx, 0xa3475ed2
add dword [ebp - 0x3c], ecx
mov esi, dword [ebx]
sub dword [ebp - 0x40], 0x72039388
xor esi, edx
mov dword [edi], esi
xor dword [ebp - 0x38], ebx
add edi, 0xb1800eca
add edi, 0x4e7ff13a
add ebx, 0xc92d75e0
add ebx, 0x36d28a24
loop 0x40e4af
add eax, 0x3195522f
add eax, 0xce6bcee4
mov ebx, eax
add eax, 5
mov ecx, 0x67c214df
add ecx, 0x987deb21
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x2e013a72
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.2e0142c9
mov eax, dword [0x2e021014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10010], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x10014], eax
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [ebp - 0x10018], eax
mov dword [ebp - 0x10008], edi
mov dword [ebp - 0x1000c], edi
call fcn.2e0139d8
mov esi, eax
cmp esi, edi
jl 0x2e013b91
push ebx
lea eax, [ebp - 0x10008]
push eax
push edi
push edi
push dword [ebp + 0xc]
push dword [0x2e02230c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80070000
jmp 0x2e013b46
push 0
lea eax, [ebp - 0x1000c]
call dword [eax + 0x68]
add byte [eax], al
add dword [eax], eax
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x2e013b22
call edi
mov esi, eax
test esi, esi
jle 0x2e013b20
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x2e013b90
xor esi, esi
cmp dword [ebp - 0x1000c], esi
jbe 0x2e013b60
push esi
push dword [ebp - 0x1000c]
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x2e013ae9
call edi
mov esi, eax
test esi, esi
jle 0x2e013b5c
and esi, 0xffff
or esi, ebx
test esi, esi
jge 0x2e013ae9
jmp 0x2e013b90
push 0
push dword [ebp - 0x10018]
push dword [ebp - 0x10014]
push 2
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x2e013b90
call edi
mov esi, eax
test esi, esi
jle 0x2e013b90
and esi, 0xffff
or esi, ebx
pop ebx
cmp dword [ebp - 0x10008], 0
je 0x2e013ba6
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.2e013f7c
leave
ret 0x10
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00409a27
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00409a27
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00409a27
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00409a27
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00409a27
mov dword [0x41203c], eax
call fcn.00409a27
test eax, eax
jge 0x402550
push 8
call fcn.00409a27
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00409a27
pop ecx
push 1
call fcn.00409a27
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00409a27
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00409a27
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00409a27
jmp 0x402495

Function at 0x409a27
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x409a36
pop dword [ebp - 0x20]
mov eax, 0x409a36
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x35ece
push 0
mov eax, 0xb5989783
add eax, 0x4aa84955
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x8f0fae3e
add ecx, 0x70f08c81
xor ebx, ebx
add ebx, eax
mov esi, 0xca94d86a
add esi, 0x35ac635a
add esi, dword [ebp - 0x20]
mov edi, 0x6376f89c
add edi, 0x3cfe6cb5
mov edx, dword [esi]
mov dword [ebp - 0x14], 0xb7e3aa2c
xor edx, edi
add dword [ebp - 0x10], 0xca696139
mov dword [ebx], edx
xor dword [ebp - 0x1c], edx
add ebx, 0xa01b3e14
sub ebx, 0xa01b3e10
add esi, 4
loop 0x409a92
add eax, 0x76197f79
add eax, 0x89e75e56
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x512608
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404040
mov eax, dword [ebp - 8]
call fcn.00404040
mov eax, dword [ebp + 8]
call fcn.00404040
xor eax, eax
push ebp
push 0x5126dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x5126f4
call fcn.00403e94
lea eax, [ebp - 8]
mov edx, 0x5126f4
call fcn.00403e94
lea eax, [ebp + 8]
mov edx, 0x5126f4
call fcn.00403e94
mov bl, 1
push 1
lea eax, [ebp + 8]
call fcn.0040405c
push eax
lea eax, [ebp - 8]
call fcn.0040405c
push eax
lea eax, [ebp - 4]
call fcn.0040405c
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x5126b9
xor ebx, ebx
push 0
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x512700
call fcn.00403ed8
mov eax, dword [ebp - 0xc]
mov cx, word [0x512714]
mov dl, 1
call fcn.0044ef60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5126e3
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403c34
lea eax, [ebp + 8]
call fcn.00403c10
ret

Function at 0x1002195
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xf0
push 4
call fcn.010012b0
test eax, eax
pop ecx
je 0x10021b6
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_CLASS_DESCRIPTOR::constructor_void_]
jmp 0x10021b8
xor eax, eax
test eax, eax
mov dword [0x1004004], eax
je 0x10021c9
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_CLASS_DESCRIPTOR::Initialize_void_]
lea ecx, [ebp - 0x78]
call fcn.010012ff
lea ecx, [ebp - 0x78]
call fcn.01001cd6
test al, al
je 0x10021ee
lea ecx, [ebp - 0x78]
call fcn.0100133e
test al, al
je 0x10021ee
push dword [ebp + 0x10]
jmp 0x10021f0
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x788075f1
Capabilities:
Get thread local storage value

Disassembly:
shr eax, 3
jmp 0x78807630
mov edi, edi
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
mov ebx, dword [esi]
cmp ebx, 0xffffffff
je 0x78809ea5
test bl, 4
je 0x78809ea5
test bl, 1
jne 0x78807fa5
push dword [0x78918190]
call dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
push ebx
mov ecx, edi
call fcn.788fa97a
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
add ebx, 8
mov dword [esi], ebx
mov eax, ebx
jmp 0x788075ec
push eax
mov ecx, edi
call fcn.788fa97a
cmp eax, 0xffffffff
jne 0x788075ec
push esi
call fcn.788fa97a
jmp 0x78809e94

Function at 0x78809964
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x7891e1e4]
jne 0x788b001d
test ecx, 0xffff0000
jne 0x788b001d
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [0x7892cdd8], eax
mov dword [0x7892cdd4], ecx
mov dword [0x7892cdd0], edx
mov dword [0x7892cdcc], ebx
mov dword [0x7892cdc8], esi
mov dword [0x7892cdc4], edi
mov word [0x7892cdf0], ss
mov word [0x7892cde4], cs
mov word [0x7892cdc0], ds
mov word [0x7892cdbc], es
mov word [0x7892cdb8], fs
mov word [0x7892cdb4], gs
pushfd
pop dword [0x7892cde8]
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
add ecx, 4
mov dword [0x7892cdec], ecx
mov dword [0x7892cde0], eax
mov dword [0x7892cd28], 0x10001
lea ecx, [ebp + 4]
mov ecx, dword [ecx - 4]
mov dword [0x7892cce4], eax
mov eax, dword [0x7891e1e4]
mov dword [ebp - 4], eax
mov eax, dword [0x789245f8]
xor edi, edi
inc edi
mov dword [ebp - 4], eax
push 0
mov dword [0x7892cddc], ecx
mov dword [0x7892ccd8], 0xc0000409
mov dword [0x7892ccdc], edi
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x788b0100
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
push 0xc0000409
mov dword [ebp - 0x320], edi
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
pop edi
leave
ret

Function at 0x7880f880
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebx
push edi
mov edi, ecx
lea ecx, [edi + 4]
mov ebx, dword [ecx]
cmp ebx, 0xffffffff
je 0x7880f988
test bl, 4
je 0x7880f988
sub ebx, 8
test ebx, 1
je 0x7888fa46
mov eax, ebx
shr eax, 3
jne 0x7880f9e2
push esi
push dword [0x78918190]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x78811148
cmp byte [esi + 0x1d], 0
je 0x7880f8e6
push ebx
mov ecx, edi
call fcn.788fa97a
test eax, eax
jne 0x78811148
mov eax, dword [esi + 0x48]
cmp eax, 0x200
jae 0x78811148
inc eax
mov dword [esi + 0x48], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x38]
dec dword [esi + 0x48]
mov eax, dword [edi]
mov ecx, edi
mov dword [edi + 4], 7
call dword [eax + 0x18]
xor eax, eax
pop esi
pop edi
pop ebx
ret
push ecx
call fcn.788fa97a
push eax
mov ecx, edi
call fcn.788fa97a
jmp 0x7880f913
mov dword [ecx], ebx
jmp 0x7880f913
push esi
and ebx, 2
push ebx
mov ecx, edi
call fcn.788fa97a
jmp 0x7880f910
and dword [0], 0
xor eax, eax
jmp 0x7880f913