joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013cb7b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1019b688]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1013cbbb
cmp byte [ebx], 0xa
jne 0x1013cbbb
or byte [eax + edi + 0x28], 4
jmp 0x1013cbc0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1013ccbe
mov al, byte [edx]
cmp al, 0x1a
je 0x1013cca0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1013cbef
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1013cc14
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1013cc1e
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x1013cbd1
jmp 0x1013ccbe
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1013cc9b
cmp dword [ebp - 0xc], 0
je 0x1013cc9b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x1019b688]
test byte [eax + edi + 0x28], 0x48
je 0x1013cc75
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1013cc60
mov byte [esi], dl
jmp 0x1013cc71
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1019b688]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1013ccbe
cmp byte [ebp - 1], 0xa
jne 0x1013cc84
cmp esi, ebx
jne 0x1013cc84
mov byte [esi], 0xa
jmp 0x1013ccbd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1013a092
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1013ccbe
mov byte [esi], 0xd
jmp 0x1013ccbd
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x1019b688]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1013ccba
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1013ccbe
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1013ccc7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x1019b688]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1013cd0a
cmp word [esi], dx
jne 0x1013cd0a
or byte [edi + eax + 0x28], 4
jmp 0x1013cd0f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x1013ce48
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x1013ce28
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1013cd51
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1013cd87
cmp eax, edx
jae 0x1013cd93
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x1013cd29
jmp 0x1013ce48
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1013ce24
cmp dword [ebp - 0x14], 0
je 0x1013ce24
mov eax, dword [ebx*4 + 0x1019b688]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1013cdfc
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1013ce42
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x1019b688]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x1019b688]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x1019b688]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1013ce45
pop ebx
cmp word [ebp - 4], bx
jne 0x1013ce0d
cmp esi, dword [ebp + 0xc]
jne 0x1013ce0d
mov word [esi], bx
jmp 0x1013ce45
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1013a092
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1013ce48
push 0xd
jmp 0x1013ce41
mov ecx, dword [ebx*4 + 0x1019b688]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1013ce3f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1013ce48
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101451b4
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10145357
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1014532c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1014532c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101452db
jg 0x1014520d
test eax, eax
je 0x101452d1
push 1
push 0x1000
call fcn.10136d49
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10145233
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x101452c8
push 0x8000
push ebx
call fcn.101450ae
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1014525f
jg 0x1014525a
cmp ecx, 0x1000
jb 0x1014525f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1013b64e
add esp, 0x10
cmp eax, 0xffffffff
je 0x101452a4
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1014525a
jl 0x1014528b
test ecx, ecx
jne 0x1014524c
push dword [ebp - 0xc]
push ebx
call fcn.101450ae
push esi
call fcn.10133c37
add esp, 0xc
xor edi, edi
jmp 0x1014533d
cmp byte [edi + 0x24], 0
je 0x101452bb
cmp dword [edi + 0x20], 5
jne 0x101452bb
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101452c6
mov edi, dword [edi + 0x18]
jmp 0x101452c8
xor edi, edi
push esi
call fcn.10133c37
pop ecx
jmp 0x1014533d
test ecx, ecx
jg 0x1014529d
jl 0x101452db
test eax, eax
jae 0x1014529d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1013a092
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101452fe
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1014529d
jmp 0x10145335
push ebx
call fcn.10141398
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1014529d
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1014533d
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1014533a
mov edi, dword [edi + 0x18]
jmp 0x1014533d
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1013a092
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402d18
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402d55
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402d75
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404cc8
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402ff0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a58
test esi, esi
jne 0x403027
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404b48
jmp 0x403048
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e8c
mov dword [esp], eax
test esi, esi
je 0x403048
cmp dword [ebx], 0
je 0x403048
dec esi
jmp 0x40302f
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403abc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x482024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403b34
xor eax, eax
push ebp
push 0x403b2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b70
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b34
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x482024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x482024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404858
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48804c], 0
je 0x4048b9
cmp word [0x488220], 0xd7b2
jne 0x404881
cmp dword [0x488228], 0
jbe 0x404881
mov eax, 0x48821c
call dword [0x488238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x482074
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 0x4048e0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x482034], 0
jne 0x4048d5
push 0
push 0x48206c
push 0x482074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404a14
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402ae0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48804d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4049dc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406b40
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406ba6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404cc8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403680
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406b90
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406bad
lea eax, [ebp - 0x10]
call fcn.00404a58
ret

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

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

Function at 0x4097ec
Capabilities:
Get file attributes

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

Function at 0x409800
Capabilities:
Set file attributes

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

Function at 0x40c794
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c7cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b48
jmp 0x40c7d6
mov eax, ebx
mov edx, esi
call fcn.00404aac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c7e0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c801
mov al, byte [esp]
jmp 0x40c803
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40ce98
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cd00
mov eax, dword [0x487284]
cmp byte [eax], 0
je 0x40cf14
mov eax, dword [0x487068]
call fcn.004033f4
call fcn.00402c6c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409e5c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cf5c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40cf4a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x487008]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x488668]
call fcn.00405f6c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40d800
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d8d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404af0
lea eax, [ebp - 8]
call fcn.00404f68
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f18
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d8c0
mov eax, ebx
call fcn.00402ae0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d8b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f18
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d8a3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d8e8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d8a3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d8c0
mov eax, dword [ebp - 0x10]
call fcn.00402b10
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d8dd
lea eax, [ebp - 8]
call fcn.00404a58
ret

Function at 0x40dfe8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e04c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404cc8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004091b4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e053
lea eax, [ebp - 0xc]
call fcn.00404a58
ret
Function at 0x41f61c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x488888
cmp dword [esi], 0
jne 0x41f6c2
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x488884]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x482404
mov ecx, 2
call fcn.00402e4c
mov edx, 0x41f5f4
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041f614
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041f614
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41f689
mov eax, dword [ebp - 8]
mov dword [0x488884], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x420c98
Capabilities:
Encode data using xor

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

Function at 0x423518
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x423569
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423550
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423540
jmp 0x423569
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x423551
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4336d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea ebx, [ebp - 4]
xor eax, eax
push ebp
push 0x433890
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.00442ec0
mov eax, dword [ebx]
cmp byte [eax + 0x210], 0
je 0x433875
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebx]
sub eax, dword [edx + 0x220]
cmp eax, 0x1f4
jb 0x433733
mov eax, dword [ebx]
add eax, 0x21c
call fcn.00404a58
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebx]
mov dword [edx + 0x220], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 8
je 0x433804
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov edx, dword [0x4873a8]
and eax, 0xff
bt dword [edx], eax
jae 0x4337c6
push 1
push 0x102
push 0x102
mov eax, dword [ebx]
call fcn.00443f84
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x433844
mov eax, dword [ebx]
push dword [eax + 0x21c]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00404c40
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00404c40
push dword [ebp - 0x2c]
mov eax, dword [ebx]
add eax, 0x21c
mov edx, 3
call fcn.00404dd8
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x433844
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
mov dl, byte [edx]
call fcn.00404c40
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
add eax, 0x21c
call fcn.00404d20
jmp 0x433844
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404d18
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.00404fb8
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404d18
mov edx, eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.0040d96c
cmp al, 2
je 0x4337e4
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404d18
mov edx, eax
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, 1
call fcn.00404fb8
mov eax, dword [ebx]
mov eax, dword [eax + 0x21c]
call fcn.00404d18
test eax, eax
jle 0x43385e
push ebp
call fcn.004335ec
pop ecx
jmp 0x433875
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
mov eax, dword [ebx]
mov si, 0xffeb
call fcn.00403e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433897
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404a7c
ret
Function at 0x4364b8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404f08
xor eax, eax
push ebp
push 0x4365e8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4365bb
xor eax, eax
push ebp
push 0x4365b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404d18
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x436589
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x436578
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404d18
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404f18
mov edx, dword [ebp - 0xc]
pop ecx
call fcn.00402e4c
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43657f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x486f9c]
mov dl, 1
mov eax, dword [0x40803c]
call fcn.0040d01c
call fcn.004043f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4365ef
lea eax, [ebp - 4]
call fcn.00404a58
ret