joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425d83
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x425dce
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00425f1e
test al, al
jne 0x425dc8
sub edx, 2
cmp edx, edi
jne 0x425dae
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x425df0
lea eax, [edi + 2]
cmp edx, eax
je 0x425df0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00425ccf
add esp, 0x10
jmp 0x425eea
push esi
lea ecx, [ebp - 0x255]
call fcn.00425f1e
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x425e33
push dword [ebp - 0x25c]
jmp 0x425de0
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x425e70
cmp word [ebp - 0x226], 0
je 0x425e91
cmp word [ebp - 0x226], ax
jne 0x425e70
cmp word [ebp - 0x224], 0
je 0x425e91
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00425ccf
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x425edd
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x425e4a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x425ec5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x425eea
push 0x425aff
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042c1f0
add esp, 0x10
jmp 0x425eba
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004111b2
leave
ret

Function at 0x428eb0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041ecd2
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x428f1f
cmp esi, dword [ebp - 4]
je 0x428f1a
cmp dword [ebp + 0xc], 0
je 0x428f1a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x428ef7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00428a02
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x428f21
xor eax, eax
inc eax
jmp 0x428f21
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x428f86
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041ecd2
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041ecd2
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x428ffd
cmp word [ecx], dx
je 0x428ffd
mov eax, dword [0x4359c4]
push edi
dec eax
push eax
push 0x4358b0
call fcn.00428f25
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x429070
cmp word [eax], dx
je 0x429070
mov eax, dword [edi]
test eax, eax
je 0x429021
cmp word [eax], dx
je 0x429021
lea eax, [ebp - 0x10]
push eax
call fcn.00428908
jmp 0x42902a
lea eax, [ebp - 0x10]
push eax
call fcn.004289a3
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x42909a
mov eax, dword [0x4358ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4355a0
call fcn.00428f25
add esp, 0xc
test al, al
je 0x42909a
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x429065
cmp word [eax], di
je 0x429065
lea eax, [ebp - 0x10]
push eax
call fcn.00428908
pop ecx
jmp 0x42909c
lea eax, [ebp - 0x10]
push eax
call fcn.004289a3
jmp 0x429062
mov eax, dword [edi]
test eax, eax
je 0x429087
cmp word [eax], dx
je 0x429087
lea eax, [ebp - 0x10]
push eax
call fcn.004288bd
pop ecx
jmp 0x42909a
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x429165
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00428daa
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x429165
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x429165
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x429165
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4290f2
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004210d6
test ebx, ebx
je 0x429160
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004210d6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x429165
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x429165
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042c890
add esp, 0x10
xor eax, eax
inc eax
jmp 0x429167
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004111b2
leave
ret
Function at 0x42cd45
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0042ccc1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42ceb4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42ceb4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42ce69
jg 0x42cda1
test eax, eax
je 0x42ce5f
push 1
push 0x1000
call fcn.00420abe
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42cdc4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42ce56
push 0x8000
push ebx
call fcn.0041ca22
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42cded
jg 0x42cde8
cmp ecx, 0x1000
jb 0x42cded
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042208d
add esp, 0x10
cmp eax, 0xffffffff
je 0x42ce32
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 0x42cde8
jl 0x42ce19
test ecx, ecx
jne 0x42cdda
push dword [ebp - 0xc]
push ebx
call fcn.0041ca22
push esi
call fcn.0041fce5
add esp, 0xc
xor ebx, ebx
jmp 0x42cec2
cmp byte [edi + 0x24], 0
je 0x42ce49
cmp dword [edi + 0x20], 5
jne 0x42ce49
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42ce54
mov ebx, dword [edi + 0x18]
jmp 0x42ce56
xor ebx, ebx
push esi
call fcn.0041fce5
pop ecx
jmp 0x42cec2
test ecx, ecx
jg 0x42ce2b
jl 0x42ce69
test eax, eax
jae 0x42ce2b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423467
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42ce89
cmp byte [edi + 0x1c], 0
je 0x42ce2b
jmp 0x42ceba
push ebx
call fcn.00426e81
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42ce2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x42cec2
cmp byte [edi + 0x1c], 0
je 0x42cebf
mov ebx, dword [edi + 0x18]
jmp 0x42cec2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00423467
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42df30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42df5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42df5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x680c1744
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x680c183d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x680c18a0
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x680c1962
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x680c18d5
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x680c1962
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x680c18ff
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x680c1962
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x680c1946
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x680c1962
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x680c1f40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x680c603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x680c6034]
sub esp, 4
test ebx, ebx
je 0x680c1f8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x680c1f84
test esi, esi
je 0x680c1f84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x680c1f60
mov dword [esp], 0x680c603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x680c2170
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], 0x680c4208
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x680c21c0
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 sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x680c2298
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x680c21fe
cmp eax, 4
jne 0x680c2220
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._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 sym._VirtualProtect_16
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 sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x680c220e
cmp edx, 4
je 0x680c220e
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 sym._VirtualProtect_16
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.680c2170
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x288a42fa
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x1cf613d4
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x845058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008451a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x84507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x84506a
add dl, dl
jne 0x845089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8450dc
xor eax, eax
add dl, dl
jne 0x845096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x84517d
add dl, dl
jne 0x8450a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8450d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x845075
mov eax, 1
add dl, dl
jne 0x8450ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8450e1
sub eax, ebx
mov ebx, 1
jne 0x845128
mov ecx, 1
add dl, dl
jne 0x84510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x845119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x845105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x845075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x84513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x84514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x845136
cmp eax, 0x7d00
jae 0x84516d
cmp eax, 0x500
jb 0x845168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x845075
cmp eax, 0x7f
ja 0x845170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x845075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x84519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x845075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10001e50
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10001e8e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10001e86
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10001e90
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10001e76
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10001f60
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10001f91
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10001f91
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x10001f91
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401a12
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax]
mov eax, dword [ebx]
mov dword [ebp - 4], edi
add edi, 2
mov dword [ebp - 8], eax
lea eax, [edi*4 + 4]
push eax
call sub.jli.dll_JLI_MemAlloc
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov edx, 0x408010
pop ecx
mov dword [ebx], esi
mov ecx, edx
mov edi, 0x408018
mov eax, dword [ecx]
cmp byte [eax], 0x2d
jne 0x401a64
cmp byte [eax + 1], 0x4a
jne 0x401a64
add eax, 2
mov dword [esi], eax
add esi, 4
add ecx, 4
cmp ecx, edi
jl 0x401a4f
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp - 4], ebx
jle 0x401a9c
mov eax, dword [ebp - 8]
mov eax, dword [eax + ecx*4]
cmp byte [eax], 0x2d
jne 0x401a96
cmp byte [eax + 1], 0x4a
jne 0x401a96
add eax, 2
cmp byte [eax], 0
je 0x401b16
mov dword [esi], eax
add esi, 4
inc ecx
cmp ecx, dword [ebp - 4]
jl 0x401a74
mov ecx, edx
mov eax, dword [ecx]
cmp byte [eax], 0x2d
jne 0x401aab
cmp byte [eax + 1], 0x4a
je 0x401ab0
mov dword [esi], eax
add esi, 4
add ecx, 4
cmp ecx, edi
jl 0x401a9e
cmp dword [ebp - 4], ebx
jle 0x401b37
mov eax, dword [ebp - 8]
mov edi, dword [eax + ebx*4]
cmp byte [edi], 0x2d
jne 0x401b2c
mov al, byte [edi + 1]
cmp al, 0x4a
je 0x401b31
cmp al, 0x63
jne 0x401b2c
push 0x405370
push edi
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x401af4
push str._classpath
push edi
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x401b2c
mov eax, dword [ebp - 4]
dec eax
cmp ebx, eax
jge 0x401b2c
mov eax, dword [ebp - 8]
mov dword [esi], edi
push dword [eax + ebx*4 + 4]
add esi, 4
call sub.jli.dll_JLI_WildcardExpandClasspath
mov dword [esi], eax
add esi, 4
pop ecx
inc ebx
jmp 0x401b31
push 1
push str.Error:_the__J_option_should_not_be_followed_by_a_space.
call fcn.0040352d
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCR71.dll_exit]
mov dword [esi], edi
add esi, 4
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x401abc
and dword [esi], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b3f
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]
test eax, eax
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
pop ecx
je 0x401b96
push eax
call sub.jli.dll_JLI_WildcardExpandClasspath
mov edi, eax
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, 0x20
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.00403287
test al, al
pop ecx
pop ecx
jne 0x401bc2
push 1
push str.Cant_determine_application_home
call fcn.0040352d
pop ecx
pop ecx
xor al, al
jmp 0x401c86
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 0x401c12
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 0x401c45
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