joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f2b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a0e08
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x43f2e9
inc eax
mov dword [esi + 0x10], eax
jmp 0x43f3fc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43f2fd
mov eax, 0xffffffc7
jmp 0x43f3fe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43f30e
cmp dword [esi + 8], eax
jne 0x43f2fd
cmp dword [esi + 8], eax
jne 0x43f327
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x43f327
mov eax, 0xffffffc7
jmp 0x43f3fe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43f33b
push eax
mov ecx, ebx
call fcn.0043eae0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004109b0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43f36c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004109d0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0043e250
test eax, eax
mov dword [esp + 0x38], eax
je 0x43f39f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x7e28a8
call fcn.00410bb0
mov eax, dword [esp + 0x38]
jmp 0x43f3fe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0043f110
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x43f3e3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0043f130
mov esi, eax
test esi, esi
jne 0x43f413
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0043f110
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x43f3b5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x7e28a8
call fcn.00410bb0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x7e28a8
call fcn.00410bb0
mov eax, esi
jmp 0x43f3fe

Function at 0x443ef0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x443f50
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x443f50
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x443f50
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x443f50
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x443f90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x476d40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x476d4b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x476e4e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x7e7e9c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x7e7e9c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x7e7e9c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x7e7e9c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x7e7e9c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x7e7e9c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x7e7e9c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x7e7e9c]
xor eax, edx
inc ecx
dec edi
jne 0x476d66
pop edi
test esi, esi
je 0x476e70
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x7e7e9c]
xor eax, edx
inc ecx
dec esi
jne 0x476e52
pop esi
pop ebx
not eax
ret

Function at 0x4776b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x4776f1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4776e6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x477704
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x401a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], str._ffffffffffffffff
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x401aea
cmp dword [ebp - 0x118], 0
je 0x401aea
jmp 0x401b4c
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x401b4c
mov dword [ebp - 0x120], 0x3c41
mov eax, dword [ebp + 8]
add eax, 8
mov dword [0x4360b4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [0x4360d0], edx
mov dword [ebp - 0x120], 0x3c41
mov dword [ebp - 0x120], 0x3c41
call fcn.004011c0
mov eax, dword [ebp + 8]
mov dword [0x4360cc], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
call fcn.00401980
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x401aea
mov esp, ebp
pop ebp
ret

Function at 0x10001016
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0x10003010
push 0x65
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001061
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x10001065
xor eax, eax
jmp 0x100010a7
push ebx
mov ebx, dword [esi]
push 0
push 4
push 2
push 0
push 2
push 0x40000000
push 0x10003038
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010a3
lea eax, [esp + 0xc]
push 0
push eax
add esi, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x100010ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
xor edx, edx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], edx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push 0x8000000
push edx
push edx
push edx
push 0x10003038
push edx
mov word [ebp - 0x24], dx
mov dword [ebp - 0x28], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x10001110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
pop esi
xor eax, eax
leave
ret
Function at 0x401000
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x108
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
mov dword [esp + 8], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 8
push ebx
push 0x404024
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010fa
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x401072
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop ebx
add esp, 0x108
ret
mov ecx, dword [esp + 8]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push 0x404020
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
lea eax, [esp + 0x18]
sub esi, eax
lea edi, [esi + 1]
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
lea esi, [esp + 0x20]
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x10
cmp eax, 3
pop esi
push ebx
jl 0x4010f2
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop edi
pop ebx
add esp, 0x108
ret
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
xor eax, eax
pop ebx
add esp, 0x108
ret

Function at 0x401110
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x30c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x40115c
mov ecx, dword [esp + 0x31c]
pop edi
xor eax, eax
pop esi
mov dword [ecx], 0
add esp, 0x30c
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push 0x404078
stosw word es:[edi], ax
lea edx, [esp + 0xc]
push 0x404068
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x118]
push 0x40405c
push eax
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x225]
mov byte [esp + 0x224], 0
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [esp + 0x10c]
lea edx, [esp + 0x210]
push ecx
push 0x104
stosw word es:[edi], ax
push edx
push 0x40436c
push 0x404054
push 0x404048
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4011f0
pop edi
pop esi
add esp, 0x30c
ret
mov edi, dword [esp + 0x318]
lea eax, [esp + 0x210]
push eax
lea ecx, [esp + 0xc]
push 0x404068
push ecx
push 0x40405c
push edi
call esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
mov edx, dword [esp + 0x31c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov dword [edx], ecx
mov eax, 1
pop esi
add esp, 0x30c
ret
Function at 0x401320
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
push edi
xor edx, edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0xc], edx
call fcn.00401110
add esp, 8
test eax, eax
pop edi
jne 0x401379
add esp, 0x20c
ret
lea edx, [esp + 4]
lea eax, [esp + 0x108]
push edx
push 0x404094
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4013ad
add esp, 0x20c
ret
lea edx, [esp + 4]
push 0x404088
push edx
call fcn.00401240
mov eax, dword [esp + 0x218]
push eax
call dword [0x404350]
add esp, 0xc
test eax, eax
jne 0x4013df
call fcn.00401270
xor eax, eax
add esp, 0x20c
ret
call fcn.00401270
mov eax, 1
add esp, 0x20c
ret

Function at 0x4013f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x210
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov dword [esp + 0xc], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00401110
add esp, 8
test eax, eax
jne 0x40144b
pop edi
pop ebx
add esp, 0x210
ret
lea edx, [esp + 0x10]
lea eax, [esp + 0x114]
push edx
push 0x404094
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401481
pop edi
pop ebx
add esp, 0x210
ret
push esi
lea edx, [esp + 0x14]
push 0x404088
push edx
call fcn.00401240
mov ecx, dword [esp + 0x228]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebx
call dword [0x404354]
add esp, 0x10
mov esi, eax
call fcn.00401270
xor eax, eax
cmp esi, ebx
pop esi
pop edi
sete al
pop ebx
add esp, 0x210
ret

Function at 0x401580
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x208
push edi
xor dl, dl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx ecx, byte [esp + 4]
push ecx
lea edx, [esp + 0x10c]
push 0x4040a4
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
pop edi
neg eax
add esp, 0x208
ret
Function at 0x401a30
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
call fcn.00401600
add esp, 4
test eax, eax
je 0x401b59
mov edi, 0x404210
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 8
push eax
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
mov dword [0x404364], eax
pop ebx
je 0x401b59
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404200
push eax
call esi
mov ecx, dword [0x404364]
push 0x4041f0
push ecx
mov dword [0x404360], eax
call esi
mov edx, dword [0x404364]
push 0x4041dc
push edx
mov dword [0x40435c], eax
call esi
mov dword [0x404358], eax
mov eax, dword [0x404364]
push 0x4041c8
push eax
call esi
mov ecx, dword [0x404364]
push 0x4041b4
push ecx
mov dword [0x404354], eax
call esi
mov edx, dword [0x404364]
push 0x40419c
push edx
mov dword [0x404350], eax
call esi
mov dword [0x40434c], eax
mov eax, dword [0x404360]
test eax, eax
je 0x401b59
mov eax, dword [0x40435c]
test eax, eax
je 0x401b59
mov eax, dword [0x404358]
test eax, eax
je 0x401b59
mov eax, dword [0x404354]
test eax, eax
je 0x401b59
mov eax, dword [0x404350]
test eax, eax
je 0x401b59
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret
Function at 0x405d67
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405d9e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d78
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d73
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dcf
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db1
pop edi
not eax
pop esi
ret 0xc

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 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 0x1001066
Capabilities:
Create process on windows
Terminate process

Disassembly:
push dword [esp + 0x10]
push 0
push dword [esp + 0x14]
push 0x100103c
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1001088
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x10010af
inc esi
mov al, byte [esi]
test al, al
je 0x10010a8
cmp al, 0x22
jne 0x100109d
cmp byte [esi], 0x22
jne 0x10010c0
jmp 0x10010bf
cmp al, 0x20
jle 0x10010c0
inc esi
cmp byte [esi], 0x20
jg 0x10010b3
jmp 0x10010c0
cmp al, 0x20
jg 0x10010c6
inc esi
mov al, byte [esi]
test al, al
jne 0x10010bb
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x10010e0
movzx eax, word [ebp - 0x14]
jmp 0x10010e3
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
pop esi
leave
ret
Function at 0x445bc8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
xor eax, eax
xor edx, edx
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov word [ebx], ax
sub esp, 4
mov word [ebx + 4], ax
mov dword [esi], eax
mov word [ebx + 8], ax
mov dword [edi], edx
mov word [ebx + 0xc], ax
lea eax, str.INFSERV_XMS_INFO
mov word [ebx + 2], dx
push eax
push 0
mov word [ebx + 6], dx
push 2
mov word [ebx + 0xa], dx
mov word [ebx + 0xe], dx
call sub.KERNEL32.dll_OpenFileMappingA
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x445c36
mov dword [esi], 1
call sub.KERNEL32.dll_GetLastError
mov dword [edi], eax
jmp 0x445d0f
sub esp, 4
push 0x100
push 0
push 0
push 2
push dword [ebp - 4]
call sub.KERNEL32.dll_MapViewOfFile
add esp, 4
test eax, eax
jne 0x445c6e
mov dword [esi], 2
call sub.KERNEL32.dll_GetLastError
mov dword [edi], eax
jmp 0x445d01
mov esi, dword [eax + 0xf0]
mov dword [0x3a5d7a8], esi
mov di, word [0x3a5d7a8]
mov dx, word [0x3a5d7aa]
mov word [ebx], di
mov word [ebx + 2], dx
mov ecx, dword [eax + 0xf4]
mov dword [0x3a5d7a8], ecx
mov si, word [0x3a5d7a8]
mov di, word [0x3a5d7aa]
mov word [ebx + 4], si
mov word [ebx + 6], di
mov edx, dword [eax + 0xf8]
mov dword [0x3a5d7a8], edx
mov cx, word [0x3a5d7a8]
mov si, word [0x3a5d7aa]
mov word [ebx + 8], cx
mov word [ebx + 0xa], si
mov edi, dword [eax + 0xfc]
sub esp, 4
mov dword [0x3a5d7a8], edi
mov dx, word [0x3a5d7a8]
mov cx, word [0x3a5d7aa]
push eax
mov word [ebx + 0xc], dx
mov word [ebx + 0xe], cx
call sub.KERNEL32.dll_UnmapViewOfFile
add esp, 4
sub esp, 4
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44a730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 4], eax
lea edi, [ebp - 0x18]
add eax, 7
and eax, 0xfffffff8
cmp eax, 0x1000
jle 0x44a769
sub edi, 0x1000
sub eax, 0x1000
test dword [edi], eax
cmp eax, 0x1000
jg 0x44a755
sub edi, eax
test dword [edi], eax
mov esp, edi
mov dword [ebp - 8], edi
mov ecx, edx
mov esi, dword [ebp + 8]
call fcn.0046e521
mov eax, dword [ebp - 4]
mov edi, esp
mov ebx, eax
add eax, 7
and eax, 0xfffffff8
cmp eax, 0x1000
jle 0x44a7a8
sub edi, 0x1000
sub eax, 0x1000
test dword [edi], eax
cmp eax, 0x1000
jg 0x44a794
sub edi, eax
test dword [edi], eax
mov esp, edi
mov dword [ebp - 4], edi
mov ecx, ebx
mov esi, dword [ebp - 8]
mov eax, edx
call fcn.0046f930
mov eax, 0x20
call fcn.0046e6bd
push ebx
mov edx, dword [ebp - 4]
push edx
call fcn.0046f8b0
mov ebx, eax
cmp eax, 0x1ff
jle 0x44a7e7
lea esp, [ebp - 0x18]
mov eax, 0xffffffff
jmp 0x44a8db
lea esp, [ebp - 0x18]
mov esi, ebx
test ebx, ebx
jge 0x44a7f2
xor esi, esi
mov edi, ebx
test ebx, ebx
jge 0x44a7fa
xor edi, edi
xor edx, edx
mov ecx, esi
mov esi, dword [ebp + 8]
mov eax, edi
lea edi, [0x3a5eb74]
add esi, edx
lea edx, [0x3a5eb30]
call fcn.0046f930
mov eax, 0x20
call fcn.0046e6bd
mov byte [ebx + 0x3a5eb74], 0
push 0x44
push edx
lea edi, [0x3a5eb20]
call sub.KERNEL32.dll_RtlZeroMemory
lea ebx, [0x3a5eb30]
lea eax, [0x3a5eb74]
mov dword [0x3a5eb30], 0x44
push edi
push ebx
push dword [0x3f56648]
push 0
push 0
push 0
push dword [0x3f56618]
push dword [0x3f56618]
push eax
push dword [0x3f56648]
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x44a888
call sub.KERNEL32.dll_GetLastError
jmp 0x44a8db
sub esp, 4
mov esi, 1
push dword [0x3a5eb24]
call sub.KERNEL32.dll_CloseHandle
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x44a8b1
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [edi], 0
setne bl
mov esi, ebx
test esi, esi
je 0x44a8c5
push 0xffffffff
push dword [0x3a5eb20]
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 4
push dword [0x3a5eb20]
call sub.KERNEL32.dll_CloseHandle
add esp, 4
mov eax, 0
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc