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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100f3e72
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100f406e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100f406e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100f401d
jg 0x100f3f4f
test eax, eax
je 0x100f4013
push 1
push 0x1000
call fcn.100e4e85
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100f3f75
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x100f400a
push 0x8000
push ebx
call fcn.100f3da3
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100f3fa1
jg 0x100f3f9c
cmp ecx, 0x1000
jb 0x100f3fa1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100e6796
add esp, 0x10
cmp eax, 0xffffffff
je 0x100f3fe6
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100f3f9c
jl 0x100f3fcd
test ecx, ecx
jne 0x100f3f8e
push dword [ebp - 0xc]
push ebx
call fcn.100f3da3
push esi
call fcn.100e0b8d
add esp, 0xc
xor edi, edi
jmp 0x100f407f
cmp byte [edi + 0x24], 0
je 0x100f3ffd
cmp dword [edi + 0x20], 5
jne 0x100f3ffd
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100f4008
mov edi, dword [edi + 0x18]
jmp 0x100f400a
xor edi, edi
push esi
call fcn.100e0b8d
pop ecx
jmp 0x100f407f
test ecx, ecx
jg 0x100f3fdf
jl 0x100f401d
test eax, eax
jae 0x100f3fdf
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100e6fce
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100f4040
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100f3fdf
jmp 0x100f4077
push ebx
call fcn.100ef00e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100f3fdf
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100f407f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100f407c
mov edi, dword [edi + 0x18]
jmp 0x100f407f
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100e6fce
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x407125
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x40713d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x40716c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x4071ae
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x407282
sub edx, 0x10000
js 0x407282
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x407194
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x407194
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x407205
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x407202
add edx, 8
jne 0x4071e9
jmp 0x407273
add edx, 4
test eax, 0xffff
jne 0x407212
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x407273
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x407246
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x407194
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x407282
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x407194
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x407293
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40dcc8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ec10]
jne 0x40dcd2
repz ret
jmp fcn.00412e4b
Function at 0x40f969
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42ec10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b90a
and dword [ebp - 0x14], 0
cmp dword [0x430464], 0
mov dword [ebp - 0x18], eax
jne 0x40fa1c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fac4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40fac4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x430464], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x430468], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43046c], eax
call edi
push eax
call esi
mov dword [0x430474], eax
test eax, eax
je 0x40fa1c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x430470], eax
mov eax, dword [0x430470]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fa75
cmp dword [0x430474], ecx
je 0x40fa75
push eax
call esi
push dword [0x430474]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fa75
test ebx, ebx
je 0x40fa75
call edi
test eax, eax
je 0x40fa6c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fa6c
test byte [ebp - 8], 1
jne 0x40fa75
or dword [ebp + 0x10], 0x200000
jmp 0x40faa8
mov eax, dword [0x430468]
cmp eax, dword [ebp - 0x18]
je 0x40faa8
push eax
call esi
test eax, eax
je 0x40faa8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40faa8
mov eax, dword [0x43046c]
cmp eax, dword [ebp - 0x18]
je 0x40faa8
push eax
call esi
test eax, eax
je 0x40faa8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x430464]
call esi
test eax, eax
je 0x40fac4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40fac6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dcc8
leave
ret
Function at 0x414ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov al, byte [esi]
xor bl, bl
push edi
test al, al
je 0x414ef3
mov cl, bl
add bl, bl
shr cl, 7
add bl, cl
inc esi
xor bl, al
mov al, byte [esi]
test al, al
jne 0x414ee1
mov esi, dword [0x478d04]
xor edi, edi
dec esi
js 0x414f25
mov edi, edi
mov edx, dword [0x478d08]
lea eax, [esi + edi]
sar eax, 1
mov ecx, eax
shl ecx, 4
mov cl, byte [ecx + edx]
cmp bl, cl
jae 0x414f1c
lea esi, [eax - 1]
jmp 0x414f21
jbe 0x414f2c
lea edi, [eax + 1]
cmp edi, esi
jle 0x414f00
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
test eax, eax
jle 0x414f4a
mov ecx, eax
add ecx, ecx
cmp byte [edx + ecx*8 - 0x10], bl
lea ecx, [edx + ecx*8 - 0x10]
jne 0x414f4a
mov edi, edi
sub ecx, 0x10
dec eax
je 0x414f4a
cmp byte [ecx], bl
je 0x414f40
mov ecx, eax
shl ecx, 4
add ecx, edx
cmp byte [ecx], bl
jne 0x414f25
mov edi, dword [ebp + 8]
cmp dword [ecx + 4], edi
jne 0x414f92
mov esi, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x414f83
test dl, dl
je 0x414f7f
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x414f83
add ecx, 2
add esi, 2
test dl, dl
jne 0x414f63
xor ecx, ecx
jmp 0x414f88
sbb ecx, ecx
sbb ecx, 0xffffffff
mov edx, dword [0x478d08]
test ecx, ecx
je 0x414fa5
inc eax
mov ecx, eax
shl ecx, 4
add ecx, edx
cmp byte [ecx], bl
je 0x414f58
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
add eax, eax
mov eax, dword [edx + eax*8 + 0xc]
pop esi
pop ebx
pop ebp
ret

Function at 0x416700
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [0x478d70], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.004159f0
mov esi, dword [0x478d6c]
mov al, byte [esi]
add esp, 4
xor edi, edi
test al, al
je 0x41679b
lea ebx, [ebx]
movsx ecx, al
push ecx
call fcn.00407ecb
add esp, 4
test eax, eax
je 0x416752
movsx edx, byte [esi + 1]
inc esi
push edx
call fcn.00407ecb
add esp, 4
test eax, eax
jne 0x416740
mov al, byte [esi]
cmp al, 0x22
jne 0x41676f
mov al, byte [esi + 1]
inc esi
test al, al
je 0x41679b
inc edi
cmp al, 0x22
je 0x41678e
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x416761
jmp 0x41679b
test al, al
je 0x41679b
inc edi
movsx eax, al
push eax
call fcn.00407ecb
add esp, 4
test eax, eax
jne 0x41678e
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x416774
jmp 0x41679b
cmp byte [esi], 0
je 0x41679b
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x416730
lea ecx, [edi*4]
push ecx
mov dword [0x478d64], edi
call fcn.004075a9
add esp, 4
pop edi
pop esi
test eax, eax
jne 0x4167d1
push 0x10
push str.Error
push str.Out_of_memory
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.00408b6a
push ebx
mov ebx, eax
mov dword [0x478d68], eax
call fcn.00414fd0
push 0x414fb0
call fcn.00408cf5
add esp, 4
call fcn.00418ca0
call dword [0x4785d8]
pop ebx
pop ebp
ret 0x10
Function at 0x416c20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x433a08], 0
push ebx
push esi
push edi
je 0x416c52
mov eax, dword [0x478d74]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x40
push 0x478608
push 0x433a08
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 4
call fcn.00416a10
xor edi, edi
add esp, 4
cmp dword [0x435e3c], edi
jle 0x416c8e
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, 0x43664c
mov ecx, dword [esi - 0xc]
push ecx
call fcn.0040752f
mov edx, dword [esi]
add esp, 4
push edx
call ebx
inc edi
add esi, 0x10
cmp edi, dword [0x435e3c]
jl 0x416c71
mov ebx, dword [0x478d08]
test ebx, ebx
je 0x416cc5
xor edi, edi
cmp dword [0x478d04], edi
jle 0x416cbc
lea esi, [ebx + 8]
mov eax, dword [esi]
push eax
call fcn.0040752f
inc edi
add esp, 4
add esi, 0x10
cmp edi, dword [0x478d04]
jl 0x416ca5
push ebx
call fcn.0040752f
add esp, 4
mov edi, dword [0x4785e4]
xor esi, esi
mov dword [0x478d08], esi
cmp edi, esi
je 0x416d02
cmp dword [0x4785ec], esi
jle 0x416cf9
nop
mov eax, dword [edi + esi*4]
test eax, eax
je 0x416cf0
push eax
call fcn.0040752f
add esp, 4
inc esi
cmp esi, dword [0x4785ec]
jl 0x416ce0
push edi
call fcn.0040752f
add esp, 4
mov eax, dword [0x478774]
test eax, eax
je 0x416d14
push eax
call fcn.0040752f
add esp, 4
mov eax, dword [0x4785f8]
test eax, eax
je 0x416d26
push eax
call fcn.0040752f
add esp, 4
mov esi, dword [0x4785fc]
test esi, esi
je 0x416dae
cmp dword [0x478714], 0
mov dword [ebp - 4], 0
jl 0x416da5
add esi, 4
xor ebx, ebx
cmp dword [esi - 4], ebx
jle 0x416d7e
xor edi, edi
lea esp, [esp]
mov ecx, dword [esi]
mov eax, dword [edi + ecx]
test eax, eax
je 0x416d62
push eax
call fcn.0040752f
add esp, 4
mov edx, dword [esi]
mov eax, dword [edx + edi + 8]
test eax, eax
je 0x416d75
push eax
call fcn.0040752f
add esp, 4
inc ebx
add edi, 0x10
cmp ebx, dword [esi - 4]
jl 0x416d50
mov eax, dword [esi]
test eax, eax
je 0x416d8d
push eax
call fcn.0040752f
add esp, 4
mov eax, dword [ebp - 4]
inc eax
add esi, 0xc
mov dword [ebp - 4], eax
cmp eax, dword [0x478714]
jle 0x416d43
mov esi, dword [0x4785fc]
push esi
call fcn.0040752f
add esp, 4
mov eax, dword [0x4785f4]
test eax, eax
je 0x416dc0
push eax
call fcn.0040752f
add esp, 4
mov eax, dword [0x478708]
test eax, eax
je 0x416dd2
push eax
call fcn.0040752f
add esp, 4
mov eax, dword [0x478d4c]
test eax, eax
je 0x416dee
push eax
call fcn.0040752f
add esp, 4
mov dword [0x478d4c], 0
mov eax, dword [0x437634]
test eax, eax
je 0x416e00
push eax
call fcn.0040752f
add esp, 4
mov eax, dword [0x438644]
test eax, eax
je 0x416e12
push eax
call fcn.0040752f
add esp, 4
mov eax, dword [0x437630]
test eax, eax
je 0x416e24
push eax
call fcn.0040752f
add esp, 4
call fcn.00419c30
cmp byte [0x478d14], 0
je 0x416e42
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsExA]
mov eax, dword [0x478d74]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [0x478d70]
push ecx
push str.GemixApp
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov edx, dword [ebp + 8]
push edx
call fcn.00408b6a
int3
Function at 0x420dd0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x420ed3
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x420ed3
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x420ed3
cmp dword [ebp + 0x14], 1
ja 0x420ed3
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x420ed3
cmp dword [esi], 1
jne 0x420f47
mov eax, dword [esi + 0xc]
push eax
push 4
lea ecx, [ebp - 8]
push 1
push ecx
call fcn.00408143
mov edx, dword [esi + 0xc]
push edx
push 4
lea eax, [ebp - 4]
push 1
push eax
call fcn.00408143
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
imul eax, edi
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp ecx, eax
ja 0x420ed3
cmp dword [ebp - 8], 0
je 0x420efe
mov ecx, dword [esi + 0xc]
push ecx
push 4
lea edx, [ebp + 8]
push 1
push edx
call fcn.00408143
mov eax, dword [ebp + 8]
push eax
call fcn.004075a9
mov edi, eax
add esp, 0x14
test edi, edi
je 0x420ed3
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
push 1
push edi
call fcn.00408143
mov esi, dword [esi + 8]
add esp, 0x10
mov dword [ebp - 0x10], eax
test esi, esi
je 0x420ec2
cmp dword [ebp + 0x14], 0
je 0x420ec2
mov edx, esi
mov eax, 0x335f79
call fcn.00422100
xor esi, esi
cmp dword [ebp + 8], esi
jbe 0x420ec2
call fcn.004220c0
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 8]
jb 0x420eb4
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jbe 0x420edc
push edi
call fcn.0040752f
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push ecx
push edi
lea edx, [ebp - 4]
push edx
push ebx
call section..text
push edi
call fcn.0040752f
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
push eax
push ecx
push 1
push ebx
call fcn.00408143
mov esi, dword [esi + 8]
add esp, 0x10
mov edi, eax
test esi, esi
je 0x420f84
cmp dword [ebp + 0x14], 0
je 0x420f84
mov edx, esi
mov eax, 0x335f79
call fcn.00422100
xor esi, esi
cmp dword [ebp - 4], esi
jbe 0x420f84
call fcn.004220c0
xor byte [esi + ebx], al
inc esi
cmp esi, dword [ebp - 4]
jb 0x420f30
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0xc]
push ecx
push edi
push eax
push ebx
call fcn.00408143
mov esi, dword [esi + 8]
add esp, 0x10
mov edi, eax
test esi, esi
je 0x420f84
cmp dword [ebp + 0x14], 0
je 0x420f84
mov edx, esi
mov eax, 0x335f79
call fcn.00422100
xor esi, esi
test edi, edi
je 0x420f84
call fcn.004220c0
xor byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x420f77
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [0x4307b8], eax
mov dword [0x4307bc], eax
mov dword [0x4307c0], eax
mov dword [0x4307c4], eax
mov dword [0x4307c8], eax
mov dword [0x4307cc], eax
mov dword [0x4307d0], eax
mov dword [0x4307d4], eax
mov dword [0x4307d8], eax
mov dword [0x4307dc], eax
mov dword [0x4307e0], eax
mov dword [0x4307e4], eax
mov dword [0x4307e8], eax
mov dword [0x4307ec], eax
mov dword [0x4307f0], eax
mov dword [0x4307f4], eax
mov dword [0x4307f8], eax
mov dword [0x4307fc], eax
mov dword [0x430800], eax
mov dword [0x430804], eax
mov dword [0x430808], eax
mov dword [0x43080c], eax
mov dword [0x430810], eax
mov dword [0x430814], eax
mov dword [0x430818], eax
mov dword [0x43081c], eax
mov dword [0x430820], eax
mov dword [0x430824], eax
mov dword [0x430828], eax
mov dword [0x43082c], eax
mov dword [0x430830], eax
mov dword [0x430834], eax
test edx, edx
je 0x4221c7
xor eax, eax
sub edx, 0x4307b8
lea esp, [esp]
mov cl, byte [edx + eax + 0x4307b8]
test cl, cl
je 0x4221c7
xor byte [eax + 0x4307b8], cl
inc eax
cmp eax, 0x7f
jl 0x4221b0
and byte [0x430837], 0x7f
mov edx, 0x200
mov al, byte [0x430837]
movzx ecx, al
mov cl, byte [ecx + 0x4307b8]
add cl, al
and cl, 0x7f
mov byte [0x430837], cl
cmp cl, 0x7f
jne 0x4221f9
xor cl, cl
mov byte [0x430837], cl
inc al
movzx ecx, cl
add byte [ecx + 0x4307b8], al
mov cl, byte [0x430837]
movzx eax, cl
mov al, byte [eax + 0x4307b8]
add al, cl
and al, 0x7f
mov byte [0x430837], al
cmp al, 0x7f
jne 0x422227
xor al, al
mov byte [0x430837], al
movzx eax, al
inc cl
add byte [eax + 0x4307b8], cl
mov cl, byte [0x430837]
movzx eax, cl
mov al, byte [eax + 0x4307b8]
add al, cl
and al, 0x7f
mov byte [0x430837], al
cmp al, 0x7f
jne 0x422255
xor al, al
mov byte [0x430837], al
movzx eax, al
inc cl
add byte [eax + 0x4307b8], cl
mov cl, byte [0x430837]
movzx eax, cl
mov al, byte [eax + 0x4307b8]
add al, cl
and al, 0x7f
mov byte [0x430837], al
cmp al, 0x7f
jne 0x422283
xor al, al
mov byte [0x430837], al
movzx eax, al
inc cl
add byte [eax + 0x4307b8], cl
dec edx
jne 0x4221d3
ret
Function at 0x106ce
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 8], 5
jne 0x10753
cmp dword [ebp - 4], 2
jne 0x1070f
push ebx
pop ebx
mov eax, eax
pushfd
popfd
push ecx
pop ecx
push ebx
pop ebx
push ebx
pop ebx
push esi
pop esi
je 0x10703
mov dword [0x11234], 0x193
leave
ret
cmp dword [ebp - 4], 1
jne 0x10731
mov eax, eax
mov esi, esi
push ebx
pop ebx
push ebx
pop ebx
je 0x1071f
mov esi, esi
mov eax, eax
pushal
popal
mov dword [0x11234], 0x194
leave
ret
cmp dword [ebp - 4], 0
jne 0x10779
mov edx, edx
jmp 0x1073b
jne 0x1073d
mov esi, esi
push eax
pop eax
mov edx, edx
mov ebx, ebx
mov ecx, ecx
mov dword [0x11234], 0x189
leave
ret
cmp dword [ebp - 8], 6
jne 0x10779
cmp dword [ebp - 4], 1
jne 0x10779
pushal
popal
mov esi, esi
push edx
pop edx
mov edx, edx
jmp 0x10769
mov edx, edx
mov edx, edx
push esi
pop esi
mov dword [0x11234], 0x1a7
leave
ret
Function at 0x402a5c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a99
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402ab9
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040468c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402c20
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040441c
test esi, esi
jne 0x402c56
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040450c
jmp 0x402c74
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402b34
mov edi, eax
test esi, esi
je 0x402c74
cmp dword [ebx], 0
je 0x402c74
dec esi
jmp 0x402c5d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402fac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5aa008], 0x8088405
inc edx
mov dword [ebx + 0x5aa008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403434
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x5aa024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4034cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4034ac
xor eax, eax
push ebp
push 0x4034a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4034e8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4034ac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x5aa024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x5aa024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4041fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5b404c], 0
je 0x40425d
cmp word [0x5b4220], 0xd7b2
jne 0x404225
cmp dword [0x5b4228], 0
jbe 0x404225
mov eax, 0x5b421c
call dword [0x5b4238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x5aa070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404284
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5aa034], 0
jne 0x404279
push 0
push 0x5aa068
push 0x5aa070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4043d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402874
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x5b404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404398
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc