joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412250
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
push esi
mov esi, dword [esp + 0x68]
mov ebp, esi
shr ebx, 4
and ebp, 0xf
test eax, eax
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x70], ebx
je 0x4122e5
mov ecx, 0x13
mov eax, 0x20202020
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, 0x64
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], al
mov cl, 0x2a
mov edi, ebp
lea eax, [esp + ebp + 0x22]
mov byte [esp + 0x18], cl
lea eax, [eax + ebp*2]
mov byte [esp + 0x66], 0
mov byte [esp + 0x1a], 0x3d
mov byte [esp + 0x1c], 0x61
mov byte [esp + 0x1f], 0x72
shr edi, 2
add eax, edi
mov byte [eax], cl
mov byte [eax + 1], cl
mov byte [esp + ebp + 0x56], cl
lea ecx, [esp + 0x18]
push ecx
push 0x42bb50
push edx
call dword [esp + 0x1c]
add esp, 0xc
test ebp, ebp
je 0x4122e5
sub esi, ebp
inc ebx
mov dword [esp + 0x70], ebx
test ebx, ebx
jbe 0x412430
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
lea edx, [esp + 0x1c]
push str._08X:
push edx
call ebx
add esp, 0xc
push 0x10
push esi
lea edi, [esp + eax + 0x20]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x412409
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 1]
push eax
movzx eax, byte [esi]
push ecx
push edx
push eax
push str._02X__02X__02X__02X
push edi
call ebx
movzx ecx, byte [esi + 7]
movzx edx, byte [esi + 6]
push ecx
movzx ecx, byte [esi + 4]
add edi, eax
movzx eax, byte [esi + 5]
push edx
push eax
push ecx
push str._02X__02X__02X__02X
push edi
call ebx
movzx edx, byte [esi + 0xb]
movzx ecx, byte [esi + 9]
push edx
movzx edx, byte [esi + 8]
add edi, eax
movzx eax, byte [esi + 0xa]
push eax
push ecx
push edx
push str._02X__02X__02X__02X
push edi
call ebx
movzx ecx, byte [esi + 0xe]
movzx edx, byte [esi + 0xd]
add edi, eax
movzx eax, byte [esi + 0xf]
add esp, 0x48
push eax
movzx eax, byte [esi + 0xc]
push ecx
push edx
push eax
push str._02X__02X__02X__02X
push edi
call ebx
add edi, eax
mov eax, edi
add esp, 0x18
sub eax, esi
mov ebp, esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], 0x10
movzx ecx, byte [ebp]
push ecx
call dword [sym.imp.MSVCRT.dll_isprint]
add esp, 4
test eax, eax
je 0x4123be
mov al, byte [ebp]
jmp 0x4123c0
mov al, 0x2e
mov edx, dword [esp + 0x74]
mov byte [edx + ebp], al
mov eax, dword [esp + 0x6c]
inc ebp
dec eax
mov dword [esp + 0x6c], eax
jne 0x4123a7
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x42bb50
push ecx
mov byte [edi + 0x10], 0
call dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
add esp, 0xc
add esi, 0x10
dec eax
mov dword [esp + 0x70], eax
jne 0x4122f3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
mov eax, str._cant_read_from_this_address_
sub edi, eax
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x412410
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x42bb50
push eax
call dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
Function at 0x412ad0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
push ebp
mov ebx, edx
push str._unknown_
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0x1c
lea edx, [esp + 0x14]
push edx
mov dword [eax], 0
push esi
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412bba
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x412b27
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412b4b
push ebp
push str._unknown_
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
test edi, edi
je 0x412bba
cmp word [edi], 0x5a4d
jne 0x412bba
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x412bba
mov ecx, dword [eax + edi]
add eax, edi
cmp ecx, 0x4550
jne 0x412bba
movzx ebp, word [eax + 6]
movzx ecx, word [eax + 0x14]
sub esi, edi
xor ebx, ebx
test ebp, ebp
lea ecx, [ecx + eax + 0x18]
jbe 0x412bba
lea eax, [ecx + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax - 8]
cmp ecx, edx
mov edi, dword [eax - 4]
ja 0x412b8f
mov ecx, edx
cmp esi, edi
jb 0x412b99
add ecx, edi
cmp esi, ecx
jbe 0x412bab
inc ebx
add eax, 0x28
cmp ebx, ebp
jb 0x412b81
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
inc ebx
sub esi, edi
mov dword [edx], ebx
mov dword [eax], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc

Function at 0x412c90
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push 0x433e30
mov esi, edx
mov edi, ecx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x412d04
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
push ebx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
push 0x412d20
push ebx
push ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x412d04
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x1c]
push 0x433e30
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret 8
Function at 0x412e90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov esi, ecx
je 0x412ea1
mov eax, dword [edi]
mov bl, byte [esp + 0x14]
test bl, 1
je 0x412ead
or eax, 0xffffffff
test bl, 2
je 0x412ede
test edx, edx
mov ecx, esi
je 0x412ede
push ebp
lea esp, [esp]
movzx ebp, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, ebp
mov esi, dword [esi*4 + 0x42c440]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x412ec0
pop ebp
test bl, 4
je 0x412ee5
not eax
test edi, edi
je 0x412eeb
mov dword [edi], eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x421000
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, dword [esp + 0x220]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push 0
push ebp
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
mov eax, dword [esp + 0x224]
mov ecx, eax
and ecx, 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
je 0x421050
test edx, edx
jne 0x421050
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
test al, 0x64
mov esi, dword [esp + 0x228]
je 0x4210fe
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebx]
push 0
push 0
push eax
push ebp
call edi
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x20
push esi
push ebp
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x18]
mov eax, 0x20
cmp ecx, eax
jne 0x4210bb
cmp dword [esi], 0x1a51504d
jne 0x4210a7
test byte [esp + 0x224], 0x40
je 0x4210db
add dword [ebx], 0x200
cmp dword [esi], 0x1a51504d
je 0x4210bb
sub dword [esp + 0x14], eax
jne 0x421065
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4210fe
push 0x85200064
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
cmp word [esi + 0xc], 0
jbe 0x421196
push 0x85200065
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret
mov edx, dword [esp + 0x230]
test edx, edx
je 0x421174
xor eax, eax
mov byte [esp + 0x1c], 0
mov ecx, 0x7f
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [edx + 0x1ff]
and eax, 0xfffffe00
mov edi, eax
shr edi, 9
test edi, edi
mov dword [esp + 0x230], eax
je 0x421172
lea esp, [esp]
push 0
lea edx, [esp + 0x14]
push edx
push 0x200
lea eax, [esp + 0x28]
push eax
push ebp
dec edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4211a6
cmp dword [esp + 0x10], 0x200
jne 0x4211a6
test edi, edi
jne 0x421140
mov eax, dword [esp + 0x230]
mov dword [ebx], eax
xor eax, eax
mov ecx, 8
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esi], 0x1a51504d
mov dword [esi + 4], 0x20
mov word [esi + 0xe], 3
mov word [esi + 0xc], ax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
push 0x85200068
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret

Function at 0x421910
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x114]
mov ecx, dword [esi + 8]
push edi
mov edi, dword [esp + 0x10]
mov edx, dword [edi]
push 0
push 0
add eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x421954
pop edi
pop esi
ret
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edx
pop edi
sete al
pop esi
ret
Function at 0x421cc0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x114]
mov ecx, dword [esi + 8]
push edi
mov edi, dword [esp + 0x10]
mov edx, dword [edi]
push 0
push 0
add eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x421d04
pop edi
pop esi
ret
mov edx, dword [edi + 4]
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edx
pop edi
sete al
pop esi
ret
Function at 0x422b20
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx + 0x120]
push ebp
push esi
push edi
push 0
push 0x290
push str.C:SrcToolsMoPaq_srcMPQAPI.cpp
push eax
call fcn.004089f0
mov ecx, dword [ebx + 0x120]
mov esi, dword [ebx + 0x128]
mov edx, ecx
mov ebp, eax
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x11c]
push eax
push ebp
call fcn.00422bd0
mov ecx, dword [ebx + 0x11c]
shl ecx, 4
push 3
push str._block_table_
mov dword [esp + 0x24], ecx
call fcn.00423170
mov edx, dword [esp + 0x24]
push eax
push edx
push ebp
call fcn.00423110
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx + 8]
add esp, 0x1c
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0x29e
push str.C:SrcToolsMoPaq_srcMPQAPI.cpp
push ebp
mov esi, eax
call fcn.00409b80
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x422c10
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push 3
push str._hash_table_
lea edi, [esi + 0x130]
call fcn.00423170
mov ecx, dword [esi + 0x138]
push eax
mov eax, dword [edi]
push eax
push ecx
call fcn.00423110
mov edx, dword [edi]
mov eax, dword [esi + 0x138]
mov ecx, dword [esi + 8]
add esp, 0x14
push 0
push edi
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
ret

Function at 0x422c60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 8]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x124]
mov edx, dword [esi + 0x14c]
mov eax, dword [esi + 0x134]
push 0
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x12c]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x11c]
mov dword [esp + 0x24], edx
push 0x20
lea edx, [esp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 8]
push edx
push eax
mov dword [esp + 0x18], 0x1a51504d
mov dword [esp + 0x1c], 0x20
mov word [esp + 0x24], 0
mov word [esp + 0x26], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
add esp, 0x20
ret

Function at 0x4230b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push edi
mov edi, dword [esp + 0xc]
shr edi, 2
test edi, edi
mov ecx, 0xeeeeeeee
je 0x42310b
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
push ebx
push esi
nop
lea esp, [esp]
mov esi, eax
and esi, 0xff
add ecx, dword [esi*4 + 0x43c4b0]
mov ebx, dword [edx]
lea esi, [ecx + eax]
imul ecx, ecx, 0x21
xor ebx, esi
mov esi, ebx
lea ecx, [ecx + esi + 3]
mov esi, eax
not esi
shl esi, 0x15
add esi, 0x11111111
shr eax, 0xb
mov dword [edx], ebx
add edx, 4
or eax, esi
dec edi
jne 0x4230d0
pop esi
pop ebx
pop edi
ret
Function at 0x423110
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push edi
mov edi, dword [esp + 0xc]
shr edi, 2
test edi, edi
mov ecx, 0xeeeeeeee
je 0x423169
mov eax, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
nop
lea esp, [esp]
mov edx, dword [esi]
mov ebx, eax
and ebx, 0xff
add ecx, dword [ebx*4 + 0x43c4b0]
lea ebx, [ecx + eax]
imul ecx, ecx, 0x21
xor ebx, edx
lea ecx, [ecx + edx + 3]
mov edx, eax
not edx
shl edx, 0x15
add edx, 0x11111111
shr eax, 0xb
mov dword [esi], ebx
add esi, 4
or eax, edx
dec edi
jne 0x423130
pop esi
pop ebx
pop edi
ret

Function at 0x4233a0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x423eb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
je 0x423ebd
mov eax, dword [esi]
push ebx
mov bl, byte [esp + 0x18]
test bl, 1
je 0x423eca
or eax, 0xffffffff
test bl, 2
je 0x423eff
mov edx, dword [esp + 0x10]
test edx, edx
mov ecx, dword [esp + 0xc]
je 0x423eff
push ebp
push edi
lea ecx, [ecx]
movzx ebp, byte [ecx]
mov edi, eax
and edi, 0xff
xor edi, ebp
mov edi, dword [edi*4 + 0x42e9c8]
shr eax, 8
xor eax, edi
inc ecx
dec edx
jne 0x423ee0
pop edi
pop ebp
test bl, 4
pop ebx
je 0x423f07
not eax
test esi, esi
je 0x423f0d
mov dword [esi], eax
pop esi
ret
Function at 0x424370
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
push 0x104
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, al
je 0x42439d
cmp byte [esp + 0x11], 0x3a
je 0x4243ad
lea edx, [esp + 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x27], 0
mov dword [esp + 0x14], 0x200
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp]
add esp, 0x114
ret

Function at 0x4246d0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
jne 0x4246e4
push 0x57
call fcn.0040bec0
xor eax, eax
pop ebp
ret
call fcn.004244c0
test eax, eax
je 0x4246fb
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop ebp
ret
push esi
push edi
xor edi, edi
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x424757
mov eax, dword [0x43c8c0]
mov edx, dword [0x43c8c4]
push ebx
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
push edx
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424744
cmp ebx, dword [esp + 0x14]
jne 0x424744
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop ebx
jne 0x424757
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x424b40
Capabilities:
Check if file exists

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push ebx
push edi
push esi
lea eax, [ebp + 4]
push eax
push ecx
push edx
call fcn.00410c60
test eax, eax
jne 0x424bb5
push ebx
mov ebx, dword [esp + 0x1c]
push edi
push esi
push ebp
mov ebp, dword [esp + 0x24]
push ebx
push ebp
call fcn.00410c60
test eax, eax
jne 0x424bb5
test edi, edi
je 0x424b8f
test esi, esi
je 0x424b8f
mov byte [esi], al
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x424ba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x424bae
push 0
push ebx
push ebp
call fcn.00424a90
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x424bc0
Capabilities:
Check if file exists

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push edi
push esi
lea eax, [ebx + 4]
push eax
push ebp
push ecx
call fcn.00410df0
test eax, eax
jne 0x424c2b
push edi
push esi
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push ebx
call fcn.00410df0
test eax, eax
jne 0x424c2b
test edi, edi
je 0x424c05
test esi, esi
je 0x424c05
mov byte [esi], al
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x424c18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x424c24
push 0
push ebp
push ebx
call fcn.00424a90
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x424c40
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
push esi
lea eax, [ebp + 4]
push eax
push edi
push ebx
call fcn.00410ea0
test eax, eax
jne 0x424c9d
push esi
push ebp
push edi
push ebx
call fcn.00410ea0
test eax, eax
jne 0x424c9d
test esi, esi
je 0x424c77
mov dword [esi], eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x424c8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x424c96
push 0
push edi
push ebx
call fcn.00424a90
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x401029
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push ebp
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call fcn.0040a80a
xor ebp, ebp
pop ecx
test eax, eax
je 0x401076
push str.Windows_original_main_args:_n
call fcn.00401104
pop ecx
mov esi, ebp
call fcn.0040e687
cmp dword [eax], ebp
jle 0x401076
call fcn.0040e68d
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00401104
add esp, 0xc
inc esi
call fcn.0040e687
cmp esi, dword [eax]
jl 0x401054
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
call fcn.0040120f
call fcn.00401277
mov ebx, eax
lea ecx, [ebx*4 + 4]
push ecx
call fcn.00401127
pop ecx
pop ecx
mov esi, eax
call fcn.0040127d
mov edx, ebp
test ebx, ebx
jle 0x4010b0
mov ecx, dword [eax + edx*8]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, ebx
jl 0x4010a5
mov edi, dword [0x431004]
mov dword [esi + edx*4], ebp
test edi, edi
jne 0x4010bf
mov edi, dword [esi]
mov edx, dword [section..data]
test edx, edx
jne 0x4010cb
mov edx, dword [esi]
mov ecx, dword [0x431990]
test ecx, ecx
push ebp
push ebp
push 1
setne al
movzx eax, al
push eax
push edi
push edx
push 0x42526c
push 0x425270
push dword [0x431994]
push 1
push ecx
push 1
push esi
push ebx
call fcn.00401d57
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4042f7
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push ebp
call fcn.0040a80a
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jl 0x40446a
jg 0x404326
test esi, esi
jb 0x40446a
mov edi, dword [esp + 0x20]
push 0x16
push edi
push ebp
call fcn.00417558
add esp, 0xc
test eax, eax
js 0x40446a
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x404388
push edi
call fcn.00404879
pop ecx
test eax, eax
je 0x40437f
push ebx
push esi
push edi
push ebp
call fcn.0040a80a
add esp, 0x10
mov esi, eax
mov ebx, edx
mov eax, esi
mov edx, ebx
jmp 0x40446f
push 2
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.0040a80a
mov ebp, eax
add esp, 0x10
mov eax, edx
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x40446a
jg 0x4043b1
cmp ebp, ebx
jb 0x40446a
mov ecx, 0x10015
cmp eax, ebx
jg 0x4043c6
jl 0x4043c0
cmp ebp, ecx
jae 0x4043c6
mov esi, ebp
mov ecx, eax
jmp 0x4043ca
mov esi, ecx
mov ecx, ebx
mov eax, esi
neg eax
push 2
adc ecx, ebx
neg ecx
push ecx
push eax
push dword [esp + 0x28]
call fcn.0040a80a
add esp, 0x10
cmp edx, ebx
jl 0x40446a
jg 0x4043f0
cmp eax, ebx
jb 0x40446a
push 0x10015
call fcn.0040a80a
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40446a
push esi
push ebx
push dword [esp + 0x24]
call fcn.00417558
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
js 0x404463
lea edx, [ebx + eax]
lea esi, [edx - 0x16]
jmp 0x40445f
cmp byte [esi], 0x50
jne 0x40445e
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x40445e
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
lea eax, [esi + 0x16]
add eax, ecx
cmp eax, edx
je 0x404476
dec esi
cmp esi, ebx
jae 0x40441f
push ebx
call fcn.0040a80a
pop ecx
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push 0x16
push esi
push edi
call fcn.0040a130
push ebx
call fcn.0040a80a
mov eax, dword [esp + 0x20]
add eax, ebx
sub eax, esi
mov esi, dword [esp + 0x24]
cdq
sub ebp, eax
push edi
sbb esi, edx
call fcn.00404879
add esp, 0x14
test eax, eax
je 0x4044b6
push esi
push ebp
push edi
push dword [esp + 0x28]
call fcn.0040a80a
add esp, 0x10
mov ebp, eax
mov esi, edx
mov eax, ebp
mov edx, esi
jmp 0x40446f