joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d39
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x403e81
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
sub byte [esi + edi], 0x5d
call ebx
add byte [esi + edi], 0x8e
call ebx
xor byte [esi + edi], 0x80
call ebx
add byte [esi + edi], 0x2e
call ebx
add byte [esi + edi], 0xb3
call ebx
add byte [esi + edi], 0xdf
call ebx
call ebx
xor byte [esi + edi], 0xe7
call ebx
add byte [esi + edi], 0x9b
call ebx
add byte [esi + edi], 0x52
call ebx
xor byte [esi + edi], 0x89
call ebx
add byte [esi + edi], 0x4e
call ebx
add byte [esi + edi], 0xd6
call ebx
add byte [esi + edi], 0x9e
call ebx
add byte [esi + edi], 0xa0
call ebx
add byte [esi + edi], 0xa1
call ebx
xor byte [esi + edi], 0xf7
call ebx
add byte [esi + edi], 0xa4
call ebx
add byte [esi + edi], 0x60
call ebx
add byte [esi + edi], 0xb5
call ebx
add byte [esi + edi], 0xf4
call ebx
add byte [esi + edi], 0x37
call ebx
add byte [esi + edi], 0xaf
call ebx
add byte [esi + edi], 0x13
call ebx
add byte [esi + edi], 0x3b
call ebx
xor byte [esi + edi], 0x6a
call ebx
add byte [esi + edi], 0x82
call ebx
add byte [esi + edi], 0xb6
call ebx
add byte [esi + edi], 0xed
call ebx
add byte [esi + edi], 0xb4
call ebx
add byte [esi + edi], 0xfd
call ebx
xor byte [esi + edi], 0x9f
call ebx
xor byte [esi + edi], 0xab
call ebx
xor byte [esi + edi], 0xea
call ebx
add byte [esi + edi], 0xf9
call ebx
add byte [esi + edi], 0xac
call ebx
xor byte [esi + edi], 0xd
call ebx
add byte [esi + edi], 0x23
call ebx
add byte [esi + edi], 0xa2
call ebx
xor byte [esi + edi], 0xea
call ebx
add byte [esi + edi], 0x26
call ebx
xor byte [esi + edi], 0xb2
call ebx
add byte [esi + edi], 0x56
call ebx
xor byte [esi + edi], 0xca
call ebx
add byte [esi + edi], 0x14
call ebx
xor byte [esi + edi], 0xae
call ebx
add byte [esi + edi], 0xd7
call ebx
add byte [esi + edi], 0x27
call ebx
add byte [esi + edi], 0x81
inc esi
cmp esi, dword [esp + 0x14]
jb 0x403d52
pop edi
pop ebx
pop esi
ret

Function at 0x403f0b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x45a8ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403f74
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b44
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004040e2
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x403f8c
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403ab2
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x403f3c
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405f48
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403ab2
jmp 0x403f76
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x401563
Capabilities:
Accept command line arguments
Terminate process

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 0x40158c
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401584
cmp al, 0x22
jne 0x401578
cmp byte [esi], 0x22
jne 0x401596
inc esi
jmp 0x401596
cmp al, 0x20
jle 0x401596
inc esi
cmp byte [esi], 0x20
jg 0x401590
mov al, byte [esi]
test al, al
je 0x4015a0
cmp al, 0x20
jle 0x401589
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004023ba
push 0x404004
push section..data
call fcn.004023a0
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4015d0
movzx eax, word [ebp - 0x14]
jmp 0x4015d3
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.004010b0
mov esi, eax
call fcn.004023d2
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403361
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [edi + 4]
xor ebx, ebx
cmp dword [0x2803900], 0x594
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], eax
jne 0x4033ae
push 0x402e08
push 0x402e14
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x402e28
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x80b4a8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x80b4ac]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00403357
mov eax, dword [0x80b4b0]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x2c], eax
mov eax, dword [0x80b4b4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0x20
jmp 0x4033ec
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x2803900], 0xc
mov dword [ebp - 4], eax
jne 0x403451
push ebx
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc4c]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [0x2803900]
cmp eax, 0xfa9
jne 0x40346d
mov dword [0x2802e9c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40347a
mov dword [0x280284c], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add eax, esi
shr esi, cl
mov dword [ebp - 0x14], eax
mov dword [0x2802e98], 0xf4ea3dee
add esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor esi, dword [ebp - 4]
cmp dword [0x2803900], 0x213
mov dword [ebp - 0x14], esi
jne 0x4034b7
push 0x402e40
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + edx]
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
xor eax, esi
xor dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x18]
call fcn.0040335e
add dword [ebp - 0x10], 0x61c88647
dec dword [ebp - 0x20]
jne 0x4033e9
cmp dword [0x2803900], 0xa6d
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
jne 0x403523
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40352d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2803900]
mov ecx, dword [0x2802850]
sub esp, 0x58c
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4035ef
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x2803900], 0x959
jne 0x4035dd
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x188]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402e54
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
lea eax, [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call fcn.00403361
add ebx, 8
dec dword [ebp - 8]
jne 0x403556
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039be
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x2803900], 0x400
push edi
jne 0x403a10
push esi
push esi
call fcn.00403ca6
push esi
push esi
call fcn.00403ca6
push esi
push esi
push esi
call fcn.0040466d
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403332
fstp st(0)
push esi
call fcn.004046f2
pop ecx
push esi
call fcn.00404484
pop ecx
mov eax, dword [0x80bb34]
mov dword [0x2803900], eax
mov eax, dword [0x80bb0c]
mov dword [0x2803904], eax
call fcn.004036c3
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403a77
cmp dword [esp + 0x18], 0x785074d5
jne 0x403a85
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403a32
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x4031ac
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x4031e8
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403ab4
cmp dword [esp + 0x18], 0x785074d5
jne 0x403abd
inc edi
cmp edi, 0x11915
jl 0x403a87
mov eax, dword [0x2802850]
mov dword [0x2802e94], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a124
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80ae24]
jne 0x40a12e
repz ret
jmp fcn.0040d8e4
Function at 0x40d491
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.00405fe3
and dword [ebp - 4], 0
cmp dword [0x80c458], 0
mov ebx, eax
jne 0x40d542
push 0x402cb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d5f3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ca8
push edi
call esi
test eax, eax
je 0x40d5f3
push eax
call fcn.00405f71
mov dword [esp], 0x402c98
push edi
mov dword [0x80c458], eax
call esi
push eax
call fcn.00405f71
mov dword [esp], 0x402c84
push edi
mov dword [0x80c45c], eax
call esi
push eax
call fcn.00405f71
mov dword [esp], 0x402c68
push edi
mov dword [0x80c460], eax
call esi
push eax
call fcn.00405f71
pop ecx
mov dword [0x80c468], eax
test eax, eax
je 0x40d542
push 0x402c50
push edi
call esi
push eax
call fcn.00405f71
pop ecx
mov dword [0x80c464], eax
mov eax, dword [0x80c464]
cmp eax, ebx
je 0x40d59a
cmp dword [0x80c468], ebx
je 0x40d59a
push eax
call fcn.00405fec
push dword [0x80c468]
mov esi, eax
call fcn.00405fec
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d59a
test edi, edi
je 0x40d59a
call esi
test eax, eax
je 0x40d591
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d591
test byte [ebp - 0xc], 1
jne 0x40d59a
or dword [ebp + 0x10], 0x200000
jmp 0x40d5d3
mov eax, dword [0x80c45c]
cmp eax, ebx
je 0x40d5d3
push eax
call fcn.00405fec
pop ecx
test eax, eax
je 0x40d5d3
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d5d3
mov eax, dword [0x80c460]
cmp eax, ebx
je 0x40d5d3
push eax
call fcn.00405fec
pop ecx
test eax, eax
je 0x40d5d3
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80c458]
call fcn.00405fec
pop ecx
test eax, eax
je 0x40d5f3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d5f5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4075d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x4075ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4075f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4075e0
mov eax, 1
add ebx, ebx
jne 0x407603
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4075f8
jne 0x407614
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4075f8
xor ecx, ecx
sub eax, 3
jb 0x407628
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40769a
mov ebp, eax
add ebx, ebx
jne 0x407633
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407640
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x407664
inc ecx
add ebx, ebx
jne 0x407650
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407645
jne 0x407661
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407645
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x407684
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x407675
jmp 0x4075e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x407684
add edi, ecx
jmp 0x4075e6
pop esi
mov edi, esi
mov ecx, 2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4076a2
cmp byte [edi], 0
jne 0x4076a2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4076a7
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407716
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x71c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7228]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4076d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7230]
or eax, eax
je 0x407710
mov dword [ebx], eax
add ebx, 4
jmp 0x4076f1
call dword [esi + 0x722c]
mov ebp, dword [esi + 0x7234]
lea edi, [esi - 0x1000]
mov ebx, pe_overlay
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40774a
sub esp, 0xffffff80
jmp 0x401020
Function at 0x403076
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x417104]
sub esi, dword [0x40b070]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.kernel32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423f6c], eax
jle 0x4031e0
push dword [0x41f114]
call fcn.00403224
push ebx
push ebx
push dword [0x40b070]
push dword [0x409018]
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [0x41f110], esi
mov dword [0x417100], ebx
mov ebp, 0x40b100
mov eax, dword [0x417108]
mov edi, 0x4000
sub eax, dword [0x41f114]
cmp eax, edi
jg 0x4030eb
mov edi, eax
mov esi, 0x413100
push edi
push esi
call fcn.00405d43
test eax, eax
je 0x4031d2
add dword [0x41f114], edi
mov dword [0x40b090], esi
mov dword [0x40b094], edi
cmp dword [0x423f70], ebx
je 0x403142
cmp dword [0x424000], ebx
jne 0x403142
mov eax, dword [0x41f110]
push ebx
sub eax, dword [0x417104]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40b070]
mov dword [0x417100], eax
call fcn.00405d43
pop ecx
mov ecx, 0x40b078
mov dword [0x40b098], ebp
mov dword [0x40b09c], 0x8000
call fcn.00405d43
test eax, eax
jl 0x4031db
mov esi, dword [0x40b098]
sub esi, ebp
je 0x40319c
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4031d7
cmp esi, dword [esp + 0x10]
jne 0x4031d7
add dword [0x40b070], esi
cmp dword [0x40b094], ebx
jne 0x403111
jmp 0x4031a8
cmp dword [0x40b094], ebx
jne 0x4031db
cmp edi, ebx
je 0x4031db
mov eax, dword [0x417104]
mov ecx, eax
sub ecx, dword [0x40b070]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030d5
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.kernel32.dll_SetFilePointer]
jmp 0x4031e0
or eax, 0xffffffff
jmp 0x4031ea
push 0xfffffffffffffffe
jmp 0x4031dd
push 0xfffffffffffffffd
pop eax
jmp 0x4031ea
push 1
call fcn.00405d43
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x405a6f
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.004060b1
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405a93
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405bcc
mov ebx, dword [sym.imp.kernel32.dll_GetShortPathNameA]
mov dword [0x4226f0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226f0
je 0x405ad7
push 1
push 0
push esi
call fcn.004059f8
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405bd2
cmp eax, edi
jg 0x405bd2
mov esi, 0x422168
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405bd2
cmp eax, edi
jg 0x405bd2
push esi
push ebp
push str._s_s_r_n
push 0x421d68
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d43
push 4
push 0xc0000000
push esi
call fcn.004059f8
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405bcc
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405bc5
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x405bc5
cmp edi, dword [esp + 0x18]
jne 0x405bc5
push str._Rename__r_n
push esi
call fcn.0040596d
test eax, eax
jne 0x405bd9
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405d21
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d68
push eax
call fcn.004059b9
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
inc dword [0x423ff0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409404
push eax
call fcn.0040596d
test eax, eax
je 0x405b90
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405c00
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405bf5
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405b92
Function at 0x405d43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x405d52
pop dword [ebp - 0x2c]
mov eax, 0x283b8957
add eax, 0xd804d3fb
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x668982bd
add dword [ebp - 0x3c], 0xe7c8c28e
mov dword [ebp - 0x38], 0x51f5b98d
add dword [ebp - 0x38], 0xe03d92b8
mov dword [ebp - 0x34], 0x4ea18af9
sub dword [ebp - 0x34], 0x25546cb
mov dword [ebp - 0x30], 0x95ca0fe3
add dword [ebp - 0x30], 0x6a35f01d
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xc858bba5
add dword [ebp - 0x3c], 0xac19adb1
mov dword [ebp - 0x38], 0xb6c51400
sub dword [ebp - 0x38], 0x7558b28b
mov dword [ebp - 0x34], 0x7b57fddc
sub dword [ebp - 0x34], 0x17e89170
mov dword [ebp - 0x30], 0x116640e3
sub dword [ebp - 0x30], 0x116640e3
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x3f833675
sub eax, 0x3f42c565
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x32ba5
push 0
call eax
mov ecx, 0x371f
xor edi, edi
add edi, eax
mov ebx, 0x436000
add ebx, dword [ebp - 0x2c]
mov esi, 0x35c79b2a
sub esi, 0x65f3c1e0
add dword [ebp - 0xc], 0x123a66cc
mov edx, dword [ebx]
sub dword [ebp - 0x24], 0xc5deff96
xor edx, esi
xor dword [ebp - 0x18], edi
mov dword [edi], edx
add edi, 4
add ebx, 0x47a6a130
sub ebx, 0x47a6a12c
loop 0x405e65
add eax, 0xcf4f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5cde8e94
sub ecx, 0x5c9e8e94
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x406120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422af4], 0
push esi
jne 0x406157
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 0x406131
mov dword [ecx*4 + 0x422af0], eax
inc ecx
cmp ecx, 0x100
jl 0x40612c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406188
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 + 0x422af0]
xor eax, esi
inc ecx
dec edx
jne 0x40616a
pop edi
not eax
pop esi
ret 0xc