joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bfef0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x632d84], 0
mov byte [0x632d88], 0
mov dword [0x632d78], 0xb84
mov dword [0x632d7c], 0xfffff5e8
mov dword [0x632d80], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
jmp 0x4bff48
mov dword [0x632d80], 0
jmp 0x4bff83
mov eax, dword [0x632d80]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x632d78], 0xd78
mov dword [0x632d7c], 0x25f2
mov eax, dword [0x632d80]
add eax, 1
mov dword [0x632d80], eax
cmp eax, 0x100
jl 0x4bff48
jmp 0x4bff3c
mov dword [0x632d8c], 0
mov dword [0x632d78], 0xe4f
mov eax, dword [0x632d84]
mov dword [ebp - 0x1c], eax
mov eax, 0x100
mov ecx, dword [0x632d80]
mov edx, dword [ebp - 0x18]
movzx esi, byte [edx + ecx]
mov edi, dword [ebp - 0x1c]
add esi, edi
mov dword [ebp - 0x20], eax
mov eax, ecx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add esi, edx
mov dword [0x632d8c], esi
mov eax, esi
cdq
mov esi, dword [ebp - 0x20]
idiv esi
mov dword [0x632d84], edx
mov dword [0x632d78], 0x4f9
mov edx, dword [0x632d80]
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov byte [0x632d88], cl
mov dword [0x632d78], 0x673
mov edx, dword [0x632d84]
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [0x632d80]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov cl, byte [0x632d88]
mov edx, dword [0x632d84]
mov byte [esi + edx], cl
mov dword [0x632d7c], 0x9ad
mov dword [0x632d78], 0x47
mov edx, dword [0x632d80]
add edx, 1
mov dword [0x632d80], edx
cmp edx, 0x100
jl 0x4bff83
mov dword [0x632d7c], 0xfe4
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4c0090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
call fcn.004c0070
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [0x632d78], 0x1ebd
mov ecx, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x50
imul esi, eax, 0x6c
add edx, esi
add edx, 0x68
add eax, 1
mov edx, dword [edx]
movzx esi, word [edi]
xor esi, edx
add esi, ecx
cmp eax, 0x19b
mov ecx, esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], eax
jne 0x4c00bb
lea eax, [0x4c4494]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov esi, dword [0x632d7c]
add esi, 0x206c
mov dword [0x632d78], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], ecx
call fcn.004c0710
mov dword [0x632d78], 0xd10
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call fcn.004bfc60
mov ecx, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x4c]
mov dword [0x632d98], eax
mov ecx, esp
mov edx, dword [ebp - 0x40]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
mov ecx, dword [ebp - 0x50]
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x632d78]
add edx, 0xfffff45e
mov dword [0x632d7c], edx
mov edx, ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
mov ebx, edx
add ebx, edi
add ebx, 0x4c
mov edi, dword [ebx]
imul ebx, eax, 0x6c
add edx, ebx
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x54]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x68], edx
call fcn.004c0cf0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
add eax, ecx
mov edx, dword [ebp - 0x60]
add edx, 1
cmp edx, 0x19b
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], edx
jne 0x4c01a7
mov dword [0x632d78], 0x14
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x40]
mov dword [esp + 8], ecx
call fcn.004c0c50
xor eax, eax
mov ecx, dword [0x632d78]
add ecx, 0xffffe836
mov dword [0x632d78], ecx
mov ecx, dword [ebp - 0x54]
add ecx, 0x10c4c3
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [edx + 4], 0x12aa00
mov ecx, dword [ebp - 0x54]
add ecx, 0xaab8b
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f50
mov ecx, dword [0x632d78]
add ecx, 0x175d
mov dword [0x632d78], ecx
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4c0860
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [0x632d78], 0x27
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x632d78], 0xf46
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x4c092f
mov dword [0x632d7c], 0xffffdde0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x4c091b
mov dword [0x632d78], 0x56e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x4c09ae
jmp 0x4c091b
mov eax, 1
mov dword [0x632d78], 0x6ba
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x4c09de
jmp 0x4c091b
mov dword [0x632d78], 0x1b9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x4c08a3
mov dword [0x632d78], 0x1c56
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x4c09de
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x4c096b
mov eax, dword [0x632d78]
add eax, 0x1d61
mov dword [0x632d78], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
jl 0x4c092f
mov eax, dword [ebp - 0x20]
mov dword [0x632d7c], 0x1039
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x4c091b
mov eax, dword [0x632d7c]
add eax, 0xfffff822
mov dword [0x632d78], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x4c0902
jmp 0x4c091b
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff8
mov dword [0x632d78], 0x1bf0
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x6c
je 0x4c08db
jmp 0x4c091b
mov eax, dword [ebp - 0x18]
add esp, 0x24
pop ebp
ret
Function at 0x4c09f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x632d80], 0
mov dword [0x632d84], 0
mov dword [0x632d90], 0
mov edi, dword [0x632d78]
add edi, 0xbd5
mov dword [0x632d7c], edi
mov dword [0x632d78], 0x7be
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov dword [ebp - 0x20], eax
je 0x4c0b54
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x632d78], 0x21d9
mov edx, dword [0x632d80]
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x632d80], edx
mov dword [0x632d7c], 0x59b
mov esi, dword [0x632d84]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x632d84], edx
mov ecx, dword [0x632d80]
mov bl, byte [edi + ecx]
mov byte [0x632d88], bl
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov dword [0x632d78], 0x8d8
mov bl, byte [0x632d88]
mov ecx, dword [0x632d84]
mov byte [edi + ecx], bl
mov ecx, dword [0x632d78]
add ecx, 0x469
mov dword [0x632d78], ecx
mov ecx, dword [0x632d80]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x632d84]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x632d90], edx
mov dword [0x632d78], 0x644
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.00401000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
add edx, 1
mov esi, dword [ebp - 0x10]
cmp edx, esi
mov dword [ebp - 0x20], edx
jne 0x4c0a5f
mov dword [0x632d78], 0x1819
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4c0e40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [fcn.004c0e40]
mov ecx, dword [0x632d7c]
add ecx, 0xffffe575
mov dword [0x632d78], ecx
mov dword [ebp - 4], eax
jmp 0x4c0e81
mov eax, dword [ebp - 8]
add esp, 0x10
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, 0xfffff000
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x4c0e6b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
cmp dword [eax + ecx], 0x4550
je 0x4c0e63
jmp 0x4c0e6b
Function at 0x403c8c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x411044], 0
je 0x403ced
cmp word [0x411218], 0xd7b2
jne 0x403cb5
cmp dword [0x411220], 0
jbe 0x403cb5
mov eax, 0x411214
call dword [0x411230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x410060
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 0x403d14
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x410024], 0
jne 0x403d09
push 0
push 0x410058
push 0x410060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40586c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
inc ebp
salc
aam 0x88
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
fsub dword [edi - 0x3a]
inc ebp
fld dword [esi + eax*8 + 0x45]
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x4058e8
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
loop 0x4058f8
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
in al, 0x2b
call fcn.0040545d
push eax

Function at 0x406818
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp dword [ebp - 0x6cc], 0
je 0x4075e0
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.004053be
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x40685a
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x4068a3
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x40684d
call fcn.0040544d
xchg edx, eax
inc ebx
imul esi, dword [edx - 0x80], 0xfff8d4a5
inc dword [eax]
invalid
Function at 0x40d818
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x411950
mov edx, dword [esi]
mov eax, ebx
call fcn.0040d7fc
mov edi, eax
mov dword [esi], edi
and edi, 0xff
add dword [esi + 4], edi
imul ebx, dword [esi + 4], 0x8088405
inc ebx
mov dword [esi + 4], ebx
mov eax, ebx
call fcn.00405904
call fcn.00405908
mov edx, dword [esi + 8]
call fcn.0040d7fc
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x7a8567a7
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x70f51f68
nop
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x408b9c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040905c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408d25
test edi, edi
je 0x408d25
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408c65
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408c40
cmp edi, 0xffffffff
je 0x408c01
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c01
mov byte [esp], 0
jmp 0x408d25
cmp dword [esi], 1
jg 0x408c40
cmp dword [esi], 0
jne 0x408c32
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408c32
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408d25
lea eax, [esp + 0xc]
call fcn.00408834
dec ebp
test ebp, ebp
jg 0x408be6
cmp edi, 0xffffffff
je 0x408c65
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408c63
mov byte [esp], 0
jmp 0x408d25
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408baa
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408c65
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408da0
mov edx, eax
mov ebx, dword [0x4dc8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408cc9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408cc7
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408cc9
xor edi, edi
cmp byte [esp], 0
je 0x408cef
mov ebx, dword [esi]
test bl, 1
jne 0x408d05
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408ccf
mov byte [esp + 1], 1
jmp 0x408d05
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408cef
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408c7c
cmp byte [esp], 0
je 0x408d25
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4099b4
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4deb9c
cmp dword [ebp + 0xc], 2
jl 0x4099c8
mov ebx, 0x4debcc
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409a00
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4051f8
mov dword [0x4dc01c], eax
mov eax, 0x405200
mov dword [0x4dc020], eax
mov eax, ebx
call fcn.00409898
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x409a35
cmp al, 3
jge 0x409a35
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x409a46
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409a51
call dword [ecx + eax*4]
cmp dword [0x4dc040], 0
jne 0x409a67
mov byte [0x4dc048], 1
fnstcw word [0x4d8028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409d14
call fcn.00409948
ret 4

Function at 0x409c7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4dc058], 0
je 0x409ce3
cmp word [0x4dc348], 0xd7b2
jne 0x409ca5
cmp dword [0x4dc350], 0
jbe 0x409ca5
mov eax, 0x4dc344
call dword [0x4dc360]
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, 0x409d10
call fcn.0040a7f8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d8032], 0
jne 0x409cff
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409ea4
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 [0x4d8034], 0
je 0x409ecf
mov edx, edi
mov eax, esi
call dword [0x4d8034]
mov ebx, eax
jmp 0x409ee0
mov eax, 8
call fcn.00406dd0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4dc059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409e6c
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 0x409f10
mov eax, ebx
call fcn.00406dec
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40da18
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 0x40db7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409fe4
cmp si, word [0x4d8a08]
jb 0x40dab0
cmp si, word [0x4d8c08]
ja 0x40dab0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40dab0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4d8a08]
jae 0x40da8a
mov edi, ebx
dec edi
jmp 0x40daab
cmp si, word [ebx*8 + 0x4d8a08]
jbe 0x40da9a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40daab
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d8a0c]
call fcn.0040d938
jmp 0x40dab0
cmp edi, dword [ebp - 8]
jae 0x40da74
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40db5f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40db5f
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.0040aae0
push dword [ebp - 0x160]
push 0x40db9c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040aae0
push dword [ebp - 0x164]
push 0x40dbac
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040aae0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ad18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db86
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a044
pop eax
jmp eax
Function at 0x40dd34
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 0x40de3a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4dec14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4dec2c]
jne 0x40dd80
mov eax, esi
mov edx, 0x4dec2e
mov ecx, 0x55
call fcn.0040aae0
push 0x4dec14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40de22
push 0x4dec14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409fe4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ddef
cmp byte [0x4dec10], 0
je 0x40ddb4
mov edx, esi
mov eax, ebx
call fcn.0040dc18
jmp 0x40ddef
mov edx, esi
mov eax, ebx
call fcn.0040da18
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ddef
cmp dword [esi], 0
je 0x40ddd8
mov eax, esi
mov edx, 0x40de54
call fcn.0040ac38
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040da18
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ac38
push 0x4dec14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4dec2c], bx
mov eax, dword [esi]
call fcn.0040aa44
mov ecx, eax
mov eax, 0x4dec2e
mov edx, 0xaa
call fcn.0040d898
push 0x4dec14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40de41
lea eax, [ebp - 4]
call fcn.00409fe4
pop eax
jmp eax
Function at 0x420a84
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420add
test eax, edx
je 0x420ae0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420a9b
movzx eax, word [eax]
sub eax, ecx
jmp 0x420ac2
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x420ac3
add ecx, 4
js 0x420ab3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420ac0
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420ac2
xor eax, eax
ret
test eax, eax
je 0x420aec
test edx, edx
jne 0x420a8c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x426524
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
test eax, eax
jle 0x42655d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a17c
jmp 0x426566
mov eax, ebx
mov edx, esi
call fcn.0040a3d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426570
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x426594
movzx eax, word [esp]
jmp 0x426596
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret