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

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x205b48a
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x205b47f
pop esi
ret

Function at 0x205d5fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x205d61d
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x205d677
inc edi
cmp edi, esi
jl 0x205d611
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x205d6ac
mov edx, dword [eax]
xor edx, esi
lea ebp, reloc.kernel32.dll_DeleteCriticalSection
not edx
and ebp, edx
test ebp, 0x80808080
je 0x205d666
cmp byte [eax], bl
je 0x205d681
cmp byte [eax + 1], bl
je 0x205d68a
cmp byte [eax + 2], bl
je 0x205d694
cmp byte [eax + 3], bl
je 0x205d6a0
add eax, 4
cmp eax, edi
jb 0x205d63d
pop edi
pop esi
pop ebp
or eax, reloc.kernel32.dll_DeleteCriticalSection
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, reloc.kernel32.dll_DeleteCriticalSection
pop ebx
ret 4

Function at 0x205da3c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + reloc.kernel32.dll_DeleteCriticalSection]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + reloc.kernel32.dll_DeleteCriticalSection]
mov eax, dword [esp + reloc.kernel32.dll_DeleteCriticalSection]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x205da6e
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], pe_nt_image_headers32
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x205dace
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x205daa5
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x205db7c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x205dc18
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x205dba7
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret

Function at 0x20fc254
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 3
pop ecx
cdq
idiv ecx
mov edi, dword [ebp + 0x10]
mov esi, eax
mov ecx, edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], esi
lea ebx, [esi + 1]
mov dword [ebp - 8], ebx
test ebx, ebx
jle 0x20fc2f7
mov ecx, dword [ebp + 8]
lea esi, [edi + 2]
add ecx, 2
mov edi, ecx
mov al, byte [edi - 2]
shr al, 2
movzx eax, al
push eax
call fcn.020fc20a
mov byte [esi - 2], al
mov cl, byte [edi - 2]
mov al, byte [edi - 1]
and cl, 3
shr al, 4
shl cl, 4
add cl, al
movzx eax, cl
push eax
call fcn.020fc20a
mov byte [esi - 1], al
mov cl, byte [edi - 1]
mov al, byte [edi]
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
movzx eax, cl
push eax
call fcn.020fc20a
mov byte [esi], al
mov al, byte [edi]
and al, 0x3f
movzx eax, al
push eax
call fcn.020fc20a
mov byte [esi + 1], al
lea edi, [edi + 3]
lea esi, [esi + 4]
dec ebx
jne 0x20fc288
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, 1
jne 0x20fc305
mov word [edi + esi*4 + 2], 0x3d3d
jmp 0x20fc30f
cmp ecx, 2
jne 0x20fc311
mov byte [edi + esi*4 + 3], 0x3d
mov esi, ebx
mov eax, esi
shl eax, 2
mov byte [eax + edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x211d22a
Capabilities:
Encode data using xor

Disassembly:
call 0x211d0e7
pop word [esp + 0x12]
lea esp, [esp + 2]
mov dword [esp + 0xc], ebx
bswap ebx
lea ebx, [esi*4]
mov bx, si
jmp 0x211d204
inc dword [esp + 8]
jmp 0x211d338
mov bl, bh
mov dword [esp], eax
xchg edi, eax
mov al, ch
mov edi, esp
mov di, 0xf9b0
jmp 0x211d24a
not bh
mov dword [esp + 4], edi
bswap ebx
mov bx, dx
xchg bl, bh
mov ebx, dword [esp]
jmp 0x211d1ee
push 0
pushfd
pushfd
pushal
jmp 0x211d1b8
mov bh, byte [esp + 2]
lea ebx, reloc.kernel32.dll_DeleteCriticalSection
mov edi, dword [esp + 4]
jmp 0x211d37d
setg ah
mov ah, byte [esp]
pop eax
mov bl, 0xfe
push ebx
bswap edi
jmp 0x211d234
cmp dword [esp + 4], 0
jne 0x211d1d8
pushal
jmp 0x211d0e2
popfd
ret
mov bx, 0x510e
mov bx, bp
mov ebx, dword [esp]
mov ebx, dword [esp + 0xc]
lea esp, [esp + 0x20]
jmp 0x211d310

Function at 0x2123c06
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfd
lea esp, [esp + 3]
mov ax, word [esp]
rdtsc
mov byte [esp], bl
jmp 0x2123c3a
lea esp, [esp + 1]
mov ecx, dword [esp + 8]
mov ax, si
xchg edx, eax
xchg edx, eax
rdtsc
jmp 0x2123c21

Function at 0x212d87c
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dh, byte [esp]
mov edx, 0xa5d7ed25
push edi
mov edx, 0xc254e010
pushal
jmp 0x212d882
xchg dword [esp], edx
pop edx
jmp 0x212d866
pop word [esp + 0x1b]
mov dh, byte [esp + 0xb]
xchg dword [esp + 0xf], edi
setle dl
mov dx, si
jmp 0x212d8b9
lea esp, [esp + 2]
mov dword [esp + 1], eax
call fcn.0212d8a3
mov eax, ebx
mov eax, dword [esp + 0x21]
not edi
mov edx, esp
not di
jmp 0x212d977
mov dh, 0x81
lea edx, [ebp*4]
call fcn.0212d926
mov dx, word [esp]
xchg di, dx
mov edi, dword [esp + 0x3c]
mov dx, 0x4757
lea edx, [ebx*4]
xchg dl, dh
jmp 0x212d93c

Function at 0x212d8a3
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ax, 0x1a35
mov al, byte [esp + 1]
lea eax, [esi*4]
jmp 0x212d8dc
lea edi, [esi + ebp]
pushal
mov eax, 0xa561d782
mov eax, dword [esp + 1]
mov dword [esp + 0xb], ebp
pop dword [esp + 8]
jmp 0x212d8c6
Function at 0x212d9b7
Capabilities:
Execute anti-debugging instructions

Disassembly:
push word [esp]
pop word [esp + 1]
lea eax, [edi*4]
push dword [esp + 1]
mov eax, dword [esp + 0x10]
mov esi, edx
call fcn.0212d89e
lea eax, [eax + ebp]
not eax
mov byte [esp + 1], bh
jmp 0x212d907
Function at 0x212e84b
Capabilities:
Execute anti-debugging instructions

Disassembly:
call fcn.0212d935
jmp 0x212e871
push eax
call fcn.01f8f170
jmp 0x212d930

Function at 0x218ee15
Capabilities:
Execute anti-debugging instructions

Disassembly:
add esp, 0
mov eax, ebp
mov dx, cx
xchg bx, si
lea edi, [eax + esi]
rdtsc
jmp 0x218edc1
mov dh, 1
std
mov word [esp], ax
pop word [esp + 1]
mov word [esp], dx
rdtsc
jmp 0x218ed41
mov ah, 0x49
mov al, byte [esp + 4]
cld
not ch
pop word [esp]
jmp 0x218ed96
mov word [esp + 1], di
mov al, 0xed
mov dl, 3
bt ecx, ecx
setg dl
mov cl, byte [esp + 4]
jmp 0x218ed6b
mov esi, dword [esp + 1]
mov word [esp], di
mov dword [esp], ebp
bsf cx, ax
lea esp, [esp]
cld
jmp 0x218edea
mov bp, 0x1f7b
mov dx, word [esp + 3]
setle al
mov si, word [esp]
jmp 0x218edd4
mov eax, dword [esp + 3]
pop word [esp]
push eax
shr edi, cl
mov ecx, 0x795bb7e8
xchg ecx, eax
jmp 0x218ed81
mov bp, word [esp + 1]
lea eax, [eax + esi]
cpuid
bswap edi
jmp 0x218edff
mov bh, al
lea edx, [ebp*4]
clc
mov esi, dword [esp + 3]
mov ecx, dword [esp]
not dl
jmp 0x218edab
lea ecx, reloc.kernel32.dll_DeleteCriticalSection
lea ebp, [ebx + edi]
setg bh
mov esi, dword [esp + 2]
jmp 0x218ee5b
cpuid
pop ebp
lea esi, [edi*4]
rdtsc
push word [esp + 1]
jmp 0x218ed57
xchg word [esp + 5], si
clc
xchg bl, ah
xchg edx, eax
jmp 0x218ee8a
sets ah
not ax
neg dx
mov ecx, dword [esp + 4]
push word [esp + 3]
jmp 0x218ee2b
lea eax, reloc.kernel32.dll_DeleteCriticalSection
sub esp, 4
rdtsc
setge cl
xchg dword [esp + 2], ecx
mov ax, word [esp + 7]
jmp 0x218ee41
lea edi, [ecx*4]
lea ebp, [ecx*4]
jmp 0x218ef7b
lea edx, reloc.kernel32.dll_DeleteCriticalSection
mov esi, 0x24c97132
shr si, 0xa
mov dx, sp
xchg dword [esp + 1], edx
lea esp, [esp + 5]
jmp 0x218ee74
xchg word [esp + 1], cx
cmp edx, 0xd83833fe
call fcn.0218eeed
xchg dword [esp], edx
bswap eax
neg cl
mov bx, cx
cpuid
cld
jmp 0x218ef2b

Function at 0x218f339
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg si, di
mov eax, ebx
pop esi
bswap ecx
jmp 0x218f374
xchg byte [esp + 1], dl
lea edi, [eax + ebx]
mov bl, byte [esp + 5]
xchg edi, eax
xchg edx, esi
xchg edx, ebp
push eax
or dl, 0xcb
jmp 0x218f35e
Function at 0x218f9e6
Capabilities:
Execute anti-debugging instructions

Disassembly:
cld
add esp, 7
mov edi, 0x301411d9
xchg dword [esp], ecx
inc ax
jmp 0x218fa04
xchg cl, bl
inc bl
rdtsc
jmp 0x218f9d0
mov bp, 0x3fb5
add esp, 0
mov ch, 0x4e
mov dh, 0x40
jmp 0x218fa3c
xchg bp, di
add esp, 1
mov ax, 0x456c
lea esp, [esp + 2]
jmp 0x218f9ee
lea esi, reloc.kernel32.dll_DeleteCriticalSection
mov ch, byte [esp]
mov eax, 0x8241183c
jmp 0x218fa65
lea ecx, [ebp*4]
rcr ebp, cl
rdtsc
cpuid
cpuid
cpuid
jmp 0x218fa26
mov dword [esp], edi
mov dx, 0xab69
mov ch, 0x5f
lea edi, [ebx - 0xba]
jmp 0x218fa79
mov di, word [esp]
mov eax, edi
xchg dx, cx
push ecx
setl dl
mov bx, word [esp + 4]
jmp 0x218fa4f
lea esp, [esp + 3]
mov di, si
lea edi, [ecx + ebp]
add esp, 0
call 0x218fa8c
push ebp
mov word [esp + 2], dx
push word [esp + 4]
jmp 0x218fab9
mov dx, 0xbe43
mov word [esp + 2], bx
mov byte [esp + 4], bh
mov word [esp + 1], ax
xchg byte [esp + 4], dh
btr ax, bx
jmp 0x218fb06
cpuid
push dword [esp + 1]
std
lea ecx, [ecx + ebx]
push dword [esp + 9]
bswap ebp
jmp 0x218faf0

Function at 0x21953ae
Capabilities:
Access peb ldr_data

Disassembly:
call 0x2195398
mov byte [esp + 0x1d], dl
mov byte [esp + 0x13], bh
mov dword [esp + 0x6c], edi
lea esp, [esp + 0x6c]
Function at 0x404a7c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004065ac
test esi, esi
jne 0x404ab2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406718
jmp 0x404ad0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404960
mov edi, eax
test esi, esi
je 0x404ad0
cmp dword [ebx], 0
je 0x404ad0
dec esi
jmp 0x404ab9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404b04
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x59b008], 0x8088405
inc edx
mov dword [ebx + 0x59b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405514
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004057c4
mov byte [esp], al
cmp byte [esp], 0
jne 0x4056a0
test edi, edi
je 0x4056a0
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4055d7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4055b2
cmp edi, 0xffffffff
je 0x405573
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405573
mov byte [esp], 0
jmp 0x4056a0
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4055b2
test ebx, ebx
jne 0x4055a8
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004026dc
test eax, eax
jne 0x4055a8
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4056a0
call 0x405808
dec ebp
test ebp, ebp
jg 0x405558
cmp edi, 0xffffffff
je 0x4055d7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4055d5
mov byte [esp], 0
jmp 0x4056a0
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405522
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x4055d7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405710
mov edx, eax
mov ebx, dword [0x5a08f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40563e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40563c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40563e
xor edi, edi
cmp byte [esp], 0
je 0x405667
mov ebx, dword [esi]
test bl, 1
jne 0x405680
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x405644
mov byte [esp + 1], 1
jmp 0x405680
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004026dc
cmp ebx, eax
jne 0x405667
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4055f1
cmp byte [esp], 0
je 0x4056a0
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406208
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a0054], 0
je 0x40626f
cmp word [0x5a0340], 0xd7b2
jne 0x406231
cmp dword [0x5a0348], 0
jbe 0x406231
mov eax, 0x5a033c
call dword [0x5a0358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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
mov eax, 0x40629c
call fcn.00406ee0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x59b032], 0
jne 0x40628b
push 0
push 0x59b9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406468
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x59b034], 0
je 0x406493
mov edx, edi
mov eax, esi
call dword [0x59b034]
mov ebx, eax
jmp 0x4064a4
mov eax, 8
call fcn.0040464c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5a0055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406430
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4064d9
mov edx, 8
mov eax, ebx
call fcn.00404668
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408a64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408bc9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004065ac
cmp si, word [0x59ba00]
jb 0x408afc
cmp si, word [0x59bc00]
ja 0x408afc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408afc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x59ba00]
jae 0x408ad6
mov edi, ebx
dec edi
jmp 0x408af7
cmp si, word [ebx*8 + 0x59ba00]
jbe 0x408ae6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408af7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x59ba04]
call fcn.00408974
jmp 0x408afc
cmp edi, dword [ebp - 8]
jae 0x408ac0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408bab
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408bab
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004072ac
push dword [ebp - 0x160]
push 0x408be4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004072ac
push dword [ebp - 0x164]
push 0x408bf4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004072ac
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407478
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408bd0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040660c
ret
Function at 0x408d7c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408e7f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5a2b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5a2b9c]
jne 0x408dc8
mov eax, esi
mov edx, 0x5a2b9e
mov ecx, 0x55
call fcn.004072ac
push 0x5a2b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408e69
push 0x5a2b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004065ac
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408e37
cmp byte [0x5a2b80], 0
je 0x408dfc
mov edx, esi
mov eax, ebx
call fcn.00408c60
jmp 0x408e37
mov edx, esi
mov eax, ebx
call fcn.00408a64
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408e37
cmp dword [esi], 0
je 0x408e20
mov eax, esi
mov edx, 0x408e98
call fcn.00407398
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408a64
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407398
push 0x5a2b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5a2b9c], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407200
push eax
push 0x5a2b9e
call sub.kernel32.dll_lstrcpynW
push 0x5a2b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e86
lea eax, [ebp - 4]
call fcn.004065ac
ret
Function at 0x40cfc0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3e0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push 0x5a5e24
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d07a
lea eax, [ebp - 0xc10]
push eax
push 0
push 0
push 0x8005
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x40d07a
lea eax, [ebp - 0xc10]
call fcn.0040be90
mov ebx, eax
test ebx, ebx
je 0x40d02e
cmp byte [ebp + ebx - 0xc11], 0x5c
je 0x40d037
mov byte [ebp + ebx - 0xc10], 0x5c
inc ebx
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x10]
mov eax, 0x5a5e24
call fcn.0040cfa0
mov ecx, dword [ebp - 0xc]
inc ecx
lea edx, [ebp + ebx - 0xc10]
mov eax, dword [ebp - 0x10]
call fcn.00404860
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0xc10]
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x40d1ae
push 2
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
lea edx, [ebp - 0x410]
mov eax, 0x40d1b8
mov ecx, 2
call fcn.0040c1f0
mov ebx, eax
mov eax, 0x40d1bc
mov ecx, 0x20
mov edx, ebx
call fcn.0040c1f0
mov ebx, eax
lea eax, [ebp - 0xc20]
push eax
call sub.kernel32.dll_GetLocalTime
movzx eax, word [ebp - 0xc20]
mov edx, ebx
call fcn.0040c130
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1e]
mov edx, ebx
call fcn.0040c130
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1a]
mov edx, ebx
call fcn.0040c130
mov ebx, eax
mov byte [ebx], 0x20
inc ebx
movzx eax, word [ebp - 0xc18]
mov edx, ebx
call fcn.0040c130
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc16], 0xa
jae 0x40d123
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc16]
mov edx, ebx
call fcn.0040c130
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc14], 0xa
jae 0x40d145
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc14]
mov edx, ebx
call fcn.0040c130
mov ebx, eax
mov eax, 0x40d1bc
mov ecx, 0x20
mov edx, ebx
call fcn.0040c1f0
mov ebx, eax
mov eax, 0x40d1b8
mov ecx, 2
mov edx, ebx
call fcn.0040c1f0
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x410]
sub ebx, eax
push ebx
lea eax, [ebp - 0x410]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d200
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f8
push ebx
mov eax, 0x5a5e24
call fcn.0040bec0
mov ebx, eax
test ebx, ebx
jbe 0x40d2a2
mov eax, dword [0x59c404]
call fcn.0040be90
mov ecx, eax
inc ecx
lea edx, [ebx + 0x5a5e20]
mov eax, dword [0x59c404]
call fcn.00404860
push 0x3ff
lea eax, [ebp - 0x808]
push eax
push 0x40d2a8
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
test ebx, ebx
jbe 0x40d2a2
cmp byte [ebp + ebx - 0x809], 0x5c
je 0x40d26a
mov byte [ebp + ebx - 0x808], 0x5c
inc ebx
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, 0x5a5e24
call fcn.0040cfa0
mov ecx, dword [ebp - 8]
inc ecx
lea edx, [ebp + ebx - 0x808]
mov eax, dword [ebp - 4]
call fcn.00404860
mov edx, 0x5a5e24
lea eax, [ebp - 0x808]
mov ecx, 0x3ff
call fcn.00404860
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c9c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41ca21
test eax, edx
je 0x41ca24
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41c9df
movzx eax, word [eax]
sub eax, ecx
jmp 0x41ca06
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41ca07
add ecx, 4
js 0x41c9f7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41ca04
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41ca06
xor eax, eax
ret
test eax, eax
je 0x41ca30
test edx, edx
jne 0x41c9d0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41d6c4
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00407200
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41d719
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d713
test ah, 4
je 0x41d713
test al, 0x10
je 0x41d713
mov eax, esi
call fcn.00407200
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41d719
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421a60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x421a99
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406718
jmp 0x421aa2
mov eax, ebx
mov edx, esi
call fcn.00406970
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4