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

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x1790fa0], edx
push ebx
push esi
push edi
push ebp
jbe 0x423e27
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x1790ea0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x423e27
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x423c89
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x423c9a
push 2
push 0
push edx
call fcn.00423720
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x423d36
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x423d6f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x423cfd
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x423ceb
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x423cd2
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423d65
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x423cbd
jmp 0x423d6f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423d65
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x423d6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x423e16
cmp dword [esp + 0x10], 0
je 0x423dc8
cmp dword [esp + 0x10], 5
jne 0x423dab
mov dword [0x432b90], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x432b94], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00427fd0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x423df2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x423df2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x432b90], 0x1c
mov dword [0x432b94], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x432b90], 9
mov dword [0x432b94], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x424520
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00422f00
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x1790fa0], esi
jbe 0x42466d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x1790ea0]
test byte [edx + ecx*8 + 4], 1
je 0x42466d
push 1
push ebx
push esi
call fcn.00423720
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x42465d
push 2
push ebx
push esi
call fcn.00423720
add esp, 0xc
cmp eax, 0xffffffff
je 0x42465d
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x424603
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.00424040
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x4245c6
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00423c20
add esp, 0xc
cmp eax, 0xffffffff
je 0x4245e2
sub ebp, eax
test ebp, ebp
jg 0x4245bb
jmp 0x4245f7
cmp dword [0x432b94], 5
jne 0x4245f5
mov dword [0x432b90], 0xd
mov ebx, eax
push edi
push esi
call fcn.00424040
add esp, 8
jmp 0x424640
jge 0x424640
push 0
push ecx
push esi
call fcn.00423720
add esp, 0xc
push esi
call fcn.00423ab0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x424640
mov dword [0x432b90], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x432b94], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00423720
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x432b90], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x425600
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x433200], ebx
jne 0x42564f
call esi
cmp eax, ebx
mov edi, eax
je 0x42562d
mov dword [0x433200], 1
jmp 0x42564f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x425645
mov dword [0x433200], 2
jmp 0x42564f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x433200], 1
jne 0x4256fe
test edi, edi
jne 0x425672
call esi
mov edi, eax
test edi, edi
jne 0x425672
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x42568c
add esi, 2
cmp word [esi], 0
jne 0x42567a
add esi, 2
cmp word [esi], 0
jne 0x42567a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4256ed
push ebp
call fcn.00421ce0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4256ed
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4256dc
push ebx
call fcn.00421c50
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x433200], 2
jne 0x425782
test ebx, ebx
jne 0x425721
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x425721
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x425736
inc ebp
cmp byte [ebp], 0
jne 0x425728
inc ebp
cmp byte [ebp], 0
jne 0x425728
sub ebp, ebx
inc ebp
push ebp
call fcn.00421ce0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x42575b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x42b300
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x42b53e
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.0042bbe0
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x42b53e
cmp ebp, dword [esp + 0x18]
je 0x42b53e
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x432bb8]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x432bbc], ecx
jne 0x42b35d
push ecx
call fcn.0042b5b0
add esp, 4
mov dword [0x432bb8], eax
cmp dword [0x432bb8], 0
jne 0x42b40d
cmp dword [esp + 0x1c], 0
je 0x42b394
cmp dword [0x432bc0], 0
je 0x42b394
call fcn.004288e0
test eax, eax
je 0x42b40d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x42b3a5
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x432bb8], 0
jne 0x42b3d9
push 4
call fcn.00421ce0
add esp, 4
mov dword [0x432bb8], eax
test eax, eax
jne 0x42b3ce
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x432bb8]
mov dword [eax], 0
cmp dword [0x432bc0], 0
jne 0x42b40d
push 4
call fcn.00421ce0
add esp, 4
mov dword [0x432bc0], eax
test eax, eax
jne 0x42b402
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x432bc0]
mov dword [eax], 0
mov esi, dword [0x432bb8]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.0042b550
add esp, 8
mov edi, eax
test edi, edi
jl 0x42b475
cmp dword [esi], 0
je 0x42b475
cmp dword [esp + 0x10], 0
je 0x42b46c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.00421c50
add esp, 4
cmp dword [ebx], 0
je 0x42b459
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x42b44a
shl edi, 2
push edi
push esi
call fcn.00422990
add esp, 8
test eax, eax
je 0x42b4bd
jmp 0x42b4b8
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x42b4bd
cmp dword [esp + 0x10], 0
jne 0x42b534
test edi, edi
jge 0x42b486
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.00422990
add esp, 8
test eax, eax
jne 0x42b4a8
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x432bb8], eax
cmp dword [esp + 0x1c], 0
je 0x42b52a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00421ce0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x42b52a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00421c50
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x42c400
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x42c473
push ebx
call fcn.0042c530
add esp, 4
test eax, eax
jne 0x42c441
xor eax, eax
pop edi
mov dword [0x432b94], 0xf
mov dword [0x432b90], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x42c483
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x42c522
inc eax
cmp eax, 0x104
ja 0x42c522
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x42c4d4
mov ecx, dword [esp + 0x124]
cmp ecx, eax
jg 0x42c4af
mov ecx, eax
push ecx
call fcn.00421ce0
add esp, 4
mov edx, eax
test edx, edx
jne 0x42c4f3
xor eax, eax
pop edi
mov dword [0x432b90], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp dword [esp + 0x124], eax
jge 0x42c4f3
xor eax, eax
pop edi
mov dword [0x432b90], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x42c530
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x42c544
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x42c576
cmp eax, 1
je 0x42c576
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret

Function at 0x42c8a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x42c8d6
cmp byte [esp + 5], 0x3a
jne 0x42c8d6
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.00421ec0
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420004]
jne 0x40100a
repz ret
jmp fcn.00401368

Function at 0x40425b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420004]
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.00403568
and dword [ebp - 0x14], 0
cmp dword [0x422940], 0
mov dword [ebp - 0x18], eax
jne 0x40430e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4043b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4043b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x422940], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x422944], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422948], eax
call edi
push eax
call esi
mov dword [0x422950], eax
test eax, eax
je 0x40430e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42294c], eax
mov eax, dword [0x42294c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404367
cmp dword [0x422950], ecx
je 0x404367
push eax
call esi
push dword [0x422950]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404367
test ebx, ebx
je 0x404367
call edi
test eax, eax
je 0x40435e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40435e
test byte [ebp - 8], 1
jne 0x404367
or dword [ebp + 0x10], 0x200000
jmp 0x40439a
mov eax, dword [0x422944]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40439a
mov eax, dword [0x422948]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x422940]
call esi
test eax, eax
je 0x4043b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4043b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x41c0b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x1ef4de4]
mov eax, dword [0x1ef4b08]
xor ecx, ecx
mov word [0x1ef4e00], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x1ef4dec], 0x6e0072
mov dword [0x1ef4df0], 0x6c0065
mov dword [0x1ef4df4], 0x320033
mov dword [0x1ef4df8], 0x64002e
mov dword [0x1ef4dfc], 0x6c006c
mov dword [0x1ef4de8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x41c230
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp edi, 0x182
jne 0x41c25d
lea eax, [ebp - 0x820]
push eax
push str.wosevir
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push esi
xor esi, esi
test edi, edi
jle 0x41c2a4
cmp edi, 0x2d
jne 0x41c271
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
call fcn.0041c170
xor byte [ebx + esi], al
cmp edi, 0xf
jne 0x41c29f
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
inc esi
cmp esi, edi
jl 0x41c264
pop esi
cmp edi, 0x2d
jne 0x41c2be
mov dword [0x1ef5170], 0xa62e7790
mov dword [0x1ef5174], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x41c2d0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x420dc0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1ef4b08]
push edi
mov edi, dword [0x1ef4de4]
push eax
call fcn.0041c1e0
add esp, 4
cmp dword [0x1ef4de4], 0x2f
jne 0x41c32d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0041c230
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46f9b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x56000]
push edi
or ebp, 0xffffffff
jmp 0x46f9d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46f9d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46f9c8
mov eax, 1
add ebx, ebx
jne 0x46f9eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46f9fc
jne 0x46fa1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46fa1b
dec eax
add ebx, ebx
jne 0x46fa08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46f9e0
add ebx, ebx
jne 0x46fa17
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46fa6d
xor ecx, ecx
sub eax, 3
jb 0x46fa33
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46faa2
sar eax, 1
mov ebp, eax
jmp 0x46fa3e
add ebx, ebx
jne 0x46fa3e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46fa0c
inc ecx
add ebx, ebx
jne 0x46fa4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46fa0c
add ebx, ebx
jne 0x46fa59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46fa4e
jne 0x46fa6a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46fa4e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46fa8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46fa7e
jmp 0x46f9ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46fa8c
add edi, ecx
jmp 0x46f9ce
pop esi
mov edi, esi
mov ecx, 0xb81
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46faaa
cmp byte [edi], 0xb
jne 0x46faaa
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 0x46faaf
lea edi, [esi + 0x6d000]
mov eax, dword [edi]
or eax, eax
je 0x46fb1e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x70d58]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x70df8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46fadc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x70dfc]
or eax, eax
je 0x46fb18
mov dword [ebx], eax
add ebx, 4
jmp 0x46faf9
call dword [esi + 0x70e0c]
mov ebp, dword [esi + 0x70e00]
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 0x46fb52
sub esp, 0xffffff80
jmp 0x450500
Function at 0xed8834
Capabilities:
Encode data using xor

Disassembly:
jmp 0xed883e
pushal
call 0xed8844
pop ebp
sub ebp, 0x10
sub ebp, 0xad8834
jmp 0xed885a
mov eax, 0xad8834
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d1
mov edx, 0x8959813e
xor byte [eax], dl
inc eax
dec ecx
jne 0xed8871
jmp 0xed8884
mov ch, 0xf3
mov ch, 0xb7
add bh, byte [esi]
mov edi, 0x3e3ec6ff
cmp eax, 0x3e3886f3
test byte ds:[esi], dl
leave
fdivr qword [0x32bfb5f6]
cmp eax, 0x5ab36efb
sbb al, dl
mov bh, 0x3a
sbb dl, byte [esi - 0x22]
insd dword es:[edi], dx
push ds
push esi
outsd dx, dword [esi]
or dh, byte [ebx + 0x1a123f3e]
push esi
push ebp
sub eax, 0x3bd63bbc
xlatb
or bh, byte [esi]
mov bl, 0x5a
sbb al, dl
mov bh, 0x12
sbb ch, byte [edx + 0x63]
mov ch, 0xbb
mov ch, 0xab
xor bh, byte [esi]
mov ch, 0xb3
notrack call edi
cmp al, 0xf
cmp al, 0xbd
cld
cmp dh, byte [edi + 0x31]
mov ebx, 0xc1c1c1ca
mov ch, 0x12
sbb dh, byte [ebx - 0x3c5e5a6]
xor bh, byte [esi]
mov ch, 0xb2
sbb bh, byte [edx]
push esi
fisubr word [ebp + 0x1e]
push esi
outsd dx, dword [esi]
or dh, byte [ebx + 0x1a123f3e]
mov bl, 0x5a
sbb al, dl
mov bh, 0x32
sbb dl, dh
cmp edi, dword [esi]
xlatb
or edi, dword [esi + edi]
imul esi, dword ds:[ebx - 0x3ec1e5ae], 0x4b
xor al, cl
dec ebx
salc
pop eax
mov ch, 0x83
or eax, 0xbdec0df7
salc
cmp esi, dword [esi + 0x31]
mov edx, 0x3e3e3e70
xor dword [esi + 0x3e3e3e76], esi
pop eax
mov ch, 0x22
pop es
mov esi, 0xba31d6c5
and al, 0x3e
mov esi, 0xba31d7c5
das
pop eax
mov edi, 0x311bc1c5
mov edx, 0x3e3e3e2b
jg 0xed894b
rol ecx, 0xc1
pop ss
jb 0xed8982
aas
mov ebp, 0xd6bd3bff
cmp dl, bh
xlatb
add ecx, 0xffffffc1
rcl dword [edi], 0x6a
pop es
cmp al, 0xbd
invalid
Function at 0x818058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8181a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81806a
add dl, dl
jne 0x818089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8180dc
xor eax, eax
add dl, dl
jne 0x818096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81817d
add dl, dl
jne 0x8180a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8180d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x818075
mov eax, 1
add dl, dl
jne 0x8180ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8180e1
sub eax, ebx
mov ebx, 1
jne 0x818128
mov ecx, 1
add dl, dl
jne 0x81810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x818119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818136
cmp eax, 0x7d00
jae 0x81816d
cmp eax, 0x500
jb 0x818168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
cmp eax, 0x7f
ja 0x818170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81819e
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 0x818075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x401868
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018a7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018a7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018a7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018a7
cmp dword [ecx + 0x74], 0xe
jbe 0x4018a7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret