joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43721b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4373ef
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x446640]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4373ef
test cl, 0x48
je 0x437286
cmp byte [eax + 5], 0xa
je 0x437286
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4372d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4372c0
call fcn.004332cd
mov dword [eax], 9
call fcn.004332d6
mov dword [eax], esi
jmp 0x4372d0
cmp eax, 0x6d
je 0x4373ef
push eax
call fcn.004332df
pop ecx
or eax, 0xffffffff
jmp 0x4373f1
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4373ea
test eax, eax
je 0x4372ff
cmp byte [ebx], 0xa
jne 0x4372ff
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x437308
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4373e4
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4373d4
cmp al, 0xd
je 0x43733a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4373c6
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x437354
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x43734f
add dword [ebp + 0x10], 2
jmp 0x4373a8
mov dword [ebp + 0x10], eax
jmp 0x4373c2
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43737c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4373c2
cmp dword [ebp - 0xc], 0
je 0x4373c2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x43739d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4373a8
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4373c5
cmp ebx, dword [ebp + 0xc]
jne 0x4373ad
cmp byte [ebp - 1], 0xa
jne 0x4373ad
mov byte [ebx], 0xa
jmp 0x4373c5
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00434afd
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4373c6
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x43731e
jmp 0x4373e4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4373e4
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4373f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x492363
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d84
mov eax, dword [0x512500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405e43
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4923a5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x492501
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f97
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x516188]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403256
mov ecx, dword [esi*4 + 0x516188]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4924fa
cmp eax, dword [edi + ecx + 0x24]
jne 0x4924fa
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4924fa
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403256
add esp, 0x14
test edx, edx
jl 0x4924fa
jg 0x492470
test eax, eax
jb 0x4924fa
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4924fa
jl 0x49248a
cmp dword [ebp - 0x1008], eax
ja 0x4924fa
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4924a8
test ebx, ebx
je 0x4924e1
cmp ecx, edi
jae 0x4924e1
mov al, byte [ecx]
cmp al, 0xd
jne 0x4924c2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4924ce
cmp byte [ecx + 1], 0xa
jne 0x4924ce
inc ecx
jmp 0x4924ce
movzx eax, al
movsx eax, byte [eax + 0x512838]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4924a8
cmp edx, ebx
jne 0x4924a8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4924ff
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040303f
leave
ret
Function at 0x492c40
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x516188]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x492c80
cmp byte [ebx], 0xa
jne 0x492c80
or byte [eax + edi + 0x28], 4
jmp 0x492c85
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x492d83
mov al, byte [edx]
cmp al, 0x1a
je 0x492d65
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x492cb4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x492cd9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x492ce3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x492c96
jmp 0x492d83
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492d60
cmp dword [ebp - 0xc], 0
je 0x492d60
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x516188]
test byte [eax + edi + 0x28], 0x48
je 0x492d3a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x492d25
mov byte [esi], dl
jmp 0x492d36
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x516188]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x492d83
cmp byte [ebp - 1], 0xa
jne 0x492d49
cmp esi, ebx
jne 0x492d49
mov byte [esi], 0xa
jmp 0x492d82
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040192e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x492d83
mov byte [esi], 0xd
jmp 0x492d82
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x516188]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x492d7f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x492d83
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x492ddf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x516188]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x492e22
cmp word [esi], dx
jne 0x492e22
or byte [edi + eax + 0x28], 4
jmp 0x492e27
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x492f7a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x492f5a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x492e69
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x492e9f
cmp eax, edx
jae 0x492eab
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x492e41
jmp 0x492f7a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492f56
cmp dword [ebp - 0x14], 0
je 0x492f56
mov eax, dword [ebx*4 + 0x516188]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x492f2e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x492ef7
mov word [esi], cx
jmp 0x492f2a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x516188]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x516188]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x516188]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x492f7a
pop ebx
cmp word [ebp - 4], bx
jne 0x492f3f
cmp esi, dword [ebp + 0xc]
jne 0x492f3f
mov word [esi], bx
jmp 0x492f77
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040192e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x492f7a
push 0xd
jmp 0x492f73
mov ecx, dword [ebx*4 + 0x516188]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x492f71
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x492f7a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49a6b1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x512500]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49a6fc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049ab73
test al, al
jne 0x49a6f6
sub edx, 2
cmp edx, edi
jne 0x49a6dc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49a71e
lea eax, [edi + 2]
cmp edx, eax
je 0x49a71e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049a2aa
add esp, 0x10
jmp 0x49a818
push esi
lea ecx, [ebp - 0x255]
call fcn.0049ab73
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49a761
push dword [ebp - 0x25c]
jmp 0x49a70e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49a79e
cmp word [ebp - 0x226], 0
je 0x49a7bf
cmp word [ebp - 0x226], ax
jne 0x49a79e
cmp word [ebp - 0x224], 0
je 0x49a7bf
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049a2aa
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49a80b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49a778
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49a7f3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49a818
push 0x499c92
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405529
add esp, 0x10
jmp 0x49a7e8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040303f
leave
ret
Function at 0x402190
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4021ae
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403bf5
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x403c94
push 0
push 4
lea eax, [ebp - 0x130]
push eax
push 0xa
push 0x406464
lea eax, [ebp - 0x10]
push eax
call sub.CORE35.dll_Ordinal_205
add esp, 0x18
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x403c55
cmp dword [ebp - 0x10], 0
je 0x403c6e
push 0x406470
lea eax, [ebp - 0x130]
push eax
call sub.MSVCRT40.dll_strcpy
add esp, 8
jmp 0x403c8f
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x130], 0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x130]
push eax
call sub.CORE35.dll_Ordinal_22
add esp, 8
jmp 0x403cc3
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT40.dll_strlen
add esp, 4
cmp eax, 4
jbe 0x403cb0
mov eax, dword [ebp + 8]
mov byte [eax + 4], 0
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x130]
push eax
call sub.CORE35.dll_Ordinal_22
add esp, 8
lea eax, [ebp - 0x130]
push eax
push 0x406474
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT40.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403d05
jmp 0x403daa
push 0x4e20
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x403d21
jmp 0x403daa
lea eax, [ebp - 0x130]
push eax
push str.oraspawn_buffer__s
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT40.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x403d60
jmp 0x403daa
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x403d84
jmp 0x403daa
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x134]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x403daa
push 0
push 0
push 0x10
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x1c], 0
je 0x403dbe
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x20], 0
je 0x403dd2
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x403df0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4049e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4054b0
push 0x404b88
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT40.dll___set_app_type]
add esp, 4
mov dword [0x4067f4], 0xffffffff
mov eax, dword [0x4067f4]
mov dword [0x4067f8], eax
call dword [sym.imp.MSVCRT40.dll___p__fmode]
mov ecx, dword [0x406544]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT40.dll___p__commode]
mov ecx, dword [0x406540]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT40.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4067f0], eax
call fcn.00404be0
cmp dword [0x40653c], 0
jne 0x404a70
push 0x404bd0
call dword [sym.imp.MSVCRT40.dll___setusermatherr]
add esp, 4
call fcn.00404bb0
push 0x406014
push 0x406010
call sub.MSVCRT40.dll__initterm
add esp, 8
mov eax, dword [0x406538]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x406534]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCRT40.dll___getmainargs]
add esp, 0x14
push 0x40600c
push section..data
call sub.MSVCRT40.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT40.dll___p__acmdln]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x404ae4
mov al, byte [ebp - 0x40]
inc esi
mov al, byte [esi]
test al, al
je 0x404adc
cmp al, 0x22
jne 0x404ad1
cmp byte [esi], 0x22
jne 0x404aee
inc esi
jmp 0x404aee
cmp al, 0x20
jbe 0x404aee
inc esi
cmp byte [esi], 0x20
ja 0x404ae8
cmp byte [esi], 0
je 0x404afe
cmp byte [esi], 0x20
ja 0x404afe
inc esi
cmp byte [esi], 0
jne 0x404af3
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x5c], 1
mov eax, 0xa
je 0x404b25
mov eax, dword [ebp - 0x58]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.MSVCRT40.dll_exit]
jmp 0x404b68
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4025a0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call esi
test eax, eax
jne 0x402615
mov eax, edi
lea edx, [eax + 1]
jmp 0x4025d0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4025d0
mov ecx, dword [ebp - 4]
sub eax, edx
inc eax
push eax
push edi
push 1
push 0
push str.SJDMGameMain
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402604
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40268e
lea edx, [ebp - 4]
push edx
push 0x20006
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call esi
test eax, eax
jne 0x40268e
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402650
sub eax, edx
inc eax
push eax
mov eax, dword [ebp - 4]
push edi
push 1
push 0
push str.SJDMGameMain
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402684
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4026a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwarelhfDJSM_
push 0x80000005
call esi
test eax, eax
je 0x4026f9
lea edx, [ebp - 4]
push edx
push str.SoftwarelhfDJSM_
push 0x80000005
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x402733
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwarelhfDJSM_
push 0x80000005
call esi
test eax, eax
jne 0x402733
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push str.CanRun
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x402729
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4027e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42255b
mov eax, dword fs:[0]
push eax
sub esp, 0xa48
mov eax, dword [0x42c914]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3ff
lea eax, [ebp - 0x60f]
push 0
push eax
mov byte [ebp - 0x610], 0
call fcn.004131a0
add esp, 0xc
lea esi, [ebp - 0x610]
call fcn.00402780
push 0x1ff
lea ecx, [ebp - 0x20f]
push 0
push ecx
mov byte [ebp - 0x210], 0
call fcn.004131a0
add esp, 0xc
push 0x400
lea edx, [ebp - 0xa50]
push 0
push edx
call fcn.004131a0
add esp, 0xc
push 0x400
lea eax, [ebp - 0xa50]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.004131a0
add esp, 0xc
lea esi, [ebp - 0xa50]
call fcn.004023e0
push str.lhfGameFileName1.ini
mov ecx, esi
push 0x400
push ecx
call fcn.0040d7c9
add esp, 0xc
cmp byte [ebp - 0xa50], 0
je 0x4028d6
mov edx, esi
push edx
push 0x200
lea eax, [ebp - 0x210]
push eax
push 0x4264cf
push str.GFileName
push str.GameFN1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4028e2
mov ecx, dword [ebp - 0x620]
push ecx
jmp 0x40299a
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x610]
push 0x400
push eax
call fcn.0040d7c9
add esp, 0xc
lea edi, [ebp - 0x610]
call fcn.004025a0
test al, al
je 0x402930
push 0x426550
push 0x42ebc0
call fcn.00401d90
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00404b80
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
jmp 0x402952
push 0x426564
push 0x42ebc0
call fcn.00401d90
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00404b80
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x402972
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x402972
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x402993
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x40298b
or eax, 4
push 0
push eax
call fcn.004015f0
mov edx, dword [ebp - 0x620]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cf5f
mov esp, ebp
pop ebp
ret
Function at 0x4029c0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402a32
mov ecx, dword [ebp - 4]
push str.SJDMGameMain
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x402a28
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x426578
push 0x42ebc0
call fcn.00401d90
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00404b80
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
jmp 0x402a54
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x426588
push 0x42ebc0
call fcn.00401d90
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00404b80
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x402a74
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x402a74
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x402a95
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x402a8d
or eax, 4
push 0
push eax
call fcn.004015f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret