joyce8/EMBER2024-capa huggingface dataset:
Function at 0x104d9699
Capabilities:
Encode data using xor

Disassembly:
loopne 0x104d9700
dec ax
dec eax
not ecx
jp 0x104eee80
mov ecx, 0xec3f1381
sub edi, 1
neg ecx
ror ecx, cl
movsx edx, cl
movzx edx, byte [edi + ecx*2 - 0x4f03b1fc]
xor dl, bl
inc cx
sub cl, ch
sbb dl, 0xa4
movzx eax, cx
neg dl
ror eax, cl
sar ax, cl
push ecx
inc dl
shl al, 0xa7
jbe 0x10457307
or eax, 0xb1049ed
and al, 0x1e
xchg byte [ecx], dh
mov ebx, 0x1179f454
fldenv [edx]
test dword [ecx - 0x4d], edi
in al, dx
inc ebx
out dx, eax
jns 0x104d9698
sal byte [esi - 0x39097983], 0x3a
adc byte [esi - 0x45066e4], al
cdq
scasd eax, dword es:[edi]
sti
jns 0x104d971c
das
fdiv dword [eax + 0x21fa79fe]
or esp, edx
jns 0x104d96f3
out 0xc8, al
add al, byte [esi + 0x126ce404]
xchg byte [edi - 0x69], bh
hlt
int1
nop
stc
sub dword [esi], ecx
mov byte [ecx - 0x74e8e38f], ch
cmc
sub dword [edx + ecx*8 + 0x10], edi
enter 0x52f1, 0x13
xchg esi, eax
xchg esi, eax
test al, 0xa1
add al, bl
dec edi
in al, 0x45
and al, 0x44
fnstsw word [ebp - 0x379d63e2]
push ds
xor bh, ah
mov dl, 0x8e
popal
stosd dword es:[edi], eax
adc ah, ah
jo 0x104d97c3
add byte [edx + 0x538f462b], ch
mov edx, 0x399b0813
ror edx, 1
test byte [ebp - 0x24], bl
adc bh, cl
mov ch, 2
sub al, 0xb
or al, byte [esi]
iretd
invalid

Function at 0x104dbc64
Capabilities:
Encode data using base64

Disassembly:
ror ecx, 1
or dx, ax
lea ecx, [ecx + edx*2 + 0x1624141d]
ror ecx, 1
ror ax, 0xce
xor ebx, ecx
ror edx, 9
add ebp, ecx
or edx, dword [esp + eax - 0x529e3434]
jae 0x10431dd4
jnp 0x104b9475
xor ebx, eax
add edi, eax
add dword [esp + 0xc], ecx
sbb dword [esp + 0xc], 0xaf93eb3b
movzx dx, byte [esi]
mov al, byte [esi + 2]
add esi, 2
shr cx, 0x26
call fcn.104140e2
mov edx, 0xf32d2e8a
mov ax, word [esi]
mov cx, word [esi + 2]
add esi, 2
push edx
jmp 0x104ba293
pop ecx
pop ecx
jne fcn.10439d66
or ax, cx
sar edx, 0xb
mov ecx, dword [esp]
jbe 0x1050f4be
movsx eax, dx
lea esi, [esi + edx*4 + 4]
adc eax, eax
xchg dword [esp + edx + 4], eax
xor ecx, ebx
inc edx
xor edx, edx
mov dword [esp + edx*2], edx
dec ecx
xor dl, al
ror edx, 0xf1
jnp 0x1041efc0
neg eax
lea ecx, [edx + edx*2 - 0x1944efdf]
sal cl, 0xc6
ror ecx, 0xe4
not eax
neg edx
xor ebx, eax
add ebp, eax
add dl, dl
jo 0x10443344
movzx ax, byte [esi + edx]
dec cx
shr edx, 0x9e
mov cl, byte [edx + esi + 2]
call fcn.105141be
not ax
rol dword [esp], 0x18
xchg word [esp + 1], cx
mov word [esi], ax
mov edx, dword [ebp]
adc word [esp + 2], 0xae37
add ebp, 4
movsx eax, cl
push eax
and ax, 0x728c
xor edx, ebx
dec cx
bswap edx
rol edx, 2
xor al, ah
bswap edx
xor byte [esp + eax - 9], cl
not edx
sal al, 0x27
xor ebx, edx
mov byte [esp + eax*2 + 7], 0x8d
add edi, edx
add dword [esp + eax + 4], ecx
dec dword [esp + eax]
mov dword [esp + eax], edi
ret 4

Function at 0x1050b8fb
Capabilities:
Encode data using base64

Disassembly:
adc ecx, edx
ror ax, 0x8a
call fcn.10504f0d
Function at 0x10510caa
Capabilities:
Encode data using base64
Packed with generic packer
Parse pe header

Disassembly:
shl ax, cl
call fcn.1048f14c
mov ecx, 0xbd1c8b3b
movsx edx, cl
jmp 0x104d698a
mov eax, dword [edx + esi - 0x3b]
inc dx
mov edx, dword [esi + edx*4 - 0xec]
jns 0x1050a03a
sal ecx, 0x2d
add cl, byte [esi + 8]
push 0xab227cb5
call fcn.104cd38d
call fcn.10530321
dec eax
call fcn.10403d31
sub dx, dx
movsx ecx, dl
add cl, byte [esi + edx*2 - 0x2abfffe]
ror dx, 0xe6
lea esi, [edx + esi - 0x155fffe]
sub dx, dx
jp 0x104822fb
Function at 0x105151b4
Capabilities:
Encode data using xor

Disassembly:
lea esi, [ecx + esi - 0x4289]
sbb cx, cx
mov dword [esp + ecx], eax
sete byte [esp + ecx + 1]
mov word [esi + ecx*8], dx
pop edx
lea edi, [edi + ecx - 4]
sbb ecx, edx
or dx, ax
mov ecx, dword [ecx + edi - 0x6e3fe75]
jp 0x104ef7f0

Function at 0x105223d8
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esi]
mov eax, 0x91ad448f
add al, al
mov ax, word [esi + 4]
add esi, 6
mov edx, 0x69aea712
neg edx
lea edx, [edx + edx*8 + 0x730bc9b9]
mov word [ecx], ax
movsx eax, dl
movzx ecx, al
xor eax, 0x4c8312b0
lea ebp, [ebp + eax - 0x4c8312ab]
sbb cl, dl
jle 0x105160f4
mov eax, dword [esi + eax*4 - 0x3b404]
jns 0x104a3f6e
mov ecx, dword [edi + 4]
sal al, 0xa5
shl ax, 0x2e
adc edi, 4
add eax, eax
jne 0x1052e403
lea esi, [esi + ecx*4 - 0x7c1b2a44]
jp 0x104e0d40
sub ecx, ecx
xor eax, ebx
movsx edx, cx
add eax, 0x99a5f400
not edx
push ecx
xor eax, 0x7f916304
jmp 0x105238df
jp 0x104cc051
bswap eax
add ecx, dword [ebp + ecx*8]
dec ax
xor ecx, ebx
bswap ecx
xor eax, eax
shl dl, 0xe6
call fcn.10412c3b
mov edx, dword [edi]
mov eax, 0xc02104aa
movsx ecx, al
jmp 0x10499641
pop eax
xor ecx, 0x2e295f39
mov eax, edx
add dword [esp], eax
ror ecx, 2
call fcn.10496f9f
sbb esi, 2
mov word [esi], cx
xor dword [esp + 6], edx
pop edx
pop edx
pop edx
jle fcn.104f05f8
jmp 0x103e31ec
ror dword [esp + ecx*8], 0x3a
lea eax, [eax + ecx*8 - 0x771d16be]
xor eax, edx
and cl, cl
jae 0x105113da
bswap eax
or edx, ecx
add ax, 0xd002
not ax
not edx
je 0x10481af7
lea ecx, [eax + eax*2 + 0x1f04021b]
setge al
mov dword [edi + eax - 0xed01], edx
jbe 0x10402e0e

Function at 0x10527f1d
Capabilities:
Encode data using base64

Disassembly:
inc eax
mov dword [esp + edx*2 - 0x2b016f02], edx
pop ecx
neg eax
not cx
lea edx, [edx*8 - 0x14de3dde]
rol ecx, 0x38
inc eax
jmp 0x10435463
Function at 0x1052a724
Capabilities:
Encode data using base64

Disassembly:
mov ecx, 0xa13d9515
lea eax, [ecx + ecx*8 + 0x153ccf94]
movzx edx, al
mov eax, dword [edx + ebp - 0x51]
lea edx, [edx + edx*8 - 0x674d6adf]
add ebp, 4
shl dx, 0x22
xor eax, ebx
shl edx, 0x63
neg eax
lea ecx, [edx - 0x16838c4]
push ecx
shl ecx, cl
add eax, 0x1d10c81c
call fcn.104d1b25
sub ebp, 1
mov ecx, 0xd1286c04
movzx edx, cl
movzx eax, byte [ebp + edx*8 - 0x20]
xor al, bl
jmp 0x1049e1a0
bswap edx
je 0x1043dc1f
xor ecx, ecx
xor ebx, edx
call fcn.1043935b
rol dx, cl
xor al, 0xb9
call fcn.104f1b74
ror byte [esp + ecx - 0x74a29e2f], 0xa7
xadd byte [esp + ecx - 0x74a29e34], cl
lea edi, [edi + ecx - 0x74a29e02]
mov word [ecx + edi - 0x74a29e00], ax
movsx eax, byte [esp + ecx - 0x74a29dfd]
xor byte [esp + eax - 0x3d], ah
mov ecx, dword [esi + ecx - 0x74a29e00]
sal byte [esp + eax*8 - 0x213], 0xa5
sal dword [esp + eax*2 - 0x85], 0x47
and eax, eax
lea esi, [esi + eax - 0x3f]
ror ax, 0x81
movzx edx, al
je 0x1050ee41
mov eax, dword [esi + 4]
mov ecx, 0x7a16999b
add word [esp + ecx - 0x7a169992], cx
mov ecx, dword [esi + ecx - 0x7a169993]
push 0xe79aec9b
add esi, 4
ror dword [esp + 0x10], 0xff
and word [esp + 0xb], 0x47b0
idiv ecx
call fcn.10417129
mov ecx, 0x2590c135
sal ecx, 0x2a
movsx edx, cl
add edx, dword [edx + edi]
mov eax, ecx
lea edi, [edi + ecx - 0x4304d3fc]
xor edx, ebx
xadd eax, ecx
rol eax, 0xe1
lea edx, [eax + edx - 0x34c39587]
push ecx
neg edx
rol edx, 2
xadd dword [esp + ecx - 0x4304d400], eax
ja 0x10491130
Function at 0x1052e765
Capabilities:
Encode data using base64

Disassembly:
call fcn.103f3b49
not eax
mov edx, dword [esi + edx - 0x79cf746c]
adc esi, 4
mov ecx, 0xc198ea8c
inc ecx
or eax, edx
not eax
mov edx, ecx
mov dword [esi], eax
rol cl, 0x42
call fcn.10431d15
lea edx, [edx + edx*8 - 0x5fc45cf]
not cl
xor dl, byte [esp + edx*2 - 0x431b2c81]
mov eax, edx
lea edx, [edx + 0x5aba952f]
xor bl, cl
lea ecx, [esp + ecx + 8]
sar word [esp + edx - 0x7c482bbf], 0x2f
sal edx, 0x66
sbb word [esp + eax*2 - 0x431b2d1c], ax
movzx dx, byte [edx + ecx - 0x120af000]
lea ecx, [eax + eax*8 - 0x15c9696c]
and dword [esp + eax - 0x218d968d], 0xbad6820
dec dword [esp + ecx*4 - 0x60c386b0]
lea esi, [esi + ecx - 0x1830e1af]
dec byte [esp + eax*2 - 0x431b2d1e]
dec ax
bswap eax
mov word [ecx + esi - 0x1830e1ad], dx
lea edi, [edi + ecx*2 - 0x3061c35e]
mov word [esp + ecx - 0x1830e1a8], ax
ror cx, cl
mov eax, dword [ecx + edi - 0x18300d6f]
xor eax, ebx
movzx edx, cl
xor dword [esp + ecx - 0x18300d6e], 0xc99969b6
dec eax
not eax
not cx
shl dl, 0x24
inc eax
add byte [esp + ecx - 0x1830f28f], dh
xchg word [esp + ecx - 0x1830f28a], cx
not eax
shl dword [esp + ecx*2 - 0x30601518], cl
jb 0x10517f5d
bswap eax
xor ebx, eax
jmp 0x10439d5a
sub edx, 0xe58197a2
lea ebp, [ebp + edx*2 - 0x34fad1b4]
inc cx
sbb ecx, 0x409b5c2d
xor eax, ebx
push edx
xor cl, dl
sbb eax, 0xfd140628
jmp 0x104957d2
rol dx, 1
mov dword [esp + eax - 0x19d40127], 0x29a83728
add dx, 0xda26
rol dx, 1
neg dx
shl cl, 0x61
add word [esp + eax*2 - 0x33a8024e], ax
xor dx, 0x8087
ror dx, 1
dec dx
sar cx, 0x29
xor bx, dx
inc eax
lea esi, [eax + esi - 0x19d4012a]
push ecx
mov word [eax + esi - 0x19d40128], dx
mov edx, dword [edi + eax*2 - 0x33a80250]
lea edi, [edi + eax*2 - 0x33a8024c]
xor edx, ebx
and cx, ax
xor edx, 0x72af7ead
shl ecx, 0xc2
and cl, al
sbb edx, 0xab965a90
bswap edx
rol ax, 0x82
rol edx, 1
xor ebx, edx
add ebp, edx
sub cl, cl
call fcn.1042d6be
mov edx, 0xd9ad503d
mov dx, word [ebp]
mov ecx, 0x395bfa7
and cx, cx
mov eax, 0xb3b0fb06
mov cl, byte [ebp + ecx*2 - 0x72b7f4c]
adc ebp, 2
neg eax
shl dx, cl
mov word [ebp + eax - 0x4c4f04fa], dx
lea edx, [eax + eax*2 - 0x28ecdefc]
lea edx, [edx + eax*2 + 0x6a9ad2b2]
lea esi, [esi + eax - 0x4c4f04fe]
xchg ah, dl
mov ecx, dword [eax + esi - 0x4c4f98fa]
sar eax, 0x13
call fcn.104f723a
mov eax, 0x7908e92b
not eax
mov eax, dword [esi]
mov edx, 0xf39ee8e
sal edx, 0xa3
ja 0x1050d119

Function at 0x10530aa6
Capabilities:
Encode data using base64

Disassembly:
mov word [esi], dx
rol byte [esp + 9], 0xc2
pop edx
pop edx
pop eax
pop eax
pop eax
jb fcn.104f05f8
neg eax
inc eax
call fcn.1048ae3c

Function at 0x10534455
Capabilities:
Authenticate hmac

Disassembly:
not ax
not cx
or ax, cx
pop edx
mov word [esi], ax
call fcn.104ce6de
mov ecx, 0x2f90179f
lea eax, [ecx + ecx*4 + 0x46137b84]
lea edi, [ecx + edi - 0x2f9017a3]
shr al, 0xc4
lea edx, [ecx + 0x18b68600]
jns 0x10401ae9
je 0x105344e9
mov dh, 0xb0
call 0x7d55c1bf
std
test al, 0xf7
outsb dx, byte [esi]
dec edi
sbb ch, dh
stosb byte es:[edi], al
xchg ebx, eax
rcr byte [ecx + 0x42], 1
fcom qword [edx - 0x3d425f09]
xchg edx, eax
mov edi, 0xa76d2ea7
retf
int3
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 0x438c9b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
pop esi
or ecx, ecx
call fcn.00438cd3
inc edi
xor dword [edx], esi
sub ecx, 0xe8c21691
and edi, edi
and edi, edi
inc edx
add edi, 0x9d7e2f59
cmp edx, ebx
jne fcn.00438c9b
and edi, edi
mov edi, ecx
mov ecx, 0x94a6511e
ret
Function at 0x408710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x407015
lea edi, [esi - 0x6015]
push edi
or ebp, 0xffffffff
jmp 0x408732
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408739
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408728
mov eax, 1
add ebx, ebx
jne 0x40874b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408740
jne 0x40875c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408740
xor ecx, ecx
sub eax, 3
jb 0x408770
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4087e2
mov ebp, eax
add ebx, ebx
jne 0x40877b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408788
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4087ac
inc ecx
add ebx, ebx
jne 0x408798
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40878d
jne 0x4087a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40878d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4087cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4087bd
jmp 0x40872e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4087cc
add edi, ecx
jmp 0x40872e
pop esi
mov edi, esi
mov ecx, 0x5a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4087ea
cmp byte [edi], 0
jne 0x4087ea
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 0x4087ef
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x40885e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x82c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x834c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40881c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8350]
or eax, eax
je 0x408858
mov dword [ebx], eax
add ebx, 4
jmp 0x408839
call dword [esi + 0x8360]
mov ebp, dword [esi + 0x8354]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x408892
sub esp, 0xffffff80
jmp section.UPX0

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 0x8d4d58
Capabilities:
Encode data using xor

Disassembly:
jmp 0x8d4d62
pushal
call 0x8d4d68
pop ebp
sub ebp, 0x10
sub ebp, 0x4d4d58
jmp 0x8d4d7e
mov eax, 0x4d4d58
add eax, ebp
add eax, 0x4c
mov ecx, 0x5f2
mov edx, 0x22b98e19
xor byte [eax], dl
inc eax
dec ecx
jne 0x8d4d95
jmp 0x8d4da8
xchg edx, eax
aam 0x92
nop
and eax, 0x98191919
fsub st(1)
sbb dword [ecx], ebx
sbb dword [edx], ebx
aam 0xa1
pop ds
sbb dword [ecx], ebx
sbb dword [ebx + 0x19191931], esp
out dx, al
sti
sbb dl, cl
xchg edx, eax
cwde
adc eax, 0x1a191919
fcom qword [ebp + edi*2 + 0x1d90e53d]
cmp eax, 0xe53d7d94
nop
sbb eax, 0xb511713d
pop ss
sbb dword [ecx + 0x56], esi
mov eax, 0x35181927
cmp eax, 0x6fcd071
jl 0x8d4de0
sbb al, 0x19
sbb dword [ecx], ebx
invalid
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x401170
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
push ebx
push esi
bswap eax
bswap ecx
xor edx, edx
mov dword [ebp - 4], 0x20
push edi
lea esp, [esp]
mov edi, dword [ebp + 0xc]
mov esi, edx
and esi, 3
mov esi, dword [edi + esi*4]
bswap esi
add esi, edx
mov edi, ecx
shr edi, 5
mov ebx, ecx
shl ebx, 4
xor edi, ebx
add edi, ecx
xor esi, edi
mov edi, dword [ebp + 0xc]
add eax, esi
sub edx, 0x61c88647
mov esi, edx
shr esi, 0xb
and esi, 3
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 5
mov ebx, eax
shl ebx, 4
bswap esi
xor edi, ebx
add esi, edx
add edi, eax
xor esi, edi
add ecx, esi
dec dword [ebp - 4]
jne 0x401190
mov edx, dword [ebp + 8]
pop edi
bswap eax
bswap ecx
pop esi
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x401200
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add edx, 7
shr edx, 3
dec edx
mov dword [ebp - 0xc], edx
js 0x4012c5
push ebx
push esi
push edi
jmp 0x401223
mov eax, dword [ebp + 8]
lea ecx, [eax + edx*8 - 8]
test edx, edx
jne 0x40122e
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + edx*8]
mov eax, dword [eax + edx*8 + 4]
bswap ecx
bswap eax
mov edx, 0xc6ef3720
mov dword [ebp - 4], 0x20
mov edi, dword [ebp + 0x10]
mov esi, edx
shr esi, 0xb
and esi, 3
mov esi, dword [edi + esi*4]
bswap esi
add esi, edx
mov edi, ecx
shr edi, 5
mov ebx, ecx
shl ebx, 4
xor edi, ebx
add edi, ecx
xor esi, edi
mov edi, dword [ebp + 0x10]
sub eax, esi
add edx, 0x61c88647
mov esi, edx
and esi, 3
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 5
mov ebx, eax
shl ebx, 4
bswap esi
xor edi, ebx
add esi, edx
add edi, eax
xor esi, edi
sub ecx, esi
dec dword [ebp - 4]
jne 0x401248
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
bswap ecx
mov dword [esi + edx*8], ecx
lea ecx, [esi + edx*8 + 4]
bswap eax
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov edi, dword [eax]
xor dword [esi + edx*8], edi
mov eax, dword [eax + 4]
xor dword [ecx], eax
dec edx
mov dword [ebp - 0xc], edx
jns 0x401220
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
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 0x402b48
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047f8
test esi, esi
jne 0x402b7e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048e8
jmp 0x402b9c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a5c
mov edi, eax
test esi, esi
je 0x402b9c
cmp dword [ebx], 0
je 0x402b9c
dec esi
jmp 0x402b85
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403774
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4af020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40380c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037ec
xor eax, eax
push ebp
push 0x4037e5
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 0x403828
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 0x4037ec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4af020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4af020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4045f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b104c], 0
je 0x404659
cmp word [0x4b1220], 0xd7b2
jne 0x404621
cmp dword [0x4b1228], 0
jbe 0x404621
mov eax, 0x4b121c
call dword [0x4b1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4af070
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 0x404680
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4af030], 0
jne 0x404675
push 0
push 0x4af068
push 0x4af070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4047ac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402820
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b104d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404774
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406ae4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406b4a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404a68
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004031dc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406b34
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b51
lea eax, [ebp - 0x10]
call fcn.004047f8
ret

Function at 0x4096a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404cb8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4096bd
test al, 0x10
jne 0x4096c1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c7c8
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 0x40c801
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048e8
jmp 0x40c80a
mov eax, ebx
mov edx, esi
call fcn.0040484c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c814
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 0x40c835
mov al, byte [esp]
jmp 0x40c837
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cebc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cd34
mov eax, dword [0x4b0c84]
cmp byte [eax], 0
je 0x40cf38
mov eax, dword [0x4b0970]
call fcn.00402f94
call fcn.00402988
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.004098c8
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 0x40cf80
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cf6e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b08f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b1668]
call fcn.00405fdc
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