joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032f0
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov ebx, eax
test esi, esi
je 0x403441
test ebx, ebx
je 0x403441
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403310
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x403441
push edi
push esi
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x40334e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebp, eax
call esi
jmp 0x403421
push 4
push 0x3000
push 0x104
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x40337a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov ebp, eax
jmp 0x403421
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403380
sub eax, edx
push 0
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4033b1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov ebp, eax
jmp 0x403421
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4033ce
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov ebp, eax
jmp 0x403421
push 0x426c24
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4033ec
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
mov ebp, eax
jmp 0x403421
push 0
push 0
push esi
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x403433
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x403416
or ebp, eax
test esi, esi
je 0x403421
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40342c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
call ebx
mov ebp, eax
jmp 0x403416
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x403c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403ca7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403cd8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403cd4
cmp esi, eax
jae 0x403cd8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403cc4
cmp esi, eax
jb 0x403cde
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x403d30
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
xor eax, eax
push 0x10000
push edi
push 0x44e2ee
mov dword [0x44e2d0], eax
mov dword [0x44e2d4], eax
mov dword [0x44e2d8], eax
mov dword [0x44e2dc], eax
mov word [0x44e2e0], ax
mov dword [0x44e2e2], edi
mov dword [0x44e2e6], 1
mov dword [0x44e2ea], edi
call fcn.00411850
push 0x10000
push edi
push 0x45e2f2
mov dword [0x45e2ee], edi
call fcn.00411850
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x18
push edi
push edi
push 0x44e2d0
push 0x403d10
push edi
push edi
mov dword [0x46eaf2], edi
call esi
push edi
push edi
push 0x44e2d0
push 0x403d20
push edi
push edi
call esi
pop edi
mov eax, 0x44e2d0
pop esi
ret
Function at 0x404070
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x810
mov eax, dword [0x42b0a0]
xor eax, esp
mov dword [esp + 0x80c], eax
mov eax, dword [esp + 0x814]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x818]
push ebp
push edi
lea ebp, [esp + 0x14]
test eax, eax
je 0x4040a2
mov ebp, eax
xor ecx, ecx
mov word [ebp], cx
mov dword [esp + 0xc], ecx
cmp dword [esi], ecx
je 0x404136
push ebx
call fcn.00410d7f
mov edx, dword [esp + 0x14]
push ebx
mov edi, eax
push edx
push edi
call fcn.004114e0
add esp, 0x10
mov eax, ebx
shr eax, 0x18
push 0
mov ecx, ebx
sar ecx, 0x10
mov byte [esp + 0xc], al
push 4
lea eax, [esp + 0x10]
mov byte [esp + 0x11], cl
mov ecx, dword [esi]
mov edx, ebx
push eax
sar edx, 8
push ecx
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1b], bl
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [esi]
push 0
push ebx
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40411c
cmp eax, ebx
jne 0x40411c
mov dword [esp + 0xc], 1
jmp 0x40413a
mov eax, 0x426ca8
mov edx, ebp
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404125
jmp 0x40413a
mov edi, dword [esp + 0x10]
test edi, edi
je 0x404147
push edi
call fcn.0040fb79
add esp, 4
mov ecx, dword [esp + 0x814]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
xor ecx, esp
call fcn.0040fb84
add esp, 0x810
ret 8
Function at 0x404170
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x818
mov eax, dword [0x42b0a0]
xor eax, esp
mov dword [esp + 0x814], eax
mov eax, dword [esp + 0x81c]
push ebp
push esi
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
test eax, eax
je 0x4041a3
mov dword [esp + 0x10], eax
mov esi, eax
xor eax, eax
mov word [esi], ax
mov eax, dword [ebx]
xor ebp, ebp
mov dword [esp + 0x18], ebp
test eax, eax
je 0x4041ff
test ecx, ecx
je 0x4041ff
push ebp
push 4
lea ecx, [esp + 0x10]
push ecx
push eax
mov byte [esp + 0x18], 0
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], 0
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x40421a
mov eax, 0x426cc8
mov edx, esi
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4041f0
mov eax, ebp
mov ecx, dword [esp + 0x81c]
pop esi
pop ebp
xor ecx, esp
call fcn.0040fb84
add esp, 0x818
ret 4
test eax, eax
jne 0x404225
mov eax, 1
jmp 0x404201
movzx ebp, byte [esp + 8]
movzx edx, byte [esp + 9]
movzx eax, byte [esp + 0xa]
movzx ecx, byte [esp + 0xb]
shl ebp, 8
add ebp, edx
mov edx, dword [edi]
shl ebp, 8
add ebp, eax
shl ebp, 8
push edx
add ebp, ecx
xor esi, esi
call fcn.00410d7f
add esp, 4
cmp dword [edi], esi
mov dword [esp + 0xc], eax
jle 0x40428b
lea ecx, [ecx]
cmp esi, ebp
jae 0x40428b
mov ecx, dword [edi]
push 0
sub ecx, esi
push ecx
lea edx, [esi + eax]
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4042a1
test eax, eax
je 0x4042a1
add esi, eax
cmp dword [edi], esi
mov eax, dword [esp + 0xc]
jg 0x404260
mov ecx, dword [edi]
cmp ecx, esi
jl 0x4042c5
mov ecx, dword [esp + 0x14]
push esi
push eax
push ecx
call fcn.004114e0
mov dword [edi], esi
jmp 0x4042d1
mov edx, dword [esp + 0x10]
mov eax, 0x426cc8
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4042b0
mov esi, dword [esp + 0x18]
jmp 0x4042d9
mov edx, dword [esp + 0x14]
push ecx
push eax
push edx
call fcn.004114e0
add esp, 0xc
mov esi, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4042ea
push eax
call fcn.0040fb79
add esp, 4
mov eax, esi
jmp 0x404201
Function at 0x404730
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
push esi
mov ebx, ecx
push edi
mov edi, eax
mov dword [esp + 0x10], ebp
cmp ebx, ebp
je 0x404821
cmp edi, 0xa
jb 0x404821
lea eax, [edi*4]
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.0040fbe2
add esp, 4
mov esi, eax
push esi
push ebx
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.004045b0
add esp, 8
test eax, eax
je 0x40481a
mov eax, dword [esp + 0x1c]
push 0x4268b4
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040fe00
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0x4047a5
lea ebp, [eax - 2]
jmp 0x4047d0
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push esi
call fcn.0040ffb5
add esp, 0x10
cmp eax, edi
je 0x4047e7
mov ebp, 0xfffffffe
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4047d0
push eax
call fcn.004100ae
add esp, 4
test esi, esi
je 0x4047dd
push esi
call fcn.0040fcac
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov ebx, edx
call edi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov eax, dword [esp + 0x10]
push eax
push ebx
push 1
add edx, esi
push edx
call fcn.0040ffb5
add esp, 0x10
jmp 0x4047bf
mov ebp, 0xfffffffd
jmp 0x4047bf
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x4065a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4065a7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x406684
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428728]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x428728]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x428728]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428728]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428728]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428728]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428728]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x428728]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4065c0
pop edi
test edx, edx
je 0x4066ab
jmp 0x406690
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x428728]
inc ecx
sub edx, 1
jne 0x406690
not eax
pop esi
ret

Function at 0x4066b0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x428728]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x428728]
mov dword [edx + 8], ecx
ret

Function at 0x406700
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x428728]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x428728]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x406e10
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x406e42
mov ecx, dword [edi + 2]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406e38
mov byte [edi + 6], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x406e55
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0xc]
push esi
add eax, ecx
push eax
push edx
call fcn.004114e0
add dword [edi + 0x14], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x406e70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x406ea3
mov edx, dword [esi + 2]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406e9d
mov byte [esi + 6], 1
mov edi, dword [esp + 8]
jmp 0x406ecf
mov eax, dword [esi + 0x10]
push ebx
mov ebx, dword [esi + 0x14]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x406eb5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0xc]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.004114e0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x14], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x406ee6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x406ee0
cmp byte [esi + 6], 0
je 0x406ee0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x406f80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x406fc5
cmp byte [esi + 1], 0
je 0x406fcd
mov eax, dword [esi + 2]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x406fe2
cmp byte [esi + 1], 0
je 0x406fd4
mov edx, dword [esi + 2]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 7]
mov dword [esp + 4], ebp
jmp 0x406feb
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x406f9e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x406feb
mov eax, dword [esi + 0x14]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x406fff
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0040fbe2
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40701d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x407131
jmp 0x407040
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x407051
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x40706a
mov ebp, 0x404
cmp byte [esi], 0
je 0x40708f
cmp byte [esi + 1], 0
je 0x407131
mov ecx, dword [esi + 7]
mov edx, dword [esi + 2]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x407092
mov dword [esi + 0x14], eax
cmp byte [esi], 0
mov edi, ebp
je 0x4070ba
mov ecx, dword [esi + 2]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4070b4
mov byte [esi + 6], 1
mov eax, dword [esp + 0x1c]
jmp 0x4070e0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x4070cb
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0xc]
push edi
add ecx, eax
push ecx
push ebx
call fcn.004114e0
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x407131
lea eax, [ebp - 3]
test eax, eax
jl 0x40711c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x40710c
cmp byte [eax + ebx + 1], 0x4b
jne 0x40710c
cmp byte [eax + ebx + 2], 5
jne 0x40710c
cmp byte [eax + ebx + 3], 6
je 0x407112
test eax, eax
jge 0x4070f0
jmp 0x40711c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x407131
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x407034
push ebx
call fcn.0040fcac
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x407b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x407b1e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x407b12
cmp dword [edi + 0x7c], ebx
je 0x407b2d
call fcn.00407ee0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00407870
add esp, 0xc
test eax, eax
je 0x407b54
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.0040fbe2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x407b92
push 0x4000
call fcn.0040fbe2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x407b9f
push esi
call fcn.0040fcac
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x407be7
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.004069c0
test eax, eax
jne 0x407be7
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x407c0e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x407c14
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0x407c51
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x407c51
call fcn.004066b0
add ebp, 1
jne 0x407c40
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x408040
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x4080f3
cmp dword [esi + 4], 0xffffffff
jne 0x4080f3
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x408070
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408070
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4080a9
cmp ax, 0x2f
je 0x4080a9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408096
mov eax, dword [0x426be0]
mov dword [edi], eax
push 0x18
call fcn.00411195
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov dword [eax + 7], 0
call fcn.00407150
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x40fb84
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b0a0]
jne 0x40fb8e
repz ret
jmp fcn.00412b17

Function at 0x41baae
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.00414f47
and dword [ebp - 4], 0
cmp dword [0x42db20], 0
mov ebx, eax
jne 0x41bb5f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41bc10
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41bc10
push eax
call fcn.00414ed5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42db20], eax
call esi
push eax
call fcn.00414ed5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42db24], eax
call esi
push eax
call fcn.00414ed5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42db28], eax
call esi
push eax
call fcn.00414ed5
pop ecx
mov dword [0x42db30], eax
test eax, eax
je 0x41bb5f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414ed5
pop ecx
mov dword [0x42db2c], eax
mov eax, dword [0x42db2c]
cmp eax, ebx
je 0x41bbb7
cmp dword [0x42db30], ebx
je 0x41bbb7
push eax
call fcn.00414f50
push dword [0x42db30]
mov esi, eax
call fcn.00414f50
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41bbb7
test edi, edi
je 0x41bbb7
call esi
test eax, eax
je 0x41bbae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41bbae
test byte [ebp - 0xc], 1
jne 0x41bbb7
or dword [ebp + 0x10], 0x200000
jmp 0x41bbf0
mov eax, dword [0x42db24]
cmp eax, ebx
je 0x41bbf0
push eax
call fcn.00414f50
pop ecx
test eax, eax
je 0x41bbf0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41bbf0
mov eax, dword [0x42db28]
cmp eax, ebx
je 0x41bbf0
push eax
call fcn.00414f50
pop ecx
test eax, eax
je 0x41bbf0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42db20]
call fcn.00414f50
pop ecx
test eax, eax
je 0x41bc10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41bc12
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50b580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x50b59a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b5a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b590
mov eax, 1
add ebx, ebx
jne 0x50b5b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b5a8
jne 0x50b5c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5a8
xor ecx, ecx
sub eax, 3
jb 0x50b5d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50b64a
mov ebp, eax
add ebx, ebx
jne 0x50b5e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50b5f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50b614
inc ecx
add ebx, ebx
jne 0x50b600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50b5f5
jne 0x50b611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50b634
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50b625
jmp 0x50b596
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50b634
add edi, ecx
jmp 0x50b596
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50b652
cmp byte [edi], 6
jne 0x50b652
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 0x50b657
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50b6c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50b684
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50b6c0
mov dword [ebx], eax
add ebx, 4
jmp 0x50b6a1
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x50b6fa
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x40ed6d
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ecx, 0x40eae0
dec edx
call fcn.0040ed8c
add edx, edx
or edx, edx
xor dword [edi], ecx
inc edi
sub esi, 0x4373a6ba
cmp edi, eax
jne fcn.0040ed6d
ret