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

Disassembly:
mov ecx, dword [0x84873c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5cef07
sub esp, 0x40
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
movzx eax, word [esp + 0x68]
mov word [esp + 0x18], ax
call fcn.005cef20
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x5ceeb8
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], eax
lea ecx, [0x64c660]
mov dword [esp], ecx
mov ecx, dword [esp + 0x48]
lea edx, [eax + ecx + 4]
mov dword [esp + 0x34], edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
call fcn.0044f930
nop
mov ecx, dword [esp + 0x34]
cmp ecx, 1
jbe 0x5ceefc
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x30]
lea esi, [ebp + ebx + 2]
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, 2
mov eax, ebp
rol bp, 8
mov word [edx], bp
lea ebp, [esi + edx]
cmp eax, edi
jge 0x5cee03
mov esi, eax
jmp 0x5cee07
mov esi, eax
mov eax, edi
mov dword [esp + 0x3c], edx
mov edi, dword [esp + 0x38]
cmp edi, ebp
je 0x5cee33
mov dword [esp], ebp
mov dword [esp + 4], edi
mov dword [esp + 8], eax
call fcn.0046af80
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x30]
lea eax, [esi + 2]
cmp ecx, eax
jb 0x5ceef7
lea ebp, [ebx + 2]
mov edi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
cmp edi, 1
jbe 0x5ceeeb
lea ebp, [esi + 4]
mov esi, ebx
rol bx, 8
mov word [edx + eax], bx
cmp ecx, ebp
jb 0x5ceee4
mov eax, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and ebp, esi
lea ebx, [edx + ebp]
mov ebp, dword [esp + 0x44]
cmp ebp, ebx
je 0x5cee98
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.0046af80
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x40
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x40
ret
mov eax, ebp
call fcn.0046a6d0
mov eax, 1
mov ecx, edi
call fcn.0046a670
call fcn.0046a6d0
mov eax, 1
call fcn.0046a670
nop
call fcn.00469200
jmp fcn.005ced30
Function at 0x5de520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x84873c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5de600
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x5de571
mov edx, dword [esp + 0x18]
movzx ebx, byte [edx + ecx - 1]
movzx ebp, bl
mov esi, ebp
sub ebp, ecx
cmp ecx, 0x100
jge 0x5de55b
mov eax, ecx
jmp 0x5de562
mov eax, ecx
mov ecx, 0x100
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
sar ebp, 0x1f
xor edi, edi
jmp 0x5de5b4
mov dword [esp + 0x24], 0
mov byte [esp + 0x28], 0
add esp, 0x14
ret
xchg esi, ebx
not ebx
xchg esi, ebx
sar esi, 0x1f
movzx eax, byte [eax + edx - 1]
mov ecx, esi
and esi, ebx
and eax, ecx
xor esi, eax
xchg esi, ebx
not ebx
xchg esi, ebx
inc edi
movzx eax, byte [esp + 0xb]
and eax, esi
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov ebp, eax
mov eax, dword [esp + 0x1c]
cmp ecx, edi
jle 0x5de5cf
xchg ebp, eax
mov byte [esp + 0xb], al
xchg ebp, eax
sub eax, edi
lea ecx, [eax - 1]
sub esi, edi
mov ebp, dword [esp + 0x1c]
cmp ebp, ecx
ja 0x5de582
jmp 0x5de5f6
mov eax, ebp
shl ebp, 4
and eax, ebp
mov ecx, eax
shl eax, 2
and eax, ecx
mov ecx, eax
shl eax, 1
and eax, ecx
sar al, 7
movzx ecx, bl
inc ecx
mov dword [esp + 0x24], ecx
mov byte [esp + 0x28], al
add esp, 0x14
ret
mov eax, ecx
mov ecx, ebp
call fcn.0046a670
nop
call fcn.00469200
jmp fcn.005de520
Function at 0x6087b0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x84873c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x6089d4
sub esp, 0x2c
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
movzx ecx, word [ecx + 6]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x30]
jmp 0x6087f2
mov dword [edx + 0x40], ebx
lea esi, [ebp + ebx*8 - 8]
mov dword [esi], 0
lea ebx, [ebp + ebx*8 - 4]
mov dword [ebx], 0
mov ebx, dword [edx + 0x40]
mov ebp, dword [edx + 0x3c]
cmp ebx, ecx
jg 0x608868
mov esi, dword [edx + 0x44]
inc ebx
cmp esi, ebx
jae 0x6087db
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], 1
lea eax, [0x64c720]
mov dword [esp + 0x10], eax
call fcn.0044fab0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
mov dword [ebx + 0x44], eax
mov eax, dword [0x8489b0]
test eax, eax
je 0x608850
call fcn.0046a610
mov dword [edi], ecx
mov eax, dword [ebx + 0x3c]
mov dword [edi + 4], eax
mov dword [ebx + 0x3c], ecx
mov eax, dword [esp + 0x34]
mov ebx, edx
mov ebp, ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
jmp 0x6087db
lea eax, [ebp + ecx*8]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 1
call fcn.0046ed60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add eax, 0xffffffff
adc ecx, 0xffffffff
cmp ecx, 0xffff
sete dl
seta bl
cmp eax, 0xffffffff
xchg ebp, ebx
seta bl
xchg ebp, ebx
and edx, ebp
or ebx, edx
test bl, bl
jne 0x6089a4
mov edx, dword [esp + 0x34]
mov ebx, dword [edx]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
mov eax, dword [edx]
mov dword [esp], eax
call fcn.005db170
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x608978
mov eax, dword [esp + 0x34]
movzx ecx, byte [eax + 4]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
test cl, cl
je 0x60892c
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx + 0xb4]
mov ecx, dword [ecx + 0xb8]
mov esi, dword [esi + 0x20]
mov eax, dword [eax]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call esi
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x60894c
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
add esp, 0x2c
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
add esp, 0x2c
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
add esp, 0x2c
ret
mov eax, dword [0x81cad0]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea ecx, [0x6db880]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
add esp, 0x2c
ret
call fcn.00469200
jmp fcn.006087b0
Function at 0x410c28
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestSegmentedVector.exe_gMozillaPoisonSize], eax
call fcn.0040d04f
pop ecx
mov ecx, dword [sym.TestSegmentedVector.exe_gMozillaPoisonSize]
mov dword [sym.TestSegmentedVector.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x410c60
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestSegmentedVector.exe_gMozillaPoisonValue], eax
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 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40b04c], 1
mov dword [0x40b050], 1
mov dword [0x40b054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x401980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.004029a0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.004029a0
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x402554
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x402573
mov eax, 0
jmp 0x4025b7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x402596
mov eax, 0
jmp 0x4025b7
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4025b2
mov eax, 0
jmp 0x4025b7
mov eax, 1
leave
ret
Function at 0x4025b9
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x402618
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x402610
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x402610
mov eax, dword [ebp - 4]
jmp 0x40262c
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x4025ed
mov eax, 0
leave
ret
Function at 0x40cea0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x432030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2aed2d4]
push ebx
mov ebx, dword [0x2aecff4]
push esi
mov esi, dword [0x433060]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40cee1
push str.duxafodaz
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2aed2d4]
mov dword [0x2aecff0], esi
cmp eax, 0x114e
jne 0x40cf06
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov eax, dword [0x2aed2d4]
cmp eax, 0x2f
jne 0x40cf34
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push edi
push ebx
call fcn.0040cd50
mov ecx, dword [esp + 0x438]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x29a09125
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x29a09134
pop dword [ebp - 0x28]
mov eax, 0x4e3159da
sub eax, 0x2490c8a6
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xb9a0f0a5
sub dword [ebp - 0x38], 0x6b4eab5a
mov dword [ebp - 0x34], 0x733c0486
add dword [ebp - 0x34], 0xbef747bf
mov dword [ebp - 0x30], 0x2b120f98
add dword [ebp - 0x30], 0x213a3496
mov dword [ebp - 0x2c], 0xf8a55afa
sub dword [ebp - 0x2c], 0xf8a55afa
lea eax, [ebp - 0x38]
push eax
mov eax, 0x9a4c7965
add eax, 0x8f54c727
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xdd868eaf
sub dword [ebp - 0x38], 0x69142559
mov dword [ebp - 0x34], 0x36f3310f
add dword [ebp - 0x34], 0xa793066
mov dword [ebp - 0x30], 0x7e43ee6f
add dword [ebp - 0x30], 0xe52b7dfd
mov dword [ebp - 0x2c], 0x3da808f0
sub dword [ebp - 0x2c], 0x3da808f0
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x2f43c515
sub eax, 0x5a284d1
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3704b
push 0
call eax
mov ecx, 0x3b06
mov ebx, eax
mov esi, 0x9e27adc3
add esi, 0x8b7a723d
add esi, dword [ebp - 0x28]
mov edi, 0x5ff61c23
add edi, 0xfd576c34
add dword [ebp - 0x18], 0xa77e5f0
mov edx, dword [esi]
xor dword [ebp - 0x18], ebx
xor edx, edi
sub dword [ebp - 8], ebx
mov dword [ebx], edx
add dword [ebp - 8], ecx
add ebx, 0x6c5cbace
sub ebx, 0x6c5cbaca
add esi, 4
loop 0x29a09250
add eax, 0xfcc96172
add eax, 0x3377d79
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe953fa5f
add ecx, 0x404c05a1
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x422937
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00419b87
and dword [ebp - 4], 0
cmp dword [0x42ffe0], 0
mov ebx, eax
jne 0x4229e8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422a99
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422a99
push eax
call fcn.00419b15
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42ffe0], eax
call esi
push eax
call fcn.00419b15
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42ffe4], eax
call esi
push eax
call fcn.00419b15
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42ffe8], eax
call esi
push eax
call fcn.00419b15
pop ecx
mov dword [0x42fff0], eax
test eax, eax
je 0x4229e8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419b15
pop ecx
mov dword [0x42ffec], eax
mov eax, dword [0x42ffec]
cmp eax, ebx
je 0x422a40
cmp dword [0x42fff0], ebx
je 0x422a40
push eax
call fcn.00419b90
push dword [0x42fff0]
mov esi, eax
call fcn.00419b90
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422a40
test edi, edi
je 0x422a40
call esi
test eax, eax
je 0x422a37
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422a37
test byte [ebp - 0xc], 1
jne 0x422a40
or dword [ebp + 0x10], 0x200000
jmp 0x422a79
mov eax, dword [0x42ffe4]
cmp eax, ebx
je 0x422a79
push eax
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a79
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422a79
mov eax, dword [0x42ffe8]
cmp eax, ebx
je 0x422a79
push eax
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a79
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42ffe0]
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a99
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422a9b
xor eax, eax
pop edi
pop esi
pop ebx
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 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1000cd63
pop dword [ebp - 0x28]
mov eax, 0x71fb13c4
sub eax, 0x61fa4661
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x3a11b
push 0
mov eax, 0x3bae2017
add eax, 0xd453204d
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x4c3d
mov edi, eax
mov ebx, 0x88de8fac
add ebx, 0x8722f654
add ebx, dword [ebp - 0x28]
mov esi, 0x3d1e7cf8
sub esi, 0x36c6e508
add dword [ebp - 0xc], 0x7f119464
mov edx, dword [ebx]
add dword [ebp - 8], 0x463c98c7
xor edx, esi
add dword [ebp - 0x18], 0x567ec08d
mov dword [edi], edx
xor dword [ebp - 4], 0x1d014e52
add edi, 0xe1844495
add edi, 0x1e7bbb6f
add ebx, 0x4cccd251
add ebx, 0xb3332db3
loop 0x1000cdbc
add eax, 0x63c9e14b
add eax, 0x9c37427c
mov ebx, eax
add eax, 0x66de96f5
sub eax, 0x66de96f0
mov ecx, 0x970b5b15
add ecx, 0x78f4a4eb
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x408b0c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408b21
test eax, edx
je 0x408b24
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408b34
movzx eax, byte [eax]
sub eax, ecx
ret
xor eax, eax
ret
test eax, eax
je 0x408b30
test edx, edx
jne 0x408b14
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
push ebx
mov ebx, dword [eax - 4]
sub ebx, dword [edx - 4]
push ebx
sbb ecx, ecx
and ecx, ebx
add ecx, dword [edx - 4]
add eax, ecx
add edx, ecx
neg ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408b59
add ecx, 4
jl 0x408b49
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ebx, ecx
movzx ecx, byte [ebx + eax]
pop eax
jg 0x408b70
movzx edx, byte [ebx + edx]
mov eax, ecx
sub eax, edx
pop ebx
ret

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

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

Function at 0x409488
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c84
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40949c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404c84
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4094be
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40bf8c
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 0x40bfc5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048c4
jmp 0x40bfce
mov eax, ebx
mov edx, esi
call fcn.00404828
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40d650
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40d6b4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404a3c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409174
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d6bb
lea eax, [ebp - 0xc]
call fcn.004047d4
ret
Function at 0x41fcd4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49ea20
cmp dword [edi], 0
jne 0x41fd50
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x49ea1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49b51c
mov ecx, 2
call fcn.004028f8
mov edx, 0x41fcac
lea eax, [esi + 5]
call fcn.0041fccc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fccc
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41fd25
mov dword [0x49ea1c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4212bc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4212c2
ret

Function at 0x423870
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4238c1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4238a8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423898
jmp 0x4238c1
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4238a9
pop ebx
mov esp, ebp
pop ebp
ret