joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404320
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41148b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4032d4
call fcn.00404502
push 4
mov dword [esp + 0x18], 0
call fcn.00404d47
mov edi, eax
add esp, 4
test edi, edi
je 0x404394
push ebx
call fcn.004047c0
mov dword [edi], eax
call fcn.004045d0
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004044c3
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404388
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004044eb
pop ebx
jmp 0x404396
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x405485
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427548]
jne 0x40548f
repz ret
jmp fcn.00408c1c
Function at 0x40a66c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x427548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407831
and dword [ebp - 0x14], 0
cmp dword [0x43adf0], 0
mov dword [ebp - 0x18], eax
jne 0x40a71f
push 0x402aa4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a7c7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402a98
push ebx
call edi
test eax, eax
je 0x40a7c7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402a88
push ebx
mov dword [0x43adf0], eax
call edi
push eax
call esi
push 0x402a74
push ebx
mov dword [0x43adf4], eax
call edi
push eax
call esi
push 0x402a58
push ebx
mov dword [0x43adf8], eax
call edi
push eax
call esi
mov dword [0x43ae00], eax
test eax, eax
je 0x40a71f
push 0x402a40
push ebx
call edi
push eax
call esi
mov dword [0x43adfc], eax
mov eax, dword [0x43adfc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a778
cmp dword [0x43ae00], ecx
je 0x40a778
push eax
call esi
push dword [0x43ae00]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a778
test ebx, ebx
je 0x40a778
call edi
test eax, eax
je 0x40a76f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a76f
test byte [ebp - 8], 1
jne 0x40a778
or dword [ebp + 0x10], 0x200000
jmp 0x40a7ab
mov eax, dword [0x43adf4]
cmp eax, dword [ebp - 0x18]
je 0x40a7ab
push eax
call esi
test eax, eax
je 0x40a7ab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a7ab
mov eax, dword [0x43adf8]
cmp eax, dword [ebp - 0x18]
je 0x40a7ab
push eax
call esi
test eax, eax
je 0x40a7ab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43adf0]
call esi
test eax, eax
je 0x40a7c7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a7c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405485
leave
ret
Function at 0x40c9f0
Capabilities:
Accept command line arguments
Get common file path
Read .ini file

Disassembly:
sub esp, 0x808
cmp dword [0x22de4cc], 0x37
jne 0x40ca7c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x4031ec
push 0
push 0x4031f8
push 0x403210
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov eax, dword [esp]
push 0
push 0
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupWrite]
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
mov eax, dword [0x22de4d0]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x22d4474]
mov byte [eax + esi], dl
add esp, 0x808
ret
Function at 0x1b005000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x1b005175
cmp dword [esp + 0x54], 0x40
jne 0x1b005175
cmp word [esp + 0x10], 0x5a4d
jne 0x1b005175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x1b005175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x1b00b960
push esi
call ebx
test eax, eax
je 0x1b005175
cmp dword [esp + 0x54], 0xf8
jne 0x1b005175
cmp dword [0x1b00b960], 0x4550
jne 0x1b005175
mov eax, dword [0x1b00b976]
test ah, 0x20
jne 0x1b005175
mov edx, dword [0x1b00ba80]
xor eax, eax
mov ax, word [0x1b00b966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x1b00ba58], eax
je 0x1b005175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x1b00ba6c], eax
xor eax, eax
mov ax, word [0x1b00b966]
mov edx, dword [0x1b00ba58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x1b005175
cmp dword [esp + 0x54], edi
jne 0x1b005175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x1b00ba80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x1b00b9b4]
cmp edx, eax
ja 0x1b005175
mov edi, dword [0x1b00ba58]
mov ecx, dword [0x1b00b988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x1b005175
xor eax, eax
push 2
mov ax, word [0x1b00b966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x1b005175
cmp dword [edi - 0x20], ebx
ja 0x1b005175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x1b007769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1b00b190
cmp edx, dword [eax]
je 0x1b00778b
add eax, 8
inc ecx
cmp eax, 0x1b00b220
jl 0x1b00777c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1b00b190]
jne 0x1b0078b9
mov eax, dword [0x1b00bbb0]
cmp eax, 1
je 0x1b007893
test eax, eax
jne 0x1b0077bc
cmp dword [0x1b00b0e4], 1
je 0x1b007893
cmp edx, 0xfc
je 0x1b0078b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1b0077f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1b008670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1b008490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1b007836
lea eax, [ebp - 0x1a4]
push eax
call fcn.1b008490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1b00a45c
push edi
call fcn.1b008f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1b008670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1b008680
lea eax, [ebp - 0xa0]
push 0x1b00a43c
push eax
call fcn.1b008680
push dword [esi + 0x1b00b194]
lea eax, [ebp - 0xa0]
push eax
call fcn.1b008680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1b008e75
add esp, 0x2c
pop edi
jmp 0x1b0078b9
lea eax, [ebp + 8]
lea esi, [esi + 0x1b00b194]
push 0
push eax
push dword [esi]
call fcn.1b008490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402dc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40d029], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Marmimo
push str.Mimoclass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402e08
xor eax, eax
jmp 0x402e23
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4053d3
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.004042c5
and dword [ebp - 4], 0
cmp dword [0x40ea48], 0
mov ebx, eax
jne 0x405484
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405535
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405535
push eax
call fcn.00404253
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40ea48], eax
call esi
push eax
call fcn.00404253
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40ea4c], eax
call esi
push eax
call fcn.00404253
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40ea50], eax
call esi
push eax
call fcn.00404253
pop ecx
mov dword [0x40ea58], eax
test eax, eax
je 0x405484
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404253
pop ecx
mov dword [0x40ea54], eax
mov eax, dword [0x40ea54]
cmp eax, ebx
je 0x4054dc
cmp dword [0x40ea58], ebx
je 0x4054dc
push eax
call fcn.004042ce
push dword [0x40ea58]
mov esi, eax
call fcn.004042ce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4054dc
test edi, edi
je 0x4054dc
call esi
test eax, eax
je 0x4054d3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4054d3
test byte [ebp - 0xc], 1
jne 0x4054dc
or dword [ebp + 0x10], 0x200000
jmp 0x405515
mov eax, dword [0x40ea4c]
cmp eax, ebx
je 0x405515
push eax
call fcn.004042ce
pop ecx
test eax, eax
je 0x405515
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405515
mov eax, dword [0x40ea50]
cmp eax, ebx
je 0x405515
push eax
call fcn.004042ce
pop ecx
test eax, eax
je 0x405515
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40ea48]
call fcn.004042ce
pop ecx
test eax, eax
je 0x405535
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405537
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40723e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40dac8]
jne 0x407248
repz ret
jmp fcn.00408965
Function at 0x10034f97
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
add ebp, 0x10
mov dword [esp + 0x10], 5
mov esi, dword [ebp - 8]
mov ecx, esi
mov edx, dword [ebp - 4]
not ecx
and ecx, dword [ebp]
mov eax, edx
mov ebx, dword [ebp - 0x10]
not eax
and eax, dword [ebp + 4]
xor ecx, ebx
mov edi, dword [ebp - 0xc]
xor eax, edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp]
mov dword [ebp - 0xc], eax
not ecx
and ecx, dword [ebp + 8]
mov eax, dword [ebp + 4]
xor ecx, esi
not eax
mov dword [ebp - 8], ecx
and eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, edx
mov dword [ebp - 4], eax
not ecx
mov eax, dword [ebp + 0xc]
and ecx, dword [ebp + 0x10]
not eax
and eax, dword [ebp + 0x14]
xor dword [ebp], ecx
lea ebp, [ebp + 0x28]
xor dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
not ecx
and ecx, ebx
not eax
xor dword [ebp - 0x20], ecx
and eax, edi
xor dword [ebp - 0x1c], eax
not ebx
not edi
and ebx, esi
xor dword [ebp - 0x18], ebx
and edi, edx
xor dword [ebp - 0x14], edi
dec dword [esp + 0x10]
jne 0x10034fab
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100351c3
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x50
push ebx
push ebp
push esi
xor esi, esi
add edx, 0x78
push edi
mov ecx, dword [edx - 0x78]
xor ecx, dword [edx - 0x50]
mov eax, dword [edx - 0x74]
xor eax, dword [edx - 0x4c]
xor ecx, dword [edx - 0x28]
xor eax, dword [edx - 0x24]
xor ecx, dword [edx + 0x28]
xor eax, dword [edx + 0x2c]
xor ecx, dword [edx]
lea edx, [edx + 8]
xor eax, dword [edx - 4]
mov dword [esp + esi*8 + 0x10], ecx
mov dword [esp + esi*8 + 0x14], eax
inc esi
cmp esi, 5
jb 0x100351d3
mov eax, dword [esp + 0x18]
xor edx, edx
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x34]
shld ecx, eax, 1
mov edi, dword [esp + 0x14]
xor edx, ecx
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
add eax, eax
shr esi, 0x1f
xor edx, ebp
xor esi, eax
mov dword [esp + 0x3c], edx
xor esi, dword [esp + 0x30]
xor edx, edx
mov eax, dword [esp + 0x20]
shld ecx, eax, 1
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x24]
xor edx, ecx
mov ecx, dword [esp + 0x2c]
add eax, eax
xor edx, edi
shr esi, 0x1f
xor esi, eax
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x28]
xor edx, edx
shld ecx, eax, 1
xor esi, ebx
xor edx, ecx
mov dword [esp + 0x40], esi
xor edx, dword [esp + 0x1c]
add eax, eax
mov esi, dword [esp + 0x2c]
mov ecx, ebp
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x30]
shld ebp, edx, 1
shr ecx, 0x1f
add edx, edx
shr esi, 0x1f
xor ecx, edx
xor esi, eax
xor ecx, dword [esp + 0x20]
xor eax, eax
xor esi, dword [esp + 0x18]
xor eax, ebp
xor eax, dword [esp + 0x24]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x50], ecx
add edx, 0x50
mov ecx, edi
mov dword [esp + 0x54], eax
shld edi, ebx, 1
shr ecx, 0x1f
xor eax, eax
add ebx, ebx
mov dword [esp + 0x48], esi
xor ecx, ebx
xor eax, edi
xor ecx, dword [esp + 0x28]
xor eax, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + ebx*8 + 0x38]
mov ecx, dword [esp + ebx*8 + 0x3c]
xor dword [edx - 0x50], eax
xor dword [edx - 0x4c], ecx
xor dword [edx - 0x28], eax
xor dword [edx - 0x24], ecx
xor dword [edx], eax
lea edx, [edx + 8]
xor dword [edx - 4], ecx
xor dword [edx + 0x20], eax
xor dword [edx + 0x24], ecx
xor dword [edx + 0x48], eax
xor dword [edx + 0x4c], ecx
inc ebx
cmp ebx, 5
jb 0x100352d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x10035aed
Capabilities:
Hash data using sha384

Disassembly:
mov eax, dword [esp + 4]
push 0x40
push 0x1003e2e8
and dword [eax + 0x80], 0
and dword [eax + 0x84], 0
mov dword [eax + 0xc8], 0x30
add eax, 0x88
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
ret

Function at 0x10035bf3
Capabilities:
Hash data using sha512

Disassembly:
mov eax, dword [esp + 4]
push 0x40
pop ecx
push ecx
and dword [eax + 0x80], 0
and dword [eax + 0x84], 0
mov dword [eax + 0xc8], ecx
add eax, 0x88
push 0x1003e2a8
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
ret
Function at 0x100392af
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
push 0x20
pop ecx
push ecx
and dword [eax + 0x40], 0
and dword [eax + 0x44], 0
mov dword [eax + 0x68], ecx
add eax, 0x48
push 0x1003e428
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
ret
Function at 0x1003aaef
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
push ebp
or eax, edx
push esi
mov esi, dword [esp + 0x18]
or eax, esi
push edi
mov edi, dword [esp + 0x20]
or eax, edi
test al, 3
jne 0x1003ab56
lea ecx, [esi + edi]
mov eax, ecx
lea edi, [ebx + edx]
sub eax, esi
xor ebx, ebx
add eax, 3
shr eax, 2
cmp ecx, esi
sbb ebp, ebp
not ebp
and ebp, eax
jbe 0x1003ab6e
sub edi, esi
mov ecx, dword [esi]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
inc ebx
mov dword [edi + esi], edx
lea esi, [esi + 4]
cmp ebx, ebp
jb 0x1003ab2d
jmp 0x1003ab6e
add edi, edx
cmp edx, edi
jae 0x1003ab6e
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 3
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x1003ab5e
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1003ab73
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
push ebp
or eax, edx
push esi
mov esi, dword [esp + 0x18]
or eax, esi
push edi
mov edi, dword [esp + 0x20]
or eax, edi
test al, 7
jne 0x1003abce
lea ecx, [esi + edi]
mov eax, ecx
lea edi, [ebx + edx]
sub eax, esi
xor ebx, ebx
add eax, 7
shr eax, 3
cmp ecx, esi
sbb ebp, ebp
not ebp
and ebp, eax
jbe 0x1003abe6
sub edi, esi
push dword [esi + 4]
push dword [esi]
call fcn.1003aaaf
inc ebx
mov dword [edi + esi], eax
mov dword [edi + esi + 4], edx
lea esi, [esi + 8]
pop ecx
pop ecx
cmp ebx, ebp
jb 0x1003abb1
jmp 0x1003abe6
add edi, edx
cmp edx, edi
jae 0x1003abe6
sub esi, edx
mov al, byte [esi + edx]
mov ecx, edx
xor ecx, 7
inc edx
mov byte [ecx + ebx], al
cmp edx, edi
jb 0x1003abd6
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1003ad68
Capabilities:
Hash data using sha1

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x5c], eax
ret
Function at 0x408840
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x645580]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x4088dd
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x40010003
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4088d6
mov eax, dword [ebp - 0x2d0]
push ebx
mov bl, 1
test eax, eax
js 0x4088a7
push dword [ebp - 0x218]
mov ecx, edi
call fcn.00403fc0
test al, al
jne 0x4088d5
mov eax, dword [ebp - 0x2d0]
test eax, 0x18000000
setne cl
bt eax, 0x1f
setb al
test al, cl
mov ecx, 0
movzx eax, bl
cmove ecx, eax
test cl, cl
je 0x4088d5
push edi
lea eax, [ebp - 0x2d0]
push eax
call dword [0x6484ec]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00435c51
mov esp, ebp
pop ebp
ret 8

Function at 0x408b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x408b21
xor al, al
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ebp
ret 8

Function at 0x408b30
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x408b55
xor al, al
pop esi
pop ebp
ret 8
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebp
ret 8
Function at 0x40a370
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x645580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xa8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x40
push ecx
push eax
mov dword [ebp - 0xbc], edi
call fcn.0040a0b0
push 0x11
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xa8]
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x40a4cb
cmp eax, 0x11
jae 0x40a4cb
xorps xmm0, xmm0
xor ebx, ebx
movlpd qword [ebp - 0xb0], xmm0
mov esi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
test eax, eax
je 0x40a4b1
nop dword [eax + eax]
cmp byte [ebp + 0x10], 0
movzx edi, word [ebp + ebx*2 - 0x28]
lea eax, [edi - 0x30]
movzx eax, ax
je 0x40a42b
cmp eax, 9
ja 0x40a4cb
mov eax, ecx
mov edx, esi
shld edx, eax, 2
shl eax, 2
add ecx, eax
mov eax, edi
adc esi, edx
cdq
shld esi, ecx, 1
add ecx, ecx
add ecx, eax
adc esi, edx
add ecx, 0xffffffd0
jmp 0x40a49b
shld esi, ecx, 4
shl ecx, 4
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xac], esi
cmp eax, 9
ja 0x40a45b
mov eax, edi
cdq
mov ecx, eax
mov esi, edx
add ecx, dword [ebp - 0xb4]
adc esi, dword [ebp - 0xac]
add ecx, 0xffffffd0
jmp 0x40a49b
lea eax, [edi - 0x61]
cmp ax, 5
ja 0x40a47c
mov eax, edi
cdq
mov ecx, eax
mov esi, edx
add ecx, dword [ebp - 0xb4]
adc esi, dword [ebp - 0xac]
add ecx, 0xffffffa9
jmp 0x40a49b
lea eax, [edi - 0x41]
cmp ax, 5
ja 0x40a4cb
mov eax, edi
cdq
mov ecx, eax
mov esi, edx
add ecx, dword [ebp - 0xb4]
adc esi, dword [ebp - 0xac]
add ecx, 0xffffffc9
adc esi, 0xffffffff
inc ebx
cmp ebx, dword [ebp - 0xb8]
jb 0x40a3f0
mov edi, dword [ebp - 0xbc]
mov dword [edi + 4], esi
mov al, 1
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435c51
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435c51
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40a560
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 0x14]
add edx, 0x14
cmp dword [eax + 0x10], ecx
je 0x40a596
test ecx, ecx
je 0x40a596
mov eax, dword [eax]
cmp eax, edx
jne 0x40a578
mov eax, dword [ebp + 8]
mov dword [eax], 0
xor eax, eax
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov dword [ecx], edx
movzx eax, word [eax + 0x1c]
shr eax, 1
pop ebp
ret 8