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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b620
cmp edx, dword [eax]
je 0x407403
add eax, 8
inc ecx
cmp eax, 0x40b6b0
jl 0x4073f4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b620]
jne 0x407531
mov eax, dword [0x40c00c]
cmp eax, 1
je 0x40750b
test eax, eax
jne 0x407434
cmp dword [0x40b354], 1
je 0x40750b
cmp edx, 0xfc
je 0x407531
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40746b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004045c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004043a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4074ae
lea eax, [ebp - 0x1a4]
push eax
call fcn.004043a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a478
push edi
call fcn.00408c70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004045c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004045d0
lea eax, [ebp - 0xa0]
push 0x40a458
push eax
call fcn.004045d0
push dword [esi + 0x40b624]
lea eax, [ebp - 0xa0]
push eax
call fcn.004045d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408be0
add esp, 0x2c
pop edi
jmp 0x407531
lea eax, [ebp + 8]
lea esi, [esi + 0x40b624]
push 0
push eax
push dword [esi]
call fcn.004043a0
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 0x402f70
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
sub esi, 0xd4
bswap edi
mov eax, 0xfe
rol edi, 0xd1
rol ebx, 0xbd
sbb edx, 0x48
bswap edi
inc edx
inc edi
not edi
or edi, 0xe0
dec edi
or edx, 0x3a
ror ebx, 0x3f
sub eax, 0xb0
sub eax, 0x34
rol ebx, 0x29
not edx
rol edi, 0x8a
ror edx, 0x59
neg eax
neg eax
sbb eax, 0x8c
add edx, 0xfa
not ebx
not eax
mov eax, 0x1b
rcr eax, 0x6c
mov edi, 0x6d
imul ebx
not esi
neg edx
sub edi, 0x60
not esi
dec edi
imul eax
inc edx
mov ebx, 0x54
imul edi
inc esi
bswap edi
sbb edx, 0xa9
ror esi, 0x35
mov edi, 0x5f
inc esi
rol eax, 0xf8
and esi, 0x3c
or ebx, 0x38
bswap ebx
neg esi
xor ecx, ecx
xor edi, edi
and ebx, 0xed
sub ebx, 0x4e
dec esi
sbb esi, 0xdf
imul esi
mov ebx, 0x57
and esi, 0x2c
dec esi
not edi
bswap eax
rcl edx, 0x64
sub eax, 0x73
rcl edi, 0x6b
sbb eax, 0xbe
mov ebx, 0xab
rcr edi, 0x3b
rol edi, 0xa8
mov eax, 0xa3
bswap edi
bswap ebx
rcr eax, 0x82
and edx, 0xd7
neg ebx
rcr edx, 0x5d
bswap esi
imul ebx
bswap esi
sub edx, 0xf3
add esi, 0x78
not eax
imul esi
dec eax
bswap edi
dec edx
sbb eax, 0x2a
bswap edi
or edi, 4
sbb edi, 0xe1
rcr edx, 0xdd
neg ebx
rcl eax, 0xe9
bswap eax
sbb esi, 0x80
dec edx
imul eax
dec edx
rcr eax, 0x5e
mov eax, 6
rcl edi, 0x94
rol eax, 0x75
mov ecx, dword [ebp + 0xc]
rol edi, 0xd4
neg esi
and edx, 0x3b
bswap edx
rcr edx, 0xd8
imul esi
not edx
not eax
add ebx, 0xd6
imul ebx
rcl edi, 0x3e
rcr edx, 0xb3
sub esi, 0xaa
imul ebx
ror ebx, 0xe7
rol eax, 0x5f
sub ebx, 0x4d
sub esi, 0x59
inc esi
dec edx
not edx
sub edx, 0x5c
bswap ebx
and esi, 0x8f
inc edx
dec edx
bswap edx
not esi
not ebx
not ebx
bswap esi
and ebx, 3
sbb edx, 0x82
dec ebx
neg ebx
mov edx, 0x5f
bswap ebx
not edx
imul esi
rcr ebx, 0x74
bswap edx
rcr eax, 0x4d
neg edx
inc edi
rol eax, 0xec
dec eax
rol eax, 6
neg edi
rol edx, 0xd8
not esi
mov edi, dword [ebp + 8]
mov eax, eax
mov eax, eax
xor esi, ebx
xor eax, eax
xor eax, ebx
xor eax, esi
mov ebx, ebx
xor ebx, esi
xor eax, ebx
xor eax, eax
mov ebx, ebx
mov ebx, ebx
not byte [edi]
xor ebx, esi
mov esi, esi
xor eax, eax
mov esi, ebx
xor esi, ebx
xor ebx, esi
xor esi, ebx
mov eax, ebx
xor eax, ebx
sub byte [edi], 0x36
mov ebx, esi
xor ebx, ebx
mov eax, eax
mov esi, ebx
xor esi, eax
xor ebx, ebx
xor ebx, eax
xor esi, esi
mov esi, ebx
add byte [edi], 0x87
xor esi, eax
mov ebx, ebx
mov ebx, ebx
mov ebx, esi
mov ebx, ebx
mov ebx, esi
xor esi, eax
mov ebx, esi
mov esi, esi
imul byte [edi]
inc edi
loop 0x403133
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40eda7
Capabilities:
Parse pe header

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

Function at 0x41044b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x41046c
jl 0x410463
test edi, edi
jne 0x41046c
xor eax, eax
xor edx, edx
jmp 0x41052d
cmp dword [ebx + 0x38], 0
je 0x410481
push eax
push edi
push dword [ebp + 8]
call fcn.00410533
jmp 0x41052d
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4104c8
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4104c8
cmp eax, edi
jb 0x4104a2
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004114a0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4104ce
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x410522
mov ecx, ebx
call fcn.0040fc5f
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x41050d
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041a52f
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x410522
jmp 0x4104e0
test edx, edx
je 0x410522
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041a52f
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x41d93f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432bd0
push 0x432bc8
push str.FlsAlloc
push 0x1e
call fcn.0041d7ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d973
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e160]
call esi
jmp 0x41d979
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41d9bd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432be0
push 0x432bd8
push str.FlsGetValue
push 0x20
call fcn.0041d7ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d9f4
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x420b19
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x420bb6
push ebx
push esi
call fcn.00420ae2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00420a2b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x420b63
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420bb5
push edi
push eax
call fcn.0041e7dc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x420b83
call fcn.0041dc95
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x420bb4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00420a2b
add esp, 0x20
test eax, eax
jne 0x420ba2
push edi
call fcn.0041dc95
jmp 0x420baa
push ebx
call fcn.0041dc95
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4250b0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424f21

Function at 0x4254aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042cb90
mov eax, dword [0x49e2d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041f611
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4254ec
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x425648
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042c9c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x49fa38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004264a1
mov ecx, dword [esi*4 + 0x49fa38]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x425641
cmp eax, dword [edi + ecx + 0x24]
jne 0x425641
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425641
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004264a1
add esp, 0x14
test edx, edx
jl 0x425641
jg 0x4255b7
test eax, eax
jb 0x425641
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x425641
jl 0x4255d1
cmp dword [ebp - 0x1008], eax
ja 0x425641
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4255ef
test ebx, ebx
je 0x425628
cmp ecx, edi
jae 0x425628
mov al, byte [ecx]
cmp al, 0xd
jne 0x425609
lea eax, [edi - 1]
cmp ecx, eax
jae 0x425615
cmp byte [ecx + 1], 0xa
jne 0x425615
inc ecx
jmp 0x425615
movzx eax, al
movsx eax, byte [eax + 0x49ea78]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4255ef
cmp edx, ebx
jne 0x4255ef
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x425646
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040f1e6
leave
ret
Function at 0x42593f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x49fa38]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42597f
cmp byte [ebx], 0xa
jne 0x42597f
or byte [eax + edi + 0x28], 4
jmp 0x425984
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x425a82
mov al, byte [edx]
cmp al, 0x1a
je 0x425a64
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4259b3
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4259d8
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4259e2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x425995
jmp 0x425a82
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425a5f
cmp dword [ebp - 0xc], 0
je 0x425a5f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x49fa38]
test byte [eax + edi + 0x28], 0x48
je 0x425a39
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425a24
mov byte [esi], dl
jmp 0x425a35
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x49fa38]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425a82
cmp byte [ebp - 1], 0xa
jne 0x425a48
cmp esi, ebx
jne 0x425a48
mov byte [esi], 0xa
jmp 0x425a81
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004264bf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425a82
mov byte [esi], 0xd
jmp 0x425a81
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x49fa38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425a7e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425a82
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425a8b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x49fa38]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x425ace
cmp word [esi], dx
jne 0x425ace
or byte [edi + eax + 0x28], 4
jmp 0x425ad3
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x425c26
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x425c06
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x425b15
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x425b4b
cmp eax, edx
jae 0x425b57
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x425aed
jmp 0x425c26
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425c02
cmp dword [ebp - 0x14], 0
je 0x425c02
mov eax, dword [ebx*4 + 0x49fa38]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x425bda
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x425ba3
mov word [esi], cx
jmp 0x425bd6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x49fa38]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x49fa38]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x49fa38]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x425c26
pop ebx
cmp word [ebp - 4], bx
jne 0x425beb
cmp esi, dword [ebp + 0xc]
jne 0x425beb
mov word [esi], bx
jmp 0x425c23
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004264bf
add esp, 0x10
cmp word [ebp - 4], bx
je 0x425c26
push 0xd
jmp 0x425c1f
mov ecx, dword [ebx*4 + 0x49fa38]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425c1d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425c26
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42c8e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c90d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c90d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
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 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
mov ebx, 0x40915c
mov ecx, 0x58e26c01
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x26266a3d
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x419824
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00419398
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404c4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x419882
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41c684]
mov dl, 1
mov eax, dword [0x419290]
call fcn.0040971c
call fcn.0040420c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41988c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404c4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4198e4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41c774]
mov dl, 1
mov eax, dword [0x419290]
call fcn.0040971c
call fcn.0040420c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004193c8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41a34c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41a3bb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea edx, [ebp - 0x104]
lea eax, [ebp - 0x100]
call fcn.004082f4
mov edx, dword [ebp - 0x104]
mov eax, ebx
mov ecx, 0x41a3d0
call fcn.00404ab0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a3c2
lea eax, [ebp - 0x104]
call fcn.004047ac
ret
Function at 0x401110
Capabilities:
Check mutex on windows

Disassembly:
push str.4B774BFA_B534_414f_AEAA_3E8DE85A0AD3
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x401132
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret 4
push str.4B774BFA_B534_414f_AEAA_3E8DE85A0AD3
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov ecx, dword [esp + 4]
mov dword [ecx], eax
jne 0x40114e
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
sete dl
mov eax, edx
ret 4

Function at 0x401190
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54c62d
mov eax, dword fs:[0]
push eax
sub esp, 0xba8
push ebx
push esi
push edi
mov eax, dword [0x5a5084]
xor eax, esp
push eax
lea eax, [esp + 0xbb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00401110
test eax, eax
je 0x401275
push 0
push str.FF37C6E6_3098_457f_AB98_25962A95C6AA
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x4012ad
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40121a
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0xbb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 1
call esi
mov edi, dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
push 0
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
call esi
push eax
push 0
call edi
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [esp + 0xbb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call section..text
lea edx, [esp + 0x14]
push edx
call fcn.00465610
lea eax, [esp + 0x14]
mov dword [esp + 0xbc0], 0
call fcn.004013d0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xbc4], 0xffffffff
call fcn.00465830
mov ecx, dword [esp + 0xbb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4