joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004a256
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1006c818]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004a29c
cmp word [ebx], dx
jne 0x1004a29c
or byte [eax + edi + 0x28], 4
jmp 0x1004a2a1
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1004a404
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1004a3e4
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1004a2e2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1004a318
cmp eax, edx
jae 0x1004a326
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1004a2bd
jmp 0x1004a404
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004a3df
cmp dword [ebp - 0x18], 0
je 0x1004a3df
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1006c818]
test byte [eax + edi + 0x28], 0x48
je 0x1004a3b5
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1004a379
mov word [esi], cx
jmp 0x1004a3b0
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1006c818]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1006c818]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1006c818]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1004a404
pop eax
cmp word [ebp - 4], ax
jne 0x1004a3c5
cmp esi, ebx
jne 0x1004a3c5
mov word [esi], ax
jmp 0x1004a401
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1004ac8f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1004a404
push 0xd
pop eax
jmp 0x1004a3c0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1006c818]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1004a3fe
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1004a404
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004e070
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 0x1004e10d
push ebx
push esi
call fcn.1004e039
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.100489e5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004e0ba
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004e10c
push edi
push eax
call fcn.10045266
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004e0da
call fcn.100447bf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004e10b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100489e5
add esp, 0x20
test eax, eax
jne 0x1004e0f9
push edi
call fcn.100447bf
jmp 0x1004e101
push ebx
call fcn.100447bf
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 0x1005267e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004666b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100526ed
cmp esi, dword [ebp - 4]
je 0x100526e8
cmp dword [ebp + 0xc], 0
je 0x100526e8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100526c5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100521d0
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100526ef
xor eax, eax
inc eax
jmp 0x100526ef
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10052754
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006a3c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1004666b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1004666b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100527cb
cmp word [ecx], dx
je 0x100527cb
mov eax, dword [0x1006294c]
push edi
dec eax
push eax
push 0x10062838
call fcn.100526f3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005283e
cmp word [eax], dx
je 0x1005283e
mov eax, dword [edi]
test eax, eax
je 0x100527ef
cmp word [eax], dx
je 0x100527ef
lea eax, [ebp - 0x10]
push eax
call fcn.100520d6
jmp 0x100527f8
lea eax, [ebp - 0x10]
push eax
call fcn.10052171
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10052868
mov eax, dword [0x10062834]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10062528
call fcn.100526f3
add esp, 0xc
test al, al
je 0x10052868
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10052833
cmp word [eax], di
je 0x10052833
lea eax, [ebp - 0x10]
push eax
call fcn.100520d6
pop ecx
jmp 0x1005286a
lea eax, [ebp - 0x10]
push eax
call fcn.10052171
jmp 0x10052830
mov eax, dword [edi]
test eax, eax
je 0x10052855
cmp word [eax], dx
je 0x10052855
lea eax, [ebp - 0x10]
push eax
call fcn.1005208b
pop ecx
jmp 0x10052868
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10052933
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10052578
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10052933
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10052933
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10052933
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100528c0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10044e30
test ebx, ebx
je 0x1005292e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10044e30
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10052933
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10052933
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10055375
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10052935
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003226b
leave
ret
Function at 0x10055591
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1005550d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10055700
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10055700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100556b5
jg 0x100555ed
test eax, eax
je 0x100556ab
push 1
push 0x1000
call fcn.10044762
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10055610
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100556a2
push 0x8000
push ebx
call fcn.1005543e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10055639
jg 0x10055634
cmp ecx, 0x1000
jb 0x10055639
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100494c3
add esp, 0x10
cmp eax, 0xffffffff
je 0x1005567e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10055634
jl 0x10055665
test ecx, ecx
jne 0x10055626
push dword [ebp - 0xc]
push ebx
call fcn.1005543e
push esi
call fcn.100447bf
add esp, 0xc
xor ebx, ebx
jmp 0x1005570e
cmp byte [edi + 0x24], 0
je 0x10055695
cmp dword [edi + 0x20], 5
jne 0x10055695
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100556a0
mov ebx, dword [edi + 0x18]
jmp 0x100556a2
xor ebx, ebx
push esi
call fcn.100447bf
pop ecx
jmp 0x1005570e
test ecx, ecx
jg 0x10055677
jl 0x100556b5
test eax, eax
jae 0x10055677
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004ac8f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100556d5
cmp byte [edi + 0x1c], 0
je 0x10055677
jmp 0x10055706
push ebx
call fcn.1004eb0d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10055677
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1005570e
cmp byte [edi + 0x1c], 0
je 0x1005570b
mov ebx, dword [edi + 0x18]
jmp 0x1005570e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1004ac8f
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10056cd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10056cfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10056cfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402456
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0
push esi
call fcn.0040264c
and dword [esi + 0x44], 0
and dword [esi + 0x40], 0
add esp, 0xc
mov dword [esi + 0x48], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
mov eax, esi
pop esi
ret

Function at 0x402804
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
sbb byte [ebx + 0x56], dl

Function at 0x402809
Capabilities:
Access peb ldr_data

Disassembly:
sbb byte [ebx + 0x56], dl
push edi
call dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
call dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
mov eax, dword fs:[eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
cmp eax, dword [ecx + 0x1c]
jne 0x402861
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x1c], ecx
jmp 0x40286e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
xor eax, eax
inc eax
jne 0x402846
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
call dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
add esp, 0x18
push 0x4000
push 0
push dword [esp - 0xc]
push dword [eax]
jmp dword [esp - 0x20]

Function at 0x4033d0
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x403680
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.00403703
jae 0x40368e
xor ecx, ecx
call fcn.00403703
jae 0x4036bd
xor eax, eax
call fcn.00403703
jae 0x4036cd
mov bl, 2
inc ecx
mov al, 0x10
call fcn.00403703
adc al, al
jae 0x4036af
jne 0x4036f9
stosb byte es:[edi], al
jmp 0x403691
call fcn.0040370f
sub ecx, ebx
jne 0x4036d6
call fcn.0040370d
jmp 0x4036f5
lodsb al, byte [esi]
shr eax, 1
je 0x40371f
adc ecx, ecx
jmp 0x4036f2
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040370d
cmp eax, 0x7d00
jae 0x4036f2
cmp ah, 5
jae 0x4036f3
cmp eax, 0x7f
ja 0x4036f4
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x403691
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret
Function at 0x4033d5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor edx, edx
xor eax, eax
mov ecx, edi
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x4033e5
mov byte [edi + 0x100], dl
mov byte [edi + 0x101], dl
xor ecx, ecx
mov esi, edi
mov dword [ebp - 4], pe_nt_image_headers32
mov ebx, dword [ebp + 8]
movzx eax, dl
mov dl, byte [esi]
movzx ebx, byte [eax + ebx]
mov byte [ebp + 0x13], dl
movzx edx, dl
add ebx, ecx
add edx, ebx
mov ecx, edx
and ecx, 0x800000ff
jns 0x40342e
dec ecx
or ecx, 0xffffff00
inc ecx
movzx ecx, cl
mov dl, byte [ecx + edi]
mov byte [esi], dl
mov dl, byte [ebp + 0x13]
inc eax
mov byte [ecx + edi], dl
cdq
idiv dword [ebp + 0xc]
inc esi
dec dword [ebp - 4]
jne 0x403406
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40344c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
jbe 0x403502
push ebx
push esi
push edi
movzx esi, cl
movzx edi, dl
jmp 0x40347d
mov edi, dword [ebp - 8]
lea ecx, [esi + 1]
and ecx, 0x800000ff
jns 0x403490
dec ecx
or ecx, 0xffffff00
inc ecx
movzx esi, cl
mov dl, byte [esi + eax]
mov byte [ebp + 0x13], dl
movzx edx, dl
add edx, edi
and edx, 0x800000ff
jns 0x4034ae
dec edx
or edx, 0xffffff00
inc edx
movzx edi, dl
mov bl, byte [edi + eax]
mov byte [esi + eax], bl
mov bl, byte [ebp + 0x13]
mov byte [edi + eax], bl
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
add ebx, edi
movzx edi, byte [esi + eax]
mov dword [ebp - 0xc], ebx
movzx ebx, byte [ebp + 0x13]
add ebx, edi
and ebx, 0x800000ff
jns 0x4034e5
dec ebx
or ebx, 0xffffff00
inc ebx
movzx edi, bl
mov bl, byte [edi + eax]
mov edi, dword [ebp - 0xc]
xor byte [edi], bl
inc dword [ebp - 4]
mov edi, dword [ebp - 4]
cmp edi, dword [ebp + 0xc]
jb 0x40347a
pop edi
pop esi
pop ebx
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], str.55222
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x40178a
cmp dword [ebp - 0x118], 0
je 0x40178a
jmp 0x4017ec
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x4017ec
mov dword [ebp - 0x120], 0x3c41
mov eax, dword [ebp + 8]
add eax, 8
mov dword [0x4360b4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [0x4360d0], edx
mov dword [ebp - 0x120], 0x3c41
mov dword [ebp - 0x120], 0x3c41
call fcn.004011c0
mov eax, dword [ebp + 8]
mov dword [0x4360cc], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
call fcn.00401a60
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x40178a
mov esp, ebp
pop ebp
ret

Function at 0x401aa0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4360c0], 0x24e1
mov eax, dword [0x4360c0]
sub eax, 0x24e1
mov dword [0x4360c0], eax
mov ecx, 1
test ecx, ecx
je 0x401b4b
mov edx, dword [0x4360c0]
cmp edx, dword [ebp + 0xc]
jb 0x401ad7
jmp 0x401b4b
cmp dword [0x4360c0], 0
jne 0x401af5
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401af5
xor eax, eax
jmp 0x401b4b
mov eax, dword [ebp + 8]
add eax, dword [0x4360c0]
mov ecx, dword [eax]
add ecx, dword [0x4360c0]
mov edx, dword [ebp + 8]
add edx, dword [0x4360c0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x1a79
mov eax, dword [0x4360c0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x4360c0]
push eax
jmp section..htext
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x8d6b60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3af000]
push edi
or ebp, 0xffffffff
jmp 0x8d6b82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8d6b89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d6b78
mov eax, 1
add ebx, ebx
jne 0x8d6b9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8d6bac
jne 0x8d6bcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d6bcb
dec eax
add ebx, ebx
jne 0x8d6bb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8d6b90
add ebx, ebx
jne 0x8d6bc7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8d6c1d
xor ecx, ecx
sub eax, 3
jb 0x8d6be3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8d6c52
sar eax, 1
mov ebp, eax
jmp 0x8d6bee
add ebx, ebx
jne 0x8d6bee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d6bbc
inc ecx
add ebx, ebx
jne 0x8d6bfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8d6bbc
add ebx, ebx
jne 0x8d6c09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8d6bfe
jne 0x8d6c1a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8d6bfe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8d6c3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8d6c2e
jmp 0x8d6b7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8d6c3c
add edi, ecx
jmp 0x8d6b7e
pop esi
mov edi, esi
mov ecx, 0x3615c6
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x8d6c77
cmp byte [edi], 0x79
jne 0x8d6c5c
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x8d6c5a
lea edi, [esi + 0x4d2000]
mov eax, dword [edi]
or eax, eax
je 0x8d6cbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4d794c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4d7a54]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8d6c7d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4d7a5c]
or eax, eax
je 0x8d6cb9
mov dword [ebx], eax
add ebx, 4
jmp 0x8d6c9a
call dword [esi + 0x4d7a58]
mov ebp, dword [esi + 0x4d7a60]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x8d6cf3
sub esp, 0xffffff80
jmp 0x79f27c

Function at 0x438c85
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
add esi, esi
dec esi
call fcn.00438cb4
dec eax
xor dword [edi], ecx
dec eax
push 0x1084b6ee
pop eax
inc edi
sub esi, eax
sub esi, esi
sub eax, 1
cmp edi, ebx
jne fcn.00438c85
sub eax, 1
ret
Function at 0x10001000
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x1002c4d0
call fcn.1000c1c0
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x10001068
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x10001068
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x10001068
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x10001068
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10001071
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.1000c210
ret