joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x417786
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x417795
pop dword [ebp - 0x10]
mov eax, 0x417795
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x385f8fbd
add dword [ebp - 0x20], 0x15f2b58e
mov dword [ebp - 0x1c], 0xe3de26f3
add dword [ebp - 0x1c], 0x4e552552
mov dword [ebp - 0x18], 0xa8f37f5f
add dword [ebp - 0x18], 0xa358c4cf
mov dword [ebp - 0x14], 0x2703d87c
add dword [ebp - 0x14], 0xd8fc2784
lea eax, [ebp - 0x20]
push eax
mov eax, 0xf036125c
add eax, 0x100c1e18
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xbac3faa4
add dword [ebp - 0x20], 0xb9ae6eb2
mov dword [ebp - 0x1c], 0x33fc18c6
add dword [ebp - 0x1c], 0xd7048af
mov dword [ebp - 0x18], 0x724b5cfa
sub dword [ebp - 0x18], 0xedbf08e
mov dword [ebp - 0x14], 0x8e2d4f2e
sub dword [ebp - 0x14], 0x8e2d4f2e
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x458ca
push 0
call eax
mov ecx, 0xb4165b2e
add ecx, 0x4bea0aa9
mov ebx, eax
mov esi, 0x6109976b
sub esi, 0x60c6536b
add esi, dword [ebp - 0x10]
mov edx, 0x5171f07b
add edx, 0xe12d1e76
sub dword [ebp - 0xc], edi
mov edi, dword [esi]
sub dword [ebp - 8], ebx
xor edi, edx
add dword [ebp - 4], 0xc88fa6ae
mov dword [ebx], edi
mov dword [ebp - 0xc], 0xf46d1540
add ebx, 0x74b4c6b3
sub ebx, 0x74b4c6af
add esi, 0x4bd8a1b9
add esi, 0xb4275e4b
loop 0x4178ad
add eax, 0xb1e575cc
add eax, 0x4e1c1463
mov ebx, eax
add eax, 0xd7cbe8c2
sub eax, 0xd7cbe8bd
mov ecx, 0x711d5aa9
sub ecx, 0x70dd5aa9
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x407009
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x8099f0]
jne 0x407013
repz ret
jmp fcn.004087f5

Function at 0x40716b
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.0040386a
and dword [ebp - 4], 0
cmp dword [0x80a8cc], 0
mov ebx, eax
jne 0x40721c
push 0x4019c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4072cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019b8
push edi
call esi
test eax, eax
je 0x4072cd
push eax
call fcn.004037f8
mov dword [esp], 0x4019a8
push edi
mov dword [0x80a8cc], eax
call esi
push eax
call fcn.004037f8
mov dword [esp], 0x401994
push edi
mov dword [0x80a8d0], eax
call esi
push eax
call fcn.004037f8
mov dword [esp], 0x401978
push edi
mov dword [0x80a8d4], eax
call esi
push eax
call fcn.004037f8
pop ecx
mov dword [0x80a8dc], eax
test eax, eax
je 0x40721c
push 0x401960
push edi
call esi
push eax
call fcn.004037f8
pop ecx
mov dword [0x80a8d8], eax
mov eax, dword [0x80a8d8]
cmp eax, ebx
je 0x407274
cmp dword [0x80a8dc], ebx
je 0x407274
push eax
call fcn.00403873
push dword [0x80a8dc]
mov esi, eax
call fcn.00403873
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407274
test edi, edi
je 0x407274
call esi
test eax, eax
je 0x40726b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40726b
test byte [ebp - 0xc], 1
jne 0x407274
or dword [ebp + 0x10], 0x200000
jmp 0x4072ad
mov eax, dword [0x80a8d0]
cmp eax, ebx
je 0x4072ad
push eax
call fcn.00403873
pop ecx
test eax, eax
je 0x4072ad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4072ad
mov eax, dword [0x80a8d4]
cmp eax, ebx
je 0x4072ad
push eax
call fcn.00403873
pop ecx
test eax, eax
je 0x4072ad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80a8cc]
call fcn.00403873
pop ecx
test eax, eax
je 0x4072cd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4072cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016c4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push str._new_console
push esi
call fcn.0040555a
pop ecx
pop ecx
test al, al
jne 0x4018ce
push str._cur_console
push esi
call fcn.0040555a
pop ecx
pop ecx
test al, al
jne 0x4018ce
push ebx
push edi
call fcn.00404d22
xor eax, eax
lea ecx, [ebp - 0x20]
mov bl, al
call fcn.004050e0
xor eax, eax
mov bh, 1
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.004055e2
mov edi, dword [ebp + 8]
mov ecx, eax
add esp, 0xc
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x401894
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov eax, dword [ebp - 0x20]
xor edx, edx
cmp word [eax], 0x2d
jne 0x40176d
lea ecx, [eax + 2]
cmp word [ecx], dx
je 0x40176d
push str.__.__
push ecx
call fcn.0040b8a6
pop ecx
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x20]
pop ecx
jne 0x40176d
push 0x2f
pop ecx
mov word [eax], cx
mov eax, dword [ebp - 0x20]
mov cl, bh
mov bh, dl
push 0x2f
pop edx
cmp word [eax], dx
je 0x40179e
test cl, cl
je 0x40179e
push eax
call fcn.00405964
pop ecx
test eax, eax
je 0x401798
push 0x41bbc0
push eax
call esi
test eax, eax
je 0x40184b
mov eax, dword [ebp - 0x20]
push 0x2f
pop edx
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
cmp word [eax], dx
je 0x4017b3
cmp ecx, 1
jg 0x401890
push str._Download
lea ecx, [ebp - 0x20]
call fcn.00404e43
push eax
call esi
test eax, eax
je 0x401875
push str._Args
lea ecx, [ebp - 0x20]
call fcn.00404e43
push eax
call esi
test eax, eax
je 0x40186a
push str._ParseArgs
lea ecx, [ebp - 0x20]
call fcn.00404e43
push eax
call esi
test eax, eax
je 0x40186a
push 0x41bc10
lea ecx, [ebp - 0x20]
call fcn.00404e43
push eax
call esi
test eax, eax
je 0x401894
push 0x41bc18
lea ecx, [ebp - 0x20]
call fcn.00404e43
push eax
call esi
test eax, eax
je 0x401894
push str._help
lea ecx, [ebp - 0x20]
call fcn.00404e43
push eax
call esi
test eax, eax
je 0x401894
push str.__help
lea ecx, [ebp - 0x20]
call fcn.00404e43
push eax
call esi
test eax, eax
je 0x401894
xor eax, eax
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
call fcn.004055e2
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
jne 0x40173b
jmp 0x40188d
push dword [ebp - 8]
call fcn.0040105e
pop ecx
jmp 0x401889
push dword [ebp - 8]
call fcn.00401f33
mov dword [edi], eax
pop ecx
cmp eax, 0x92
jne 0x40188b
xor eax, eax
mov dword [edi], eax
mov bl, 1
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x4018bb
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp dword [esi], eax
jne 0x4018bb
push str.ConEmuCD.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
jne 0x4018bb
call fcn.004015da
mov dword [edi], 0x76
mov bl, 1
lea ecx, [ebp - 0x20]
call fcn.004050fa
call fcn.00404ccc
pop edi
mov al, bl
pop ebx
jmp 0x4018d0
xor al, al
pop esi
leave
ret
Function at 0x401ade
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x425410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x19c], 0
and dword [ebp - 0x198], 0
push ebx
push edi
push 1
mov dword [0x425bdc], eax
mov eax, dword [ebp + 0xc]
push 0x4015c2
mov dword [0x425be0], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x19c]
push eax
call fcn.004016c4
pop ecx
pop ecx
test al, al
jne 0x401c04
mov edi, dword [ebp - 0x198]
mov ebx, str.ConEmuCD.dll
test edi, edi
jne 0x401b53
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x401b87
push eax
push ebx
lea eax, [ebp - 0x194]
push str.Cant_load_library___s___ErrorCode0x_08X_n
push eax
call fcn.0040102c
lea eax, [ebp - 0x194]
push eax
call fcn.004019c8
add esp, 0x14
push 0x7f
pop eax
jmp 0x401c0a
push 0x41bcb0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41bcc0
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x425bd8], eax
test ebx, ebx
je 0x401bbb
test eax, eax
je 0x401bbb
push 0
call ebx
and dword [0x425bd8], 0
jmp 0x401c0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, str.ConsoleMain2
test ebx, ebx
push str.ConEmuCD.dll
mov eax, str.HandlerRoutine
cmove eax, ecx
push eax
lea eax, [ebp - 0x194]
push str.Procedure___s___not_found_in_library___s_
push eax
call fcn.0040102c
lea eax, [ebp - 0x194]
push eax
call fcn.004019c8
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x80
jmp 0x401c0a
mov eax, dword [ebp - 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x401ea3
xor al, al
jmp 0x401ecf
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x401ecc
push edi
mov edi, dword [ebp + 0x10]
movzx ecx, byte [edx]
movzx eax, byte [edi]
xor ecx, eax
mov eax, dword [edi]
shr eax, 8
xor eax, dword [ecx*4 + 0x425008]
inc edx
mov dword [edi], eax
sub esi, 1
jne 0x401eaf
pop edi
mov al, 1
pop esi
pop ebp
ret 0xc
Function at 0x404284
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x425410]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x425bf8], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
jne 0x40449d
push edi
xor eax, eax
lea edi, [ebp - 0x17c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 0x16e]
push eax
movzx eax, word [ebp - 0x170]
push eax
movzx eax, word [ebp - 0x172]
push eax
movzx eax, word [ebp - 0x174]
push eax
lea eax, [ebp - 0xa4]
push str._i:_02i:_02i._03i_u
push eax
call fcn.00401cd9
add esp, 0x1c
xor eax, eax
test esi, esi
je 0x40430c
cmp word [esi], ax
jne 0x404311
mov esi, str._NULL__n
push eax
push eax
push eax
push eax
push eax
push eax
push esi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00405fbd
add esp, 0x24
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x198]
lea ecx, [ebp - 0x1a0]
push eax
call fcn.00404e08
push dword [ebp - 0x1a0]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
jle 0x404491
mov ecx, dword [0x425c00]
test ecx, ecx
jne 0x4043cb
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, eax
mov dword [0x425c00], ecx
test ecx, ecx
jne 0x40439b
or ecx, 0xffffffff
mov dword [0x425c00], ecx
cmp byte [0x425c04], 0
jne 0x4043e8
push ebx
push dword [ebp - 0x1a0]
push ecx
call fcn.004044ab
add esp, 0xc
jmp 0x404491
xor eax, eax
lea edi, [ebp - 0x194]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x194]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ecx, dword [0x425c00]
test eax, eax
jne 0x40437d
mov byte [0x425c04], 1
jmp 0x40437d
cmp ecx, 0xffffffff
jne 0x40437d
cmp byte [0x425bf9], 0
je 0x404491
push ebx
push dword [ebp - 0x1a0]
push 0
jmp 0x40438e
cmp byte [0x425bf9], 0
je 0x404402
push ebx
push dword [ebp - 0x1a0]
push 0
call fcn.004044ab
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
xor ecx, ecx
mov dword [ebp - 0x198], eax
push ecx
push ecx
push ecx
push ecx
push ebx
push dword [ebp - 0x1a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp edi, 0xc8
jb 0x40443b
lea ecx, [edi + 1]
push ecx
call fcn.00404dbb
pop ecx
mov esi, eax
jmp 0x404441
lea esi, [ebp - 0x16c]
test esi, esi
je 0x404491
xor ecx, ecx
lea eax, [edi + 1]
push ecx
push ecx
push eax
push esi
push ebx
mov byte [esi + edi], cl
push dword [ebp - 0x1a0]
push ecx
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x404480
push 0
lea eax, [ebp - 0x1a4]
push eax
push edi
push esi
push dword [0x425c00]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x16c]
cmp esi, eax
je 0x404491
push esi
call fcn.00404d7b
pop ecx
lea ecx, [ebp - 0x1a0]
call fcn.00404e2e
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004061df
leave
ret
Function at 0x404522
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 4], ebx
push ebx
cmp dword [ebp + 0xc], ebx
je 0x4045fe
push str.Reading_source
push 2
push esi
call fcn.00404667
mov ebx, dword [ebp + 0x1c]
lea ecx, [ebp - 0xc]
add esp, 0x10
and dword [ebx], 0
call fcn.00405e5d
push 0xffffffffffffffff
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0xc]
call fcn.00405ed0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [eax + 0x18]
push eax
mov ecx, esi
call fcn.00403731
cmp byte [esi + 9], 0
movzx ebx, al
mov eax, dword [ebp - 4]
je 0x4045ac
test ebx, ebx
je 0x4045b3
mov ecx, dword [ebp + 0x1c]
cmp dword [ecx], 0
jne 0x4045af
test eax, eax
je 0x4045af
cmp eax, dword [ebp + 0x18]
ja 0x4045af
mov dword [ecx], eax
jmp 0x4045af
mov ecx, dword [ebp + 0x1c]
test ebx, ebx
jne 0x4045cf
push 0
push eax
push 1
push dword [ebp + 8]
push 2
push str.DownloadFile__s__failed__code_u
push 0
push esi
call fcn.00404667
add esp, 0x20
jmp 0x4045f4
cmp dword [ecx], 0
push 0
je 0x4045e1
push dword [ecx]
push 1
push str.Retrieved__u_bytes_in_block
jmp 0x4045e9
push eax
push 1
push str.No_more_data__code_u
push 2
push esi
call fcn.00404667
add esp, 0x18
lea ecx, [ebp - 0xc]
call fcn.00405e94
jmp 0x40465f
push str.Reading_file
push 2
push esi
call fcn.00404667
add esp, 0x10
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
push 0
test ebx, ebx
jne 0x404648
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push dword [ebp + 8]
push 2
push str.ReadFile__s__failed__code_u
push ebx
push esi
call fcn.00404667
add esp, 0x20
jmp 0x40465f
mov eax, dword [ebp + 0x1c]
push dword [eax]
push 1
push str.Read__u_bytes
push 2
push esi
call fcn.00404667
add esp, 0x18
pop esi
mov eax, ebx
pop ebx
leave
ret 0x18

Function at 0x404c27
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
push 0
push ebx
push 1
push str.Writing_target_file__u_bytes
mov edi, ecx
push 2
push edi
call fcn.00404667
add esp, 0x18
lea eax, [ebp + 0x14]
push 0
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x404c7d
cmp dword [ebp + 0x14], ebx
je 0x404c9d
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push dword [ebp + 8]
push 2
push str.WriteFile__s__failed__no_data__code_u
jmp 0x404c92
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push dword [ebp + 8]
push 2
push str.WriteFile__s__failed__code_u
push 0
push edi
call fcn.00404667
add esp, 0x20
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405ed0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 4], 0
je 0x405ee9
cmp dword [esi], edi
je 0x405ee9
call fcn.00405f55
mov dword [esi], edi
test edi, edi
jne 0x405ef3
xor eax, eax
jmp 0x405f30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 8], eax
jmp 0x405f1e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebp + 8]
cmp dword [ebp + 0xc], 0xffffffff
je 0x405f16
xor eax, eax
cmp ecx, dword [ebp + 0xc]
jae 0x405f30
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.00405f36
test al, al
je 0x405efe
xor eax, eax
mov byte [esi + 4], 1
inc eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x4060b7
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x425410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x4061ce
xor ebx, ebx
cmp word [esi], bx
je 0x4061ce
push 0x250
lea eax, [ebp - 0x288]
push ebx
push eax
call fcn.00407e60
add esp, 0xc
lea eax, [ebp - 0x288]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, eax
or edx, 0xffffffff
mov dword [ebp - 0x28c], ecx
cmp ecx, edx
jne 0x406187
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x406183
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x40617c
or edx, 0xffffffff
cmp esi, edx
je 0x40617c
push 0x34
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.00407e60
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x40617c
test byte [ebp - 0x38], 0x10
jne 0x40617c
mov bl, 1
test edi, edi
je 0x40617c
cmp dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
pop eax
cmovne ecx, eax
mov dword [edi], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x4061d0
test byte [ebp - 0x288], 0x10
je 0x4061aa
lea eax, [ebp - 0x288]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [ebp - 0x28c]
test eax, eax
je 0x4061c5
jmp 0x406187
mov bl, 1
test edi, edi
je 0x4061c5
cmp dword [ebp - 0x26c], 0
mov eax, dword [ebp - 0x268]
push 0xffffffffffffffff
pop edx
cmovne eax, edx
mov dword [edi], eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406183
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004061df
leave
ret

Function at 0x410720
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004103e0
Function at 0x1053a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1053a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1053a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1053a06a
add dl, dl
jne 0x1053a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1053a0dc
xor eax, eax
add dl, dl
jne 0x1053a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1053a17d
add dl, dl
jne 0x1053a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1053a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1053a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1053a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1053a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1053a075
mov eax, 1
add dl, dl
jne 0x1053a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1053a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1053a0e1
sub eax, ebx
mov ebx, 1
jne 0x1053a128
mov ecx, 1
add dl, dl
jne 0x1053a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1053a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1053a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1053a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1053a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1053a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1053a136
cmp eax, 0x7d00
jae 0x1053a16d
cmp eax, 0x500
jb 0x1053a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1053a075
cmp eax, 0x7f
ja 0x1053a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1053a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1053a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1053a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1001b130
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x1001b148
mov ebx, 0x10000
lea edi, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x1001b15b
mov edi, 0xfff80000
mov eax, dword [0x101ca9a4]
mov ecx, dword [0x101ca9b0]
test eax, eax
jne 0x1001b175
test ecx, ecx
je 0x1001b188
mov eax, ecx
mov dword [0x101ca9a4], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x1001b188
cmp edx, ebx
jb 0x1001b188
cmp edx, edi
jbe 0x1001b20e
mov eax, ecx
mov dword [0x101ca9a4], eax
test ecx, ecx
je 0x1001b1b2
test eax, eax
je 0x1001b1a6
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1001b1a6
cmp ecx, ebx
jb 0x1001b1a6
cmp ecx, edi
jbe 0x1001b20e
mov eax, dword [eax + 4]
mov dword [0x101ca9a4], eax
test eax, eax
jne 0x1001b197
movzx eax, si
mov ecx, ebx
sub esi, eax
mov edx, esi
call fcn.1005f580
test eax, eax
jne 0x1001b1d1
mov edx, edi
mov ecx, esi
call fcn.1005f580
test eax, eax
je 0x1001b235
mov dword [eax], 0x52727464
xor edx, edx
mov dword [eax + 8], 0
mov esi, 0x2a7
mov ecx, dword [0x101ca9b0]
mov dword [eax + 4], ecx
lea ecx, [eax + 0xff60]
mov dword [0x101ca9a4], eax
mov dword [0x101ca9b0], eax
mov edi, edi
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x60
dec esi
jne 0x1001b200
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, ebx
jb 0x1001b235
cmp esi, edi
ja 0x1001b235
mov ecx, dword [esi + 0x40]
push 0x60
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.1011e040
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret