joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd229f8
Capabilities:
Decompress data using aplib

Disassembly:
call 0xd22b48
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd22a1e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd22a0a
add dl, dl
jne 0xd22a29
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd22a7c
xor eax, eax
add dl, dl
jne 0xd22a36
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd22b1d
add dl, dl
jne 0xd22a45
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd22a50
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd22a5b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd22a66
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd22a72
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd22a15
mov eax, 1
add dl, dl
jne 0xd22a8a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd22a95
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd22a81
sub eax, ebx
mov ebx, 1
jne 0xd22ac8
mov ecx, 1
add dl, dl
jne 0xd22aae
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd22ab9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd22aa5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd22a15
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd22adf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd22aea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd22ad6
cmp eax, 0x7d00
jae 0xd22b0d
cmp eax, 0x500
jb 0xd22b08
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd22a15
cmp eax, 0x7f
ja 0xd22b10
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd22a15
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd22b3e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd22a15
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x6b34e94
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x74112233
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4068a8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4068ea
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x40690a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040a91c
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4084b0
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.0040894c
mov byte [esp], al
cmp byte [esp], 0
jne 0x40863c
test edi, edi
je 0x40863c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40857c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
call fcn.00408164
test ebp, ebp
jle 0x408557
cmp edi, 0xffffffff
je 0x408518
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408518
mov byte [esp], 0
jmp 0x40863c
cmp dword [esi], 1
jg 0x408557
cmp dword [esi], 0
jne 0x408549
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408549
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40863c
lea eax, [esp + 0xc]
call fcn.0040816c
dec ebp
test ebp, ebp
jg 0x4084fd
cmp edi, 0xffffffff
je 0x40857c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40857a
mov byte [esp], 0
jmp 0x40863c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4084be
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40857c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004086a8
mov edx, eax
mov ebx, dword [0x5dd8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4085e0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4085de
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4085e0
xor edi, edi
cmp byte [esp], 0
je 0x408606
mov ebx, dword [esi]
test bl, 1
jne 0x40861c
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4085e6
mov byte [esp + 1], 1
jmp 0x40861c
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408606
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408593
cmp byte [esp], 0
je 0x40863c
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 0x4094d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5dd05c], 0
je 0x409537
cmp word [0x5dd348], 0xd7b2
jne 0x4094f9
cmp dword [0x5dd350], 0
jbe 0x4094f9
mov eax, 0x5dd344
call dword [0x5dd360]
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, 0x409564
call fcn.0040a2ec
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5d3036], 0
jne 0x409553
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4096f8
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 [0x5d3038], 0
je 0x409723
mov edx, edi
mov eax, esi
call dword [0x5d3038]
mov ebx, eax
jmp 0x409734
mov eax, 8
call fcn.00406724
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5dd05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4096c0
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 0x409764
mov eax, ebx
call fcn.00406740
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40d2e0
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 0x40d445
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409840
cmp si, word [0x5d3a18]
jb 0x40d378
cmp si, word [0x5d3c18]
ja 0x40d378
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40d378
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5d3a18]
jae 0x40d352
mov edi, ebx
dec edi
jmp 0x40d373
cmp si, word [ebx*8 + 0x5d3a18]
jbe 0x40d362
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40d373
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5d3a1c]
call fcn.0040d204
jmp 0x40d378
cmp edi, dword [ebp - 8]
jae 0x40d33c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40d427
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d427
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.0040a91c
push dword [ebp - 0x160]
push 0x40d460
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a91c
push dword [ebp - 0x164]
push 0x40d470
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a91c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ab54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d44c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004098a0
ret
Function at 0x40d5f8
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 0x40d6fc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5dfc14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5dfc2c]
jne 0x40d644
mov eax, esi
mov edx, 0x5dfc2e
mov ecx, 0x55
call fcn.0040a91c
push 0x5dfc14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d6e6
push 0x5dfc14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409840
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d6b3
cmp byte [0x5dfc10], 0
je 0x40d678
mov edx, esi
mov eax, ebx
call fcn.0040d4dc
jmp 0x40d6b3
mov edx, esi
mov eax, ebx
call fcn.0040d2e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40d6b3
cmp dword [esi], 0
je 0x40d69c
mov eax, esi
mov edx, 0x40d714
call fcn.0040aa74
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040d2e0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aa74
push 0x5dfc14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5dfc2c], bx
mov eax, dword [esi]
call fcn.0040a87c
mov ecx, eax
mov eax, 0x5dfc2e
mov edx, 0xaa
call fcn.0040d168
push 0x5dfc14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d703
lea eax, [ebp - 4]
call fcn.00409840
ret
Function at 0x40d92c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409924
xor eax, eax
push ebp
push 0x40db51
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40d96c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40d986
mov eax, dword [ebp - 4]
call fcn.0040a87c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d168
cmp word [ebp - 0x21a], 0
je 0x40db3b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40db9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dbd0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40da55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40dc04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40db3b
xor eax, eax
push ebp
push 0x40db34
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040d73c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40dac4
mov eax, dword [ebp - 0x10]
call fcn.00406724
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a8e0
jmp 0x40db0f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40dc44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40db0f
mov eax, dword [ebp - 0x10]
call fcn.00406724
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40dc44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a8e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db3b
cmp dword [ebp - 8], 0
je 0x40db2a
mov eax, dword [ebp - 8]
call fcn.00406740
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40db58
lea eax, [ebp - 4]
call fcn.00409840
ret
Function at 0x40de38
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409924
xor eax, eax
push ebp
push 0x40def8
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a91c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aacc
mov eax, dword [ebx]
call fcn.0040dd00
test al, al
jne 0x40ded5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a91c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040aacc
mov eax, dword [ebx]
call fcn.0040dd00
test al, al
jne 0x40ded5
mov eax, ebx
call fcn.00409840
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40deff
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004098a0
lea eax, [ebp - 4]
call fcn.00409840
ret

Function at 0x40fa5c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41c1c4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41c21d
test eax, edx
je 0x41c220
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41c1db
movzx eax, word [eax]
sub eax, ecx
jmp 0x41c202
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 0x41c203
add ecx, 4
js 0x41c1f3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41c200
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41c202
xor eax, eax
ret
test eax, eax
je 0x41c22c
test edx, edx
jne 0x41c1cc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41d6e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41d70d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41d7e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040a87c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d852
test ah, 4
je 0x41d84b
test bl, bl
jne 0x41d810
mov al, 1
jmp 0x41d879
test al, 0x10
je 0x41d818
xor eax, eax
jmp 0x41d879
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41d83c
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x41d879
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41d879
test al, 0x10
sete al
jmp 0x41d879
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x41d873
cmp ebx, 3
je 0x41d873
cmp ebx, 0x7b
je 0x41d873
mov eax, esi
call fcn.0041d7a8
test al, al
jne 0x41d877
xor eax, eax
jmp 0x41d879
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x41d960
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.0040a87c
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41d9b5
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d9af
test ah, 4
je 0x41d9af
test al, 0x10
je 0x41d9af
mov eax, esi
call fcn.0040a87c
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x41d9b5
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41db0c
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41dd68
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00409c20
call fcn.004238f4
dec eax
jne 0x41db57
call fcn.00423908
cmp eax, 4
jle 0x41db96
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
call sub.mpr.dll_WNetGetUniversalNameW
test eax, eax
jne 0x41dd4a
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x420]
mov edx, dword [edx]
call fcn.0040a8e0
jmp 0x41dd4a
mov eax, dword [ebp - 4]
movzx eax, word [eax]
call fcn.00406ac8
mov word [ebp - 0x16], ax
cmp word [ebp - 0x16], 0x41
jb 0x41dd4a
cmp word [ebp - 0x16], 0x5a
ja 0x41dd4a
mov eax, dword [ebp - 4]
call fcn.00409d60
cmp eax, 3
jl 0x41dd4a
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
jne 0x41dd4a
mov eax, dword [ebp - 4]
cmp word [eax + 4], 0x5c
jne 0x41dd4a
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumW
test eax, eax
jne 0x41dd4a
xor eax, eax
push ebp
push 0x41dd43
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.00406724
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x41dd25
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceW
cmp eax, 0xea
jne 0x41dc6b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00406758
jmp 0x41dc2f
test eax, eax
je 0x41dc7e
call fcn.00409028
call fcn.00409028
jmp 0x41dd4a
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x41dc2f
inc esi
xor ebx, ebx
mov eax, ebx
add eax, eax
add eax, eax
mov edx, dword [ebp - 0x20]
mov edi, dword [edx + eax*8 + 0x10]
test edi, edi
je 0x41dd03
movzx eax, word [edi]
call fcn.00406ac8
cmp ax, word [ebp - 0x16]
jne 0x41dd03
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 4]
call fcn.00409d60
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.0040ac9c
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov edx, ebx
add edx, edx
add edx, edx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + edx*8 + 0x14]
call fcn.0040a8e0
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 8]
pop ecx
call fcn.0040aacc
call fcn.00409028
call fcn.00409028
jmp 0x41dd4a
inc ebx
dec esi
jne 0x41dc89
jmp 0x41dc2f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dd6f
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.004098a0
ret