joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008747
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100eab4]
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_setvbuf]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x220], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 4
add eax, 0x20
push ebx
push eax
call esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
push 4
add eax, 0x40
push ebx
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x21c]
push eax
call fcn.01008999
push 0xc10
mov dword [ebp - 0x18], ebx
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x10087d8
lea eax, [ebp - 0x21c]
push 0x1002eb0
push eax
call fcn.01008969
pop ecx
pop ecx
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.01005e9a
push 1
call dword [sym.imp.msvcrt.dll_exit]
push 0x13
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x84], ebx
mov word [esi + 0x80], bx
mov byte [esi + 0xb04], bl
mov dword [esi + 0xac], ebx
mov dword [esi + 0xc0c], ebx
pop ecx
mov eax, 0x20202020
lea edi, [esi + 0x9b4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
mov byte [esi + 0xa03], bl
call fcn.01005de8
push 0x1002534
push 0x1001860
push 0x1002e48
lea edi, [esi + 0x1b4]
push 0x800
push edi
call fcn.0100c2ed
push edi
mov edi, dword [sym.imp.msvcrt.dll_printf]
call edi
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.010046a0
cmp eax, ebx
je 0x10088d9
mov dword [esi + 8], eax
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
push dword [ebp + 8]
push esi
call fcn.01007555
test eax, eax
je 0x10088d9
cmp dword [esi], 1
jne 0x10088b6
push 0x1002be0
call edi
xor eax, eax
jmp 0x1008956
call dword [sym.imp.msvcrt.dll_clock]
mov dword [esi + 0x74], eax
mov eax, dword [esi]
dec eax
dec eax
je 0x10088eb
dec eax
jne 0x100890b
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01008477
test eax, eax
jne 0x100890b
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01005e9a
xor eax, eax
inc eax
jmp 0x1008957
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.010064b8
test eax, eax
je 0x10088e6
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.0100713d
jmp 0x10088d5
xor eax, eax
cmp dword [esi + 0x38], ebx
setg al
mov edi, eax
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1008929
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0100cb31
mov eax, dword [esi + 0x84]
cmp eax, ebx
je 0x1008939
push eax
call fcn.01009e86
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x100894d
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.01008ab1
push esi
call dword [sym.imp.msvcrt.dll_free]
mov eax, edi
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d065
leave
ret
Function at 0x1008dbd
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
push edi
je 0x1008dd5
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_remove]
test eax, eax
pop ecx
je 0x1008dfe
push dword [esi + 4]
push dword [esi + 8]
push 0x1001b0c
push 0x1002f8c
push dword [ebp + 0xc]
call fcn.01008969
add esp, 0x14
mov eax, dword [esi + 8]
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_free]
je 0x1008e0f
push eax
call edi
pop ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x1008e1a
push eax
call edi
pop ecx
push esi
call edi
pop ecx
xor eax, eax
pop edi
inc eax
pop esi
pop ebp
ret 8
Function at 0x1009428
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
push esi
push esi
push 3
push esi
push esi
mov ebx, 0x40000000
push ebx
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1009470
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push esi
push 3
push esi
push esi
push ebx
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x10094ec
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
xor eax, eax
mov ax, word [edi + 2]
push eax
xor eax, eax
mov ax, word [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
or ebx, eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 4]
or ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ax, word [edi + 4]
push eax
call fcn.01008f1b
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or eax, ebx
jne 0x10094ec
push dword [ebp + 8]
push 0x1001860
push 0x1003108
push dword [ebp + 0x10]
call fcn.01008969
add esp, 0x10
xor eax, eax
jmp 0x10094ef
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10094fb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.msvcrt.dll__open]
push edi
mov edi, dword [ebp + 0xc]
push 0x8000
push edi
call esi
cmp eax, 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x1009543
push edi
push 0x1001860
push 0x1003194
push dword [ebp + 0x20]
call fcn.01008969
add esp, 0x10
jmp 0x100968e
push ebx
mov ebx, dword [ebp + 0x20]
push ebx
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.010093b7
test eax, eax
je 0x1009673
cmp dword [ebp + 0x18], 0
je 0x1009573
push ebx
push dword [ebp + 0x1c]
lea eax, [ebp - 0x14]
push eax
call dword [ebp + 0x18]
test eax, eax
je 0x1009673
cmp dword [ebp + 0x10], 0
jne 0x1009585
mov dword [ebp - 0xc], 1
jmp 0x1009673
mov ecx, dword [ebp + 0x14]
xor edx, edx
inc edx
cmp ecx, edx
ja 0x1009591
mov ecx, edx
mov eax, 0x100000
cmp ecx, eax
jae 0x10095a4
cmp dword [ebp + 0x14], edx
ja 0x10095a7
mov dword [ebp + 0x14], edx
jmp 0x10095a7
mov dword [ebp + 0x14], eax
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x10095d4
push dword [ebp + 8]
push edi
push 0x1001b0c
push 0x1003168
push ebx
call fcn.01008969
add esp, 0x14
jmp 0x1009673
push 0x180
push 0x8301
push dword [ebp + 8]
call esi
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x1009600
push dword [ebp + 8]
push 0x1001860
push 0x1003194
push ebx
jmp 0x10096b6
mov ebx, dword [sym.imp.msvcrt.dll__eof]
jmp 0x1009637
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__read]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x1009697
test esi, esi
je 0x1009637
push esi
push dword [ebp - 4]
push edi
call dword [sym.imp.msvcrt.dll__write]
add esp, 0xc
cmp eax, esi
jne 0x10096a6
push dword [ebp - 8]
call ebx
test eax, eax
pop ecx
je 0x1009608
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp + 0x20]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
or edi, 0xffffffff
call fcn.01009428
test eax, eax
je 0x1009673
mov dword [ebp - 0xc], 1
cmp edi, 0xffffffff
je 0x1009673
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__close]
cmp dword [ebp - 4], 0
pop ecx
pop ebx
je 0x100968e
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret 0x1c
push dword [ebp + 0xc]
push 0x1001860
push 0x1003150
jmp 0x10096b3
push dword [ebp + 0xc]
push 0x1001860
push 0x1003138
push dword [ebp + 0x20]
call fcn.01008969
add esp, 0x10
jmp 0x1009666
Function at 0x100a3fc
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x100eab4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x21c]
push eax
push ebx
xor edi, edi
call fcn.01008d09
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.01008d1d
mov esi, 0x800
push esi
mov dword [ebp - 0x228], eax
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x224], eax
jne 0x100a4a7
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
push dword [ebp - 0x230]
push 0x1001a44
push 0x1003528
push dword [ebp - 0x220]
call fcn.01008969
add esp, 0x18
jmp 0x100a5ac
push dword [ebp - 0x220]
push dword [ebp - 0x238]
push ebx
call fcn.01008d74
test eax, eax
je 0x100a593
push dword [ebp - 0x220]
push ebx
call fcn.01008cf6
mov edi, eax
test edi, edi
je 0x100a593
jmp 0x100a51a
push edi
push esi
push 1
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
test byte [edi + 0xc], 0x20
jne 0x100a54b
test eax, eax
jle 0x100a51a
push dword [ebp - 0x234]
push eax
push 1
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_fwrite]
mov eax, dword [ebp - 0x234]
add esp, 0x10
test byte [eax + 0xc], 0x20
jne 0x100a569
test byte [edi + 0xc], 0x10
je 0x100a4d9
push dword [ebp - 0x220]
push ebx
call fcn.01008d31
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_free]
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100d065
leave
ret 0x14
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
push dword [ebp - 0x230]
push 0x1001a44
push 0x1003508
jmp 0x100a585
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
push dword [ebp - 0x230]
push 0x1001a44
push 0x10034e4
push dword [ebp - 0x220]
call fcn.01008969
add esp, 0x18
push dword [ebp - 0x224]
call dword [sym.imp.msvcrt.dll_free]
test edi, edi
pop ecx
je 0x100a5ac
push edi
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x100a53c
Function at 0x100c45d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0x10]
mov eax, 0x400
cmp dword [ebp + 0x10], eax
jg 0x100c473
mov edx, eax
mov ecx, 0x4000
cmp edx, ecx
jge 0x100c486
cmp dword [ebp + 0x10], eax
jg 0x100c489
mov dword [ebp + 0x10], eax
jmp 0x100c489
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
sub eax, ebx
je 0x100c4bf
dec eax
je 0x100c4b3
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x10018c0
push 0x10039c0
push dword [ebp + 0x14]
call fcn.01008969
add esp, 0x14
jmp 0x100c4f4
mov eax, 0x8102
mov ecx, 0x180
jmp 0x100c4c6
mov eax, 0x8000
xor ecx, ecx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__open]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x100c4fb
push dword [ebp + 8]
push 0x1001860
push 0x10039a8
push dword [ebp + 0x14]
call fcn.01008969
add esp, 0x10
xor eax, eax
jmp 0x100c5fa
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_malloc]
push 0x428
call edi
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x100c52e
push dword [ebp + 8]
push 0x1001860
push 0x1003988
push dword [ebp + 0x14]
call fcn.01008969
add esp, 0x10
jmp 0x100c63a
push dword [ebp + 0x10]
call edi
cmp eax, ebx
pop ecx
mov dword [esi + 0xc], eax
jne 0x100c55f
push esi
call dword [sym.imp.msvcrt.dll_free]
push dword [ebp + 8]
push 0x1001860
push 0x1003988
push dword [ebp + 0x14]
call fcn.01008969
add esp, 0x14
jmp 0x100c63a
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__strdup]
cmp eax, ebx
pop ecx
mov dword [esi], eax
jne 0x100c59a
push dword [esi + 0xc]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push esi
call edi
push dword [ebp + 8]
push 0x1001860
push 0x1003988
push dword [ebp + 0x14]
call fcn.01008969
add esp, 0x18
jmp 0x100c63a
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 8]
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x10], eax
xor eax, eax
cmp dword [ebp + 0xc], ebx
mov dword [esi + 4], edi
sete al
cmp dword [ebp + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], eax
jne 0x100c5f6
push 3
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, 3
jne 0x100c5ff
cmp byte [ebp - 4], 0xef
jne 0x100c5ff
cmp byte [ebp - 3], 0xbb
jne 0x100c5ff
cmp byte [ebp - 2], 0xbf
jne 0x100c5ff
mov dword [esi + 0x24], 1
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
push ebx
push ebx
push edi
call dword [sym.imp.msvcrt.dll__lseek]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100c5f6
push dword [esi]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [esi + 0xc]
call edi
push esi
call edi
push dword [ebp + 8]
push 0x1001860
push 0x10039a8
push dword [ebp + 0x14]
call fcn.01008969
add esp, 0x1c
xor eax, eax
jmp 0x100c5f8
Function at 0x100c643
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x20], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0x100c674
push dword [esi]
push 0x1001860
push 0x10039e4
push dword [ebp + 0x14]
call fcn.01008969
add esp, 0x10
xor eax, eax
jmp 0x100c727
cmp dword [ebp + 0x10], 0
push ebx
jle 0x100c724
xor ebx, ebx
inc ebx
jmp 0x100c6a9
mov ecx, dword [esi + 0x10]
mov al, byte [ecx]
cmp al, 0xa
je 0x100c70b
cmp al, 0xd
je 0x100c6a5
cmp al, 0x1a
je 0x100c6eb
cmp dword [ebp + 0x10], ebx
jle 0x100c6e6
dec dword [ebp + 0x10]
mov byte [edi], al
inc edi
inc dword [esi + 0x10]
jmp 0x100c6a9
inc ecx
mov dword [esi + 0x10], ecx
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
jbe 0x100c684
cmp dword [esi + 0x18], 0
jne 0x100c719
push dword [esi + 8]
push dword [esi + 0xc]
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp eax, dword [esi + 8]
je 0x100c6d1
mov dword [esi + 0x18], ebx
cmp dword [ebp + 0x10], 0
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax - 1]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jg 0x100c6a9
jmp 0x100c724
mov byte [edi], 0
jmp 0x100c724
mov eax, dword [esi + 0xc]
and dword [esi + 0x14], 0
cmp edi, dword [ebp + 0xc]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], eax
mov byte [edi], 0
ja 0x100c703
mov dword [esi + 0x1c], ebx
inc edi
mov eax, edi
sub eax, dword [ebp + 0xc]
jmp 0x100c726
inc dword [esi + 0x10]
mov byte [edi], 0
mov eax, edi
sub eax, dword [ebp + 0xc]
inc eax
jmp 0x100c726
cmp edi, dword [ebp + 0xc]
mov byte [edi], 0
ja 0x100c711
mov dword [esi + 0x1c], ebx
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x100d17d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1003b38
call fcn.0100d348
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100d1b8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100d1b8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100d1d0
cmp eax, 0x20b
je 0x100d1bd
mov dword [ebp - 0x1c], edi
jmp 0x100d1e4
cmp dword [ecx + 0x84], 0xe
jbe 0x100d1b8
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100d1de
cmp dword [ecx + 0x74], 0xe
jbe 0x100d1b8
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100eed8], 0xffffffff
or dword [0x100eedc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100eed4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100eed0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100eee0], eax
call fcn.0100d340
cmp dword [0x100eac0], edi
jne 0x100d23f
push fcn.0100d340
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100d329
push 0x100e010
push 0x100e00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100eecc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100eec8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x100e008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01008747
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x100d2b6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100d2eb
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100d383
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x30015484
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jle 0x300154b4
push esi
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
mov esi, eax
and esi, 0xff
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x3004d340]
inc ecx
cmp ecx, dword [ebp + 0xc]
jl 0x30015492
pop esi
not eax
pop ebp
ret 8
Function at 0x402a54
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.004048c0
test esi, esi
jne 0x402a8a
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.004049b0
jmp 0x402aa8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402908
mov edi, eax
test esi, esi
je 0x402aa8
cmp dword [ebx], 0
je 0x402aa8
dec esi
jmp 0x402a91
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4039e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x459010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a5c
xor eax, eax
push ebp
push 0x403a55
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 0x403a98
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 0x403a5c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x459010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x459010], ax
mov esp, ebp
pop ebp
ret

Function at 0x404744
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45a044], 0
je 0x4047a5
cmp word [0x45a218], 0xd7b2
jne 0x40476d
cmp dword [0x45a220], 0
jbe 0x40476d
mov eax, 0x45a214
call dword [0x45a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x459084
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 0x4047cc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x459020], 0
jne 0x4047c1
push 0
push 0x4590a4
push 0x459084
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406444
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406568
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4063bb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406568
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4063bb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406584
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406444
xor eax, eax
push ebp
push 0x40643d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406180
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406422
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4065a4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406422
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406444
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40655e
cmp byte [ebp - 0xd], 0
jne 0x40648b
cmp byte [ebp - 0x12], 0
je 0x40655e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4064a4
dec ebx
cmp byte [ebx], 0x2e
je 0x4064b3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4064a3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40655e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4064f0
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40655e
cmp byte [ebp - 0xd], 0
je 0x40655e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40655e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret