joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084c4
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov al, byte [ebx]
call fcn.004088f7
inc ebx
cmp al, 0xd
jne 0x4084a6
cmp al, cl
jne 0x407a22
mov al, 0xa
call fcn.004088f7
xor al, al
ret
or ebp, 0xffffffff
mov ebx, edx
mov byte [ebx], 0xd
xor ch, ch
mov al, cl
or ch, ch
jne 0x4084ed
mov eax, dword [0x413268]
sub eax, dword [0x413264]
cdq
idiv dword [0x413324]
mov ch, al
call fcn.00408676
mov cl, al
test byte [0x413407], 0x81
jne 0x4084a6
cmp byte [0x413316], 0
jne 0x40855d
cmp al, 0xd
je 0x4084a6
cmp al, 0x8d
je 0x4084cc
cmp al, 0x8c
je 0x4084cc
dec ch
push 0x4084ce
cmp al, 0x8b
je 0x40856c
cmp al, 0x8a
je 0x4085a8
mov ch, 0xff
cmp al, 0xa
je 0x408583
cmp al, 0x15
je 0x408567
cmp al, 0x83
je 0x4085a8
cmp al, 0x82
je 0x40856c
xor ch, ch
cmp al, 8
je 0x408567
cmp al, 0x7f
je 0x408567
cmp al, 0x88
je 0x40856c
cmp al, 0x87
je 0x408583
cmp al, 0x89
je 0x4085a8
cmp al, 0x86
je 0x408615
cmp al, 0x16
je 0x408624
cmp al, 0x20
jae 0x4085d8
pop edx
call fcn.004088f7
jmp 0x4084cc
stc
mov al, 0x7f
jmp 0x40856e
mov al, 8
inc bl
dec bl
je 0x408606
pushfd
call fcn.004088f7
popfd
dec bl
jae 0x4085d7
cmp byte [ebx], 0xd
je 0x408606
mov edx, ebx
mov al, byte [ebx + 1]
mov byte [ebx], al
inc ebx
cmp al, 0xd
jne 0x40858a
mov ebx, edx
xor dh, dh
mov al, byte [ebx]
inc dh
inc ebx
cmp al, 0xd
je 0x4085c4
call fcn.004087dd
jmp 0x408598
mov al, byte [ebx]
cmp al, 0xd
je 0x408606
mov dh, byte [ebx]
mov byte [ebx], al
inc bl
je 0x4085fa
call fcn.004087dd
mov al, 0xd
cmp al, dh
jne 0x4085d7
mov byte [ebx], al
ret
mov al, 0x20
call fcn.004087dd
mov al, 8
call fcn.004088f7
dec ebx
dec dh
jne 0x4085cd
ret
test byte [0x413296], 1
jne 0x4085ae
cmp byte [ebx], 0xd
je 0x4085ae
mov edx, ebx
mov dl, 0xff
xchg ebx, edx
mov ah, 0xd
mov byte [ebx], ah
dec ebx
cmp bl, dl
je 0x408609
mov ah, byte [ebx - 1]
jmp 0x4085ee
dec bl
mov byte [ebx], 0xd
mov al, 7
call fcn.004088f7
xor ch, ch
ret
mov ebx, edx
mov byte [ebx], al
inc ebx
call fcn.004087dd
jmp 0x408596
xor byte [0x413296], 1
pushal
call fcn.0040d8f5
popal
ret
xchg dword [0x413444], esp
push dword [0x4133a4]
call sub.USER32.dll_OpenClipboard
push 1
call sub.USER32.dll_GetClipboardData
or eax, eax
je 0x408668
push eax
push eax
call sub.KERNEL32.dll_GlobalLock
mov ecx, eax
xchg dword [0x413444], esp
mov al, byte [ecx]
inc ecx
cmp al, 0x20
jb 0x40865d
call 0x4085d8
jmp 0x40864f
xchg dword [0x413444], esp
call sub.KERNEL32.dll_GlobalUnlock
call fcn.004125a0
xchg dword [0x413444], esp
xor ch, ch
ret
Function at 0x40b22a
Capabilities:
Check if file exists
Read file on windows

Disassembly:
or eax, eax
je 0x40b2cf
push eax
pushal
lea eax, [esp + 0x20]
xchg dword [0x413444], esp
push 0
push eax
push ecx
push edx
push ebx
call sub.KERNEL32.dll_ReadFile
xchg dword [0x413444], esp
or al, al
je 0x40b2af
popal
mov ebx, eax
call fcn.0040b627
pop eax
ret

Function at 0x40b543
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebx
sub ebx, 5
jb 0x40b59e
cmp ebx, 8
jae 0x40b591
mov ecx, dword [0x4131d0]
add ch, bl
lea ebx, [ebx*4 + 0x4131e4]
mov cl, byte [ebx + 0x20]
cmp cl, byte [ebx + 0x21]
jne 0x40b57c
xor cl, cl
cmp dword [ebx], 0
je 0x40b58c
push eax
call fcn.0040c353
je 0x40b53e
call fcn.0040c3cc
je 0x40b53e
pop eax
mov byte [ecx], al
inc cl
mov byte [ebx + 0x20], cl
mov byte [ebx + 0x22], cl
or byte [ebx + 0x23], 0x80
pop ebx
ret
jmp fcn.0040b368
add ebx, 5
cmp ebx, 0x11
jae 0x40b5aa
sub ebx, 0xd
jmp 0x40b5a3
add ebx, 4
jae 0x40b58c
mov ebx, dword [ebx*4 + 0x4131d4]
push eax
mov ecx, esp
push eax
mov eax, esp
pushal
mov edi, dword [0x413514]
xchg dword [0x413444], esp
push edi
push 0
push 0
push 0
push 0
mov edx, esp
jb 0x40b5cc
xor edx, edx
push edx
push eax
push 1
push ecx
push ebx
push edi
call sub.KERNEL32.dll_ResetEvent
call sub.KERNEL32.dll_WriteFile
or al, al
jne 0x40b607
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
mov al, 0
jne 0x40b607
test byte [0x413407], 0x81
jne 0x40b61d
push 0xa
push edi
call sub.KERNEL32.dll_WaitForSingleObject
sub eax, 0x102
je 0x40b5ef
add esp, 0x14
or al, al
xchg dword [0x413444], esp
popal
pop ecx
pop eax
pop ebx
je 0x40b2af
ret
push 1
push ebx
call sub.KERNEL32.dll_PurgeComm
jmp 0x40b607

Function at 0x40b627
Capabilities:
Check if file exists

Disassembly:
or ebx, ebx
jne 0x40b67a
push ecx
push edi
mov edi, 0x4131e4
mov bl, 5
mov ecx, 8
mov eax, dword [edi]
or eax, eax
je 0x40b654
cmp ebx, dword [0x413228]
je 0x40b654
cmp ebx, dword [0x413224]
je 0x40b654
call fcn.0040b686
add edi, 4
inc ebx
loop 0x40b639
mov edi, 0x4131d4
mov bl, 1
mov ecx, 4
mov eax, dword [edi]
or eax, eax
je 0x40b671
call fcn.0040b686
add edi, 4
inc ebx
loop 0x40b666
pop edi
pop ecx
ret
call fcn.0040b686
je 0x40b2af
ret

Function at 0x40b686
Capabilities:
Check if file exists

Disassembly:
pushal
mov eax, ebx
sub ebx, 5
jb 0x40b6cf
cmp ebx, 8
jae 0x40b6b9
mov ecx, dword [0x4131d0]
add ch, bl
lea ebx, [ebx*4 + 0x4131e4]
cmp dword [ebx], 0
je 0x40b6df
call fcn.0040c353
je 0x40b6cd
xor eax, eax
mov dword [ebx + 0x20], eax
xchg dword [ebx], eax
or eax, eax
je 0x40b6df
xchg dword [0x413444], esp
push eax
call sub.KERNEL32.dll_CloseHandle
xchg dword [0x413444], esp
or al, al
popal
ret
add ebx, 4
jae 0x40b6df
lea ebx, [ebx*4 + 0x4131d4]
xor eax, eax
jmp 0x40b6b3
jmp fcn.0040b368

Function at 0x40b6e4
Capabilities:
Check if file exists
Encode data using xor

Disassembly:
push eax
call fcn.0040bd39
pop eax
mov ebx, 3
Function at 0x40b9b6
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ecx, ebx
sub ebx, 5
jb fcn.0040b368
cmp ebx, 8
jae 0x40b9ee
mov ecx, dword [0x4131d0]
add ch, bl
lea ebx, [ebx*4 + 0x4131e4]
cmp dword [ebx], 0
je fcn.0040b368
push eax
call fcn.0040c353
pop eax
je 0x40ba47
and dword [ebx + 0x20], 0
mov ecx, dword [ebx]
xchg dword [0x413444], esp
push edx
mov edx, esp
push 0
push edx
push eax
push ecx
call sub.KERNEL32.dll_SetFilePointer
pop edx
xchg dword [0x413444], esp
mov ebx, dword [esp]
push eax
push edx
call fcn.0040ba4c
pop ebx
pop ecx
cmp edx, ebx
jne 0x40ba1a
cmp eax, ecx
pop ebx
jb 0x40ba23

Function at 0x40ba1e
Capabilities:
Check if file exists
Clear file content

Disassembly:
ret
call fcn.0040b9b6
mov eax, ebx
cmp eax, 0xd
jae 0x40ba31
mov eax, dword [ebx*4 + 0x4131d0]
xchg dword [0x413444], esp
push eax
call sub.KERNEL32.dll_SetEndOfFile
xchg dword [0x413444], esp
or al, al
jne 0x40ba1d
jmp 0x40b2af

Function at 0x40ba4c
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebx
mov eax, ebx
sub ebx, 5
jb 0x40ba97
cmp ebx, 8
jae 0x40ba68
mov eax, dword [ebx*4 + 0x4131e4]
or eax, eax
je fcn.0040b368
xchg dword [0x413444], esp
push edx
push esp
push eax
call sub.KERNEL32.dll_GetFileSize
pop edx
xchg dword [0x413444], esp
mov ebx, dword [esp]
push edx
push eax
call fcn.0040b937
pop ecx
pop ebx
cmp edx, ebx
jne 0x40ba8f
cmp eax, ecx
jae 0x40ba95
mov eax, ecx
mov edx, ebx
pop ebx
ret
add ebx, 4
jae fcn.0040b368
mov ebx, dword [ebx*4 + 0x4131d4]
push esi
push edi
push ebp
xchg dword [0x413444], esp
push 0x1f
mov esi, esp
sub esp, 0xc
mov edi, esp
push edi
push esi
push ebx
call sub.KERNEL32.dll_ClearCommError
mov ecx, dword [esp + 4]
add esp, 0x10
xchg dword [0x413444], esp
pop ebp
pop edi
pop esi
pop ebx
or al, al
je 0x40b2af
mov eax, ecx
xor edx, edx
ret

Function at 0x40be45
Capabilities:
Create process on windows

Disassembly:
pushal
xchg dword [0x413444], esp
push ebp
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call sub.KERNEL32.dll_CreateProcessA
xchg dword [0x413444], esp
or al, al
popal
ret
Function at 0x40cc10
Capabilities:
Log keystrokes via polling

Disassembly:
ret
test byte [0x413296], 8
je 0x40cc0c
cmp dword [0x413368], 0
je 0x40cc0c
push eax
call fcn.0040d107
pop eax
or ah, ah
jne 0x40cc51
cmp al, 0xc
je 0x40cf0b
cmp al, 8
je 0x40ccb7
cmp al, 9
je 0x40ccbb
cmp al, 0xa
je 0x40ccbf
cmp al, 0xb
je 0x40ccc3
cmp al, 0xd
je 0x40ccc7
cmp al, 0x1e
je 0x40cccb
cmp al, 0x20
jb 0x40cc0c
xchg dword [0x413444], esp
push eax
mov ebx, esp
sub esp, 8
mov eax, esp
push eax
push 1
push ebx
push dword [0x413368]
call fcn.0040e504
mov eax, dword [0x413240]
test byte [0x41329a], 2
je 0x40cc85
add eax, dword [0x41332c]
sub eax, dword [esp]
push 0
push 1
push ebx
push 0
push 0
push dword [0x413244]
push eax
push dword [0x413368]
call fcn.0040e516
mov esi, esp
xchg dword [0x413444], esp
mov al, 0x40
call fcn.0040cd07
add dword [0x413444], 0xc
ret
mov al, 6
jmp fcn.0040cd02
mov al, 0
jmp fcn.0040cd02
mov al, 8
jmp fcn.0040cd02
mov al, 0xe
jmp fcn.0040cd02
mov al, 0xc0
jmp fcn.0040cd02
xchg dword [0x413444], esp
mov ebx, dword [0x413368]
push ebx
call sub.GDI32.dll_EndPage
push ebx
call sub.GDI32.dll_EndDoc
xor eax, eax
mov dword [0x413248], eax
xchg dword [0x413444], esp
ret

Function at 0x40cd07
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, 0x413240
mov ebx, dword [0x413334]
mov ebp, dword [0x41333c]
mov ecx, dword [0x413338]
mov edx, dword [0x413340]
or al, 0x10
jmp fcn.0040cd7c

Function at 0x40d107
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x413248]
or eax, eax
jne 0x40d106
xchg dword [0x413444], esp
sub esp, 0x14
mov edi, esp
mov ecx, 0x14
xor al, al
rep stosb byte es:[edi], al
mov byte [esp], 0x14
mov dword [esp + 4], 0x412890
mov eax, esp
push eax
mov ebx, dword [0x413368]
push ebx
call sub.GDI32.dll_StartDocA
mov dword [0x413248], eax
add esp, 0x14

Function at 0x40d170
Capabilities:
Log keystrokes via polling

Disassembly:
xchg dword [0x413444], esp
push 0x13
call sub.USER32.dll_GetAsyncKeyState
or ah, ah
js 0x40d19a
push 0x10
call sub.USER32.dll_GetAsyncKeyState
or ah, ah
jns 0x40d19a
push 0xa
call sub.KERNEL32.dll_Sleep
push 0x11
call sub.USER32.dll_GetAsyncKeyState
xchg dword [0x413444], esp
or ah, ah
jns 0x40d1ab
call fcn.004079fe
je fcn.0040d170
ret
Function at 0x411b3c
Capabilities:
Decompress data using aplib
Packed with generic packer
Read file on windows

Disassembly:
and dword [esp + 0x14], 1
je sub.KERNEL32.dll_ReadFile
pushal
mov ebp, esp
mov edx, dword [ebp + 0x24]
mov edi, dword [ebp + 0x28]
mov eax, dword [ebp + 0x30]
mov eax, dword [eax]
mov ebx, 0xfffffe00
and esp, ebx
mov esi, esp
neg ebx
sub esp, ebx
push edx
push eax
push eax
push ebp
mov dl, pe_nt_image_headers32
xor ebx, ebx
call fcn.00411c33
stosb byte es:[edi], al
mov bl, 2
call fcn.00411c11
jae 0x411b6a
xor ecx, ecx
xor eax, eax
call fcn.00411c11
jae 0x411b9e
call fcn.00411c11
jae 0x411bae
mov bl, 2
inc ecx
mov al, 0x10
call fcn.00411c11
adc al, al
jae 0x411b90
jne 0x411c07
stosb byte es:[edi], al
jmp 0x411b72
call fcn.00411c23
sub ecx, ebx
jne 0x411be0
call fcn.00411c23
jmp 0x411c03
call fcn.00411c33
shr eax, 1
rcl ecx, 1
jne 0x411c00
pop ebp
pop eax
pop eax
pop edx
mov esp, ebp
and esi, 0x1ff
je 0x411bd4
sub esi, eax
push 1
push 0
push esi
push edx
call sub.KERNEL32.dll_SetFilePointer
sub edi, dword [ebp + 0x28]
mov esi, dword [ebp + 0x30]
mov dword [esi], edi
popal
ret 0x14
xchg ecx, eax
dec eax
shl eax, 8
call fcn.00411c33
call fcn.00411c23
cmp eax, 0x7d00
jae 0x411c00
cmp ah, 5
jae 0x411c01
cmp eax, 0x7f
ja 0x411c02
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x411b9c

Function at 0x411c33
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
test esi, 0x1ff
jne 0x411c6e
sub esi, 0x200
pushal
push eax
mov ecx, esp
push 0
push ecx
push 0x200
push esi
push dword [esi - 4]
call sub.KERNEL32.dll_ReadFile
pop dword [esi - 8]
mov eax, dword [esi - 0xc]
mov cl, byte [esi]
rol dword [esi - 0xc], cl
mov ecx, pe_nt_image_headers32
xor dword [esi], eax
add esi, 4
loop 0x411c66
popal
lodsb al, byte [esi]
ret

Function at 0x411db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], 0x412ea0
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
Function at 0x411e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x411e26
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x411eba
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x411e75
cmp eax, 0x40
je 0x411e75
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x411e19
cmp eax, 0x40
je 0x411e19
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x411e19
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], 0x412eb8
call fcn.00411db0
lea esi, [esi]
lea edi, [edi]

Function at 0x412140
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00412120
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
je 0x4121e0
movzx edx, byte [ebx]
cmp dl, 9
je 0x412224
cmp dl, 0x20
je 0x412224
cmp dl, 0x22
je 0x4121c4
cmp dl, 9
mov eax, edx
je 0x4121d8
cmp dl, 0x20
je 0x412230
test dl, dl
lea esi, [esi]
jne 0x4121b2
jmp 0x4121e0
cmp al, 0x20
je 0x412230
test al, al
nop
je 0x4121e0
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x4121a4
jmp 0x4121d8
cmp al, 0x22
je 0x4121ce
add ebx, 1
movzx eax, byte [ebx]
test al, al
jne 0x4121c0
cmp al, 0x22
jne 0x4121d8
add ebx, 1
movzx eax, byte [ebx]
cmp al, 0x20
je 0x412230
cmp al, 9
je 0x412230
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x4121ef
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004111f0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
jmp 0x412171
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x412230
cmp al, 0x20
jne 0x4121e0
nop
jmp 0x412230
Function at 0x5d6074
Capabilities:
Encode data using xor

Disassembly:
jmp 0x5d6051
pushal
jmp 0x5d605b
call 0x5d6074
into
sub al, 0x60
mov byte [eax - 0x1a10c5a2], bh
neg byte [ecx + 0x1a]
add al, 0xf3
xchg ecx, eax
and al, 0x1b
push esi
mov cl, 0x26
pop ebx
jmp 0x5d6097
add ebx, 0xffffffa0
jmp 0x5d60ab
cmp dword [ebx], 0
clc
jmp 0x5d60b3
je 0x5d6243
stc
jb 0x5d60cf
rol byte [edx - 0x2d5c6676], cl
xchg edx, eax
fcom qword [eax]
das
shl byte [ebp - 0x12], 1
imul esp, esp, 0xaa91fd24
mov edi, ebx
jmp 0x5d60f9
add ebx, 4
jmp 0x5d6117
mov eax, dword [ebx]
jmp 0x5d611e
add eax, ebx
stc
jb 0x5d6132
push 0xffffffffffffffa9
jns 0x5d6139
sbb bh, byte [ebp + 0x4d8ff416]
salc
lahf
or ah, byte [edi + 0x4538ba1]
mov edx, dword [ebx + 4]
jmp 0x5d6153
mov byte [esi + 0xd3d2ead], 0x99
das
das
xchg edi, eax
sbb cl, byte [edi + esi*4 - 0x147d339f]
ret 0x3ffc
sub dword [eax], 0x2f4b81aa
jmp 0x5d6186
add eax, 4
jmp 0x5d61b4
sub edx, 1
clc
jmp 0x5d61d0
jne 0x5d6135
jmp 0x5d61e4
add ebx, 8
jmp 0x5d6202
sub dword [edi], 1
clc
jae 0x5d6217
pop esi
adc dword [eax - 0x14], 0x35384f2
mov byte [edx - 0x1c], ch
invalid
jne 0x5d60fc
jmp 0x5d623e
call 0x5d6266
jmp 0x5d6249
popal
jmp 0x5d6261
jmp 0x4b6c89

Function at 0x3844300
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0384438f
jae 0x384430e
xor ecx, ecx
call fcn.0384438f
jae 0x384433d
xor eax, eax
call fcn.0384438f
jae 0x384434d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0384438f
adc al, al
jae 0x384432f
jne 0x3844379
stosb byte es:[edi], al
jmp 0x3844311
call fcn.0384439b
sub ecx, ebx
jne 0x3844356
call fcn.03844399
jmp 0x3844375
lodsb al, byte [esi]
shr eax, 1
je 0x3844383
adc ecx, ecx
jmp 0x3844372
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03844399
cmp eax, 0x7d00
jae 0x3844372
cmp ah, 5
jae 0x3844373
cmp eax, 0x7f
ja 0x3844374
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3844311
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x405d7e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1244], 0
push esi
jne 0x405db5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d8f
mov dword [ecx*4 + 0x7a1240], eax
inc ecx
cmp ecx, 0x100
jl 0x405d8a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405de6
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1240]
xor eax, esi
inc ecx
dec edx
jne 0x405dc8
pop edi
not eax
pop esi
ret 0xc

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 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 0x404524
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406ca8
test esi, esi
jne 0x40455c
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.00406de4
jmp 0x40457a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404468
mov edi, eax
test esi, esi
je 0x40457a
cmp dword [ebx], 0
je 0x40457a
dec esi
jmp 0x404563
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40614c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44e04c], 0
je 0x4061ad
cmp word [0x44e328], 0xd7b2
jne 0x406175
cmp dword [0x44e330], 0
jbe 0x406175
mov eax, 0x44e324
call dword [0x44e340]
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
push 0x4061d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44c030], 0
jne 0x4061c9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406338
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x44c038], 0
je 0x40635e
mov edx, esi
mov eax, ebx
call dword [0x44c038]
jmp 0x40636d
mov eax, 8
call fcn.004041d0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x44e04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406300
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x40764c
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 0x40768e
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 0x4076ae
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406e90
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x4089d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408b3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406ca8
cmp si, word [0x44c7dc]
jb 0x408a72
cmp si, word [0x44c9dc]
ja 0x408a72
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408a72
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x44c7dc]
jae 0x408a4c
mov edi, ebx
dec edi
jmp 0x408a6d
cmp si, word [ebx*8 + 0x44c7dc]
jbe 0x408a5c
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408a6d
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x44c7e0]
call fcn.004088e8
jmp 0x408a72
cmp edi, dword [ebp - 0xc]
jae 0x408a36
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408b21
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408b21
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406e90
push dword [ebp - 0x164]
push 0x408b5c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406e90
push dword [ebp - 0x168]
push 0x408b6c
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406e90
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040723c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b46
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406ca0
ret