joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027604
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 1
push 0x5963
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10027390
add esp, 0x10
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10027639
xor eax, eax
jmp 0x10027780
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10027657
xor eax, eax
jmp 0x10027780
push 0x56cd
push dword [ebp - 8]
push 1
lea eax, [ebp - 0xc]
push eax
push 0x75f8
call fcn.1002712c
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x1002767f
xor eax, eax
jmp 0x10027780
push 0
lea eax, [ebp - 0xc]
push eax
push 0x12e8
push dword [ebp - 0x10]
push dword [ebp - 8]
push 0x682
push 0x665
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
call fcn.100273db
add esp, 0x24
push 0x4c43
push dword [ebp - 8]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.10023a47
add esp, 0x14
push 1
push 0x61bb
lea eax, [ebp - 0x1c]
push eax
push 0x1ae
push 0x428b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x5049
push 0x3a54
call fcn.100273db
add esp, 0x24
lea eax, [ebp - 0x1c]
push eax
push 0x4aa8
push 1
lea eax, [ebp - 4]
push eax
call fcn.10027556
add esp, 0x10
push dword [ebp - 4]
call fcn.1002701d
pop ecx
test eax, eax
jne 0x10027719
xor eax, eax
jmp 0x10027780
lea eax, [ebp - 4]
push eax
push 1
call fcn.100275c8
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10027768
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x10027745
xor eax, eax
jmp 0x10027780
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002775e
xor eax, eax
jmp 0x10027780
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10027779
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x1002777d
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x10037be1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10037c0a
push 0x2286
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x10037c1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and dword [eax], 0
mov esp, ebp
pop ebp
ret

Function at 0x10037cf8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10037ea6
mov dword [ebp - 0x10], 0xef7d6512
mov dword [ebp - 8], 0x88999d94
mov dword [ebp - 0xc], 0x281d21f1
mov dword [ebp - 4], 0x26ec17e5
mov dword [ebp - 0x50], 0x1e33ecdc
mov dword [ebp - 0x4c], 0x1e33ecdc
mov dword [ebp - 0x48], 0x1e33ecdc
mov dword [ebp - 0x44], 0x1e33ecdc
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], 0xfff8
mov dword [ebp - 0x60], 0xa6ad
mov dword [ebp - 0x5c], 0xa6ad
mov dword [ebp - 0x58], 0xa6ad
mov dword [ebp - 0x54], 0xa6ad
mov dword [ebp - 0x40], 0xa97
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
inc edx
mov dword [ebp - 4], edx
cmp ecx, eax
jle 0x10037e49
or eax, 0xffffffff
sub eax, dword [ebp - 4]
cmp eax, dword [ebp - 4]
jle 0x10037d9c
mov dword [ebp - 0x14], 1
jmp 0x10037da0
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0x9b4
jle 0x10037db2
mov dword [ebp - 0x18], 1
jmp 0x10037db6
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 4]
cmp eax, 1
jle 0x10037dca
mov dword [ebp - 0x1c], 1
jmp 0x10037dce
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x1c]
cmp eax, 0x8846
jle 0x10037de4
mov dword [ebp - 0x20], 1
jmp 0x10037de8
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
jg 0x10037dff
mov dword [ebp - 0x24], 1
jmp 0x10037e03
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 1
jge 0x10037e12
mov dword [ebp - 0x28], 1
jmp 0x10037e16
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx + 0xfffd]
imul eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 7
je 0x10037e40
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x50], 0
mov eax, 0xeda781b5
test eax, eax
jne 0x10037e55
cmp dword [ebp - 0xc], 0
jne 0x10037e55
and dword [ebp - 0x2c], 0
jmp 0x10037e5c
mov dword [ebp - 0x2c], 1
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x50]
cmp dword [ebp - 0x2c], eax
jg 0x10037e73
mov dword [ebp - 0x30], 1
jmp 0x10037e77
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0xdf39
je 0x10037e89
mov dword [ebp - 0x34], 1
jmp 0x10037e8d
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
imul eax, dword [ebp - 0x3c]
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x60], eax
jmp 0x10037eb3
push 0x2f9
push 0
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esp, ebp
pop ebp
ret
Function at 0x10038720
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1003874b
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10038749
push 0x12fd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
jmp 0x10038772
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x10038772
push 0
push 0xc19
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
mov esp, ebp
pop ebp
ret
Function at 0x10077110
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10080330]
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.10068034
mov dword [ebp - 0x14], eax
cmp dword [0x1066debc], esi
jne 0x10077203
push 0x800
push esi
push 0x1000823c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10077190
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100772e3
push esi
push esi
push 0x1000823c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100772e3
push 0x10008254
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100772e3
push eax
call ebx
push 0x10008260
push edi
mov dword [0x1066debc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008270
push edi
mov dword [0x1066dec0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10008284
push edi
mov dword [0x1066dec4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066decc], eax
test eax, eax
je 0x10077200
push 0x100082a0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066dec8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10077228
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007721b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007723d
push 4
pop eax
jmp 0x100772e5
cmp dword [ebp - 0x14], esi
je 0x1007723d
push dword [0x1066debc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10077222
mov eax, dword [0x1066dec8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007729b
cmp dword [0x1066decc], edi
je 0x1007729b
push eax
call ebx
push dword [0x1066decc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007729b
test eax, eax
je 0x1007729b
call ecx
test eax, eax
je 0x10077290
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 0x10077290
test byte [ebp - 8], 1
jne 0x1007729b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100772cb
mov eax, dword [0x1066dec0]
cmp eax, edi
je 0x100772c8
push eax
call ebx
test eax, eax
je 0x100772c8
call eax
mov esi, eax
test esi, esi
je 0x100772c8
mov eax, dword [0x1066dec4]
cmp eax, edi
je 0x100772c8
push eax
call ebx
test eax, eax
je 0x100772c8
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1066debc]
call ebx
test eax, eax
je 0x100772e3
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100772e5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100627d9
mov esp, ebp
pop ebp
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x43b649
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
add edi, 0x4d56a184
mov ebx, edi
add ebx, edi
call fcn.0043b696
push edi
pop edi
mov ebx, 0xb00d2f20
xor dword [esi], eax
mov ebx, edi
inc ebx
sub ebx, 0xe1f73031
add esi, 1
sub edi, 0xe2b94af1
add ebx, 0x9d884ffc
sub ebx, 0x4c051a66
cmp esi, ecx
jne fcn.0043b649
add ebx, 0x61e7750a
ret
Function at 0x401910
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004026b0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004026b0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401970
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406074]
test esi, esi
jle 0x401a90
mov eax, dword [0x406078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4019a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a27
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401990
mov dword [esp], ebx
call fcn.004022f0
mov edi, eax
test eax, eax
je 0x401ab7
mov eax, dword [0x406078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402430
mov edx, dword [0x406078]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a97
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a20
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401a30
add dword [0x406074], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406078]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401910
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4019ae
mov eax, dword [0x406078]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401910
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401910
lea esi, [esi]
nop
Function at 0x401f70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406088]
sub esp, 4
test ebx, ebx
je 0x401fc5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401fbe
test esi, esi
je 0x401fbe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fa0
mov dword [esp], 0x406090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4022f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402315
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402320
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402315
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x402368
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40235e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40236a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402350
xor eax, eax
pop ebx
pop esi
ret

Function at 0x7c07c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7c07d2
pushal
call 0x7c07d8
pop ebp
sub ebp, 0x10
sub ebp, 0x3c07c8
jmp 0x7c07ee
mov eax, 0x3c07c8
add eax, ebp
add eax, 0x4c
mov ecx, 0x61b
mov edx, 0x4c2b2c66
xor byte [eax], dl
inc eax
dec ecx
jne 0x7c0805
jmp 0x7c0818
in eax, dx
stosd dword es:[edi], eax
in eax, dx
out dx, eax
pop edx
out 0xa7, ax
sahf
stosw word es:[edi], ax
fisub word [edx + 0x66]
fmul qword [esi + 0x66]
xchg cx, ax
test byte [ebp - 0x52], ah
in eax, dx
out 0x6a, eax
mov word gs:[0x60e3636], ax
shr dword [eax + 0x66], cl
push cs
add byte [ebx + ecx*2], dh
dec dx
inc edx
push cs
cmp esp, dword [edx + 0x638eaab5]
invalid
Function at 0x401d06
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
jne 0x401d33
lea eax, [esp + 0xc]
push eax
push edi
push esi
push 0x401be9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x14], eax
jne 0x401d3d
push 0xfffffffffffffffc
pop eax
jmp 0x401d82
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
jmp 0x401d4a
push edi
call ebx
cmp dword [esi + 0x48], edi
je 0x401d47
lea ebp, [esi + 0x28]
push ebp
mov dword [esi + 0x44], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0x44], 1
jmp 0x401d68
push edi
call ebx
cmp dword [esi + 0x48], edi
jne 0x401d65
cmp dword [esi + 0x4c], edi
je 0x401d7e
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x50]
jmp 0x401d80
xor eax, eax
pop ebp
pop ebx
pop edi
pop esi
ret 4

Function at 0x401f18
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40a064], 0
push esi
jne 0x401f4f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x401f29
mov dword [ecx*4 + 0x40a060], eax
inc ecx
cmp ecx, 0x100
jl 0x401f24
mov esi, dword [esp + 0x10]
test esi, esi
mov eax, dword [esp + 8]
not eax
jbe 0x401f7b
mov ecx, dword [esp + 0xc]
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x40a060]
inc ecx
dec esi
jne 0x401f61
not eax
pop esi
ret 0xc

Function at 0x401f81
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 8
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401ff3
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x401fcc
cmp dword [ebp + 0x10], ebx
jne 0x401ffa
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401f81
test eax, eax
jne 0x401fde
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x401fb3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x401ff3
Function at 0x403e50
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x420150]
sub esi, dword [0x42015c]
mov ebx, eax
add esi, dword [esp + 0x38]
add ebx, 0x1f4
cmp esi, edi
jle 0x404021
push dword [0x420158]
call fcn.00403e39
push edi
push edi
push dword [0x42015c]
push dword [0x40a004]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41c148], esi
mov dword [0x41c140], edi
mov eax, dword [0x420154]
sub eax, dword [0x420158]
mov ebp, 0x4000
cmp eax, ebp
jg 0x403ec4
mov ebp, eax
push ebp
mov esi, 0x41c150
push esi
call fcn.00403e07
test eax, eax
je 0x40402d
add dword [0x420158], ebp
mov dword [0x414100], esi
mov dword [0x414104], ebp
cmp dword [0x425fa8], edi
je 0x403f76
cmp dword [0x42603c], edi
jne 0x403f76
cmp dword [esp + 0x10], edi
je 0x403f43
mov eax, dword [0x41c148]
sub eax, dword [0x420150]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
sub eax, dword [esp + 0x38]
add eax, dword [0x42015c]
mov dword [0x41c140], eax
jmp 0x403f31
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [esp + 0x24]
push edi
push eax
call esi
test eax, eax
jne 0x403f26
jmp 0x403f76
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jbe 0x403f76
mov eax, dword [0x425fa0]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x403d46
push edi
push 0x6f
push dword [0x425fa4]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x4140e8
mov dword [0x414108], 0x414140
mov dword [0x41410c], 0x8000
call fcn.00401d06
test eax, eax
jl 0x404036
mov esi, dword [0x414108]
mov eax, 0x414140
sub esi, eax
je 0x403fdd
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
push dword [0x40a004]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404032
cmp esi, dword [esp + 0x14]
jne 0x404032
add dword [0x42015c], esi
cmp dword [0x414104], edi
jne 0x403eea
jmp 0x403fe9
cmp dword [0x414104], edi
jne 0x404036
cmp ebp, edi
je 0x404036
mov eax, dword [0x420150]
mov ecx, eax
sub ecx, dword [0x42015c]
add ecx, dword [esp + 0x38]
test ecx, ecx
jg 0x403eae
push edi
push edi
push eax
push dword [0x40a004]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x10], edi
je 0x404021
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
or eax, 0xffffffff
jmp 0x404023
push 0xfffffffffffffffe
jmp 0x404038
push 0xfffffffffffffffd
pop eax
jmp 0x404023
Function at 0x40403b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x404067
mov ecx, dword [0x425ff0]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a004]
mov dword [0x420150], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403e50
cmp eax, edi
jl 0x404160
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a004]
call ebx
test eax, eax
je 0x40415c
cmp dword [ebp - 4], esi
jne 0x40415c
push dword [ebp + 8]
add dword [0x420150], esi
call fcn.00403e50
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40415f
cmp dword [ebp + 0x10], edi
jne 0x40412b
cmp dword [ebp + 8], edi
jle 0x404157
mov esi, 0x41c150
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4040db
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a004]
call ebx
test eax, eax
je 0x40415c
cmp edi, dword [ebp - 4]
jne 0x40415c
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404127
cmp dword [ebp + 0x14], edi
jne 0x404127
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x420150], eax
cmp dword [ebp + 8], 0
jg 0x4040ce
jmp 0x404157
push 0xfffffffffffffffe
jmp 0x40415e
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x404136
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a004]
call ebx
test eax, eax
je 0x40415c
mov eax, dword [ebp - 4]
add dword [0x420150], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40415f
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x404943
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x42d000], 0
push ebx
push ebp
push esi
push edi
mov edi, 0xffff
mov ebx, 0x42d000
je 0x404962
push ebx
call fcn.00406b0c
jmp 0x404968
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x425fe4]
test esi, esi
je 0x4049bd
mov ecx, dword [0x425fa8]
mov ecx, dword [ecx + 0x5c]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x425fe0]
xor ebp, ebp
add ecx, edx
mov bp, word [ecx]
xor bp, ax
dec esi
and ebp, edi
test bp, bp
je 0x4049a2
test esi, esi
jne 0x40498a
jmp 0x4049bd
mov edx, dword [ecx + 2]
mov dword [0x42577c], edx
mov edx, dword [ecx + 6]
mov dword [0x426044], edx
lea edx, [ecx + 0xa]
mov dword [0x425788], edx
cmp dword [0x425788], 0
jne 0x4049d8
cmp di, 0xffff
jne 0x4049d4
mov edi, 0x3ff
jmp 0x40496a
xor edi, edi
jmp 0x40496a
movzx eax, word [ecx]
push eax
push ebx
call fcn.00406af3
push 0xfffffffffffffffe
push 0x4257a0
call fcn.00407017
push eax
push dword [0x42117c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
ret