joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40149b
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5d0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5d4]
mov dword [ebp - 0x30], eax
call fcn.00401494
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5d8]
add edi, 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5dc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
pop esi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0x311ceac]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401524
push 0x418248
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x311ceac]
add eax, dword [ebp - 0x20]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x311cea8]
mov dword [ebp - 0x1c], 0xedeb2e40
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp ecx, 0x3eb
mov dword [0x311cea8], eax
mov eax, dword [0x311ce00]
cmove eax, dword [ebp - 0x1c]
mov dword [0x311ce00], eax
lea eax, [edi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [0x311cea4], 0xf4ea3dee
call fcn.00401471
mov ecx, dword [ebp - 0x10]
xor ecx, eax
sub ebx, ecx
mov dword [ebp - 0x10], ecx
mov eax, ebx
mov dword [ebp - 0x2c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4014ec
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4015f4
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x311ceac]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x311ce04]
test esi, esi
je 0x40163a
push ebx
xor ebx, ebx
cmp eax, 0x959
jne 0x401625
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.0040149b
add edi, 8
dec esi
je 0x401639
mov eax, dword [0x311ceac]
jmp 0x40160d
pop ebx
pop edi
pop esi
ret 4
Function at 0x40cb28
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a36c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404e05
mov dword [ebp - 0x14], eax
cmp dword [0x823560], esi
jne 0x40cc1b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cba8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ccfb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ccfb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ccfb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x823560], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x823564], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x823568], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x823570], eax
test eax, eax
je 0x40cc18
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x82356c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cc40
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cc33
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cc55
push 4
pop eax
jmp 0x40ccfd
cmp dword [ebp - 0x14], esi
je 0x40cc55
push dword [0x823560]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cc3a
mov eax, dword [0x82356c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40ccb3
cmp dword [0x823570], edi
je 0x40ccb3
push eax
call ebx
push dword [0x823570]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ccb3
test eax, eax
je 0x40ccb3
call ecx
test eax, eax
je 0x40cca8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40cca8
test byte [ebp - 8], 1
jne 0x40ccb3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cce3
mov eax, dword [0x823564]
cmp eax, edi
je 0x40cce0
push eax
call ebx
test eax, eax
je 0x40cce0
call eax
mov esi, eax
test esi, esi
je 0x40cce0
mov eax, dword [0x823568]
cmp eax, edi
je 0x40cce0
push eax
call ebx
test eax, eax
je 0x40cce0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x823560]
call ebx
test eax, eax
je 0x40ccfb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ccfd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040eb
mov esp, ebp
pop ebp
ret
Function at 0x515070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbe000]
push edi
jmp 0x51508a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x515091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x515080
mov eax, 1
add ebx, ebx
jne 0x5150a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5150b4
jne 0x5150d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5150d3
dec eax
add ebx, ebx
jne 0x5150c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x515098
add ebx, ebx
jne 0x5150cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x515125
xor ecx, ecx
sub eax, 3
jb 0x5150eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51515a
sar eax, 1
mov ebp, eax
jmp 0x5150f6
add ebx, ebx
jne 0x5150f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5150c4
inc ecx
add ebx, ebx
jne 0x515104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5150c4
add ebx, ebx
jne 0x515111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x515106
jne 0x515122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x515106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x515144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x515136
jmp 0x515086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x515144
add edi, ecx
jmp 0x515086
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x515162
cmp byte [edi], 0x11
jne 0x515162
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 0x515167
lea edi, [esi + 0x10e000]
mov eax, dword [edi]
or eax, eax
je 0x5151df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1519c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x151b44]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x515194
mov ecx, edi
jns 0x5151c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x151b48]
or eax, eax
je 0x5151d9
mov dword [ebx], eax
add ebx, 4
jmp 0x5151b1
call dword [esi + 0x151b58]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x515210
cmp al, 0xef
ja 0x515203
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5151e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5151f2
mov ebp, dword [esi + 0x151b4c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x515244
sub esp, 0xffffff80
jmp 0x42800a
Function at 0xcc4960
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0xcc499f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xcc499f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xcc499f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xcc499f
cmp dword [ecx + 0x74], 0xe
jbe 0xcc499f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0xcca4f3
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 0xcca590
push ebx
push esi
call fcn.00cca4bc
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.00cca450
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0xcca53d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0xcca58f
push edi
push eax
call fcn.00ccb110
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0xcca55d
call fcn.00cc8fb1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0xcca58e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00cca450
add esp, 0x20
test eax, eax
jne 0xcca57c
push edi
call fcn.00cc8fb1
jmp 0xcca584
push ebx
call fcn.00cc8fb1
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 0xccb88d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xcd4030
push 0xcd4028
push str.FlsAlloc
push 0x1f
call fcn.00ccb74c
mov esi, eax
add esp, 0x10
test esi, esi
je 0xccb8c1
push dword [ebp + 8]
mov ecx, esi
call dword [0xcd212c]
call esi
jmp 0xccb8c7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0xccb90b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xcd4040
push 0xcd4038
push str.FlsGetValue
push 0x21
call fcn.00ccb74c
mov esi, eax
add esp, 0x10
test esi, esi
je 0xccb942
push dword [ebp + 8]
mov ecx, esi
call dword [0xcd212c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0xccb94a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xcd4048
push 0xcd4040
push str.FlsSetValue
push 0x22
call fcn.00ccb74c
mov esi, eax
add esp, 0x10
test esi, esi
je 0xccb984
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0xcd212c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0xcd0de0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xcd0e0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xcd0e0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100025a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
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 0x100025f8
cmp byte [esi + ebx - 1], 0xa
je 0x100025cc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10004128], 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]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x100032d0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x28
mov dword [ecx], 0
test byte [0x1000401c], 8
jne 0x10003408
cmp word [ebx], 0
je 0x10003454
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10003300
sub eax, ebx
sar eax, 1
inc eax
test edx, edx
je 0x1000332f
cmp word [edx], 0
je 0x1000332f
mov ecx, edx
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x10003320
sub ecx, edx
sar ecx, 1
add eax, ecx
add eax, eax
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x100033a8
xor eax, eax
lea esi, [esi]
movzx ecx, word [ebx + eax]
mov word [edi + eax], cx
add eax, 2
test cx, cx
jne 0x10003368
test edx, edx
je 0x100033a8
cmp word [edi], 0
mov ecx, edi
je 0x10003391
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x10003388
xor eax, eax
lea esi, [esi]
nop
movzx ebx, word [edx + eax]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x10003398
lea eax, [ebp - 0x18]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 1
call sym._OpenPrinterW_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
mov dword [ebp - 0x1c], edx
call sym._wine_dbgstr_wn.constprop.0
mov edi, eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s__s__n
mov dword [esp + 8], str.open_monitor_by_name
mov dword [esp + 4], 0x1000401c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
cmp word [ebx], 0
mov edx, dword [ebp - 0x1c]
jne 0x100032fa
mov eax, 1
jmp 0x1000330e
Function at 0x1003f2d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 6
sbb eax, eax
neg eax
leave
ret

Function at 0x1004003
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
call fcn.01003f2d
test al, al
je 0x100401e
push 2
pop eax
jmp 0x1004155
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x82c]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
je 0x1004130
cmp eax, edi
je 0x1004130
push esi
push esi
push 3
push esi
push 7
push 0x80000000
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x1004071
push 0x1001160
jmp 0x1004135
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, esi
jne 0x100408e
push 0x1001174
jmp 0x1004135
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
jne 0x10040aa
push 0x1001188
jmp 0x1004135
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
je 0x10040c3
push 0x100119c
jmp 0x1004135
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.01003fb6
lea ecx, [eax + 0xc]
cmp dword [ebp - 0x20], ecx
jb 0x10040fc
lea esi, [eax + edi]
push 8
lea eax, [ebp - 0xc]
push esi
push eax
call dword [0x1006010]
push 4
add esi, 8
lea eax, [ebp - 4]
push esi
push eax
call dword [0x1006010]
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0xc], 0x696d7678
jne 0x100412b
cmp dword [ebp - 8], 0x74636a6e
jne 0x100412b
xor eax, eax
inc eax
test byte [ebp - 4], al
jne 0x1004153
push 2
pop eax
jmp 0x1004153
push 0x100114c
or eax, 0xffffffff
mov esi, 0x1006030
call fcn.01005047
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.01004feb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004233
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
cmp word [eax], 0x22
jne 0x1004282
add eax, 2
push 0x22
push eax
call dword [0x100601c]
pop ecx
pop ecx
test eax, eax
je 0x1004261
cmp word [eax + 2], 0
je 0x1004261
add eax, 4
jmp 0x100429b
push 0x10010e8
or eax, 0xffffffff
mov esi, 0x1006030
call fcn.01005047
call edi
push eax
or eax, 0xffffffff
call fcn.01005047
xor eax, eax
jmp 0x100429b
push 0x20
push eax
call dword [0x100601c]
pop ecx
pop ecx
test eax, eax
jne 0x1004298
push 0x10010fc
jmp 0x1004266
add eax, 2
pop edi
pop esi
ret
Function at 0x100433f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
xor edx, edx
add eax, ecx
mov dword [ebp - 8], edx
cmp dword [eax + 0x7c], edx
je 0x10043b7
push ebx
push esi
mov esi, dword [eax + 0x78]
add esi, ecx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0x20]
add ebx, ecx
add edi, ecx
mov dword [ebp - 4], edx
cmp dword [esi + 0x14], edx
jbe 0x10043b4
jmp 0x1004375
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
add eax, ecx
push 0x1001470
push eax
call dword [0x1006018]
pop ecx
pop ecx
test eax, eax
je 0x100439c
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x14]
jb 0x1004372
jmp 0x10043b4
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 4]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp + 8]
movzx ecx, word [ecx + eax]
mov ebx, dword [ebx + ecx*4]
add ebx, eax
mov dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
call fcn.01004312
sub eax, dword [0x100602c]
mov ecx, 0x7fff
cmp ecx, eax
sbb eax, eax
not eax
and eax, dword [ebp - 8]
leave
ret
Function at 0x404ba4
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x824
mov eax, dword [0x494244]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
mov ebx, dword [esp + 0x838]
lea ecx, [esp + 8]
push ebp
mov ebp, dword [esp + 0x838]
push esi
push edi
mov edi, dword [esp + 0x838]
xor esi, esi
push esi
call fcn.00419a04
cmp dword [esp + 0x83c], 2
jae 0x404bf5
push str.jusched_Error:_Events_array_too_small
call fcn.004198f9
pop ecx
push 0xffffffffffffff9d
pop esi
and dword [edi], 0
call fcn.00412842
mov dword [edi], eax
test eax, eax
jne 0x404c11
push str.ERROR:_ShutdownEvent_handle_is_NULL
call fcn.004198f9
pop ecx
push 0xfffffffffffffffe
pop esi
push 0
push ebx
call fcn.00412cc9
pop ecx
pop ecx
test eax, eax
jne 0x404c2e
push str.jusched_ERROR:_Could_not_open_Policy_key_for_reading
call fcn.004198f9
pop ecx
push 0xfffffffffffffffd
jmp 0x404c4a
push dword [ebx]
call fcn.004055f1
mov dword [edi + 4], eax
pop ecx
test eax, eax
jne 0x404c4b
push str.jusched_main:_ERROR_creating_registry_watch_event_notifier
call fcn.004198f9
pop ecx
push 0xfffffffffffffffe
pop esi
and dword [ebp], 0
push str.SunJavaUpdateSchedulerMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp], eax
test eax, eax
jne 0x404cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [esp + 0x34]
push 0
push eax
call fcn.00442680
add esp, 0xc
lea eax, [esp + 0x30]
cmp esi, 0xb7
jne 0x404c9d
push str.Error:_Scheduler_Mutex_already_exists_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
jmp 0x404cad
push esi
push str.Error:_Error_creating_scheduler_mutex:__d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x30]
push eax
call fcn.004198f9
pop ecx
or esi, 0xffffffff
jmp 0x404cc1
test esi, esi
je 0x404ce8
push dword [ebp]
push dword [esp + 0x840]
push edi
call fcn.00404808
add esp, 0xc
lea ecx, [esp + 0x14]
push dword [ebx]
call fcn.00419a42
lea ecx, [esp + 0x14]
call fcn.00419a4c
mov ecx, dword [esp + 0x830]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00440cd7
add esp, 0x824
ret
Function at 0x40619a
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
mov eax, dword [0x494244]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x128]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ebp
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.00405eaf
mov esi, eax
test esi, esi
jne 0x406279
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
push dword [esp + 0x28]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
call ebp
test eax, eax
jne 0x406251
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0040619a
mov esi, eax
test esi, esi
jne 0x406279
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call ebp
test eax, eax
je 0x406216
jmp 0x406253
xor esi, esi
cmp dword [esp + 0xc], 0
je 0x406268
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.00404f6b
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x40628a
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x128]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00440cd7
add esp, 0x120
ret 4
Function at 0x40710d
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x407127
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 8], 0
push ebp
mov ebp, ecx
jne 0x407136
push 0xd
pop eax
jmp 0x407167
push ebx
mov ebx, dword [esp + 0x10]
push edi
xor edi, edi
push ebx
call fcn.00446680
inc eax
add ebx, eax
add edi, eax
pop ecx
cmp eax, 1
jne 0x40713e
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop ebp
ret 8