joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e2cd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x28c000]
push edi
jmp 0x6e2cea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6e2cf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e2ce0
mov eax, 1
add ebx, ebx
jne 0x6e2d03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6e2d14
jne 0x6e2d33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e2d33
dec eax
add ebx, ebx
jne 0x6e2d20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6e2cf8
add ebx, ebx
jne 0x6e2d2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6e2d85
xor ecx, ecx
sub eax, 3
jb 0x6e2d4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6e2dba
sar eax, 1
mov ebp, eax
jmp 0x6e2d56
add ebx, ebx
jne 0x6e2d56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e2d24
inc ecx
add ebx, ebx
jne 0x6e2d64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e2d24
add ebx, ebx
jne 0x6e2d71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6e2d66
jne 0x6e2d82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6e2d66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6e2da4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6e2d96
jmp 0x6e2ce6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6e2da4
add edi, ecx
jmp 0x6e2ce6
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6e2dc2
cmp byte [edi], 0x11
jne 0x6e2dc2
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 0x6e2dc7
lea edi, [esi + 0x2db000]
mov eax, dword [edi]
or eax, eax
je 0x6e2e3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4ecaf8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4ecc74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6e2df4
mov ecx, edi
jns 0x6e2e23
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4ecc78]
or eax, eax
je 0x6e2e39
mov dword [ebx], eax
add ebx, 4
jmp 0x6e2e11
call dword [esi + 0x4ecc88]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6e2e70
cmp al, 0xef
ja 0x6e2e63
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6e2e45
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6e2e52
mov ebp, dword [esi + 0x4ecc7c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x6e2ea4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x4085f0
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x45c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0xf8]
shl eax, 5
mov eax, dword [eax + 0x46cc88]
and eax, 0x7f800
cmp eax, 0xc800
jb 0x40a696
mov cl, byte [ebp + 0x16]
test cl, cl
je 0x4086bc
cmp eax, 0xc800
je 0x40866f
cmp eax, 0xe000
je 0x40866f
mov byte [ebp + 0x241], 0x40
mov cl, byte [ebp + 0x1c4]
xor edx, edx
mov byte [ebp + 0x240], cl
mov dh, byte [ebp + 0x1cd]
pop edi
mov dl, byte [ebp + 0x1ce]
pop esi
imul edx, dword [ebp + 0xc0]
mov dword [ebp + 0xf0], edx
pop ebp
xor eax, eax
pop ebx
invalid
invalid
Function at 0x401460
Capabilities:
Get common file path

Disassembly:
mov edx, dword [0x41282c]
sub esp, 0x104
test edx, edx
push ebx
push esi
push edi
jne 0x401539
push 0x104
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x41282c], eax
jne 0x4014a1
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x104
ret
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x41282c]
lea edx, [esp + 0xc]
push ecx
push 0
push 0x40f0d0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [0x41282c]
push eax
call fcn.004050c4
mov edx, dword [0x41282c]
add esp, 4
cmp byte [edx], 0
je 0x401539
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x5c
je 0x401539
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x3a
je 0x401539
mov edi, 0x40f038
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x41282c]
lea esi, [esp + 0xc]
mov eax, edx
sub esi, edx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x401541
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [esp + 0x114]
repne scasb al, byte es:[edi]
mov al, byte [esi]
not ecx
dec ecx
test al, al
mov edi, ecx
je 0x4015c8
lea ebx, [esp + 0xc]
dec ebx
mov cl, byte [ebx + edi]
lea edx, [esp + 0xc]
mov byte [esp + 0x10f], cl
push edx
mov byte [ebx + edi], 0
call fcn.004050cf
mov al, byte [esp + 0x113]
add esp, 4
mov byte [ebx + edi], al
cmp edi, 0x102
jae 0x401494
cmp byte [esi], 0x2f
jne 0x4015a6
mov byte [esi], 0x5c
movzx cx, byte [esi]
mov al, byte [esi + 1]
mov word [esp + edi + 0xc], cx
inc edi
inc esi
test al, al
je 0x4015c8
mov al, byte [esi - 1]
cmp al, 0x5c
je 0x4015c3
cmp al, 0x2f
jne 0x401592
cmp byte [esi], 0
jne 0x40156d
lea edx, [esp + 0xc]
push edx
call section..text
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x4079cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f958
cmp edx, dword [eax]
je 0x4079ef
add eax, 8
inc ecx
cmp eax, 0x40f9e8
jl 0x4079e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f958]
jne 0x407b1d
mov eax, dword [0x4124bc]
cmp eax, 1
je 0x407af7
test eax, eax
jne 0x407a20
cmp dword [0x40f484], 1
je 0x407af7
cmp edx, 0xfc
je 0x407b1d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407a57
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409770
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407a9a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409770
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d59c
push edi
call fcn.0040a990
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409340
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409350
lea eax, [ebp - 0xa0]
push 0x40d57c
push eax
call fcn.00409350
push dword [esi + 0x40f95c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409350
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a8ff
add esp, 0x2c
pop edi
jmp 0x407b1d
lea eax, [ebp + 8]
lea esi, [esi + 0x40f95c]
push 0
push eax
push dword [esi]
call fcn.00409770
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 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 0x40149b
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5d0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5d4]
mov dword [ebp - 0x30], eax
call fcn.00401494
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5d8]
add edi, 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5dc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
pop esi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0x2d39bac]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401524
push 0x418248
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d39bac]
add eax, dword [ebp - 0x20]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d39ba8]
mov dword [ebp - 0x1c], 0xedeb2e40
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp ecx, 0x3eb
mov dword [0x2d39ba8], eax
mov eax, dword [0x2d39b00]
cmove eax, dword [ebp - 0x1c]
mov dword [0x2d39b00], eax
lea eax, [edi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [0x2d39ba4], 0xf4ea3dee
call fcn.00401471
mov ecx, dword [ebp - 0x10]
xor ecx, eax
sub ebx, ecx
mov dword [ebp - 0x10], ecx
mov eax, ebx
mov dword [ebp - 0x2c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4014ec
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4015f4
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2d39bac]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d39b04]
test esi, esi
je 0x40163a
push ebx
xor ebx, ebx
cmp eax, 0x959
jne 0x401625
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.0040149b
add edi, 8
dec esi
je 0x401639
mov eax, dword [0x2d39bac]
jmp 0x40160d
pop ebx
pop edi
pop esi
ret 4
Function at 0x40cb28
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a36c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404e05
mov dword [ebp - 0x14], eax
cmp dword [0x440260], esi
jne 0x40cc1b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cba8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ccfb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ccfb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ccfb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x440260], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x440264], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x440268], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x440270], eax
test eax, eax
je 0x40cc18
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44026c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cc40
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cc33
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cc55
push 4
pop eax
jmp 0x40ccfd
cmp dword [ebp - 0x14], esi
je 0x40cc55
push dword [0x440260]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cc3a
mov eax, dword [0x44026c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40ccb3
cmp dword [0x440270], edi
je 0x40ccb3
push eax
call ebx
push dword [0x440270]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ccb3
test eax, eax
je 0x40ccb3
call ecx
test eax, eax
je 0x40cca8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40cca8
test byte [ebp - 8], 1
jne 0x40ccb3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cce3
mov eax, dword [0x440264]
cmp eax, edi
je 0x40cce0
push eax
call ebx
test eax, eax
je 0x40cce0
call eax
mov esi, eax
test esi, esi
je 0x40cce0
mov eax, dword [0x440268]
cmp eax, edi
je 0x40cce0
push eax
call ebx
test eax, eax
je 0x40cce0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x440260]
call ebx
test eax, eax
je 0x40ccfb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ccfd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040eb
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

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

Function at 0x4a8760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
or ebp, 0xffffffff
jmp 0x4a8782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a8789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a8778
mov eax, 1
add ebx, ebx
jne 0x4a879b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a8790
jne 0x4a87ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a8790
xor ecx, ecx
sub eax, 3
jb 0x4a87c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a8832
mov ebp, eax
add ebx, ebx
jne 0x4a87cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4a87d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4a87fc
inc ecx
add ebx, ebx
jne 0x4a87e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a87dd
jne 0x4a87f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a87dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a881c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a880d
jmp 0x4a877e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a881c
add edi, ecx
jmp 0x4a877e
pop esi
mov edi, esi
mov ecx, 0xa1aa2
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x4a8857
cmp byte [edi], 0x3a
jne 0x4a883c
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x4a883a
lea edi, [esi + 0xa6000]
mov eax, dword [edi]
or eax, eax
je 0x4a889f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa9164]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa91d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a885d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa91d8]
or eax, eax
je 0x4a8899
mov dword [ebx], eax
add ebx, 4
jmp 0x4a887a
call dword [esi + 0xa91d4]
mov ebp, dword [esi + 0xa91dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x4a88d3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 1], 2
je 0x401096
mov eax, dword [esp + 8]
cmp byte [eax], 0
je 0x401030
push 1
call fcn.0040dc9c
push eax
push 2
push 1
push 0x42d814
call fcn.0040df31
add esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, 0x400
movzx ecx, word [edi + 2]
mov eax, ecx
cmp cx, si
jle 0x401062
movsx eax, cx
push 0x433ecd
sub eax, esi
push eax
push 0x42dc1c
call fcn.00401b30
movzx eax, word [edi + 2]
add esp, 0xc
test ax, ax
jle 0x401071
cmp ax, si
jge 0x401073
movsx esi, ax
jmp 0x401073
xor esi, esi
push 1
call fcn.0040dc9c
push eax
push esi
lea eax, [edi + 4]
push 1
push eax
call fcn.0040df31
push 0x42e024
call fcn.00401b30
add esp, 0x18
pop edi
pop esi
ret 0xc

Function at 0x401b60
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x808
push ebx
push esi
mov esi, dword [esp + 0x820]
mov eax, 0x400
push esi
mov word [esp + 0x410], ax
mov word [esp + 0xc], ax
call sym.get_newer.exe__sys_error_none_4
lea eax, [esp + 0x40c]
push eax
push dword [esp + 0x818]
call sym.get_newer.exe__string_treename_8
lea eax, [esp + 0x40c]
push eax
call sym.get_newer.exe__string_terminate_null_4
lea eax, [esp + 8]
push eax
push dword [esp + 0x81c]
call sym.get_newer.exe__string_treename_8
lea eax, [esp + 8]
push eax
call sym.get_newer.exe__string_terminate_null_4
mov bl, byte [esp + 0x81c]
and bl, 1
je 0x401bd9
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_DeleteFileA
xor bl, 1
movzx eax, bl
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x418]
push eax
call sub.KERNEL32.dll_CopyFileA
test al, al
jne 0x401bfe
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
pop ebx
add esp, 0x808
ret 0x10

Function at 0x401c10
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call sym.get_newer.exe__sys_error_none_4
mov esi, dword [esp + 0xc]
movsx ecx, word [esi]
lea eax, [esi + 4]
push eax
push ecx
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
jne 0x401c3e
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0xc], eax
pop edi
pop esi
ret 8
pop edi
mov word [esi + 2], ax
pop esi
ret 8

Function at 0x401c50
Capabilities:
Set current directory

Disassembly:
mov eax, 0x2008
call fcn.0040a630
push esi
mov esi, dword [esp + 0x2014]
mov eax, 0x2000
push esi
mov word [esp + 0xc], ax
call sym.get_newer.exe__sys_error_none_4
lea eax, [esp + 7]
push eax
lea eax, [esp + 0xc]
push eax
push 0xf
push dword [esp + 0x201c]
call sym.get_newer.exe__string_treename_opts_16
lea eax, [esp + 8]
push eax
call sym.get_newer.exe__string_terminate_null_4
lea eax, [esp + 0xc]
push eax
call sub.KERNEL32.dll_SetCurrentDirectoryA
test al, al
jne 0x401caa
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x2008
ret 8
Function at 0x401f50
Capabilities:
Create directory

Disassembly:
sub esp, 0x420
push esi
mov eax, 0x400
mov word [esp + 0x20], ax
lea eax, [esp + 7]
push eax
lea eax, [esp + 0x24]
push eax
push 0xe
push dword [esp + 0x434]
call sym.get_newer.exe__string_treename_opts_16
mov esi, dword [esp + 0x430]
lea eax, [esp + 8]
push esi
push eax
push 8
lea eax, [esp + 0x2c]
push eax
call sym.get_newer.exe__file_info_16
push esi
call sym.get_newer.exe__file_not_found_4
test al, al
jne 0x401fd3
push esi
call sym.get_newer.exe__sys_error_4
test al, al
jne 0x401ff9
cmp byte [esp + 9], 2
mov al, byte [esp + 0x42c]
jne 0x401fb8
test al, 2
jne 0x401ff9
push esi
test al, 1
je 0x402003
push 0
lea eax, [esp + 0x28]
push eax
call sym.get_newer.exe__file_delete_tree_12
push esi
call sym.get_newer.exe__sys_error_4
test al, al
jne 0x401ff9
lea eax, [esp + 0x20]
push eax
call sym.get_newer.exe__string_terminate_null_4
push dword [0x434fa8]
lea eax, [esp + 0x28]
push eax
call sub.KERNEL32.dll_CreateDirectoryA
test al, al
jne 0x401ff9
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0xc], eax
pop esi
add esp, 0x420
ret 0xc
push 0x17
push 0xfffffffffffffffd
call sym.get_newer.exe__sys_stat_set_12
push esi
lea eax, [esp + 0x24]
push eax
call sym.get_newer.exe__sys_stat_parm_vstr_8
pop esi
add esp, 0x420
ret 0xc
Function at 0x4023b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x424
push esi
push edi
lea eax, [esp + 0xa]
mov edi, 0x400
push eax
lea eax, [esp + 0x2c]
mov word [esp + 0x2c], di
push eax
push 0xe
push dword [esp + 0x43c]
call sym.get_newer.exe__string_treename_opts_16
mov esi, dword [esp + 0x438]
lea eax, [esp + 0x10]
push esi
push eax
push 8
lea eax, [esp + 0x34]
push eax
call sym.get_newer.exe__file_info_16
push esi
call sym.get_newer.exe__file_not_found_4
push esi
test al, al
je 0x402428
push 7
push 0xfffffffffffffffd
call sym.get_newer.exe__sys_stat_set_12
push esi
lea eax, [esp + 0x2c]
push eax
call sym.get_newer.exe__sys_stat_parm_vstr_8
push esi
push 0x434fb0
call sym.get_newer.exe__sys_stat_parm_str_8
pop edi
pop esi
add esp, 0x424
ret 0xc
call sym.get_newer.exe__sys_error_4
test al, al
jne 0x4025c7
movzx eax, byte [esp + 0x11]
mov dword [esp + 0xc], 0
sub eax, 2
je 0x40257c
sub eax, 1
je 0x4024e8
test byte [esp + 0x434], 2
je 0x4024d2
push 1
call fcn.0040dc9c
push eax
push 7
push 1
push 0x42f03c
call fcn.0040df31
mov ax, word [esp + 0x3e]
add esp, 0x14
cmp ax, di
jle 0x40249f
cwde
push 0x434fad
sub eax, 0x400
push eax
push 0x42f044
call fcn.00401b30
mov ax, word [esp + 0x36]
add esp, 0xc
test ax, ax
jle 0x4024ae
cmp ax, di
jge 0x4024b0
movsx edi, ax
jmp 0x4024b0
xor edi, edi
push 1
call fcn.0040dc9c
push eax
push edi
lea eax, [esp + 0x38]
push 1
push eax
call fcn.0040df31
push 0x42f048
call fcn.00401b30
add esp, 0x18
push esi
lea eax, [esp + 0x2c]
push eax
call sym.get_newer.exe__file_delete_name_8
pop edi
pop esi
add esp, 0x424
ret 0xc
test byte [esp + 0x434], 2
je 0x402566
push 1
call fcn.0040dc9c
push eax
push 7
push 1
push 0x42f02c
call fcn.0040df31
mov ax, word [esp + 0x3e]
add esp, 0x14
cmp ax, di
jle 0x402533
cwde
push 0x434fac
sub eax, 0x400
push eax
push 0x42f034
call fcn.00401b30
mov ax, word [esp + 0x36]
add esp, 0xc
test ax, ax
jle 0x402542
cmp ax, di
jge 0x402544
movsx edi, ax
jmp 0x402544
xor edi, edi
push 1
call fcn.0040dc9c
push eax
push edi
lea eax, [esp + 0x38]
push 1
push eax
call fcn.0040df31
push 0x42f038
call fcn.00401b30
add esp, 0x18
push esi
lea eax, [esp + 0x2c]
push eax
call sym.get_newer.exe__file_link_del_8
pop edi
pop esi
add esp, 0x424
ret 0xc
lea eax, [esp + 0x28]
push eax
call sym.get_newer.exe__string_terminate_null_4
lea eax, [esp + 0xb]
push eax
lea eax, [esp + 0x10]
push eax
push esi
push dword [esp + 0x440]
lea eax, [esp + 0x38]
push eax
call fcn.00402030
push esi
call sym.get_newer.exe__sys_error_4
test al, al
jne 0x4025c7
cmp dword [esp + 0xc], 0
je 0x4025c7
push esi
push 0x15
push 0xfffffffffffffffd
call sym.get_newer.exe__sys_stat_set_12
push esi
push dword [esp + 0x10]
call sym.get_newer.exe__sys_stat_parm_int_8
pop edi
pop esi
add esp, 0x424
ret 0xc