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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x63a656
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x63a681
sub esi, eax
cmp esi, dword [ebp + 0xc]
jbe 0x63a62b
mov esi, dword [ebp + 0xc]
push esi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0066a680
add esp, 0xc
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.00638506
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x63a683
cmp dword [edi + 0x7c], 0
je 0x63a67a
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x63a681
mov esi, dword [ebp - 4]
jmp 0x63a640
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x63ab29
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
movsx eax, byte [esp + 8]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x745630]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x745630]
mov dword [edx + 8], ecx
ret 8

Function at 0x63ab72
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
cmp byte [esi + 0x2d], 0
je 0x63abe7
cmp dword [esi + 0x3c], 0
je 0x63aba3
cmp dword [esi + 0x40], edi
jae 0x63ab9d
push dword [esi + 0x3c]
call fcn.00651dd2
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x63abb3
lea eax, [edi + edi]
push eax
call fcn.006520e5
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.0066a680
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x63abe4
push ebp
lea ebp, [esi + 0x30]
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
push ebp
call fcn.0063ac42
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x63abca
pop ebp
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x63ac16
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x63ac02
mov dword [esi + 0x14], 0x30000
jmp 0x63ac3a
push edi
add ecx, edx
push ebx
push ecx
call fcn.0066a680
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x63ac3c
mov eax, dword [esi + 4]
test eax, eax
je 0x63ac33
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 0x10]
jmp 0x63ac3c
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x63b83f
Capabilities:
Hide graphical window

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
push edi
mov edi, ecx
push 0x6a1
push dword [edi + 4]
call ebx
push 1
xor esi, esi
push esi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ebp, dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [edi + 0x78], esi
jne 0x63b985
push 2
push 0x172
push 0x122
push esi
push esi
push esi
push dword [edi + 4]
call ebp
mov esi, dword [edi + 4]
push 0xad
call fcn.00595698
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
call esi
push 0x6a1
push dword [edi + 4]
call ebx
push 0x42
push 0x172
push 0x122
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
call ebp
cmp byte [edi + 0x58], 0
push 0x6a0
push dword [edi + 4]
jne 0x63b8d5
call ebx
push 0x40
push 0xf
push 0xc3
jmp 0x63b8e0
call ebx
push 0x40
push 0xf
push 0x109
push 0x13b
push 0xa
push 0
push eax
call ebp
push 0x6a2
push dword [edi + 4]
call ebx
push 0x41
xor ecx, ecx
push ecx
push ecx
push 0x136
push 0xd0
push ecx
push eax
call ebp
cmp byte [edi + 0x58], 0
jne 0x63b917
push 0xc6
jmp 0x63b91c
push 0xc7
call fcn.00595698
push 0x6a0
push dword [edi + 4]
mov dword [esp + 0x18], eax
call ebx
push dword [esp + 0x10]
push eax
call esi
push 0x6a2
push dword [edi + 4]
call ebx
push 0xaf
mov esi, eax
call fcn.00595698
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x6a2
push dword [edi + 4]
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
cmp byte [edi + 0x58], cl
setne cl
dec ecx
and ecx, 5
push ecx
push eax
call esi
push 0x6b3
push dword [edi + 4]
call ebx
push 0
push eax
call esi
xor esi, esi
cmp dword [edi + 0x78], 1
jne 0x63ba73
push 2
push 0x64
push 0x136
push esi
push esi
push esi
push dword [edi + 4]
call ebp
mov esi, dword [edi + 4]
push 0xae
call fcn.00595698
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x6a0
push dword [edi + 4]
call ebx
xor esi, esi
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x6a1
push dword [edi + 4]
call ebx
push 0x42
push 0x64
push 0x136
push esi
push esi
push esi
push eax
call ebp
push 0x6a2
push dword [edi + 4]
call ebx
push 0x41
push esi
push esi
push 0x28
push 0x98
push esi
push eax
call ebp
push 0x6a2
push dword [edi + 4]
call ebx
push 0xb1
mov esi, eax
call fcn.00595698
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, 0x6b3
push esi
push dword [edi + 4]
call ebx
push 0x41
xor ecx, ecx
push ecx
push ecx
push 0x28
push 0xe4
push ecx
push eax
call ebp
push esi
push dword [edi + 4]
call ebx
push 0xb0
mov esi, eax
call fcn.00595698
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x6a2
push dword [edi + 4]
call ebx
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call ebp
push 0x6b3
push dword [edi + 4]
call ebx
push 5
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x63c706
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
lea eax, [ebp - 0x220]
push esi
xor esi, esi
push esi
push 0x25
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x63c740
mov ecx, esi
movzx eax, word [ecx + 0x745f18]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x222], ax
test ax, ax
jne 0x63c729
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0046e640
test al, al
jne 0x63c76f
mov ecx, esi
movzx eax, word [ecx + 0x745f18]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x222], ax
test ax, ax
jne 0x63c758
mov ecx, 0x105
lea eax, [ebp - 0x42c]
push ecx
push eax
push esi
push esi
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
neg eax
pop esi
sbb eax, eax
and eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x654c08
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebp
ret

Function at 0x68bd4d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0068ba10

Function at 0x68bd58
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0068bb91

Function at 0x69321b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00692b89

Function at 0x693226
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00692dc4
Function at 0x6a181c
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x6ca681
call fcn.00651da4
sub esp, 0x678
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x28], 0
push ebx
push esi
push edi
push 8
pop ecx
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edi, [ebp - 0x3c]
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
xor ecx, ecx
mov dword [esi + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
xor eax, eax
inc eax
cpuid
mov dword [esi], eax
lea eax, [ebp - 0x26c]
mov dword [esi + 4], ebx
xor ebx, ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov byte [ebp - 0x19], bl
movsd dword es:[edi], dword [esi]
push ebx
push 0x25
push eax
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov edi, 0x105
test eax, eax
je 0x6a18e2
push 0xa
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumePathNameW]
test eax, eax
je 0x6a18e2
push edi
lea eax, [ebp - 0x478]
push eax
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x684]
push eax
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
je 0x6a18e2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
jmp 0x6a18e5
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x6a1922
push 0x745f18
lea eax, [ebp - 0x24]
push 0xa
push eax
call fcn.0068395c
add esp, 0xc
lea eax, [ebp - 0x478]
push edi
push eax
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x684]
push eax
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
je 0x6a1922
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
push str.cid2_
call fcn.0040f49f
push 0x20
lea eax, [ebp - 0x48]
mov dword [ebp - 4], ebx
push eax
xor esi, esi
lea eax, [ebp - 0x60]
inc esi
push eax
mov dword [ebp - 0x28], esi
call fcn.006a17fd
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
push eax
mov dword [ebp - 4], esi
call fcn.0040f579
push ebx
push esi
lea ecx, [ebp - 0x60]
call fcn.0040facf
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x6a6e59
Capabilities:
Get disk information

Disassembly:
mov eax, 0x6b2f7a
call fcn.00651da4
sub esp, 0x228
push ebx
push esi
push edi
push 0x41
pop eax
push 0x3a
mov word [ebp - 0x14], ax
xor edi, edi
pop eax
mov word [ebp - 0x12], ax
push 0x5c
pop eax
mov word [ebp - 0x10], ax
xor eax, eax
mov dword [ebp - 4], edi
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov ebx, eax
mov esi, edi
test ebx, ebx
je 0x6a6f03
test bl, 1
je 0x6a6ef9
lea eax, [esi + 0x41]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
jne 0x6a6ef9
push 0x104
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x6a6ef9
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00428153
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00436351
push edi
push 1
test eax, eax
je 0x6a6f23
lea ecx, [ebp - 0x2c]
call fcn.004284eb
shr ebx, 1
inc esi
cmp esi, 0x1a
jl 0x6a6e9a
mov esi, edi
push edi
push 1
lea ecx, [ebp + 8]
call fcn.004284eb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 0x20]
mov ax, word [ebp - 0x14]
mov word [ecx], ax
lea ecx, [ebp - 0x2c]
call fcn.004284eb
xor esi, esi
inc esi
jmp 0x6a6f03
Function at 0x6a7275
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
cmp dword [esi + 0x110], 2
jne 0x6a72f9
lea eax, [esi + 0xf0]
cmp dword [eax + 0x14], 8
jb 0x6a7295
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x30]
push str._s:_
push eax
call fcn.00462014
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp - 0x1c], 8
jae 0x6a72b3
lea eax, [ebp - 0x30]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
xor ecx, ecx
test eax, eax
je 0x6a72e0
mov eax, dword [ebp - 8]
mov dword [esi + 0x108], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x10c], eax
jmp 0x6a72ec
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], ecx
push ecx
push 1
lea ecx, [ebp - 0x30]
call fcn.004284eb
jmp 0x6a7307
xor ecx, ecx
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x6a7444
Capabilities:
Get disk information

Disassembly:
mov eax, 0x6caec2
call fcn.00651da4
sub esp, 0x448
push edi
mov edi, ecx
cmp dword [edi + 0x110], 2
jne 0x6a7468
xor eax, eax
inc eax
jmp 0x6a756f
push esi
movzx esi, word [ebp + 8]
lea eax, [ebp - 0x44]
push esi
push 0x755d0c
push eax
call fcn.00462014
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push esi
push str._c:_
push eax
call fcn.00462014
add esp, 0x18
mov eax, dword [ebp - 0x2c]
push 8
pop esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jae 0x6a74a4
lea eax, [ebp - 0x2c]
mov edx, 0x104
lea ecx, [ebp - 0x454]
push edx
push ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edx
lea ecx, [ebp - 0x24c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x6a754c
lea eax, [ebp - 0x24c]
push eax
call fcn.004287c6
pop ecx
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [edi + 0xa8]
call fcn.004286de
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], esi
jb 0x6a74fa
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.006a71fb
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], esi
jb 0x6a750c
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.006a7254
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], esi
jae 0x6a751f
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.006a721c
mov ecx, edi
mov dword [edi + 0x110], 2
call fcn.006a7275
push 7
push edi
call fcn.005df3c7
mov ecx, eax
call fcn.005df6fc
xor esi, esi
inc esi
jmp 0x6a7554
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004284eb
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.004284eb
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp fcn.00431219
Function at 0x401460
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
call sub.KERNEL32.dll_GetCommandLineW
mov edx, eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.SHELL32.DLL_CommandLineToArgvW
sub esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
sub eax, 1
shl eax, 2
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 1
jmp 0x4015c4
mov eax, dword [ebp - 0x10]
lea edx, [eax*4]
mov eax, dword [ebp - 0x14]
add eax, edx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_lstrlenW
sub esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
lea edx, [eax*4]
mov eax, dword [ebp - 0x14]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
lea ebx, [edx + eax]
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp - 0x10]
lea ecx, [eax*4]
mov eax, dword [ebp - 0x14]
add eax, ecx
mov eax, dword [eax]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov ecx, dword [ebp - 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
mov eax, dword [ebp - 0x10]
add eax, 0x3fffffff
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
mov edx, dword [eax]
mov eax, dword [ebp - 0x20]
add eax, edx
mov byte [eax], 0
add dword [ebp - 0xc], 1
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x10], eax
jl 0x4014aa
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401797
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.00401460
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x34], str._jar
mov dword [ebp - 0x30], str.TheoTown66.lby
mov dword [ebp - 0x2c], str.b0c1116b7cae1e988007a54718e15126
mov dword [ebp - 0x28], 0x40609d
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 4
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.004016bd
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str.javaw
call fcn.004015e0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str.jre_binjavaw.exe
call fcn.004015e0
mov dword [esp + 0xc], 0x31
mov dword [esp + 8], str.No_Java_installed
mov dword [esp + 4], str.TheoTown_requires_Java_to_be_installed_on_your_machine_in_order_to_run._n_nDo_you_want_to_get_Java_now__After_the_installation_you_may_have_to_restart_your_computer.
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
cmp eax, 1
jne 0x4018cd
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.https:__www.java.com_download_
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
mov eax, 1
leave
ret 0x10
Function at 0x401f20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401f6b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401f64
test esi, esi
je 0x401f64
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f40
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402150
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4021a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402278
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4021de
cmp eax, 4
jne 0x402200
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4021ee
cmp edx, 4
je 0x4021ee
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402150