joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6b082360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6b0823bb
cmp byte [esi + ebx - 1], 0xa
je 0x6b08238f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6b083118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x100017c1
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
push 0x14
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1000185c
push str.jvm.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x100017f3
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
xor eax, eax
jmp 0x1000185e
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.JVM_DTraceGetVersion
push ebx
call esi
push str.JVM_DTraceIsSupported
push ebx
mov dword [edi], eax
call esi
push str.JVM_DTraceActivate
push ebx
mov dword [edi + 4], eax
call esi
push str.JVM_DTraceDispose
push ebx
mov dword [edi + 8], eax
call esi
push str.JVM_DTraceIsProbeEnabled
push ebx
mov dword [edi + 0xc], eax
call esi
push ebx
mov dword [edi + 0x10], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
xor esi, esi
cmp dword [edi], esi
je 0x10001851
cmp dword [edi + 4], esi
je 0x10001851
cmp dword [edi + 8], esi
je 0x10001851
cmp dword [edi + 0xc], esi
je 0x10001851
cmp dword [edi + 0x10], esi
jne 0x1000185b
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov edi, esi
pop esi
mov eax, edi
pop edi
pop ebx
ret

Function at 0x100022cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x100022de
pop dword [ebp - 0x50]
mov eax, 0xc9bdff0f
add eax, 0x464223cf
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xd5f057d0
add dword [ebp - 0x60], 0x7861ed7b
mov dword [ebp - 0x5c], 0x2b241464
sub dword [ebp - 0x5c], 0xf8f0c81f
mov dword [ebp - 0x58], 0x6df48f08
add dword [ebp - 0x58], 0xde57b526
mov dword [ebp - 0x54], 0x89b96b36
sub dword [ebp - 0x54], 0x89b96b36
lea eax, [ebp - 0x60]
push eax
mov eax, 0xffaced5d
add eax, 0x105342a7
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xd8a31dcc
sub dword [ebp - 0x60], 0x6430b476
mov dword [ebp - 0x5c], 0x62e227c7
add dword [ebp - 0x5c], 0xde8a39ae
mov dword [ebp - 0x58], 0xeaed230a
add dword [ebp - 0x58], 0x78824962
mov dword [ebp - 0x54], 0xb59f460f
sub dword [ebp - 0x54], 0xb59f460f
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x31a62
push 0
call eax
mov ecx, 0xb851a632
sub ecx, 0xb851718c
mov ebx, eax
mov edi, 0x74920667
sub edi, 0x6491a467
add edi, dword [ebp - 0x50]
mov edx, 0x1df567a8
xor dword [ebp - 0x48], 0x3431186a
mov esi, dword [edi]
xor dword [ebp - 0x2c], ecx
xor esi, edx
xor dword [ebp - 0x2c], 0xd222c779
mov dword [ebx], esi
sub dword [ebp - 0x38], ebx
add ebx, 4
add edi, 0x52523e7d
add edi, 0xadadc187
loop 0x100023f5
add eax, 0xc56b
mov ebx, eax
add eax, 5
mov ecx, 0x177a785a
sub ecx, 0x77a785a
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x54ffe0
Capabilities:
Encode data using xor

Disassembly:
test dword [edx + 0x3b328060], 0x93ca7b74
popal
or al, byte [edx - 0x378ad489]
xor dl, byte [ebx + 0x370276a6]
cmp dword [ebx - 0x68], eax
invalid
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdb000]
mov dword [edi + 0x11809c], 0x7b186601
push edi
or ebp, 0xffffffff
jmp 0x55000a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x550011
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x550000
mov eax, 1
add ebx, ebx
jne 0x550023
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x550034
jne 0x550053
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x550053
dec eax
add ebx, ebx
jne 0x550040
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x550018
add ebx, ebx
jne 0x55004f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5500a5
xor ecx, ecx
sub eax, 3
jb 0x55006b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5500da
sar eax, 1
mov ebp, eax
jmp 0x550076
add ebx, ebx
jne 0x550076
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x550044
inc ecx
add ebx, ebx
jne 0x550084
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x550044
add ebx, ebx
jne 0x550091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x550086
jne 0x5500a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x550086
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5500c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5500b6
jmp 0x550006
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5500c4
add edi, ecx
jmp 0x550006
pop esi
mov edi, esi
mov ecx, 0x984e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5500e2
cmp byte [edi], 0x16
jne 0x5500e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5500e7
lea edi, [esi + 0x14c000]
mov eax, dword [edi]
or eax, eax
je 0x550156
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x152b74]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x152c7c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x550114
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x152c84]
or eax, eax
je 0x550150
mov dword [ebx], eax
add ebx, 4
jmp 0x550131
call dword [esi + 0x152c80]
mov ebp, dword [esi + 0x152c88]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x55018a
sub esp, 0xffffff80
jmp 0x518ea0
Function at 0x25807297
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x2581bb95
call fcn.2581acc1
mov eax, dword fs:[0x2c]
xor ebx, ebx
mov ecx, dword [0x25824498]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x25823cc0]
cmp eax, dword [ecx + 4]
jg 0x25807364
cmp byte [0x25823cbc], 0
je 0x2580735e
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
call fcn.25814700
push 1
lea esi, [eax + 6]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x2580735e
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push esi
push edi
call fcn.25814700
add esp, 0x14
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
push str._nEFS:TMS:
call fcn.2580cd40
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.2580cca0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, 0x10
jb 0x2580735e
inc eax
push eax
push dword [ebp - 0x28]
call fcn.25814700
pop ecx
pop ecx
call fcn.2581acb0
ret
mov edi, 0x25823cc0
push edi
call fcn.25814700
cmp dword [0x25823cc0], 0xffffffff
pop ecx
jne 0x258072c5
mov eax, dword [0x25823df0]
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x2581d220]
call esi
test al, al
je 0x258073c2
mov eax, dword [0x258240cc]
push ebx
push str.enableTMSLogging
push 0x2581db80
mov esi, dword [eax + 0x5a8]
mov ecx, esi
call dword [0x2581d220]
call esi
add esp, 0xc
test ax, ax
mov al, 1
jne 0x258073c6
jmp 0x258073c2
mov al, bl
jmp 0x258073c6
or dword [ebp - 4], 0xffffffff
push edi
mov byte [0x25823cbc], al
call fcn.25814700
pop ecx
jmp 0x258072c5
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040cac0
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040cac0
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040cac0
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040cac0
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040cac0
mov dword [0x41203c], eax
call fcn.0040cac0
test eax, eax
jge 0x402550
push 8
call fcn.0040cac0
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040cac0
pop ecx
push 1
call fcn.0040cac0
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040cac0
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040cac0
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040cac0
jmp 0x402495

Function at 0x40d5e3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40d614
call fcn.00403737
mov dword [eax], esi
call fcn.00403724
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040cac0
add esp, 0x14
push 0x16
pop eax
jmp 0x40d669
test dword [ebp + 0xc], 0xfffffff9
jne 0x40d5f0
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d641
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0040cac0
pop ecx
call fcn.00403724
mov eax, dword [eax]
jmp 0x40d669
test al, 0x10
jne 0x40d667
test al, 1
je 0x40d667
test byte [ebp + 0xc], 2
je 0x40d667
call fcn.00403737
mov dword [eax], 5
call fcn.00403724
mov dword [eax], 0xd
jmp 0x40d638
xor eax, eax
pop esi
pop ebp
ret
Function at 0x401769
Capabilities:
Parse pe header

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

Function at 0x407796
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4155e8
push 0x4155e0
push str.FlsAlloc
push 0x1f
call fcn.00407655
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4077ca
push dword [ebp + 8]
mov ecx, esi
call dword [0x414110]
call esi
jmp 0x4077d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407814
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4155f8
push 0x4155f0
push str.FlsGetValue
push 0x21
call fcn.00407655
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40784b
push dword [ebp + 8]
mov ecx, esi
call dword [0x414110]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x407853
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415600
push 0x4155f8
push str.FlsSetValue
push 0x22
call fcn.00407655
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40788d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x414110]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10001822
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000182c
repz ret
jmp fcn.10001bc2

Function at 0x1000187f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1000188e
pop dword [ebp - 0x1c]
mov eax, 0xd1db3836
sub eax, 0xc1db1fa8
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x97d6b8af
sub dword [ebp - 0x2c], 0x49847364
mov dword [ebp - 0x28], 0xe56c50e5
sub dword [ebp - 0x28], 0xb33904a0
mov dword [ebp - 0x24], 0x447e7f59
add dword [ebp - 0x24], 0x7cdc4d5
mov dword [ebp - 0x20], 0xbaafaccd
sub dword [ebp - 0x20], 0xbaafaccd
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xce0da091
sub dword [ebp - 0x2c], 0x599b373b
mov dword [ebp - 0x28], 0x58b46ced
sub dword [ebp - 0x28], 0x17480b78
mov dword [ebp - 0x24], 0x58d05d0f
add dword [ebp - 0x24], 0xa9f0f5d
mov dword [ebp - 0x20], 0xcdbe7604
add dword [ebp - 0x20], 0x324189fc
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xb52559b9
sub eax, 0xa52529b9
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x32e63
push 0
call eax
mov ecx, 0xc5a14380
sub ecx, 0xc5a109fa
mov ebx, eax
mov esi, 0x5c1686d2
sub esi, 0x4c1624d2
add esi, dword [ebp - 0x1c]
mov edx, 0xa623b6e1
add edx, 0x63a12fb7
mov edi, dword [esi]
mov dword [ebp - 0x14], 0xd94d2c70
sub edi, edx
xor dword [ebp - 0xc], esi
mov dword [ebx], edi
add dword [ebp - 8], edi
add ebx, 4
add esi, 0x79264a5b
add esi, 0x86d9b5a9
loop 0x100019ab
add eax, 0x6f1c7ec6
sub eax, 0x6f1ba5db
xor ebx, ebx
add ebx, eax
add eax, 0x62bfed74
sub eax, 0x62bfed6f
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x425634]
push ebx
push ebp
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
mov dword [0x425638], eax
call fcn.00408d46
xor ebx, ebx
pop ecx
test eax, eax
je 0x401053
push str.Windows_original_main_args:_n
call fcn.00408c02
xor esi, esi
pop ecx
cmp dword [0x425628], ebx
jle 0x401053
mov eax, dword [0x42562c]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00408c02
add esp, 0xc
inc esi
cmp esi, dword [0x425628]
jl 0x401034
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
call fcn.0041863d
call fcn.00403941
mov edi, eax
lea eax, [edi*4 + 4]
push eax
call fcn.004039c3
pop ecx
pop ecx
mov esi, eax
call fcn.00403947
xor ecx, ecx
cmp edi, ebx
jle 0x40108d
mov edx, dword [eax + ecx*8]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x401082
mov eax, dword [str.java]
mov dword [esi + ecx*4], ebx
mov edx, eax
cmp eax, ebx
jne 0x40109d
mov edx, dword [esi]
mov ebp, dword [0x42400c]
cmp ebp, ebx
jne 0x4010a9
mov ebp, dword [esi]
mov eax, dword [0x425420]
push ebx
xor ecx, ecx
inc ecx
push ecx
push ecx
cmp eax, ebx
setne bl
movzx ebx, bl
push ebx
push edx
push ebp
push 0x41c254
push 0x41c244
push dword [0x425424]
push ecx
push eax
push ecx
push esi
push edi
call fcn.00403485
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x403e42
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 0x403ee5
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.0041863d
pop ecx
pop ecx
test eax, eax
je 0x403ece
test ebx, ebx
je 0x403ec2
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0041863d
pop ecx
pop ecx
test eax, eax
jle 0x403ece
push ebx
call fcn.00403a2b
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.00403a0a
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 0x403e8f
xor edi, edi
cmp ebx, edi
jne 0x403ee9
xor eax, eax
jmp 0x403f55
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 0x403f18
call fcn.00403a2b
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403ee5
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403ee5
call fcn.00403a2b
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 0x403f08
cmp dword [ebp - 0x70], edi
je 0x403f4b
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.00403a0a
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409908
add ebp, 0x9c
leave
ret
Function at 0x4019c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00401a20

Function at 0x401a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x401b0d
mov edi, dword [0x405054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401a54
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401b06
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401a40
mov dword [esp], eax
mov ebx, eax
call fcn.00402360
test eax, eax
mov edi, eax
je 0x401b4a
lea ebx, [esi + esi*2]
mov esi, dword [0x405054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.00402460
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b2a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401aff
sub eax, 0x40
and eax, 0xffffffbf
je 0x401aff
mov eax, dword [esp + 0x20]
add ebx, dword [0x405054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401b14
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401a5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004019c0
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004019c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004019c0
lea esi, [esi]
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x517778
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x517774]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.0041d960
jmp 0x4011d3
mov eax, dword [0x517774]
test eax, eax
jne 0x4011c9
mov dword [0x517774], 1
mov dword [esp + 4], 0x51a014
mov dword [esp], 0x51a00c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011d3
mov dword [0x51601c], 1
mov eax, dword [0x517774]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x51a008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x517774], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x517778
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.0040eeed
mov dword [esp], 0x40f008
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x516cf4], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.0040e88c
mov eax, dword [0x516004]
mov dword [esp + 4], 0x516008
mov dword [esp], eax
call fcn.004013c8
call fcn.0040e6c8
mov eax, dword [0x4c31b4]
mov edx, dword [0x51600c]
mov dword [eax], edx
mov ecx, dword [0x51600c]
mov edx, dword [0x516008]
mov eax, dword [0x516004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040e510
mov dword [0x516014], eax
mov eax, dword [0x516018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x516014]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x51601c]
test eax, eax
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x516014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret