joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50725d52
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.50726d91
mov eax, dword [0x5072b9e0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x50725eb4
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x5072b8e0]
test byte [edx + ecx*8 + 4], 1
je 0x50725eb4
push 1
push ebp
push ebx
call fcn.507242e5
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x50725ebe
push 2
push ebp
push ebx
call fcn.507242e5
add esp, 0xc
cmp eax, 0xffffffff
je 0x50725ebe
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x50725e5a
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.50726d13
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x50725e01
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.50726af5
add esp, 0xc
cmp eax, 0xffffffff
je 0x50725e1d
sub esi, eax
test esi, esi
jg 0x50725df2
jmp 0x50725e33
cmp dword [0x5072b600], 5
jne 0x50725e30
mov dword [0x5072b5fc], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.50726d13
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.507242e5
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x50725e9b
push 0
push ecx
push ebx
call fcn.507242e5
add esp, 0xc
push ebx
call fcn.50725aee
add esp, 4
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x50725e9b
mov dword [0x5072b5fc], 0xd
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x5072b600], eax
push 0
push edi
push ebx
call fcn.507242e5
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x5072b5fc], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x50726537
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x5072b860]
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x50726579
call edi
mov esi, eax
test esi, esi
je 0x50726563
mov eax, 1
jmp 0x50726574
call ebp
mov ebx, eax
test ebx, ebx
je 0x50726686
mov eax, 2
mov dword [0x5072b860], eax
cmp eax, 1
jne 0x50726619
test esi, esi
jne 0x50726592
call edi
mov esi, eax
test esi, esi
je 0x50726686
cmp word [esi], 0
mov eax, esi
je 0x507265ac
add eax, 2
cmp word [eax], 0
jne 0x5072659a
add eax, 2
cmp word [eax], 0
jne 0x5072659a
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x5072660b
push edi
call fcn.507240fc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5072660b
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
jne 0x507265fd
push ebx
call fcn.507240b2
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x50726686
test ebx, ebx
jne 0x5072662a
call ebp
mov ebx, eax
test ebx, ebx
je 0x50726686
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x50726642
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x50726632
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x50726632
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.507240fc
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x50726664
push ebx
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x507266d4
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x5072b520
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x507266f8
add eax, 8
inc ebp
cmp eax, 0x5072b5b0
jb 0x507266e9
cmp ecx, dword [ebp*8 + 0x5072b520]
jne 0x5072689f
mov eax, dword [0x5072b5c8]
cmp eax, 1
je 0x50726861
test eax, eax
jne 0x50726724
cmp dword [0x5072b5cc], 1
je 0x50726861
cmp ecx, 0xfc
je 0x5072689f
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5072675f
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x507267a8
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x507273ec
add ebx, ecx
push ebx
call fcn.50724771
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x507273ca
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + str.srP_b]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.50726dc0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x5072b8e0]
test eax, eax
je 0x50726872
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x5072687c
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + str.srP_b]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x50726af5
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x5072b9e0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x50726ca2
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x5072b8e0]
lea edi, [ecx*4 + 0x5072b8e0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x50726ca2
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x50726b63
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x50726b74
push 2
push ebp
push eax
call fcn.507242e5
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x50726cd3
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x50726c1e
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x50726bcf
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x50726bbc
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x50726b9f
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x50726cc4
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x50726c1a
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x50726b9b
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x50726c93
mov eax, dword [esp + 0x18]
test eax, eax
je 0x50726c67
cmp eax, 5
jne 0x50726c50
mov dword [0x5072b600], eax
mov dword [0x5072b5fc], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.50725894
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x50726c87
cmp byte [ebp], 0x1a
jne 0x50726c87
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x5072b5fc], 0x1c
jmp 0x50726cac
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x5072b5fc], 9
pop edi
pop esi
pop ebp
mov dword [0x5072b600], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x50726c1a
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x50726d04
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x50726c1e
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x50726c1e
Function at 0x1000567b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1001ae0c
call fcn.1001a6e0
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x100056f8
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x100056f8
call fcn.10003dca
mov esi, eax
jmp 0x100057fe
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x1000571b
call fcn.10003dca
jmp 0x100057f1
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10005711
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x1000574e
mov esi, 0x8007000e
jmp 0x100057f3
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x1000582c
jb 0x10005769
cmp eax, 0xffffffff
ja 0x1000582c
cmp eax, 0x400
jbe 0x1000577e
push eax
lea ecx, [ebp - 0x418]
call fcn.1001a264
jmp 0x100057a0
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x100057a0
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x10005744
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x10005711
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.1001a264
mov esi, eax
test edi, edi
je 0x100057fe
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10005817
lea ecx, [ebp - 0x418]
call fcn.10003d92
lea ecx, [ebp - 0x428]
call fcn.10004436
mov eax, esi
call fcn.1001a631
ret 0x10
push 0x80070216
call fcn.1001a264
int3
Function at 0x10005e6b
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1001aed0
call fcn.1001a63e
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x20
call fcn.1001a264
mov esi, eax
pop ecx
test esi, esi
je 0x10005eab
and dword [esi + 4], 0
lea ecx, [esi + 8]
mov edi, ecx
xor eax, eax
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
and dword [esi + 0x18], 0
mov edi, dword [ebp - 0x10]
jmp 0x10005ead
xor esi, esi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
test esi, esi
jne 0x10005ec2
mov ebx, 0x8007000e
jmp 0x10005fa1
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov dword [esi], edi
test edi, edi
je 0x10005f1b
test ebx, ebx
je 0x10005f9c
cmp dword [ebp + 8], 0
jne 0x10005f9c
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
call ebx
mov edi, eax
mov eax, dword [esi + 4]
cmp edi, eax
je 0x10005f15
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
je 0x10005f0f
push edi
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x10005fe5
jmp 0x10005f37
and dword [esi + 4], 0
xor eax, eax
test eax, eax
jne 0x10005f37
jmp 0x10005eb8
test ebx, ebx
jne 0x10005f9c
cmp dword [ebp + 8], ebx
je 0x10005f9c
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantChangeType]
mov ebx, eax
test ebx, ebx
js 0x10005fa1
lea ecx, [esi + 0x18]
call fcn.1001a264
mov ebx, eax
test ebx, ebx
js 0x10005fa1
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10005fef
mov eax, dword [ecx]
push ecx
call dword [eax + 0xbc]
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x10006064
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x10005f8b
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x10005f8f
xor esi, esi
xor ebx, ebx
test edi, edi
je 0x10005fa1
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10005fa1
mov ebx, 0x80070057
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10005fdb
mov dword [ebp - 4], 8
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10005fc1
and dword [esi + 0x18], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [esi + 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call fcn.1001a264
pop ecx
mov eax, ebx
call fcn.1001a60f
ret 4
push 0x8007000e
call fcn.1001a264
push 0
push 0x152139a
call fcn.1001a264
int3
Function at 0x1001a264
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1001a273
pop dword [ebp - 0x50]
mov eax, 0xf560e06
add eax, 0xab946d
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x26291339
add dword [ebp - 0x60], 0x28293212
mov dword [ebp - 0x5c], 0xdd06691e
sub dword [ebp - 0x5c], 0xaad31cd9
mov dword [ebp - 0x58], 0x2f1b22cf
add dword [ebp - 0x58], 0x1d31215f
mov dword [ebp - 0x54], 0xa974bfe4
sub dword [ebp - 0x54], 0xa974bfe4
lea eax, [ebp - 0x60]
push eax
mov eax, 0x9e68ceaa
add eax, 0x7198f242
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x165e6c75
add dword [ebp - 0x60], 0x5e13fce1
mov dword [ebp - 0x5c], 0xcb8953a9
add dword [ebp - 0x5c], 0x75e30dcc
mov dword [ebp - 0x58], 0x23ee453
add dword [ebp - 0x58], 0x61308819
mov dword [ebp - 0x54], 0x7b8e5b4d
add dword [ebp - 0x54], 0x8471a4b3
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x9c87e12b
add eax, 0x7379df1d
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3fa90
push 0
call eax
mov ecx, 0x57c5
mov edi, eax
mov ebx, 0x10029a00
add ebx, dword [ebp - 0x50]
mov esi, 0xd87cb52
sub esi, 0x25b5c613
xor dword [ebp - 0x24], esi
mov edx, dword [ebx]
add dword [ebp - 0xc], 0x5519c12d
add edx, esi
sub dword [ebp - 0x28], 0x584b0aa5
mov dword [edi], edx
add dword [ebp - 4], 0x3bd8a43
add edi, 0xd99aba29
add edi, 0x266545db
add ebx, 4
loop 0x1001a389
add eax, 0x151e7
mov ebx, eax
add eax, 0xf737cc7
add eax, 0xf08c833e
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call fcn.00408d33
pop ecx
test eax, eax
je 0x401046
push str.Windows_original_main_args:_n
call fcn.00408bef
xor esi, esi
pop ecx
cmp dword [0x425628], esi
jle 0x401046
mov eax, dword [0x42562c]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00408bef
add esp, 0xc
inc esi
cmp esi, dword [0x425628]
jl 0x401027
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
call fcn.00418e0e
call fcn.0040392e
mov edi, eax
lea eax, [edi*4 + 4]
push eax
call fcn.004039b0
pop ecx
pop ecx
mov esi, eax
call fcn.00403934
xor ecx, ecx
test edi, edi
jle 0x401080
mov edx, dword [eax + ecx*8]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x401075
mov eax, dword [0x424010]
and dword [esi + ecx*4], 0
mov ebx, eax
test eax, eax
jne 0x401091
mov ebx, dword [esi]
mov ecx, dword [0x42400c]
test ecx, ecx
jne 0x40109d
mov ecx, dword [esi]
mov eax, dword [0x425420]
push 0
push 0
push 1
test eax, eax
setne dl
movzx edx, dl
push edx
push ebx
push ecx
push 0x41c24c
push 0x41c23c
push dword [0x425424]
push 1
push eax
push 1
push esi
push edi
call fcn.00403472
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x403e2f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x424070]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403ed2
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.00418e0e
pop ecx
pop ecx
test eax, eax
je 0x403ebb
test ebx, ebx
je 0x403eaf
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00418e0e
pop ecx
pop ecx
test eax, eax
jle 0x403ebb
push ebx
call fcn.00403a18
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.004039f7
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x403e7c
xor edi, edi
cmp ebx, edi
jne 0x403ed6
xor eax, eax
jmp 0x403f42
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403f05
call fcn.00403a18
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403ed2
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403ed2
call fcn.00403a18
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403ef5
cmp dword [ebp - 0x70], edi
je 0x403f38
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.004039f7
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004098e8
add ebp, 0x9c
leave
ret
Function at 0x408f37
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x422550
call fcn.0040dcb0
xor esi, esi
cmp dword [0x4274a8], esi
jne 0x408df7
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x408e0a
mov dword [ebp - 0x1c], esi
jmp 0x408e40
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x408e05
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x408e05
cmp dword [eax + 0x400074], 0xe
jbe 0x408e05
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.0040f80c
test eax, eax
jne 0x408e51
push 0x1c
call fcn.00418e0e
pop ecx
call fcn.0040d831
test eax, eax
jne 0x408e62
push 0x10
call fcn.00418e0e
pop ecx
call fcn.0040dae6
mov dword [ebp - 4], esi
call fcn.00418e0e
test eax, eax
jns 0x408e7b
push 0x1b
call fcn.00418e0e
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4274a4], eax
call fcn.00418e0e
mov dword [0x42565c], eax
call fcn.00418e0e
test eax, eax
jns 0x408ea1
push 8
call fcn.00418e0e
pop ecx
call fcn.0040f1ff
test eax, eax
jns 0x408eb2
push 9
call fcn.00418e0e
pop ecx
push 1
call fcn.00418e0e
pop ecx
cmp eax, esi
je 0x408ec5
push eax
call fcn.00418e0e
pop ecx
mov eax, dword [0x425634]
mov dword [0x425638], eax
push eax
push dword [0x42562c]
push dword [0x425628]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x408ef2
push eax
call fcn.00418e0e
call fcn.00408bb3
jmp 0x408f27
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.0040dcf5
ret
call fcn.00418e0e
jmp 0x408dd6

Function at 0x4098e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x4098f2
repz ret
jmp fcn.004114ed
Function at 0x418e0e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x418e1d
pop dword [ebp - 0x28]
mov eax, 0xf7090124
sub eax, 0xf6c77307
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x18cb7a6b
sub dword [ebp - 0x38], 0xca793520
mov dword [ebp - 0x34], 0x322aedf5
sub dword [ebp - 0x34], 0xfff7a1b0
mov dword [ebp - 0x30], 0x63d5ebae
sub dword [ebp - 0x30], 0x1789a780
mov dword [ebp - 0x2c], 0x8459b68f
add dword [ebp - 0x2c], 0x7ba64971
lea eax, [ebp - 0x38]
push eax
mov eax, 0xce2b1d77
add eax, 0x3216a2d9
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xf8164449
add dword [ebp - 0x38], 0x7c5c250d
mov dword [ebp - 0x34], 0xa78a7028
add dword [ebp - 0x34], 0x99e1f14d
mov dword [ebp - 0x30], 0x3b393cf9
add dword [ebp - 0x30], 0x28362f73
mov dword [ebp - 0x2c], 0x9781423f
add dword [ebp - 0x2c], 0x687ebdc1
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x5b0f9316
sub eax, 0x5acdd2ca
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x35bfe
push 0
call eax
mov ecx, 0x25f065af
add ecx, 0xda0fcac3
mov ebx, eax
mov edi, 0x432a00
add edi, dword [ebp - 0x28]
mov edx, 0x99f4a2e0
add edx, 0x139f4df2
sub dword [ebp - 8], 0x94914797
mov esi, dword [edi]
xor esi, edx
mov dword [ebp - 0xc], 0x7893200c
mov dword [ebx], esi
add dword [ebp - 0x10], ecx
add ebx, 4
add edi, 0x353092a8
sub edi, 0x353092a4
loop 0x418f39
add eax, 0xc622652d
add eax, 0x39de4f6e
xor ebx, ebx
add ebx, eax
add eax, 0xc604a70e
add eax, 0x39fb58f7
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret