joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019ec47
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x101a56e8], 0x1dce
mov dword [ebp - 0x10], eax
call fcn.1019fb80
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1019ec8d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x101a56e4], 0x18ed
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x1019edbc
jmp 0x1019ed24
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov edx, dword [ebp - 0x38]
add edx, 2
mov esi, dword [ebp - 0x2c]
cmp ecx, esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], eax
jb 0x1019ecfe
jmp 0x1019edbc
mov al, byte [ebp - 0x41]
test al, 1
jne 0x1019ed8f
jmp 0x1019ecc8
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [0x101a56e8], 0x1dce
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
jmp 0x1019ed38
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
jmp 0x1019ecfe
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x41], cl
je 0x1019ecf1
mov al, byte [ebp - 0x51]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x50]
add edx, 1
mov ah, byte [ebp - 0x41]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x4c], edx
jne 0x1019ed38
jmp 0x1019ecf1
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov dword [0x101a56e4], 0x1941
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x101a56e8], 0x92b
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1019f0da
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x1019f168
mov dword [0x101a56e4], 0x3d46
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1019f13d
jmp 0x1019f20c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1019f1e9
jmp 0x1019f20c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1019f1d4
jmp 0x1019f20c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [0x101a56e4], eax
mov eax, ecx
add esp, 0x24
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
jne 0x1019f19c
mov eax, dword [ebp - 0x28]
mov dword [0x101a56e8], 0x258e
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x1019f1b5
jmp 0x1019f20c
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], eax
jl 0x1019f168
jmp 0x1019f17e
mov dword [0x101a56e4], 0x636
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1019f107
jmp 0x1019f20c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1019f125
jmp 0x1019f20c
mov eax, 1
mov ecx, 0x18d0
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
je 0x1019f155
xor eax, eax
mov ecx, 0x1088
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
jmp 0x1019f155
Function at 0x1019f3ce
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101a56f0], 0
mov byte [0x101a56f4], 0
mov edi, dword [0x101a56e4]
add edi, 0xfffff8e9
mov dword [0x101a56e8], edi
mov dword [0x101a56ec], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1019f436
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x101a56ec], 0
mov dword [ebp - 0x20], eax
jmp 0x1019f472
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x101a56e4], 0x7c1
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101a56e8], 0x17ea
mov eax, dword [0x101a56ec]
add eax, 1
mov dword [0x101a56ec], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1019f436
jmp 0x1019f425
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101a56f8], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x101a56f0]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x101a56f8], esi
mov dword [0x101a56e4], 0xa1b
mov eax, esi
cdq
idiv ecx
mov dword [0x101a56f0], edx
mov dword [0x101a56e8], 0xd32
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x101a56f4], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x101a56f4]
mov esi, dword [0x101a56f0]
mov byte [ebx + esi], cl
mov esi, dword [0x101a56ec]
add esi, 1
mov dword [0x101a56ec], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1019f472
jmp 0x1019f41d
Function at 0x1019f8ba
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x101a56e8], 0x1e49
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101a12cc]
mov dh, byte [eax + 0x101a129d]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x1019f8dc
lea eax, [ebp - 0x24]
mov dword [0x101a56e8], 0x1a22
mov ecx, dword [0x101a56e4]
add ecx, 0xffffefe3
mov dword [0x101a56e4], ecx
mov dword [ebp - 0x34], eax
call fcn.1019edc7
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1019e9d4
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x1019f9f2
mov eax, dword [ebp - 0x38]
mov dword [0x101a56e4], 0x2091
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1019f229
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x101a56e4], 0x1f7a
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x1c], ecx
mov dword [0x101a56e8], 0x8aa
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x54], ecx
add ecx, 0x13d8
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x1019f9e9
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1019fd09
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x1e25
xor ebx, ebx
mov dword [0x101a56ec], 0
mov dword [0x101a56f0], 0
mov dword [0x101a56fc], 0
mov dword [0x101a56e4], 0xfa3
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x1019fea4
jmp 0x1019fd88
mov eax, dword [0x101a56e4]
add eax, 0xe82
mov dword [ebp - 0x2c], eax
jmp 0x1019fea4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
add ecx, 1
mov edi, eax
add edi, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101a56ec], edx
mov dword [0x101a56e4], 0x3264
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x101a56f0], edx
mov ecx, dword [0x101a56e8]
add ecx, 0xfffff82b
mov dword [0x101a56e8], ecx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x101a56f4], cl
mov dword [0x101a56e4], 0x26b4
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x101a56e8], 0x112a
mov cl, byte [0x101a56f4]
mov edx, dword [0x101a56f0]
mov byte [ebx + edx], cl
mov edx, dword [0x101a56ec]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x101a56f0]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x101a56e8], 0x55d
and ecx, 0xff
mov dword [0x101a56fc], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x101a56e4], 0x65f
mov dword [0x101a56e8], 0xffffdf97
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x3c], edi
je 0x1019fd76
mov eax, dword [0x101a56f0]
mov ecx, dword [0x101a56ec]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], edx
jmp 0x1019fd88
mov eax, dword [ebp - 0x2c]
mov dword [0x101a56e4], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1019feb4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov edx, dword [0x101a56e4]
mov esi, edx
add esi, 0xffffdde0
mov dword [0x101a56e8], esi
add edx, 0xffffe928
mov dword [0x101a56e4], edx
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1019f5e2
lea ecx, [0x1019f367]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], 0x147e00
mov edx, dword [0x101a56d0]
mov dword [esp + 0x50], edx
mov edx, dword [0x101a56d4]
mov dword [esp + 0x2c], edx
mov edx, dword [0x101a56d8]
mov dword [esp + 0x64], edx
mov edx, dword [0x101a56dc]
mov dword [esp + 0x4c], edx
mov dword [0x101a56e4], 0x5bd
mov edx, dword [0x101a56e0]
mov dword [esp + 0x44], edx
mov dword [0x101a56e8], 0xfffff4b2
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1019ffa2
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1019f8ba
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0x10], eax
jmp 0x1019fff9
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x1019ff90
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
jne 0x1019ff90
mov eax, dword [esp + 0xc]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x30], edx
mov dword [0x101a56e4], 0xe1c
call fcn.1019f0da
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x1019ff61
mov eax, dword [esp + 0x10]
lea esp, [ebp - 4]
Function at 0x40186a
Capabilities:
Write file on windows

Disassembly:
mov esi, esi
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x40a310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.00401844
mov esi, eax
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1fc], esi
cmp esi, ebx
je 0x401a0a
push 3
call fcn.00403627
pop ecx
cmp eax, 1
je 0x4019b6
push 3
call fcn.00403627
pop ecx
test eax, eax
jne 0x4018c8
cmp dword [section..data], 1
je 0x4019b6
cmp edi, 0xfc
je 0x401a0a
push str.Runtime_Error__n_nProgram:
push 0x314
mov esi, 0x40ab80
push esi
call fcn.004035c4
sub esp, 0xfffffff4
or eax, eax
jne 0x4019ac
push 0x104
mov edi, 0x40abb2
push edi
push ebx
mov word [0x40adba], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
or eax, eax
jne 0x401934
push str._program_name_unknown_
push ebx
push edi
call fcn.004035c4
sub esp, 0xfffffff4
test eax, eax
je 0x401934
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00402ecc
push edi
call fcn.004035a9
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40196b
push edi
call fcn.004035a9
lea eax, [eax*2 + 0x40ab3c]
mov ecx, eax
sub ecx, edi
push 3
sar ecx, 1
push 0x407b5c
sub ebx, ecx
push ebx
push eax
call fcn.004034dc
sub esp, 0xffffffec
test eax, eax
jne 0x401928
push 0x407b54
mov edi, 0x314
push edi
push esi
call fcn.00403467
sub esp, 0xfffffff4
test eax, eax
jne 0x401928
push dword [ebp - 0x1fc]
push edi
push esi
call fcn.00403467
add esp, 0xc
test eax, eax
jne 0x401928
push 0x12010
push 0x407b08
push esi
call fcn.004032fb
add esp, 0xc
jmp 0x401a0a
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x40192f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x401a0a
cmp edi, 0xffffffff
je 0x401a0a
xor eax, eax
mov cl, byte [esi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [esi + eax*2], bx
je 0x4019e3
inc eax
cmp eax, 0x1f4
jb 0x4019cb
push ebx
lea esi, [ebp - 0x1fc]
push esi
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00403270
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00403666
leave
ret
Function at 0x401f2c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
add esp, 0xfffffff4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
mov esi, eax
cmp esi, ebx
jne 0x401f48
xor eax, eax
jmp 0x401fbf
cmp word [esi], bx
je 0x401f5d
add eax, 2
cmp word [eax], bx
jne 0x401f4d
add eax, 2
cmp word [eax], bx
jne 0x401f4d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub eax, esi
sar eax, 1
push ebx
push ebx
push ebx
inc eax
push ebx
push eax
push esi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call edi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x401fb5
push eax
call fcn.00403ee4
pop ecx
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x401fb5
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x401fa9
push dword [ebp - 4]
call fcn.00403e4b
pop ecx
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 4]
jmp 0x401fbe
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x402ecc
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
mov esi, 0xc0000417
push 1
push esi
push 2
call fcn.00402da3
sub esp, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
mov eax, 0x5a4d
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], ax
je 0x403136
pop ebp
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403132
mov edx, 0x10b
xor ecx, ecx
cmp word [eax + 0x18], dx
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x403160
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov esi, esi
mov edx, esp
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
xor ebx, ebx
lea eax, [eax + ecx + 0x18]
push edi
movzx ebp, word [ecx + 6]
or ebp, ebp
push esi
je 0x40319d
mov esi, dword [edx + 0xc]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x403195
mov ecx, dword [eax + 8]
add ecx, edx
cmp esi, ecx
jb 0x40319f
inc ebx
sub eax, 0xffffffd8
cmp ebx, ebp
jb 0x403185
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4032fb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebx, ebx
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push edi
push ebx
mov dword [ebp - 0x1c], eax
call fcn.00402256
and dword [ebp - 0x14], 0
cmp dword [0x40b43c], 0
mov dword [ebp - 0x18], eax
jne 0x4033ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
or edi, edi
je 0x403456
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
or eax, eax
je 0x403456
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x40b43c], eax
call esi
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x40b440], eax
call esi
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x40b444], eax
call esi
push eax
call ebx
mov dword [0x40b44c], eax
test eax, eax
je 0x4033ae
push str.GetProcessWindowStation
push edi
call esi
push eax
call ebx
mov dword [0x40b448], eax
mov eax, dword [0x40b448]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403407
cmp dword [0x40b44c], ecx
je 0x403407
push eax
call ebx
push dword [0x40b44c]
mov edi, eax
call ebx
mov esi, eax
test edi, edi
je 0x403407
test esi, esi
je 0x403407
call edi
or eax, eax
je 0x4033fe
lea ecx, [ebp - 0x10]
lea edi, [ebp - 0x24]
push edi
push 0xc
push ecx
push 1
push eax
call esi
or eax, eax
je 0x4033fe
test byte [ebp - 8], 1
jne 0x403407
or dword [ebp + 0x10], 0x200000
jmp 0x40343a
mov eax, dword [0x40b440]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call ebx
or eax, eax
je 0x40343a
call eax
or eax, eax
mov dword [ebp - 0x14], eax
je 0x40343a
mov eax, dword [0x40b444]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call ebx
or eax, eax
je 0x40343a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b43c]
call ebx
or eax, eax
je 0x403456
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403458
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00403666
leave
ret
Function at 0x434320
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x25000]
push edi
jmp 0x43433a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x434341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x434330
mov eax, 1
add ebx, ebx
jne 0x434353
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x434348
jne 0x434364
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x434348
xor ecx, ecx
sub eax, 3
jb 0x434378
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4343ea
mov ebp, eax
add ebx, ebx
jne 0x434383
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x434390
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4343b4
inc ecx
add ebx, ebx
jne 0x4343a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x434395
jne 0x4343b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x434395
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4343d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4343c5
jmp 0x434336
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4343d4
add edi, ecx
jmp 0x434336
pop esi
mov edi, esi
mov ecx, 0x8cf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4343f2
cmp byte [edi], 9
jne 0x4343f2
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 0x4343f7
lea edi, [esi + 0x32000]
mov eax, dword [edi]
or eax, eax
je 0x43446f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3c3a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3c454]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x434424
mov ecx, edi
jns 0x434453
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3c458]
or eax, eax
je 0x434469
mov dword [ebx], eax
add ebx, 4
jmp 0x434441
call dword [esi + 0x3c468]
mov ebp, dword [esi + 0x3c45c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x4344a3
sub esp, 0xffffff80
jmp 0x411def