joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407690
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push 0x38
pop eax
mov esi, dword [edi + 8]
and esi, 0x3f
mov byte [esi + edi + 0x40], 0x80
inc esi
cmp esi, eax
jbe 0x4076d3
push 0x40
pop ecx
cmp esi, ecx
je 0x4076c4
sub ecx, esi
lea eax, [edi + 0x40]
push ecx
add eax, esi
push 0
push eax
call fcn.00435130
add esp, 0xc
push 1
lea edx, [edi + 0x40]
lea ecx, [edi + 0x20]
call dword [edi]
push 0x38
xor esi, esi
pop eax
sub eax, esi
push eax
lea eax, [edi + 0x40]
add eax, esi
push 0
push eax
call fcn.00435130
mov ecx, dword [edi + 8]
lea esi, [edi + 0x20]
mov eax, dword [edi + 0xc]
lea edx, [edi + 0x40]
shld eax, ecx, 3
add esp, 0xc
shl ecx, 3
bswap ecx
bswap eax
mov dword [edi + 0x7c], ecx
mov ecx, esi
push 1
mov dword [edi + 0x78], eax
call dword [edi]
push 4
pop edx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
lea esi, [esi + 8]
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
bswap ecx
mov dword [ebx - 4], ecx
sub edx, 1
jne 0x40770c
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.004071be

Function at 0x40959a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x455f01], 0
push esi
mov esi, edx
jne 0x4095d2
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.004086ab
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00433c49
pop ecx
test esi, esi
je 0x4095de
mov al, 1
jmp 0x4095e0
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x4095cc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4095e5
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x455f01], 0
jne 0x40961b
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004086ab
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00433c49
pop ecx
test esi, esi
pop esi
je 0x409626
mov al, 1
jmp 0x409628
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x409615
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40962c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x455f01], 0
jne 0x409664
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004086ab
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00433c49
pop ecx
test esi, esi
pop esi
je 0x409671
mov al, 1
jmp 0x409673
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40965e
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x409677
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x44209b
call fcn.00441379
mov edi, ecx
cmp byte [0x455f01], 0
jne 0x4096b6
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004086ab
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00433c49
pop ecx
test esi, esi
je 0x4096c4
mov al, 1
jmp 0x40970a
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x4096b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4096d5
xor al, al
jmp 0x40970a
lea ecx, [ebp - 0x50]
call fcn.00409fd0
lea ecx, [ebp - 0x28]
call fcn.00408101
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040a396
test al, al
je 0x4096ff
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00433c49
pop ecx
mov al, bl
call fcn.00441342
ret

Function at 0x409873
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040a34f
cmp eax, 0xffffffff
je 0x4098a0
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x4098a0
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.0040959a
test al, al
je 0x4098d9
cmp byte [0x455f01], 0
jne 0x4098ce
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.004086ab
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00433c49
pop ecx
test esi, esi
je 0x4098d9
mov al, 1
jmp 0x4098db
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x4098c8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409abe
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x455f01], 0
jne 0x409af3
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004086ab
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00433c49
test esi, esi
pop ecx
setne al
pop esi
jmp 0x409b00
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x40a34f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x455f01], 0
jne 0x40a381
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004086ab
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00433c49
pop ecx
mov eax, esi
pop esi
jmp 0x40a392
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x40a9d9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40aa03
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40aa03
xor al, al
jmp 0x40aa17
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40d8e7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
lea eax, [esp + 8]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x14]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
xor ebx, ebx
test eax, eax
je 0x40d92f
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40d92f
push 0x20
mov edx, ebx
pop edi
mov eax, ecx
shr ecx, 1
and eax, 1
add edx, eax
sub edi, 1
jne 0x40d91f
jmp 0x40d93e
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x30]
mov eax, 0x40000000
mov dword [esi], edx
lea ecx, [esp + 0x10]
mov dword [esi + 4], edx
mov byte [esi + 8], bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
call fcn.0040b62b
mov byte [esi + 9], al
test al, al
je 0x40d9bb
mov edi, dword [esp + 0x14]
mov eax, 0x70000000
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
test edi, edi
jne 0x40d990
cmp ebx, eax
jbe 0x40d994
mov ebx, eax
xor edi, edi
push ecx
push ecx
push edi
push ebx
call fcn.0040d896
shrd ebx, edi, 5
push 0
push 0x11
shr edi, 5
push edi
push ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.00441650
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411bca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
xor ebx, ebx
push dword [ebp + 8]
mov byte [eax], bl
lea ecx, [esi - 4]
call fcn.00411846
mov edi, ebx
cmp dword [esi + 0x78], ebx
jbe 0x411c5e
cmp edi, dword [esi + 0x60]
je 0x411c58
mov eax, dword [esi + 0x74]
mov eax, dword [eax + edi*4]
mov dword [ebp + 0xc], eax
lea ecx, [eax + 4]
call fcn.00407816
mov ecx, eax
test ecx, ecx
jne 0x411cd6
mov ecx, dword [ebp + 0xc]
add ecx, 8
call fcn.00407816
mov ecx, eax
test ecx, ecx
jne 0x411cd6
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x10], bl
cmp dword [eax + 0xc], ebx
jne 0x411c58
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push 0x4138e8
push ebx
push ebx
call fcn.00439a05
mov ecx, dword [ebp + 0xc]
add esp, 0x18
mov dword [ecx + 0xc], eax
test eax, eax
jne 0x411c58
call fcn.0040772f
mov ecx, eax
test ecx, ecx
jne 0x411cd6
inc edi
cmp edi, dword [esi + 0x78]
jb 0x411bee
mov edi, ebx
cmp dword [esi + 0x78], ebx
jbe 0x411c87
cmp edi, dword [esi + 0x60]
je 0x411c81
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + edi*4]
mov byte [ecx + 0x10], bl
add ecx, 4
call fcn.0040777d
mov ecx, eax
test ecx, ecx
jne 0x411cd6
inc edi
cmp edi, dword [esi + 0x78]
jb 0x411c65
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x74]
push dword [ebp + 0x10]
mov ecx, dword [ecx + eax*4]
call fcn.00411461
mov edi, ebx
cmp dword [esi + 0x78], ebx
jbe 0x411ce8
cmp ebx, dword [esi + 0x60]
je 0x411cb7
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 8]
call fcn.00407761
test edi, edi
cmove edi, eax
inc ebx
cmp ebx, dword [esi + 0x78]
jb 0x411c9f
push 0
pop ebx
test edi, edi
je 0x411ce8
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
jmp 0x411d92
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x411d92
push 0x80004004
lea ecx, [esi - 4]
call fcn.00411b9a
test eax, eax
jne 0x411d92
push 0x8007000e
lea ecx, [esi - 4]
call fcn.00411b9a
test eax, eax
jne 0x411d92
mov edi, dword [esi + 0x78]
mov ecx, ebx
test edi, edi
je 0x411d42
mov edx, dword [esi + 0x74]
mov eax, dword [edx]
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x411d3a
cmp eax, 0x20000010
je 0x411d3a
cmp eax, 1
je 0x411d3a
cmp eax, 0x80004005
jne 0x411d92
inc ecx
add edx, 4
cmp ecx, edi
jb 0x411d1e
push 1
lea ecx, [esi - 4]
call fcn.00411b9a
test eax, eax
jne 0x411d92
mov ecx, ebx
test edi, edi
je 0x411d90
mov edx, dword [esi + 0x74]
mov eax, dword [edx]
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x411d69
cmp eax, 0x20000010
jne 0x411d92
inc ecx
add edx, 4
cmp ecx, edi
jb 0x411d59
test edi, edi
je 0x411d90
mov eax, dword [esi + 0x74]
push dword [ebp + 0x14]
mov ecx, dword [eax + ebx*4]
add ecx, 0x18
call fcn.00410fbf
test eax, eax
jne 0x411d92
inc ebx
cmp ebx, dword [esi + 0x78]
jb 0x411d75
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x419123
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442b62
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x451008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xcc]
call fcn.00433c49
push dword [esi + 0xc0]
call fcn.00433c49
push dword [esi + 0x9c]
call fcn.00433c49
push dword [esi + 0x90]
call fcn.00433c49
push dword [esi + 0x30]
call fcn.00433c49
push dword [esi + 0x24]
call fcn.00433c49
push dword [esi + 0x18]
call fcn.00433c49
add esp, 0x1c
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4191a0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 1
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4191b4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4191c8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 3
mov ecx, dword [esi]
test ecx, ecx
je 0x4191db
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41a49f
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x4421fd
call fcn.00441379
mov edi, ecx
push dword [ebp + 8]
lea ecx, [edi + 0x74]
call fcn.00408247
push ecx
push 0x61
lea ecx, [edi + 0x68]
call fcn.004092be
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
call fcn.00407761
mov ecx, esi
call fcn.00407740
mov edx, 0xce4
lea ecx, [ebp - 0x18]
call fcn.004195d8
and dword [ebp - 4], 0
lea ecx, [edi + 0x6c]
push dword [eax]
call fcn.004196a9
push dword [ebp - 0x18]
call fcn.00433c49
pop ecx
push 1
push dword [edi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.00441342
ret 8
Function at 0x41b3d5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x451008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
mov dword [ebp - 0x214], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push ebx
push eax
call fcn.00435130
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41b4a9
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41b466
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41b478
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add ecx, ebx
mov dword [esi], ecx
adc eax, 0
mov dword [esi + 4], eax
push dword [esi]
and dword [ebp - 0x218], 0
call fcn.00433d84
pop ecx
mov ecx, dword [ebp - 0x214]
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x218]
push ecx
push dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00433c38
mov esp, ebp
pop ebp
ret
Function at 0x404a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x42b010]
push edi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x18d0406
nop
push eax
call 0x77f1296e
nop
mov ebx, eax
push 0x4349f0
mov dword [ebp - 4], ebx
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
mov byte [ebx + edi], 0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x404b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x6ff643d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x4349f0
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x404b06
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
push 0x4349f0
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x18d040b
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0x406f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
call 0x6ff59910
nop
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0x406fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x406fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0x406f91
mov ecx, dword [ebx]
push edi
push 0xf8
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
call 0x6ff59910
nop
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0x406fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0x406fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0x406fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.006390f4]
push eax
call dword [fcn.00639088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x406f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.00407590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x401a0b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
mov esi, dword [ebx]
push edi
mov edi, eax
mov eax, dword [edi]
mov dword [ebp - 4], esi
add esi, 2
mov dword [ebp - 8], eax
lea eax, [esi*4 + 4]
push eax
call sub.jli.dll_JLI_MemAlloc
pop ecx
mov dword [ebx], esi
mov esi, 0x408010
push 4
mov dword [edi], eax
mov edx, esi
pop ebx
mov edi, 0x408018
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x401a59
cmp byte [ecx + 1], 0x4a
jne 0x401a59
add ecx, 2
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, edi
jl 0x401a45
xor edx, edx
cmp dword [ebp - 4], edx
jle 0x401a89
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + edx*4]
cmp byte [ecx], 0x2d
jne 0x401a83
cmp byte [ecx + 1], 0x4a
jne 0x401a83
add ecx, 2
cmp byte [ecx], 0
je 0x401acc
mov dword [eax], ecx
add eax, ebx
inc edx
cmp edx, dword [ebp - 4]
jl 0x401a66
mov edx, esi
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x401a98
cmp byte [ecx + 1], 0x4a
je 0x401a9c
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, edi
jl 0x401a8b
xor edx, edx
cmp dword [ebp - 4], edx
jle 0x401ac4
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + edx*4]
cmp byte [ecx], 0x2d
jne 0x401aba
cmp byte [ecx + 1], 0x4a
je 0x401abe
mov dword [eax], ecx
add eax, ebx
inc edx
cmp edx, dword [ebp - 4]
jl 0x401aa9
and dword [eax], 0
pop edi
pop esi
pop ebx
leave
ret
push 1
push str.Error:_the__J_option_should_not_be_followed_by_a_space.
call fcn.004034c6
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCR71.dll_exit]
int3
Function at 0x401ae3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push str.CLASSPATH
mov byte [ebp - 4], 0x3b
mov byte [ebp - 3], 0
call dword [sym.imp.MSVCR71.dll_getenv]
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
mov edi, eax
test edi, edi
pop ecx
je 0x401b34
push edi
call sub.MSVCR71.dll_strlen
add eax, 0x28
push eax
call sub.jli.dll_JLI_MemAlloc
push edi
mov ebx, eax
push str._Denv.class.path_s
push ebx
call esi
push 0
push ebx
call fcn.004010bd
add esp, 0x1c
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00403220
test al, al
pop ecx
pop ecx
jne 0x401b60
push 1
push str.Cant_determine_application_home
call fcn.004034c6
pop ecx
pop ecx
xor al, al
jmp 0x401c24
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR71.dll_strlen
add eax, 0x28
push eax
call sub.jli.dll_JLI_MemAlloc
mov edi, eax
lea eax, [ebp - 0x110]
push eax
push str._Dapplication.home_s
push edi
call esi
push 0
push edi
call fcn.004010bd
push 0x28
lea eax, [ebp - 0x110]
pop esi
push eax
call sub.MSVCR71.dll_strlen
mov edi, 0x408018
add esp, 0x20
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
mov ebx, 0x408020
mov eax, dword [ebp - 8]
push dword [eax]
call sub.MSVCR71.dll_strlen
add eax, dword [ebp - 0xc]
add dword [ebp - 8], 4
cmp dword [ebp - 8], ebx
pop ecx
lea esi, [esi + eax + 1]
jl 0x401bb0
inc esi
push esi
call sub.jli.dll_JLI_MemAlloc
mov esi, eax
mov dword [esp], str._Djava.class.path
push esi
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
push esi
call sub.MSVCR71.dll_strcat
push dword [edi]
push esi
call sub.MSVCR71.dll_strcat
lea eax, [ebp - 4]
push eax
push esi
call sub.MSVCR71.dll_strcat
add edi, 4
add esp, 0x18
cmp edi, ebx
jl 0x401be3
push esi
call sub.MSVCR71.dll_strlen
push 0
push esi
mov byte [eax + esi - 1], 0
call fcn.004010bd
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401e44
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x1a4]
push eax
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
push str._Xusage.txt
lea eax, [ebp - 0x1a4]
push 0x5c
push eax
call dword [sym.imp.MSVCR71.dll_strrchr]
pop ecx
pop ecx
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp - 0x1a4]
push 0x405f78
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x401eb9
lea eax, [ebp - 0x1a4]
push eax
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push str.Cant_open__s_n
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
xor eax, eax
add esp, 0xc
inc eax
jmp 0x401f09
push esi
mov esi, dword [sym.imp.MSVCR71.dll_fread]
push edi
push ebx
mov edi, 0x80
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
jmp 0x401ef9
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
test eax, eax
jne 0x401ed5
push ebx
call dword [sym.imp.MSVCR71.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x45e801
Capabilities:
Check for software breakpoints

Disassembly:
imul ecx, dword [edi], 5
invalid
js 0x45e703
mov dh, 0x18
sub eax, 0x69080d43
or eax, 0xfa1068c
or eax, 0xda6751d3
sub ecx, dword [eax]
mov es, word ss:[0xaf3c8b58]
inc edx
invalid
dec esi
mov esi, 0x2da8b4a
pop eax
cmc
inc esi
cmp al, 0x2d
pop ds
not byte [ebp + 9]
hlt
scasb al, byte es:[edi]
cmp ebp, dword [edi]
add al, 0xd3
test dword [ebp + 0x5b2ed74d], 0x6171e8f
in al, 0xf9
or esp, edx
jne 0x45e7ce
salc
mov dword [0xfd9c9330], eax
cmp al, 0xcc
clc
movsd dword es:[edi], dword [esi]
mov ah, 0x69
jmp 0xbe137331
jl 0x45e82b
mov ah, 0xf3
mov ecx, 0x49237936
push ebp
mov esi, gs
test byte [edi + 0x63817834], 0x78
pushfd
js 0x45e751
arpl word [eax - 0x64], di
or ecx, dword [ebp - 0x38]
jle 0x45e796
sahf
stc
sub edi, dword [ecx - 0x73f42346]
push ds
xchg edi, eax
and ebp, edx
and ebp, eax
loop 0x45e825
cmpsb byte [esi], byte es:[edi]
push 0x55
clc
sub byte [ecx], 0x5e
xor dword [ebx], ebx
or byte [ebx - 0x50], bh
jmp 0x45e784
mov ecx, 0x6f9b8485
pop edx
mov bl, 8
sti
sbb byte [esp + eax - 0x7906cac2], cl
jmp 0x45e7bf
mov ebp, edx
sub dword [eax - 0x54], eax
insb byte es:[edi], dx
invalid

Function at 0x4d4404
Capabilities:
Encode data using xor

Disassembly:
xchg ebp, eax
add byte [ecx - 0x353fdfaf], al
mov al, 0x88

Function at 0x4d6a54
Capabilities:
Encode data using xor

Disassembly:
push edi
insb byte es:[edi], dx
out dx, eax
in eax, dx
push cs
xor eax, 0x447fdcb6
invalid

Function at 0x51f374
Capabilities:
Encode data using xor

Disassembly:
and cl, dl
mov dword ss:[0xe4c43473], eax
scasd eax, dword es:[edi]
sbb dword [eax - 0x269e2dcf], eax
invalid
Function at 0x659d8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6633a8
cmp edx, dword [eax]
je 0x659daf
add eax, 8
inc ecx
cmp eax, 0x663438
jl 0x659da0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6633a8]
jne 0x659edd
mov eax, dword [0xa60104]
cmp eax, 1
je 0x659eb7
test eax, eax
jne 0x659de0
cmp dword [0x6632d4], 1
je 0x659eb7
cmp edx, 0xfc
je 0x659edd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659e17
lea eax, [ebp - 0x1a4]
push 0x65fc40
push eax
call fcn.0065a770
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065ac00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x659e5a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065ac00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65fc3c
push edi
call fcn.0065cad0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65fc20
push eax
call fcn.0065a770
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a780
lea eax, [ebp - 0xa0]
push 0x65fc1c
push eax
call fcn.0065a780
push dword [esi + 0x6633ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a780
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65fbf4
push eax
call fcn.0065ca44
add esp, 0x2c
pop edi
jmp 0x659edd
lea eax, [ebp + 8]
lea esi, [esi + 0x6633ac]
push 0
push eax
push dword [esi]
call fcn.0065ac00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret