joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428e68
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push 0
push 0
push 0
cld
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
sub eax, 3
mov edx, dword [ecx]
imul eax, edx
movzx eax, al
cmp eax, 0x7c
je 0x4067cf
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x34]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
cmp eax, dword [edx + ebp]
je 0x40680f
mov eax, 0x4067ca
lea eax, [edx + eax]
push ebp
push eax
push 0
call 0x406809
test eax, eax
jne 0x4067e8
jmp 0x40680f
push ecx
retf
cmc
nop
mov eax, esp
lea eax, [eax + 8]
mov ecx, eax
or eax, dword [ecx]
and eax, dword [ecx]
cld
or eax, 7
xchg dword [esp + 0xc], edx
lea eax, cs:[eax + 0x78968e]
lea eax, [eax - 0x783648]
sub edx, 0x1b4
add dword [edx], eax
mov ecx, dword [esp]
sub esp, 0xffffffec
mov ss, word [esi - 0x7f72ff88]
mov eax, 0x81ff87c9
ljmp 0x201
in al, dx
sub eax, eax
push cs
pop dx
pop edx
push dx
je 0x4067cc
jmp dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
add byte [eax], al
add byte [eax], al
push esp
add byte [eax + eax - 0x4a18e566], dh
cdq
inc ebx
inc edx
add byte [ebx + 0x3200a28e], cl
add byte [edx + edx], bl
sbb al, 0x12
add byte [edi + 0x51], ah
mov dh, byte [0x460b29]
mov edx, 0x8b0060b3
lds ebp, [edx + 0x1f]
jp 0x406825
or al, 0xea
adc al, 0
add edi, esp
rol byte [eax], 0xcf
jecxz 0x406889
add byte [edx + edx*8], bl
cmp al, 0x28
inc ecx
int 0x47
loopne 0x406850
cmc
das
lcall 0x25f, 0x9068ff
add byte [ebx - 0x2c97ffda], cl
jecxz 0x4067ff
add byte [eax], 0xb7
cmpsd dword [esi], dword es:[edi]
add byte [eax], al
mov ecx, dword [edx + 0x1c970084]
dec ebx
les eax, [eax]
jg 0x406804
add byte [ecx + 0x304b5189], cl
add byte [ecx + ebp + 0x158b0060], cl
outsd dx, dword [esi]
push ebp
aas
and byte [eax], al
mov ebp, dword [ebp + 0x43]
cmp al, 0x69
cwde
dec esi
aam 0
mov dword [edi], edx
test edx, 0xbee1c800
stc
les eax, [eax]
mov dword [eax + 0x7e00b4a9], edi
jl 0x4068bd
jne 0x4068dd
pop es
pop ecx
lodsd eax, dword [esi]
add byte [eax], 0x3a
cmp esi, dword [eax + eax - 0x4d]
or eax, 0x74fb7d
inc edx
add byte [ebx - 0x34ffad46], cl
mov ebp, 0x9ddd
add byte [eax], al
mov esi, dword [eax + 0x9007400]
insd dword es:[edi], dx
pop esp
adc al, 0
dec ebp
adc eax, 0x5900107e
xor al, byte [eax]
inc edx
add byte [ebx + 0x5afb58bf], cl
lodsd eax, dword ds:[esi]
sbb byte [eax], dh
add byte [edi], ch
das
add byte ss:[ecx], dh
rol byte [eax], cl
fistp word [eax + edi*2 + 0x22375b59]
add byte [ebx - 0x51aa8877], cl
ljmp 0x8100
Function at 0x10004cd0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x10004d02
lea esp, [esp]
test cl, 3
je 0x10004d02
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x760a460]
add ecx, 1
sub esi, 1
jne 0x10004ce0
cmp esi, 0x20
push ebx
push edi
jb 0x10004eec
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x760a860]
xor edx, dword [ebx*4 + 0x760ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x760a460]
add ecx, 4
xor edx, dword [eax*4 + 0x760b060]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x760a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x760ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x760a460]
add ecx, 4
xor eax, dword [edx*4 + 0x760b060]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x760a860]
xor edx, dword [ebx*4 + 0x760ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x760a460]
xor edx, dword [eax*4 + 0x760b060]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x760a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x760ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x760a460]
xor eax, dword [edx*4 + 0x760b060]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x760a860]
xor edx, dword [ebx*4 + 0x760ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x760a460]
xor edx, dword [eax*4 + 0x760b060]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x760a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x760ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x760a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x760b060]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x760a860]
xor edx, dword [ebx*4 + 0x760ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x760a460]
add ecx, 4
xor edx, dword [eax*4 + 0x760b060]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x760a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x760ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x760a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x760b060]
sub edi, 1
jne 0x10004d12
cmp esi, 4
jb 0x10004f39
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x760a860]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x760ac60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x760a460]
and eax, 0xff
xor edi, dword [eax*4 + 0x760b060]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x10004ef6
test esi, esi
pop edi
pop ebx
je 0x10004f5d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x760a460]
add ecx, 1
sub esi, 1
jne 0x10004f40
not eax
pop esi
ret
Function at 0x10011490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x78
mov eax, dword [0x5c0a2f0]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
mov ebx, dword [esp + 0x80]
mov eax, 1
push esi
push 0x30
mov word [esp + 0x7c], ax
mov esi, 2
lea eax, [esp + 0x1c]
mov dword [esp + 0x70], 0x40000
push 0
push eax
mov dword [esp + 0x7c], 0x20004
mov dword [esp + 0x80], 0x10001
mov dword [esp + 0x20], 0
call fcn.1000d861
push 0x24
lea eax, [esp + 0x58]
push 0
push eax
call fcn.1000d861
push 0x2b
push ebx
call fcn.100269f0
mov edx, eax
add esp, 0x20
test edx, edx
jne 0x10011520
pop esi
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.10010f50
add esp, 0x78
ret
mov al, byte [edx + 5]
cmp al, 9
ja 0x10011673
cmp al, 1
jb 0x10011673
movzx eax, al
cmp dword [esp + eax*4 + 0x44], 0
jne 0x100115a0
mov dword [esp + eax*4 + 0x44], edx
movzx eax, byte [edx + 5]
dec eax
cmp eax, 8
ja 0x100115a0
jmp dword [eax*4 + 0x5bf0cec]
movzx eax, byte [edx + 5]
movzx ecx, byte [edx + 6]
shl eax, 8
or eax, ecx
cmp eax, 0x200
jg 0x1001161e
je 0x10011614
sub eax, 0x100
cmp eax, 0x46
ja 0x10011673
movzx eax, byte [eax + 0x5bf0d2c]
jmp dword [eax*4 + 0x5bf0d10]
mov dword [esp + 0x30], 0
jmp 0x10011673
cmp eax, 0x714
jg 0x10011653
je 0x10011649
cmp eax, 0x300
je 0x1001163f
cmp eax, 0x70a
jne 0x10011673
mov dword [esp + 0x38], 0
jmp 0x10011673
mov dword [esp + 0x34], 0
jmp 0x10011673
mov dword [esp + 0x3c], 0
jmp 0x10011673
cmp eax, 0x80a
je 0x1001166b
cmp eax, 0x90a
jne 0x10011673
mov dword [esp + 0x44], 0
jmp 0x10011673
mov dword [esp + 0x40], 0
push edx
push ebx
call fcn.10026a90
mov edx, eax
add esp, 8
test edx, edx
jne 0x10011520
push 0x14
push 1
push ebx
call fcn.10026a50
add esp, 0xc
test eax, eax
je 0x10011731
add eax, 0xf
mov dword [esp + 0x10], 0
push 2
push eax
lea eax, [esp + 0x18]
push eax
call fcn.1000d79d
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x38], 0
jne 0x100116d7
cmp dword [esp + 0x3c], 0
jne 0x100116d7
cmp dword [esp + 0x40], 0
jne 0x100116d7
cmp dword [esp + 0x44], 0
je 0x100116f2
test cx, cx
je 0x100116f2
pop esi
mov eax, 0xb
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.10010f50
add esp, 0x78
ret
cmp cx, 7
jae 0x10011702
movzx eax, cx
movzx eax, word [esp + eax*2 + 0x6c]
jmp 0x1001172d
cmp cx, 0xb
jne 0x10011712
mov dword [esp + 0x14], 1
jmp 0x10011731
cmp cx, 0x14
jne 0x10011722
mov dword [esp + 0x14], 4
jmp 0x10011731
mov eax, dword [esp + 0x14]
cmp cx, 0x15
cmove eax, esi
mov dword [esp + 0x14], eax
xor esi, esi
push edi
cmp dword [esp + esi*4 + 0x1c], 0
je 0x1001189d
movq xmm0, qword [0x5c0aa74]
mov al, byte [0x5c0aa7c]
movq qword [esp + 0x70], xmm0
mov byte [esp + 0x78], al
mov dword [esp + 0x14], 0
cmp esi, 0xb
ja 0x100118d2
jmp dword [esi*4 + 0x5bf0d74]
inc esi
cmp esi, 0xc
jl 0x10011734
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.10010f50
add esp, 0x78
ret
mov ecx, dword [esp + 0x80]
mov eax, 0xb
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10010f50
add esp, 0x78
ret
Function at 0x10012830
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x1001291a
movzx eax, byte [ecx]
imul edx, eax, 0x13cee4d1
movzx eax, byte [ecx + 1]
imul eax, eax, 0x13cee4d1
push ebx
push esi
rol edx, 5
xor edx, eax
movzx eax, byte [ecx + 2]
imul eax, eax, 0x13cee4d1
rol edx, 5
xor edx, eax
movzx eax, byte [ecx + 3]
imul eax, eax, 0x13cee4d1
rol edx, 5
xor edx, eax
movzx eax, byte [ecx + 4]
imul eax, eax, 0x13cee4d1
rol edx, 5
xor edx, eax
movzx eax, byte [ecx + 5]
imul eax, eax, 0x13cee4d1
rol edx, 5
xor edx, eax
movzx eax, byte [ecx + 6]
imul eax, eax, 0x13cee4d1
rol edx, 5
xor edx, eax
movzx eax, byte [ecx + 7]
mov ecx, dword [esp + 0x18]
mov esi, ecx
imul eax, eax, 0x13cee4d1
rol edx, 5
xor edx, eax
mov eax, 0x13cee4d1
cmove edx, eax
shr esi, 2
mov eax, edx
mov ebx, edx
shr eax, 0x10
mov dword [esp + 0x10], eax
mov eax, edx
shr eax, 0x18
shr ebx, 8
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
test esi, esi
jle 0x10012907
mov ecx, dword [esp + 0x10]
xor byte [eax], dl
dec esi
xor byte [eax + 1], bl
xor byte [eax + 2], cl
mov ecx, dword [esp + 8]
xor byte [eax + 3], cl
add eax, 4
mov ecx, dword [esp + 0x10]
test esi, esi
jg 0x100128e8
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
and ecx, 3
jle 0x1001291a
mov edi, edi
xor byte [eax], dl
lea eax, [eax + 1]
dec ecx
test ecx, ecx
jg 0x10012910
pop ecx
ret

Function at 0x100010e3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push dword [ebp + 8]
push 0
push 0
call sub.kernel32.dll_CreateMutexA
mov dword [ebp - 4], eax
or eax, eax
je 0x10001115
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x10001115
push dword [ebp - 4]
call fcn.100010c6
push 0
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x10001134
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.1000111c
push 0x10
lea eax, [ebp - 0x54]
push eax
call fcn.1000111c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.kernel32.dll_CreateProcessA
lea edi, [ebp - 0x54]
push dword [edi]
push dword [edi + 4]
call sub.kernel32.dll_CloseHandle
call sub.kernel32.dll_CloseHandle
leave
ret 4
Function at 0x406840
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
mov ebx, dword [ecx]
or byte [esi + 0x59], dl
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x407cfa
cdq
dec ebx
adc byte [ebp - 0x767b0637], al
add dword [eax], eax
add byte [ebx + 0x488b0c75], cl
in eax, 0x8d
push esi
sub bl, al
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
mov word [ebp + 0x68000137], es
mov esi, dword [sym.imp.WSOCK32.dll_WSACleanup]
mov ebx, 0xfc03ad6
push ebp
stc
add byte [eax], al
add bh, bh
salc
add eax, 0xafc80
cmp eax, 0x37e523b3
punpcklwd mm2, dword [ecx + 1]
add byte [eax], al
mov edi, dword [ebx + 0x20]
mov esi, dword [ebx + 0x24]
mov eax, edi
or eax, esi
jne 0x4068bd
pop edi
pop esi
mov eax, 0xb23b4
pop ebx
mov esp, ebp
xor al, 0xc2
or eax, 0x4fe8b00
sbb al, byte [ecx]
add byte [eax], 0x2c
test esi, esi
mov edi, esi
add al, 0x1a
add dword [eax - 0x97ad400], eax
mov edx, edi
hlt
or byte [eax], cl
or byte [ecx + 0x808e208], al
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [ecx + 8], ah
leave
invalid
jne 0x407d04
adc dword [eax], ecx
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [ecx + 8], ah
or byte [eax + ecx + 0x8ae0808], ch
or byte [eax], cl
or byte [0xf706e008], al
nop
or byte [edi], al
nop
jnp 0x407cac
nop
nop
nop
nop
jmp 0xecdf58b0

Function at 0x40b080
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x4d]
push edi
xor bh, byte [ebp + 0x10]
mov eax, dword [esi - 0x4f]
mov ecx, dword [esi + 0x14]
or eax, ecx
mov dword [ebp + 0x10], 0x17af00
div dword [ecx - 0x76]
inc esi
or byte [eax + eax*8 + 0x568b0974], al
add al, 0x8d
dec ebp
or byte [edx], ch
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x40b0f2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp [ebp + 0x33756185]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40b107
mov ebx, dword [ecx]
adc al, 0x2c
sbb dword [esp + ebp], edx
pop esi
mov byte [edx], 0xb8
or eax, dword [eax]
add byte [eax], al
pop ebp
ret
cmp edi, eax
jbe 0x40b11c
mov edi, eax
dec edi
inc esi
mov edx, 0xd174c085
mov bl, 0x15
add cl, ah
leave
jne 0x40b0fa
mov ecx, dword [esi + 0x50]
dec esi
push eax
mov dword [eax + 8], ecx
mov dword [esi + 0x50], eax
mov edx, dword [esi + 0x54]
mov ecx, 0x20
push ebp
fild word [esi]
add byte [eax], al
mov edx, dword [esi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0xc]
mov edx, dword [ebp + 0xc]
push ebx
lea ecx, [ebp + 0x10]
push eax
mov eax, dword [esi + 4]
push ecx
mov al, 0xcd
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
adc eax, dword [edi]
xor eax, eax
jmp 0x62b285

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x4fad40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa1000]
push edi
jmp 0x4fad5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fad61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fad50
mov eax, 1
add ebx, ebx
jne 0x4fad73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fad84
jne 0x4fada3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fada3
dec eax
add ebx, ebx
jne 0x4fad90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fad68
add ebx, ebx
jne 0x4fad9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fadf5
xor ecx, ecx
sub eax, 3
jb 0x4fadbb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fae2a
sar eax, 1
mov ebp, eax
jmp 0x4fadc6
add ebx, ebx
jne 0x4fadc6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fad94
inc ecx
add ebx, ebx
jne 0x4fadd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fad94
add ebx, ebx
jne 0x4fade1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fadd6
jne 0x4fadf2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fadd6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fae14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fae06
jmp 0x4fad56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fae14
add edi, ecx
jmp 0x4fad56
pop esi
mov edi, esi
mov ecx, 0x3b6c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fae32
cmp byte [edi], 0x17
jne 0x4fae32
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 0x4fae37
lea edi, [esi + 0xf4000]
mov eax, dword [edi]
or eax, eax
je 0x4faea6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1141b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11424c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fae64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x114254]
or eax, eax
je 0x4faea0
mov dword [ebx], eax
add ebx, 4
jmp 0x4fae81
call dword [esi + 0x114250]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4faed7
cmp al, 0xef
ja 0x4faeca
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4faeac
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4faeb9
mov ebp, dword [esi + 0x114258]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4faf0b
sub esp, 0xffffff80
jmp 0x435126
Function at 0x403660
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x478020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036d8
xor eax, eax
push ebp
push 0x4036d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403714
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036d8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x478020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x478020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404504
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x484048], 0
je 0x404565
cmp word [0x48421c], 0xd7b2
jne 0x40452d
cmp dword [0x484224], 0
jbe 0x40452d
mov eax, 0x484218
call dword [0x484234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40458c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47802c], 0
jne 0x404581
push 0
push 0x478750
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408268
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4082f8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4082f8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4082ab
test edx, 3
jne 0x40829a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4082a5
jmp 0x4082ab
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4082ab
cmp dword [ecx - 8], 1
je 0x4082b5
mov edx, ebx
or edx, 3
call fcn.00404dd0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4082c7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404684

Function at 0x408304
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408394
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408394
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408347
test edx, 3
jne 0x408336
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408341
jmp 0x408347
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408347
cmp dword [ecx - 8], 1
je 0x408351
mov edx, ebx
or edx, 3
call fcn.00404dd0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408363
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404684

Function at 0x40b770
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b7a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404774
jmp 0x40b7b2
mov eax, ebx
mov edx, esi
call fcn.004046d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b7bc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b7de
movzx eax, byte [esp]
jmp 0x40b7e0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40be70
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bce8
mov eax, dword [0x4833a0]
cmp byte [eax], 0
je 0x40beec
mov eax, dword [0x483194]
call fcn.00403028
call fcn.00402de8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408f08
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bf34
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bf22
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x483138]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4867f4]
call fcn.00405910
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c780
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c856
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040471c
lea eax, [ebp - 4]
call fcn.00404b98
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b48
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c840
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c839
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b48
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c823
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c868
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c823
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c840
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c85d
lea eax, [ebp - 4]
call fcn.00404684
ret