joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40256e
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4025cb
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x402642
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040e250
push 0x416660
lea ecx, [ebp - 0xc]
call fcn.0040e2d7
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40271e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040e27f
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401192
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e2d7
test byte [ebp - 0x25c], 0x10
je 0x4026e9
push 0x41665c
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402701
push 0x416654
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x402701
push dword [ebp - 0xc]
call fcn.00402642
pop ecx
jmp 0x4026fd
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x402743
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402743
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40268d
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402743
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402743
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x40274d
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402753
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x41a780], 0
je 0x40276a
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402786
xor eax, eax
inc eax
jmp 0x4027b7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x4027b0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4027ac
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4027b7
xor eax, eax
jmp 0x4027b7
push esi
call fcn.00402642
pop ecx
pop esi
leave
ret

Function at 0x4030ff
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov edi, eax
mov dword [ebp - 4], eax
call fcn.0040e250
push 0
lea ecx, [ebp - 0x18]
call fcn.00402cf8
mov esi, eax
movzx eax, word [ebx + edi*2 - 2]
cmp ax, 0x5c
je 0x40313d
cmp ax, 0x2f
jne 0x40316b
and word [esi + edi*2 - 2], 0
dec edi
mov dword [ebp - 4], edi
jmp 0x40316b
movzx eax, word [esi + edi*2]
cmp ax, 0x2f
je 0x40315e
cmp ax, 0x5c
je 0x40315e
dec edi
test edi, edi
jg 0x403149
test edi, edi
je 0x40320f
and word [esi + edi*2], 0
push esi
call fcn.00401a9e
test eax, eax
pop ecx
je 0x40315a
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4031a2
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00402dfc
test eax, eax
pop ecx
pop ecx
je 0x4031a2
xor esi, esi
jmp 0x403232
push esi
call fcn.00401a9e
test eax, eax
pop ecx
jne 0x4031fc
push esi
push 0xc
push 1
call fcn.004085fa
add esp, 0xc
jmp 0x40319b
mov eax, dword [ebp - 4]
sub eax, edi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + edi*2]
push eax
lea ebx, [esi + edi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4031f0
jmp 0x4031ef
movzx eax, word [esi + edi*2]
cmp ax, 0x5c
je 0x4031f6
cmp ax, 0x2f
je 0x4031f6
inc edi
cmp word [esi + edi*2], cx
jne 0x4031df
mov word [esi + edi*2], cx
jmp 0x4031a2
cmp edi, dword [ebp - 4]
jl 0x4031bc
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403256
cmp dword [ebp - 4], 2
jne 0x40323f
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x40323f
cmp ax, 0x7a
ja 0x40323f
cmp word [ebx + 2], 0x3a
jne 0x40323f
xor esi, esi
inc esi
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403256
push ebx
push 0xc
push 1
call fcn.004085fa
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403567
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.0040dede
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x4035a5
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00402cf8
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
mov dword [edi + 4], esi
and word [eax + esi*2], 0
mov eax, edi
pop edi
pop esi
ret

Function at 0x403771
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.0040dede
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00402cf8
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00402cf8
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.004019f3
pop ecx
mov dword [esi + 4], eax
and word [edi + eax*2], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404528
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push edi
lea ecx, [ebp - 0xc]
call fcn.0040dede
lea ecx, [ebp - 0x18]
call fcn.0040dede
push 0x3c
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x40457a
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x404587
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00403ea5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e27f
cmp dword [ebp - 8], edi
jne 0x4045b7
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, ebx
jmp 0x404602
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4045f0
test dword [ebp + 0xc], 0x10000
jne 0x4045e5
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, ebx
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, edi
pop ecx
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x404665
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.0040dede
push 2
mov ecx, esi
call fcn.00402cf8
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
and dword [esi + 4], 0
mov ecx, dword [esi]
and word [ecx], 0
test eax, eax
jbe 0x4046b8
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00402cf8
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.004019f3
mov dword [esi + 4], eax
and word [edi + eax*2], 0
pop ecx
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00402cf8
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.004019f3
add esp, 0x10
mov dword [esi + 4], eax
and word [edi + eax*2], 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40470d
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x4046c8
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404714
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41a748], esi
jle 0x404768
mov eax, dword [0x41a744]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.0040df01
lea eax, [ebp - 0xc]
push eax
call fcn.00403bb3
mov eax, dword [0x41a744]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41a748]
pop ecx
jl 0x404725
pop esi
leave
ret
Function at 0x404ab1
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x34
cmp word [eax + 2], 0x3a
push ebx
jne 0x404c67
movzx ecx, word [eax + 4]
cmp cx, 0x5c
je 0x404ada
cmp cx, 0x2f
jne 0x404c67
mov ax, word [eax]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x404b0a
push dword [ebp + 8]
jmp 0x404c68
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404665
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x404c2f
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040dede
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0040e27f
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040e2d7
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040df81
mov esi, 0x4177d4
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040e2d7
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.0040e2d7
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040df81
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0040e2d7
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040e2d7
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040df81
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040e2d7
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402d79
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp esi, ebx
pop esi
je 0x404c42
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x404c42
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x404c6d
push dword [ebp - 0x28]
call fcn.00402753
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x404c6e
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
leave
ret
Function at 0x404cd5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00414e30
call fcn.00402251
push 3
call fcn.004022a7
push 0x28
mov dword [0x41a6c8], eax
call fcn.004022a7
push 2
mov dword [0x41a6c4], eax
call fcn.004022a7
push 5
mov dword [0x41a6c0], eax
call fcn.004022a7
push 0x15
mov dword [0x41a6bc], eax
call fcn.004022a7
push 0x16
mov dword [0x41a6b8], eax
call fcn.004022a7
push 0x17
mov dword [0x41a6b4], eax
call fcn.004022a7
add esp, 0x1c
xor ebx, ebx
mov dword [0x41a6b0], eax
mov dword [0x41a6a8], ebx
mov dword [0x41a6ac], ebx
mov edi, 0x41a744
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404e04
push ebx
lea eax, [ebp - 0x98]
push str.7zSfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0040dede
lea ecx, [ebp - 0xc]
call fcn.0040dede
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e27f
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e27f
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004037cd
cmp dword [esi + 0x41a384], ebx
jne 0x404df4
push dword [esi + 0x41a388]
lea ecx, [ebp - 0x18]
call fcn.0040e27f
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040e27f
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004037cd
add esi, 8
cmp esi, 0x28
jb 0x404dc4
lea ecx, [ebp - 0x18]
call fcn.00411975
inc ebx
cmp ebx, 0x40
jl 0x404d5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406632
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.004065e5
add esp, 0x1c
leave
ret
Function at 0x407fa0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.004069ea
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.00406a07
push 1
inc edi
push edi
mov ecx, esi
call fcn.00406a07
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407050
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00407c6f
mov ecx, esi
mov edi, eax
call fcn.00407667
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40d7db
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d801
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d801
xor al, al
jmp 0x40d821
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00415360
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x414e30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x41a900], ecx
add edx, 1
cmp edx, 0x100
jb 0x414e32
cmp edx, 0x800
jae 0x414f1b
mov edi, edi
mov eax, dword [edx*4 + 0x41a500]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41a900]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x41a8fc], eax
jb 0x414ef0
mov eax, 0x415680
mov dword [0x41a8f4], eax
mov dword [0x41c900], eax
mov dword [0x41a8f0], 0x4155a0
call fcn.00415150
test eax, eax
jne 0x414f47
mov dword [0x41c900], 0x4155a0
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x4012d9
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x728
push ebx
push esi
push edi
push str.:working.directory
push dword [ebp + 8]
call fcn.0040265b
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x401321
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.WinRun4J:IniDir
push dword [ebp + 8]
call fcn.0040265b
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor esi, esi
mov dword [ebp - 8], ebx
inc esi
push esi
push str.:classpath
lea eax, [ebp - 0x110]
push str._s._d
push eax
call fcn.00406c27
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
call fcn.0040265b
mov edi, eax
cmp edi, ebx
je 0x40136c
push 0x104
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x728]
push eax
push edi
call section..text
cmp esi, 0xa
jle 0x401326
cmp edi, ebx
jne 0x401326
cmp dword [ebp - 8], ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
jg 0x401418
mov ebx, 0x40828c
push ebx
call fcn.00404676
mov dword [esp], 0x104
push eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0x318]
push eax
call fcn.004043db
lea eax, [ebp - 0x318]
push eax
push str.Generated_Classpath:__s
call fcn.0040324d
push dword [ebp + 8]
call fcn.00406c18
mov esi, str._Djava.class.path
push esi
mov ebx, eax
call fcn.00406c18
lea eax, [ebx + eax + 2]
push eax
call fcn.00404630
add esp, 0x20
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
push ebx
call edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
pop edi
mov dword [edx + ecx*4], ebx
inc dword [eax]
cmp dword [ebp - 0xc], 0
pop esi
pop ebx
jne 0x401412
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
leave
ret 0xc
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x401421
xor ebx, ebx
jmp 0x40142d
push dword [ebp + 8]
call fcn.00406c18
mov ebx, eax
pop ecx
inc ebx
mov esi, dword [ebp - 4]
lea esi, [ebp + esi*4 - 0x728]
push dword [esi]
inc ebx
call fcn.00406c18
lea eax, [eax + ebx + 1]
push eax
call fcn.00404630
cmp dword [ebp + 8], 0
pop ecx
mov ebx, eax
pop ecx
mov byte [ebx], 0
je 0x40146d
push dword [ebp + 8]
push ebx
call edi
push 0x40825c
push ebx
call edi
push dword [ebp + 8]
call fcn.00404644
pop ecx
push dword [esi]
push ebx
call edi
push dword [esi]
mov dword [ebp + 8], ebx
call fcn.00404644
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
pop ecx
jl 0x401416
jmp 0x40138f

Function at 0x401dfd
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push str.:dde.enabled
push esi
call fcn.0040265b
test eax, eax
je 0x401e5c
push eax
push str.true
call fcn.00406bf5
test eax, eax
pop ecx
pop ecx
jne 0x401e5c
push str.Initializing_DDE
call fcn.0040324d
pop ecx
push esi
push dword [esp + 0x10]
mov dword [0x40c514], esi
call fcn.00401726
test al, al
je 0x401e5c
push 0
push 0
push dword [esp + 0x10]
push 0x401d7a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
jmp 0x401e5e
xor al, al
pop esi
ret 0xc
Function at 0x401f9d
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
xor edx, edx
test eax, eax
jle 0x401fcb
push edi
movsx edi, byte [edx + esi]
add edi, ecx
imul edi, edi, 0x401
mov ecx, edi
shr edi, 6
xor ecx, edi
inc edx
cmp edx, eax
jl 0x401fb2
pop edi
imul ecx, ecx, 9
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
pop esi
ret 4

Function at 0x4027d9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00406e48
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 4], edi
jle 0x40283d
push ebx
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edi*4]
mov dword [ebp + 8], eax
mov eax, dword [esi + 8]
mov ebx, dword [eax + edi*4]
push 0x1000
lea eax, [ebp - 0x1000]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x402826
push ebx
push str.Could_not_expand_variable:__s
call fcn.00403518
pop ecx
pop ecx
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
push esi
call fcn.004023d7
inc edi
cmp edi, dword [esi + 4]
jl 0x4027f3
pop ebx
pop edi
pop esi
leave
ret 4