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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [0x4a151c]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x10]
mov edx, eax
xor ecx, ebp
shr edx, 3
test esi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 4], edx
je 0x402b63
and eax, 7
je 0x402b63
mov ebx, 8
xor ecx, ecx
sub ebx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + eax + 0x18]
cmp ebx, esi
cmova ebx, esi
push ebx
push edi
push eax
call fcn.004735a2
add esp, 0xc
mov eax, dword [esp + 0x18]
mov edx, dword [ebp + 0xc]
sub esi, ebx
add edi, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 4]
lea eax, [edx + eax*2]
mov edx, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
xor dword [edx + ecx*8 + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
xor dword [edx + ecx*8], eax
inc dword [esp + 4]
cmp esi, 8
jb 0x402bcc
lea eax, [esi - 8]
mov edx, eax
mov ebx, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
shr edx, 3
and ebx, 0xfffffff8
mov dword [esp + 0xc], ebx
mov ecx, eax
add edx, eax
lea eax, [ebx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
shl ecx, 4
mov dword [esp + 0x10], edx
xor edx, edx
lea ebx, [ecx + eax*8]
add ebx, dword [ebp + 8]
mov eax, dword [edi + edx]
mov ecx, dword [edi + edx + 4]
add esi, 0xfffffff8
xor dword [ebx + edx*2 + 4], ecx
xor dword [ebx + edx*2], eax
add edx, 8
cmp esi, 7
ja 0x402b9e
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x10]
add edi, dword [esp + 0x14]
sub esi, dword [esp + 0xc]
inc eax
mov dword [esp + 4], eax
test esi, esi
je 0x402bff
xor eax, eax
lea ebx, [esp + 0x18]
mov dword [ebx + 4], eax
mov dword [ebx], eax
push esi
push edi
push ebx
call fcn.004735a2
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov esi, dword [esp + 4]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edi, dword [ebp + 8]
lea edx, [edx + esi*2]
xor dword [edi + edx*8 + 4], ecx
xor dword [edi + edx*8], eax
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.004720f2
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408bc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor edi, edi
cmp edx, 8
jb 0x408c7b
xor esi, esi
mov edi, dword [ecx + esi*8]
mov ebx, dword [ecx + esi*8 + 4]
xor dword [eax + esi*8 + 4], ebx
xor dword [eax + esi*8], edi
mov edi, dword [ecx + esi*8 + 8]
mov ebx, dword [ecx + esi*8 + 0xc]
xor dword [eax + esi*8 + 0xc], ebx
xor dword [eax + esi*8 + 8], edi
mov edi, dword [ecx + esi*8 + 0x10]
mov ebx, dword [ecx + esi*8 + 0x14]
xor dword [eax + esi*8 + 0x14], ebx
xor dword [eax + esi*8 + 0x10], edi
mov edi, dword [ecx + esi*8 + 0x18]
mov ebx, dword [ecx + esi*8 + 0x1c]
xor dword [eax + esi*8 + 0x1c], ebx
xor dword [eax + esi*8 + 0x18], edi
mov edi, dword [ecx + esi*8 + 0x20]
mov ebx, dword [ecx + esi*8 + 0x24]
xor dword [eax + esi*8 + 0x24], ebx
xor dword [eax + esi*8 + 0x20], edi
mov edi, dword [ecx + esi*8 + 0x28]
mov ebx, dword [ecx + esi*8 + 0x2c]
xor dword [eax + esi*8 + 0x2c], ebx
xor dword [eax + esi*8 + 0x28], edi
mov ebx, dword [eax + esi*8 + 0x30]
mov edi, dword [ecx + esi*8 + 0x34]
xor ebx, dword [ecx + esi*8 + 0x30]
xor dword [eax + esi*8 + 0x34], edi
mov dword [eax + esi*8 + 0x30], ebx
mov ebx, dword [eax + esi*8 + 0x3c]
mov edi, dword [ecx + esi*8 + 0x38]
xor ebx, dword [ecx + esi*8 + 0x3c]
xor dword [eax + esi*8 + 0x38], edi
lea edi, [esi + 8]
mov dword [eax + esi*8 + 0x3c], ebx
add esi, 0x10
cmp esi, edx
mov esi, edi
jbe 0x408be5
mov esi, edi
or esi, 4
cmp esi, edx
jbe 0x408c88
mov esi, edi
jmp 0x408cd2
mov esi, dword [ecx + edi*8]
mov ebx, dword [ecx + edi*8 + 4]
xor dword [eax + edi*8 + 4], ebx
xor dword [eax + edi*8], esi
mov esi, dword [ecx + edi*8 + 8]
mov ebx, dword [ecx + edi*8 + 0xc]
xor dword [eax + edi*8 + 0xc], ebx
xor dword [eax + edi*8 + 8], esi
mov esi, dword [ecx + edi*8 + 0x10]
mov ebx, dword [ecx + edi*8 + 0x14]
xor dword [eax + edi*8 + 0x14], ebx
xor dword [eax + edi*8 + 0x10], esi
mov esi, dword [ecx + edi*8 + 0x18]
mov ebx, dword [ecx + edi*8 + 0x1c]
xor dword [eax + edi*8 + 0x1c], ebx
xor dword [eax + edi*8 + 0x18], esi
lea esi, [edi + 4]
add edi, 8
cmp edi, edx
mov edi, esi
jbe 0x408c88
lea edi, [esi + 2]
cmp edi, edx
jbe 0x408cdd
mov edi, esi
jmp 0x408d0f
mov ebx, dword [ecx + esi*8]
mov ebp, dword [ecx + esi*8 + 4]
lea edi, [esi*8]
or edi, 8
xor dword [eax + esi*8 + 4], ebp
xor dword [eax + esi*8], ebx
mov ebx, dword [ecx + edi]
mov ebp, dword [ecx + edi + 4]
xor dword [eax + edi + 4], ebp
xor dword [eax + edi], ebx
lea edi, [esi + 2]
add esi, 4
cmp esi, edx
mov esi, edi
jbe 0x408cdd
cmp edi, edx
jae 0x408d21
mov edx, dword [ecx + edi*8]
mov ecx, dword [ecx + edi*8 + 4]
xor dword [eax + edi*8 + 4], ecx
xor dword [eax + edi*8], edx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x48c000
Capabilities:
Encode data using xor

Disassembly:
xor byte [ebp + 6], dl
or ch, byte [ebx]
push es
add dword [ecx + eax], eax
xor byte [edi], 2
add dword [ecx + esi], eax
inc edi
xor byte [ebp + 0x30], al
adc byte [esi], al
or ch, byte [ebx]
push es
add dword [ecx + eax], eax
add dword [edx + 0x19010237], eax
add dword [edx + 0x19010237], eax
mov byte [0x30008002], al
xor dword [eax], esi
or eax, 0x86600906
dec eax
add dword [ebp + 3], esp
add al, 2
add dword [0xae200400], eax
call dword [0xb576e6c7]
jg 0x48bfe6
jmp 0xcb0868a

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x562180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10b000]
push edi
jmp 0x56219a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5621a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x562190
mov eax, 1
add ebx, ebx
jne 0x5621b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5621c4
jne 0x5621e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5621e3
dec eax
add ebx, ebx
jne 0x5621d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5621a8
add ebx, ebx
jne 0x5621df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x562235
xor ecx, ecx
sub eax, 3
jb 0x5621fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x56226a
sar eax, 1
mov ebp, eax
jmp 0x562206
add ebx, ebx
jne 0x562206
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5621d4
inc ecx
add ebx, ebx
jne 0x562214
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5621d4
add ebx, ebx
jne 0x562221
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x562216
jne 0x562232
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x562216
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x562254
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x562246
jmp 0x562196
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x562254
add edi, ecx
jmp 0x562196
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x562272
cmp byte [edi], 0x11
jne 0x562272
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 0x562277
lea edi, [esi + 0x15b000]
mov eax, dword [edi]
or eax, eax
je 0x5622ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1eb998]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ebb14]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5622a4
mov ecx, edi
jns 0x5622d3
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 + 0x1ebb18]
or eax, eax
je 0x5622e9
mov dword [ebx], eax
add ebx, 4
jmp 0x5622c1
call dword [esi + 0x1ebb28]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x562320
cmp al, 0xef
ja 0x562313
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5622f5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x562302
mov ebp, dword [esi + 0x1ebb1c]
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 0x562354
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x402ca5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x402cb4
pop dword [ebp - 0x38]
mov eax, 0x7aa4df96
sub eax, 0x7a64b2e2
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x64f5ed06
sub dword [ebp - 0x48], 0x16a3a7bb
mov dword [ebp - 0x44], 0xa0fad62c
sub dword [ebp - 0x44], 0x6ec789e7
mov dword [ebp - 0x40], 0xbb3b44ef
add dword [ebp - 0x40], 0x9110ff3f
mov dword [ebp - 0x3c], 0x126da8bb
sub dword [ebp - 0x3c], 0x126da8bb
lea eax, [ebp - 0x48]
push eax
mov eax, 0x5691f3c5
add eax, 0xa9ae7d7f
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xecab36b2
sub dword [ebp - 0x48], 0x7838cd5c
mov dword [ebp - 0x44], 0x5be4b9f0
add dword [ebp - 0x44], 0xe587a785
mov dword [ebp - 0x40], 0x15ec6e07
add dword [ebp - 0x40], 0x4d82fe65
mov dword [ebp - 0x3c], 0xac66275b
add dword [ebp - 0x3c], 0x5399d8a5
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x34e3b
push 0
call eax
mov ecx, 0x3fab
xor esi, esi
add esi, eax
mov edx, 0x436000
add edx, dword [ebp - 0x38]
mov ebx, 0xff97c6f4
add ebx, 0x4116f19a
add dword [ebp - 0x20], edx
mov edi, dword [edx]
mov dword [ebp - 0xc], 0x930e1aef
xor edi, ebx
sub dword [ebp - 0x30], edx
mov dword [esi], edi
mov dword [ebp - 0x34], 0x567423ef
add esi, 0x81a1ae72
sub esi, 0x81a1ae6e
add edx, 0xa49c7fb1
sub edx, 0xa49c7fad
loop 0x402dc7
add eax, 0x14163e62
add eax, 0xebeab31d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6f9eca25
add ecx, 0x90a135db
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x40303c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call sub.kernel32.dll_WriteFile
test eax, eax
setne al
movsx eax, al
push eax
call fcn.00402edc
mov esi, eax
cmp dword [0x407eb4], 0xffffffff
je 0x40309d
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x407eb0]
jne 0x40309d
lea eax, [ebp - 0x1c]
push eax
push dword [0x407eb0]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
movsx eax, word [ebp - 0x18]
mov dword [0x407ebc], eax
movsx eax, word [ebp - 0x16]
mov dword [0x407ec0], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4031b4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push esi
push edi
mov edi, 3
push 0x408a20
call fcn.00406530
mov esi, dword [eax]
push 0x408a20
call fcn.00406530
mov dword [eax], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
call fcn.00405d98
call fcn.00405c14
lea eax, [ebp - 0x150]
push eax
push 1
call fcn.00405ca0
call fcn.00404640
test eax, eax
jne 0x4032f5
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 0x40
push 0
call fcn.00405d78
call fcn.00404640
test eax, eax
jne 0x40326b
cmp word [ebp - 0x190], 0x5a4d
jne 0x40326b
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405cbc
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 2
push 0
call fcn.00405d78
jmp 0x403275
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405cbc
call fcn.00404640
test eax, eax
jne 0x4032d9
cmp word [ebp - 0x190], 0x4550
jne 0x4032d9
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x288]
push eax
push 0xf8
push 0
call fcn.00405d78
call fcn.00404640
test eax, eax
jne 0x4032d9
cmp dword [ebp - 0x288], 0x4550
jne 0x4032d9
cmp word [ebp - 0x22c], 3
jne 0x4032d9
mov edi, 2
lea eax, [ebp - 0x150]
push eax
call fcn.00405cec
push 0x408a18
call fcn.00406530
mov dword [eax], 0
push 0x408a20
call fcn.00406530
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40334c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call sub.kernel32.dll_CreateThread
mov esi, eax
push esi
call sub.kernel32.dll_CloseHandle
test esi, esi
setne al
movsx eax, al
push eax
call fcn.00402edc
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4033f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
cmp dword [0x407f54], 0
je 0x403412
mov eax, dword [0x407f54]
mov dword [ebp - 4], eax
jmp 0x4034a7
push 0x104
call fcn.00404714
mov dword [ebp - 4], eax
push 0x104
push dword [ebp - 4]
push 0
call sub.kernel32.dll_GetModuleFileNameA
push dword [ebp - 4]
call fcn.004041dc
inc eax
mov ebx, eax
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
mov al, byte [esi]
dec al
cmp al, 0x1f
jbe 0x403457
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00403388
mov esi, eax
inc esi
push esi
call fcn.004041dc
inc eax
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
add eax, edi
inc eax
push eax
call fcn.00404774
call sub.kernel32.dll_AreFileApisANSI
test eax, eax
jne 0x403488
push edi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push esi
call sub.user32.dll_CharToOemBuffA
jmp 0x403495
push esi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push edi
call fcn.00405174
mov eax, dword [ebp - 4]
add eax, ebx
add eax, edi
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov dword [0x407f54], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403584
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov dword [ebp - 0x24], 0x52414853
mov dword [ebp - 0x20], 0x454d4445
mov dword [ebp - 0x1c], 0x5356354d
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xb
call fcn.004050e8
xor eax, eax
mov bl, 0
cmp dword [0x407ef8], 0
jne 0x4035d2
push 0x407c48
push 1
call fcn.00402de8
mov dword [0x407ef8], eax
cmp dword [0x407ef8], 0
jne 0x4035eb
push 0x8000
call fcn.00404714
mov esi, eax
mov bl, 1
jmp 0x403625
lea eax, [ebp - 0x24]
push eax
push 0
push 6
call dword [0x407ef8]
test eax, eax
jne 0x403615
lea eax, [ebp - 0x24]
push eax
push 0x8000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov bl, 1
push 0
push 0
push 0
push 6
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test bl, bl
je 0x40364e
push esi
push 0x8000
push 0xff
call fcn.004051d0
push esi
push 0x24
push 0
call fcn.004051d0
mov eax, esi
add eax, 0xc
push eax
call fcn.004047fc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4039fc
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
call fcn.00403988
lea edx, [ebp - 0x400]
movzx ecx, word [ebp + 0x14]
dec ecx
xor esi, esi
jmp 0x403a34
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov word [edx + 2], ax
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov word [edx], ax
inc dword [ebp + 0x18]
add edx, 4
inc esi
cmp ecx, esi
jge 0x403a1a
mov ax, word [ebp + 0x14]
mov word [ebp - 0x404], ax
mov word [ebp - 0x402], 1
mov word [ebp - 0x408], 0
mov word [ebp - 0x406], 0
mov ax, word [ebp + 0x10]
mov word [ebp - 0x410], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40e], ax
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0x14]
add ecx, eax
dec ecx
mov word [ebp - 0x40c], cx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40a], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push eax
push dword [0x407eb0]
call sub.kernel32.dll_WriteConsoleOutputA
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403ddc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x403dfc
mov al, byte [ebp - 4]
jmp 0x403dff
mov al, byte [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x4082a8]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x40608e
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x406089
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x406089
mov esi, edx
add edx, 0x10
jmp 0x406072
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x4061a2
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x4061a2
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x4061a0
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x4061a0
mov cl, byte [edx]
sub cl, 0x3c
jne 0x4060d6
jmp 0x4061a0
sub cl, 3
jne 0x4060f0
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x40619b
inc cl
jne 0x406104
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x40619b
inc cl
jne 0x406118
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x40612b
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x406135
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x406192
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x406148
cmp byte [ebp - 0x25], 0
jne 0x406190
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x40617e
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x406159
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x4061a2
jmp 0x4061a0
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x4060c8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406678
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.00406654
call fcn.00403584
mov dword [0x4082a8], eax
lea edx, [eax + 0x18]
mov dword [0x408308], edx
pop edx
call fcn.004064d4
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x4082d4], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4082e8], eax
mov dword [0x408310], eax
call fcn.004031b4
cmp eax, 3
setb byte [0x4082b1]
call fcn.004041d4
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x406904
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x408d3d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408d5e
jl 0x408d55
test edi, edi
jne 0x408d5e
xor eax, eax
xor edx, edx
jmp 0x408e1f
cmp dword [ebx + 0x38], 0
je 0x408d73
push eax
push edi
push dword [ebp + 8]
call fcn.00408e25
jmp 0x408e1f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408dba
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408dba
cmp eax, edi
jb 0x408d94
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040c280
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408dc0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408e14
mov ecx, ebx
call fcn.00408585
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408dff
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00412d66
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x408e14
jmp 0x408dd2
test edx, edx
je 0x408e14
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412d66
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40ba60
Capabilities:
Parse pe header

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

Function at 0x41a2a7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b1b8
push 0x42b1b0
push str.FlsAlloc
push 0x1e
call fcn.0041a190
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a2db
push dword [ebp + 8]
mov ecx, esi
call dword [0x42713c]
call esi
jmp 0x41a2e1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41a325
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b1c8
push 0x42b1c0
push str.FlsGetValue
push 0x20
call fcn.0041a190
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a35c
push dword [ebp + 8]
mov ecx, esi
call dword [0x42713c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]