joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428740
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x42882b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x428777
cmp dword [esi + 0x40], edi
jae 0x428777
push eax
call fcn.0042bbbb
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x42878f
lea eax, [edi + edi]
push eax
call fcn.0042c7c1
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.0042bdb0
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x428828
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x44b278]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x44b278]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x4287a7
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x42886a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x42884f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.0042bdb0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42888c
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [0x465f38]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x429e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x42a035
cmp dword [esi + 0x6af90], 3
jb 0x429e97
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x429ed7
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x429ed7
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x429ebf
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.004275a0
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x429ed7
mov edi, eax
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x429fb4
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.00427070
sub dword [esi + 0x6af90], edi
add esp, 0xc
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af90]
cmp edi, dword [esi + 0x6af98]
ja 0x429f7e
cmp eax, 3
jb 0x429f7e
mov eax, 1
sub edi, eax
lea ecx, [ecx]
add dword [esi + 0x6af84], eax
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor ecx, ebx
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub edi, eax
mov dword [esi + edx*4 + 0x2af70], ebx
mov edx, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + edx*4 + 0x4af70], ecx
jne 0x429f20
add dword [esi + 0x6af84], eax
jmp 0x429fd7
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
xor edi, edi
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
jmp 0x429fd7
movzx edx, byte [ecx + esi + 0x1af70]
push edx
push 0
push esi
call fcn.00427070
dec dword [esi + 0x6af90]
add esp, 0xc
inc dword [esi + 0x6af84]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x42a013
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x429ff0
lea ecx, [eax + esi + 0x1af70]
jmp 0x429ff2
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00429c90
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x42a028
push esi
call fcn.00427700
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x429e43
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x42a048
lea ecx, [eax + esi + 0x1af70]
jmp 0x42a04a
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.00429c90
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x402590
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4025bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004081d0
add esp, 4
or eax, 0xffffffff
jmp 0x4025ea
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x4025e8
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x4025e8
mov dword [0x42676c], 0xd
mov dword [0x426770], 5
or eax, 0xffffffff
jmp 0x4025ea
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4010b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4050a8
push 0x402578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x408654], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x408650], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40864c], ecx
shr eax, 0x10
mov dword [0x408648], eax
call fcn.00402440
test eax, eax
jne 0x40111a
push 0x1c
call fcn.00401280
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402240
call fcn.00402230
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408b34], eax
call fcn.00401bf0
mov dword [0x408630], eax
test eax, eax
je 0x40114d
mov eax, dword [0x408b34]
test eax, eax
jne 0x401157
push 0xffffffffffffffff
call fcn.00401550
add esp, 4
call fcn.00401940
call fcn.00401850
call fcn.00401520
mov esi, dword [0x408b34]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401236
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40119e
test al, al
je 0x40119e
and eax, 0xff
push eax
call fcn.004017f0
add esp, 4
test eax, eax
je 0x401178
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401178
cmp byte [esi], 0x22
jne 0x4011a7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4011b7
cmp al, 0x20
ja 0x4011b7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4011a7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4011d8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4011dd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00401550
jmp 0x40121b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4011a7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401236

Function at 0x401280
Capabilities:
Terminate process

Disassembly:
cmp dword [0x408638], 1
jne 0x40128e
call fcn.00402650
mov eax, dword [esp + 4]
push eax
call fcn.00402690
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401590
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x408684]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4015af
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x408680], 1
mov byte [0x40867c], bl
jne 0x401609
mov ecx, dword [0x408b2c]
test ecx, ecx
je 0x4015f7
mov esi, dword [0x408b28]
sub esi, 4
cmp esi, ecx
jb 0x4015f7
mov eax, dword [esi]
test eax, eax
je 0x4015f0
call eax
mov ecx, dword [0x408b2c]
sub esi, 4
cmp esi, ecx
jae 0x4015e2
push 0x406014
push 0x406010
call fcn.00401640
add esp, 8
push 0x40601c
push 0x406018
call fcn.00401640
add esp, 8
test ebx, ebx
jne 0x401630
push ebp
mov dword [0x408684], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x401bf0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x408798]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x401c32
call edi
mov esi, eax
test esi, esi
je 0x401c1c
mov eax, 1
jmp 0x401c2d
call ebp
mov ebx, eax
test ebx, ebx
je 0x401d3f
mov eax, 2
mov dword [0x408798], eax
cmp eax, 1
jne 0x401cd2
test esi, esi
jne 0x401c4b
call edi
mov esi, eax
test esi, esi
je 0x401d3f
cmp word [esi], 0
mov eax, esi
je 0x401c65
add eax, 2
cmp word [eax], 0
jne 0x401c53
add eax, 2
cmp word [eax], 0
jne 0x401c53
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x401cc4
push edi
call fcn.00402910
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401cc4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x401cb6
push ebx
call fcn.00402870
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x401d3f
test ebx, ebx
jne 0x401ce3
call ebp
mov ebx, eax
test ebx, ebx
je 0x401d3f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x401cfb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401ceb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401ceb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402910
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401d1d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402690
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x4061f0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4026b4
add eax, 8
inc ebp
cmp eax, 0x406280
jb 0x4026a5
cmp ecx, dword [ebp*8 + 0x4061f0]
jne 0x40285b
mov eax, dword [0x408638]
cmp eax, 1
je 0x40281d
test eax, eax
jne 0x4026e0
cmp dword [0x40603c], 1
je 0x40281d
cmp ecx, 0xfc
je 0x40285b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40271b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402764
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4053ac
add ebx, ecx
push ebx
call fcn.00403b80
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40538c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
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
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x4061f4]
or ecx, 0xffffffff
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
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403af0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x408a20]
test eax, eax
je 0x40282e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x402838
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x4061f4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4028c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4028e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403c80
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x402906
test byte [esp + 8], 2
je 0x402906
mov dword [0x40863c], 0xd
mov dword [0x408640], 5
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4e5b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp + 8], eax
mov eax, dword [0x4e50ac]
push esi
push edi
test eax, eax
jne 0x4e5bcd
mov esi, 0x4e5284
mov edx, dword [esi]
lea eax, [ebp - 0x24]
mov cl, byte [edx]
test cl, cl
je 0x4e5b8b
lea edi, [ebp - 0x24]
sub edx, edi
xor cl, 0x55
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
inc eax
test cl, cl
jne 0x4e5b7d
lea ecx, [ebp - 0x24]
mov byte [eax], 0
push ecx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov edx, dword [esi - 4]
add esi, 8
cmp esi, 0x4e529c
mov dword [edx], eax
jl 0x4e5b6d
mov ecx, dword [0x4e50ac]
mov eax, dword [sym.imp.kernel32.dll_GetModuleHandleA]
push 0
push 0x4e52ac
push ecx
mov dword [0x4e50a4], eax
call fcn.004e5d80
add esp, 0xc
mov dword [0x4e50a8], eax
mov dword [ebp - 4], 0
mov esi, 0x4e5284
mov edx, dword [esi]
mov cl, byte [edx]
test cl, cl
je 0x4e5c16
mov eax, dword [ebp + 8]
mov al, byte [eax]
test al, al
je 0x4e5c16
cmp al, 0x5a
jg 0x4e5c02
cmp al, 0x41
jl 0x4e5c02
movsx edi, al
add edi, 0x20
movsx ebx, cl
xor edi, 0x55
cmp ebx, edi
je 0x4e5c08
xor al, 0x55
cmp cl, al
jne 0x4e5c16
mov ecx, dword [ebp + 8]
inc edx
inc ecx
mov dword [ebp + 8], ecx
mov cl, byte [edx]
test cl, cl
jne 0x4e5be1
cmp byte [edx], 0
je 0x4e5c36
mov edx, dword [ebp - 4]
add esi, 8
inc edx
cmp esi, 0x4e529c
mov dword [ebp - 4], edx
jl 0x4e5bd9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov edx, dword [ecx*8 + 0x4e5280]
mov eax, dword [edx]
mov esp, ebp
pop ebp
ret
Function at 0x429250
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x429272
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x429279
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x429268
mov eax, 1
add ebx, ebx
jne 0x42928b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x429280
jne 0x42929c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x429280
xor ecx, ecx
sub eax, 3
jb 0x4292b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x429322
mov ebp, eax
add ebx, ebx
jne 0x4292bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4292c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4292ec
inc ecx
add ebx, ebx
jne 0x4292d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4292cd
jne 0x4292e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4292cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42930c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4292fd
jmp 0x42926e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42930c
add edi, ecx
jmp 0x42926e
pop esi
mov edi, esi
mov ecx, 0x5ab
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42932a
cmp byte [edi], 0xe
jne 0x42932a
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 eax, ebx
loop 0x42932f
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x42939e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x295f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x29670]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42935c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x29674]
or eax, eax
je 0x429398
mov dword [ebx], eax
add ebx, 4
jmp 0x429379
call dword [esi + 0x29678]
popal
jmp 0x40b195
Function at 0x4019a0
Capabilities:
Manipulate user privileges

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x4019b3
xor eax, eax
pop ebx
add esp, 0x14
ret
lea eax, [esp + 0x1c]
push eax
call fcn.00401000
add esp, 4
test eax, eax
je 0x4019ce
mov eax, 1
pop ebx
add esp, 0x14
ret
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x10]
push edx
push ebx
call fcn.00401190
add esp, 0xc
test eax, eax
je 0x4019f9
mov eax, dword [esp + 0x1c]
push eax
call sub.ADVAPI32.dll_LsaClose
mov eax, 2
pop ebx
add esp, 0x14
ret
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.00401140
add esp, 4
test eax, eax
je 0x401a20
mov ecx, dword [esp + 0x20]
push ecx
call sub.ADVAPI32.dll_LsaClose
pop edi
mov eax, 3
pop ebx
add esp, 0x14
ret
mov eax, str.SeServiceLogonRight
mov dword [esp + 0x18], eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a30
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push esi
mov word [esp + 0x18], dx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
add eax, 2
lea edx, [esp + 0x10]
push edx
mov word [esp + 0x22], ax
mov eax, dword [esp + 0x2c]
push edi
push eax
mov dword [esp + 0x20], 0xffffffff
call sub.ADVAPI32.dll_LsaEnumerateAccountRights
test eax, eax
je 0x401ac0
push eax
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov esi, eax
cmp esi, 2
je 0x401ac0
push edi
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x24]
push ecx
call sub.ADVAPI32.dll_LsaClose
push esi
call fcn.004020f0
add esp, 4
push eax
push ebx
push 0x40000209
call fcn.0041438a
add eax, 0x40
push eax
call fcn.004022a0
add esp, 0x10
pop esi
pop edi
mov eax, 4
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0xc]
xor esi, esi
cmp dword [esp + 0x10], esi
jbe 0x401b02
lea esp, [esp]
mov dx, word [eax + esi*8]
cmp dx, word [esp + 0x18]
jne 0x401afb
movzx ecx, word [esp + 0x1a]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax + esi*8 + 4]
push ecx
push edx
push eax
call fcn.00414a36
add esp, 0xc
test eax, eax
je 0x401b63
mov eax, dword [esp + 0xc]
inc esi
cmp esi, dword [esp + 0x10]
jb 0x401ad0
push eax
call sub.ADVAPI32.dll_LsaFreeMemory
mov ecx, dword [esp + 0x24]
push 1
lea eax, [esp + 0x1c]
push eax
push edi
push ecx
call sub.ADVAPI32.dll_LsaAddAccountRights
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edx, dword [esp + 0x24]
push edx
call sub.ADVAPI32.dll_LsaClose
test esi, esi
je 0x401b87
push esi
call sub.ADVAPI32.dll_LsaNtStatusToWinError
push eax
call fcn.004020f0
add esp, 4
push eax
push 0x4000020a
call fcn.0041438a
add eax, 0x40
push eax
call fcn.004022a0
add esp, 0xc
pop esi
pop edi
mov eax, 5
pop ebx
add esp, 0x14
ret
push edi
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0xc]
push ecx
call sub.ADVAPI32.dll_LsaFreeMemory
mov edx, dword [esp + 0x24]
push edx
call sub.ADVAPI32.dll_LsaClose
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebx
push 0x40000204
call fcn.0041438a
add eax, 0x20
push eax
call fcn.004022a0
add esp, 0xc
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 0x14
ret