joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b30
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x411014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x20], eax
xor edi, edi
mov dword [eax], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
movups xmmword [ebp - 0x18], xmm0
test eax, eax
je 0x404cac
nop dword [eax]
push 0
push 1
dec eax
push 2
mov dword [ebp + 0xc], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404b91
mov ebx, str.Call_to_socket_failed_with_error__d._n
jmp 0x404c15
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x404bc7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Call_to_setsockopt_failed_with_error__d._n
push 2
call fcn.004027c0
add esp, 0xc
mov eax, 2
push 0
mov word [ebp - 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x14], eax
movzx eax, word [ebx]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x404c02
mov ebx, str.Call_to_bind_failed_with_error__d._n
jmp 0x404c15
push 5
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x404c2d
mov ebx, str.Call_to_listen_failed_with_error__d._n
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push 2
call fcn.004027c0
add esp, 0xc
test edi, edi
je 0x404c87
jmp 0x404c7e
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
jne 0x404c59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Call_to_CreateEvent_failed_with_error__d._n
push 2
call fcn.004027c0
add esp, 0xc
jmp 0x404c8f
push 8
push edi
push esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x404cbf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAEventSelect_failed_with_error__d._n
push 2
call fcn.004027c0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov ebx, dword [ebp - 0x1c]
cmp esi, 0xffffffff
je 0x404c96
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x20]
mov dword [eax], 0xffffffff
inc dword [ebx]
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x404b70
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004083a0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.004083a0
mov esp, ebp
pop ebp
ret
Function at 0x405940
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 8
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40596c
pop esi
mov dword [ebp + 0xc], str.out_of_memory_allocation_OnSocketConnectParams_structure._n
mov dword [ebp + 8], 2
pop ebp
jmp fcn.004027c0
mov eax, dword [ebp + 8]
push 0
push 0
push esi
push 0x403de0
mov dword [esi], eax
mov al, byte [ebp + 0xc]
push 0
push 0
mov byte [esi + 4], al
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4059ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_create_thread_to_handle_socket_connection.__error__d_._n
push 2
call fcn.004027c0
add esp, 0xc
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
pop esi
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret

Function at 0x4239a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.TGOqOPny
lea edi, [esi - 0x19000]
push edi
or ebp, 0xffffffff
jmp 0x4239c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4239c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4239b8
mov eax, 1
add ebx, ebx
jne 0x4239db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4239d0
jne 0x4239ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4239d0
xor ecx, ecx
sub eax, 3
jb 0x423a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x423a72
mov ebp, eax
add ebx, ebx
jne 0x423a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x423a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x423a3c
inc ecx
add ebx, ebx
jne 0x423a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x423a1d
jne 0x423a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x423a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x423a4d
jmp 0x4239be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x423a5c
add edi, ecx
jmp 0x4239be
pop esi
mov edi, esi
mov ecx, 0x138
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x423a7a
cmp byte [edi], 6
jne 0x423a7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x423a7f
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x423aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x423aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23030]
or eax, eax
je 0x423ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x423ac9
call dword [esi + 0x2302c]
mov ebp, dword [esi + 0x23034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x423b22
sub esp, 0xffffff80
jmp 0x4038fc
Function at 0x403ee0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sahf
mov byte [ebp - 0x755], 0x96
mov byte [ebp - 0x754], 0xa7
mov byte [ebp - 0x753], 0x88
mov byte [ebp - 0x752], 0x82
mov byte [ebp - 0x751], 0x96
mov byte [ebp - 0x750], 0x88
mov byte [ebp - 0x74f], 0x89
mov byte [ebp - 0x74e], 0x8d
mov byte [ebp - 0x74d], 0xd5
mov byte [ebp - 0x74c], 0x9f
mov byte [ebp - 0x74b], 0x97
mov byte [ebp - 0x74a], 0x97
mov byte [ebp - 0x749], 0xfb
lea eax, [ebp - 0x77c]
push eax
call fcn.0040241a
pop ecx
mov al, byte [ebp - 0x12c]
mov byte [ebp - 0x778], al
push 0x30
lea eax, [ebp - 0x77c]
push eax
call fcn.0040241a
pop ecx
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.0040237b
add esp, 0xc
lea eax, [ebp - 0x504]
mov dword [ebp - 0x3a0], eax
jmp 0x404382
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.0040240a
pop ebx
std
invalid

Function at 0x4062b0
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x43eda8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x451c14]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
xor edx, edx
call section..text
test eax, eax
je 0x4062e9
mov word [esi + 4], ax
mov word [esi + 2], ax
mov word [esi], ax
jmp 0x406364
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push 0x4445a4
lea ecx, [esp + 8]
mov word [esi + 2], ax
call fcn.004025b0
push 0xd2
mov dword [esp + 0x14], 0
call fcn.0041af58
test eax, eax
je 0x40632f
push 0xd2
push eax
lea ecx, [esp + 0xc]
call fcn.00402430
mov edx, dword [esp + 4]
call section..text
mov word [esi + 4], ax
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406364
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
movzx ecx, word [esi]
push ecx
push 0x445260
mov ecx, 0x463520
call fcn.0040bf70
movzx edx, word [esi + 2]
push edx
push str.Default_UI_Language:_0x_04x
mov ecx, 0x463520
call fcn.0040bf70
movzx eax, word [esi + 4]
push eax
push str.Current_Language:_0x_04x
mov ecx, 0x463520
call fcn.0040bf70
add esp, 0x18
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x4077b0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x43ecc8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push str.CI3DeleteFile
mov ecx, 0x463520
call fcn.0040bf70
add esp, 4
xor esi, esi
mov dword [ebp - 4], esi
cmp edi, esi
je 0x40792e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x407812
sub eax, edx
sar eax, 1
je 0x40792e
push 0x800
push esi
lea eax, [ebp]
push eax
call fcn.00428ee0
add esp, 0xc
push edi
lea ecx, [ebp - 0x18]
call fcn.004025b0
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x18]
call fcn.00409280
mov edi, eax
call fcn.00409300
push 0x3ff
mov ecx, dword [ebp - 0x18]
push ecx
push 0x400
lea edx, [ebp]
push edx
call fcn.00426b21
add esp, 0x10
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407902
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4078b9
lea ecx, [ebp]
push ecx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x463520
call fcn.0040be20
add esp, 8
mov dword [ebp - 0x1c], esi
push 0x44d030
lea edx, [ebp - 0x1c]
push edx
call fcn.0042903a
sub eax, 2
je 0x4078fd
sub eax, 3
je 0x4078e2
sub eax, 0x1b
je 0x4078f1
lea eax, [ebp]
push eax
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x463520
call fcn.0040be20
add esp, 8
jmp 0x407902
push 0x80
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp]
call fcn.004079b0
mov esi, eax
jmp 0x4078ff
xor esi, esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407925
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
jmp 0x407989
mov eax, 0x57
jmp 0x40798b
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0042683e
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x4079b0
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00429090
push 0xffffffffffffffff
push 0x43e460
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x407b50
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x407a07
sub eax, edx
sar eax, 1
je 0x407b50
push 0x5c
push edi
call fcn.004275d1
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x407b50
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.00428ee0
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x407a6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x44d030
lea edx, [ebp - 0x1c]
push edx
call fcn.0042903a
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.00428ee0
add esp, 0xc
lea ecx, [ebp + 0x800]
push ecx
push ebx
add esi, 2
push esi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x407ab3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x44d030
lea eax, [ebp - 0x24]
push eax
call fcn.0042903a
push 3
lea ecx, [ebp + 0x800]
push ecx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
jne 0x407ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x44d030
lea edx, [ebp - 0x20]
push edx
call fcn.0042903a
push 4
push ebx
lea eax, [ebp + 0x800]
push eax
call esi
test eax, eax
jne 0x407b07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x44d030
lea ecx, [ebp - 0x18]
push ecx
call fcn.0042903a
lea edx, [ebp + 0x800]
push edx
push edi
push str.__s__file_was_moved_to___s__and_it_will_be_deleted_after_reboot__
mov ecx, 0x463520
call fcn.0040bf70
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042683e
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x407b2b
Function at 0x40bc60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e430
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1810
call fcn.00429090
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x800
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1818]
push eax
call fcn.00428ee0
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x1018]
push ecx
call fcn.00428ee0
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x818]
push edx
call fcn.00428ee0
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
je 0x40bce7
mov al, 1
jmp 0x40bdc5
push 0x400
lea eax, [ebp - 0x1818]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40bd15
mov byte [ebp - 0x181a], bl
push 0x44d14c
lea ecx, [ebp - 0x181a]
push ecx
call fcn.0042903a
push 0x5c
lea edx, [ebp - 0x1818]
push edx
call fcn.004275d1
add esp, 8
mov edi, eax
cmp edi, ebx
je 0x40bd31
add edi, 2
jmp 0x40bd36
mov edi, str.SSLog
lea eax, [ebp - 0x1018]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea ecx, [ebp - 0x1018]
push ecx
push str._s_s.log
lea edx, [ebp - 0x818]
call fcn.004059c0
add esp, 0xc
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
lea edx, [ebp - 0x818]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40bd8d
mov byte [ebp - 0x1819], bl
mov byte [esi + 0x204], 1
push str.Manual_Viewer
push pe_nt_image_headers32
lea eax, [esi + 4]
push eax
call fcn.0042771d
add esp, 0xc
mov ecx, esi
call fcn.0040c180
mov byte [ebp - 0x1819], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1819]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042683e
mov esp, ebp
pop ebp
ret
Function at 0x40be20
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e400
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4008
call fcn.00429090
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
cmp dword [esi], 0
je 0x40bf2c
mov dword [ebp - 4], 0
push 0x2000
push 0
lea eax, [ebp - 0x2014]
push eax
call fcn.00428ee0
push 0x2000
push 0
lea ecx, [ebp - 0x4014]
push ecx
call fcn.00428ee0
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x1000
lea ecx, [ebp - 0x2014]
push ecx
call fcn.00426d67
add esp, 0x28
test edi, edi
je 0x40befe
push 0
push 0
lea edx, [ebp - 0x4018]
push edx
push 0x409
push edi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebp - 0x4018]
test eax, eax
je 0x40befe
push eax
push edi
lea eax, [esi + 4]
push eax
push str.___s___Error_Code___d_:_s
lea edx, [ebp - 0x4014]
call fcn.0040c5b0
add esp, 0x10
mov ecx, dword [ebp - 0x4018]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea edx, [ebp - 0x2014]
mov ecx, esi
call fcn.0040c060
test edi, edi
je 0x40bf25
lea edx, [ebp - 0x4014]
mov ecx, esi
call fcn.0040c060
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042683e
mov esp, ebp
pop ebp
ret

Function at 0x40c4a0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.00429090
push 0xffffffffffffffff
push 0x43e340
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp dword [esi], ebx
jne 0x40c4f4
xor eax, eax
jmp 0x40c571
cmp byte [esi + 0x20c], bl
jne 0x40c4f0
mov dword [ebp - 4], ebx
mov byte [esi + 0x20c], 1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0x1000
push ebx
lea ecx, [ebp]
push ecx
call fcn.00428ee0
add esp, 0xc
push ebx
push ebx
push 0x1000
lea edx, [ebp]
push edx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40c540
sub eax, edx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea edx, [ebp]
push edx
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
mov byte [esi + 0x20c], bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0042683e
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
Function at 0x40c7a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e260
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x451c14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
je 0x40c8df
cmp dword [ebp + 0x14], ebx
je 0x40c8df
cmp edx, ebx
je 0x40c832
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c7f4
sub eax, esi
sar eax, 1
je 0x40c832
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push edx
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40c838
mov dword [ebp - 0x24], eax
push 0x44d030
lea edx, [ebp - 0x24]
push edx
call fcn.0042903a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00418971
mov esi, eax
mov dword [ebp - 0x20], esi
mov edx, dword [ebp + 0x14]
push edx
push ebx
push esi
call fcn.00428ee0
add esp, 0x10
cmp esi, ebx
jne 0x40c86d
mov dword [ebp - 0x28], 0xe
push 0x44d030
lea eax, [ebp - 0x28]
push eax
call fcn.0042903a
lea ecx, [ebp + 0x14]
push ecx
push esi
lea edx, [ebp - 0x1c]
push edx
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x40c89f
mov dword [ebp - 0x2c], edi
push 0x44d030
lea edx, [ebp - 0x2c]
push edx
call fcn.0042903a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
je 0x40c8bf
cmp ecx, 1
jne 0x40c8d6
cmp eax, 2
jne 0x40c8d6
mov eax, dword [ebp + 0x14]
push eax
push esi
push eax
mov eax, dword [ebp + 0x10]
push eax
jmp 0x40c8c9
mov eax, dword [ebp + 0x14]
push eax
push esi
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004268d0
add esp, 0x10
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x40c920
mov dword [ebp - 0x30], 0x57
push 0x44d030
lea edx, [ebp - 0x30]
push edx
call fcn.0042903a
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, 0x40c91b
ret
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x40c933
cmp eax, dword [ebp + 8]
je 0x40c933
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x40c943
push eax
call fcn.0041896c
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c960
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x43e230
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x28], eax
mov esi, edx
mov dword [ebp - 0x2c], ecx
mov edi, 0x1000
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x40cad6
mov dword [ebp - 0x18], eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x1c]
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40c9f6
mov dword [ebp - 0x30], eax
push 0x44d030
lea eax, [ebp - 0x30]
push eax
call fcn.0042903a
mov dword [ebp - 0x20], ebx
cmp ebx, dword [ebp - 0x1c]
jge 0x40ca88
push 0x800
push 0
lea ecx, [ebp]
push ecx
call fcn.00428ee0
add esp, 0xc
push 0x400
lea edx, [ebp]
push edx
push ebx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40ca80
lea ecx, [ebp]
push ecx
push edi
push esi
call fcn.0042771d
add esp, 0xc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ca40
sub eax, edx
sar eax, 1
or edx, 0xffffffff
sub edx, eax
add edi, edx
mov dword [ebp - 0x34], edi
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ca60
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40ca80
add dword [eax], 1
add ebx, 1
jmp 0x40c9f6
mov word [esi], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40caae
cmp eax, dword [ebp - 0x28]
je 0x40caae
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0042683e
add ebp, 0x804
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x24], 0x57
push 0x44d030
lea eax, [ebp - 0x24]
push eax
call fcn.0042903a
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x40cafe
ret