joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403470
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov eax, ebp
push edi
mov byte [esp + 0x14], 0x2e
mov byte [esp + 0x15], 0x60
mov byte [esp + 0x16], 0x24
mov byte [esp + 0x17], 0x22
mov byte [esp + 0x18], 0x3d
mov byte [esp + 0x19], 0x27
mov byte [esp + 0x1a], 0x5c
mov byte [esp + 0x1b], 0x2c
mov byte [esp + 0x1c], 0x20
mov byte [esp + 0x1d], 0x3b
mov byte [esp + 0x1e], 0x25
mov byte [esp + 0x1f], 0
xor edi, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4034d0
sub eax, edx
je 0x40353d
jmp 0x4034e0
lea eax, [esp + 0x14]
xor edx, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4034f0
sub eax, esi
je 0x40351d
mov bl, byte [edi + ebp]
mov edi, edi
cmp byte [esp + edx + 0x14], bl
je 0x403563
lea eax, [esp + 0x14]
inc edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403510
sub eax, esi
cmp edx, eax
jb 0x403500
mov al, byte [edi + ebp]
cmp al, 0x21
jl 0x403563
cmp al, 0x7f
jg 0x403563
mov eax, ebp
inc edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403530
sub eax, edx
cmp edi, eax
jb 0x4034e0
push str._PROGRAMS
push ebp
call fcn.00412ff0
add esp, 8
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00411e16
add esp, 0x14
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00411e16
add esp, 0x14
ret

Function at 0x403cb0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x42918c]
push esi
push edi
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [0x429270]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x42918c]
push 0x101
push 0x429c4b
push 0x3ec
push edx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov eax, dword [0x42918c]
push 0
push 0
push 0x402
push 0x3fb
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [0x42918c]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x3fb
push ecx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov edx, dword [0x42918c]
push 0
push 0x401
push edx
call esi
push eax
call edi
mov eax, dword [0x42918c]
push 5
push 0x3ea
push eax
call esi
push eax
call edi
push 0
mov dword [0x42744c], 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x404000
Capabilities:
Query environment variable

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push ebp
mov eax, str.TEMP
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x422ac0
mov dword [esp + 0x14], 0
xor ebp, ebp
push 0
push 0
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x404044
mov eax, dword [esp + ebp*4 + 0x10]
inc ebp
test eax, eax
jne 0x404027
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push esi
inc edi
push edi
call fcn.00411e74
mov esi, eax
add esp, 4
test esi, esi
jne 0x40405d
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + ebp*4 + 0x10]
push edi
push esi
push eax
call ebx
mov eax, esi
lea edx, [eax + 1]
jmp 0x404070
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404070
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
je 0x404088
mov byte [eax + esi], 0x5c
mov byte [eax + esi + 1], cl
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4040a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov edi, dword [esp + 0x24]
lea eax, [edi + edi + 1]
push eax
mov byte [esp + 0xc], 0x30
mov byte [esp + 0xd], 0x31
mov byte [esp + 0xe], 0x32
mov byte [esp + 0xf], 0x33
mov byte [esp + 0x10], 0x34
mov byte [esp + 0x11], 0x35
mov byte [esp + 0x12], 0x36
mov byte [esp + 0x13], 0x37
mov byte [esp + 0x14], 0x38
mov byte [esp + 0x15], 0x39
mov byte [esp + 0x16], 0x61
mov byte [esp + 0x17], 0x62
mov byte [esp + 0x18], 0x63
mov byte [esp + 0x19], 0x64
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0x66
call fcn.00411e74
add esp, 4
mov esi, eax
xor ecx, ecx
mov byte [esi], 0
test edi, edi
jbe 0x404159
push ebp
mov ebp, dword [esp + 0x24]
movzx edx, byte [ecx + ebp]
mov eax, edx
shr eax, 4
mov al, byte [esp + eax + 0xc]
and edx, 0xf
mov dl, byte [esp + edx + 0xc]
mov byte [esi + ecx*2], al
mov byte [esi + ecx*2 + 1], dl
inc ecx
cmp ecx, edi
jb 0x404121
pop ebp
mov byte [esi + edi*2], 0
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00411e16
add esp, 0x14
ret
mov byte [esi + edi*2], cl
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
call fcn.00411e16
add esp, 0x14
ret
Function at 0x404170
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x118
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x114], eax
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0xa
mov edi, eax
push 0x5f
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
mov eax, 0x422904
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4041a6
sub eax, edx
mov ebp, eax
mov dword [esp + 0x14], 0
test esi, esi
jne 0x4041d7
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00411e16
add esp, 0x118
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov ebx, eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404259
test ebx, ebx
je 0x404259
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x404259
sub ebx, ebp
js 0x404259
mov eax, dword [esp + 0x10]
push eax
call fcn.00411e74
mov esi, eax
add esp, 4
test esi, esi
je 0x404259
mov ecx, dword [esp + 0x10]
push ecx
push edi
push esi
call fcn.00411f40
add esp, 0xc
mov dword [esp + 0x14], esi
xor ecx, ecx
nop
xor eax, eax
test ebp, ebp
jbe 0x404250
lea edi, [ecx + esi]
lea esp, [esp]
mov dl, byte [edi + eax]
cmp dl, byte [eax + 0x422904]
jne 0x404250
inc eax
cmp eax, ebp
jb 0x404240
cmp eax, ebp
je 0x404274
inc ecx
cmp ecx, ebx
jbe 0x404230
xor eax, eax
mov ecx, dword [esp + 0x124]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00411e16
add esp, 0x118
ret
add esi, ecx
je 0x404259
mov eax, 0x429d70
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404281
mov eax, dword [esp + 0x12c]
lea edx, [esp + 0x1c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404298
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4042b0
sub eax, edx
cmp byte [esp + eax + 0x1b], 0x5c
je 0x4042d6
lea edi, [esp + 0x1c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4042c5
mov ax, word [0x422adc]
mov word [edi], ax
lea eax, [esp + 0x1c]
dec eax
jmp 0x4042e0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4042e0
mov ecx, dword [0x422acc]
mov edx, dword [0x422ad0]
push 0
push 0
mov dword [eax], ecx
mov ecx, dword [0x422ad4]
push 4
mov dword [eax + 4], edx
mov dl, byte [0x422ad8]
push 0
mov dword [eax + 8], ecx
push 0
mov byte [eax + 0xc], dl
push 0xc0000000
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40433e
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041232a
add esp, 4
jmp 0x404259
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0041232a
add esp, 4
test edi, edi
je 0x404259
cmp dword [esp + 0x18], ebp
jne 0x404259
mov eax, 1
jmp 0x40425b
Function at 0x404390
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4043c0
xor eax, eax
pop esi
pop ecx
ret
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call fcn.00411e74
mov edi, eax
add esp, 4
test edi, edi
jne 0x4043f7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
push ebp
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop ebp
jne 0x404426
push edi
call fcn.0041232a
add esp, 4
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
push ebx
push str.9_rt_q2_0_.._p7p2
push edi
call fcn.00402ef0
push edi
mov esi, eax
call fcn.0041232a
add esp, 0x10
pop edi
xor eax, eax
cmp esi, 0xffffffff
pop ebx
setne al
pop esi
pop ecx
ret

Function at 0x404490
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4044bb
mov eax, 1
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x4044e8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 2
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
sub eax, edi
neg eax
sbb eax, eax
pop edi
and eax, 3
pop esi
pop ecx
ret

Function at 0x404a70
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x3c]
add eax, ecx
movzx ecx, word [eax + 0x14]
push ebp
lea edx, [ecx + eax + 0x18]
movzx eax, word [eax + 6]
xor ebp, ebp
push edi
lea edi, [ebp + 1]
cmp eax, edi
mov dword [esp + 8], edx
jle 0x404ae2
push ebx
mov ebx, dword [esp + 0x24]
push esi
add edx, 0x34
mov esi, dword [edx]
xor ecx, ecx
cmp ebx, ecx
jb 0x404ad4
ja 0x404ab0
cmp dword [esp + 0x24], esi
jb 0x404ad4
mov ecx, dword [edx + 4]
add ecx, esi
xor esi, esi
cmp ebx, esi
ja 0x404ad4
jb 0x404ac3
cmp dword [esp + 0x24], ecx
ja 0x404ad4
mov ecx, dword [edx + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0
mov ebp, edi
inc edi
add edx, 0x28
cmp edi, eax
jl 0x404aa0
pop esi
pop ebx
test ebp, ebp
jne 0x404af6
push str.The_executable_to_be_protected_appears_to_be_internally_corrupted.
call fcn.00403080
add esp, 4
push 1
call fcn.004136a4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
lea edx, [ebp + ebp*4]
sub eax, dword [ecx + edx*8 + 0xc]
pop edi
add eax, dword [esp + 8]
pop ebp
add eax, dword [esp + 0x10]
add esp, 0xc
ret
Function at 0x404b20
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
push 0
add esi, edi
call fcn.0041241b
mov ecx, 4
add esp, 4
mov dword [edi + 0x1c1], eax
cmp dword [esi], ecx
jle 0x404b5a
xor byte [ecx + esi], al
push eax
call fcn.00403460
push eax
call fcn.00403460
inc ecx
add esp, 8
cmp ecx, dword [esi]
jl 0x404b43
mov eax, dword [edi + 0x1c1]
push eax
call fcn.00403460
xor dword [edi + 0x18c], eax
add esp, 4
pop edi
pop esi
ret
Function at 0x404b80
Capabilities:
Check internet connectivity via wininet
Identify system language via api

Disassembly:
sub esp, 0xb0
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
mov ebx, dword [esp + 0xb8]
push esi
push edi
mov ecx, 0x1c
mov esi, str.Content_type:_application_x_www_form_urlencoded_r_nAccept_Language:_en_r_nCache_Control:_no_cache_r_nConnection:_close_r_n
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x404bd6
push 0x74
push ebx
push 0
push 2
call fcn.00401d60
add esp, 0x10
mov eax, 2
jmp 0x404d25
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
lea ecx, [esp + 0x14]
push str.Language_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebx + 0x70]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c00
sub eax, edx
mov edx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c12
push ebp
sub eax, esi
lea edx, [eax + edx + 1]
push 1
push edx
call fcn.00412704
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x404c39
lea eax, [ebp + 0x2a]
jmp 0x404d24
mov esi, dword [ebx + 0x70]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c41
sub eax, edx
push eax
push esi
push ebp
call fcn.00411f40
mov eax, dword [ebx + 0x70]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x404c60
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c60
sub eax, edx
mov byte [eax + ebp], cl
lea eax, [esp + 0x14]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c72
mov edi, ebp
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404c80
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x48]
push eax
push 0x4400000
push 0x50
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x70]
push ebx
push str.POST
mov dword [ebx + 0x70], ebp
call fcn.00404500
mov esi, eax
add esp, 0x14
mov dword [esp + 0x10], esi
test esi, esi
je 0x404ce1
mov ecx, dword [ebx + 0x68]
push ecx
call fcn.0041232a
push 0x74
mov dword [ebx + 0x68], edi
mov edx, dword [0x42836c]
push ebx
push edx
push esi
call fcn.00401d60
add esp, 0x14
jmp 0x404d22
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.00404700
add esp, 8
test eax, eax
je 0x404cfd
push 0x74
push ebx
push 0
mov esi, eax
push eax
jmp 0x404d0b
mov esi, dword [esp + 0x10]
test esi, esi
je 0x404d13
push 0x74
push ebx
push 0
push esi
call fcn.00401d60
add esp, 0x10
mov ecx, dword [ebx + 0x70]
push ecx
call fcn.0041232a
add esp, 4
mov dword [ebx + 0x70], edi
mov eax, esi
pop ebp
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00411e16
add esp, 0xb0
ret 4
Function at 0x408e20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x118
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x114], eax
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x120]
push ebx
mov ebx, dword [esp + 0x134]
push ebp
mov ebp, dword [esp + 0x130]
push esi
mov esi, dword [esp + 0x138]
push edi
push edx
push esi
push ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.00402ef0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x408f91
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408e85
sub eax, edx
add edi, eax
mov eax, dword [esp + 0x144]
push eax
push ebx
push ebp
call fcn.00402ef0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x408f91
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408eb7
lea eax, [esp + 0x1c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408ec6
mov ecx, dword [str..cm64.exe]
mov edx, dword [0x422f7c]
push 0
push 0x80
push 2
push 0
mov dword [eax], ecx
mov cx, word [0x422f80]
push 0
mov dword [eax + 4], edx
push 0xc0000000
lea edx, [esp + 0x34]
push edx
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408f3e
mov eax, dword [esp + 0x134]
mov edx, dword [esp + 0x10]
or eax, 3
push eax
push 0x1a8
lea ecx, [esp + 0x24]
push ecx
push 0x7d9
push edx
call fcn.004062d0
add esp, 0x14
call fcn.0041377e
mov eax, dword [eax]
jmp 0x408fba
push 0
lea eax, [esp + 0x1c]
push eax
sub esi, edi
push esi
add ebp, edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408f86
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
or ecx, 3
push ecx
push 0x1a9
push edx
push 0x7d7
push eax
call fcn.004062d0
add esp, 0x14
call fcn.0041377e
mov eax, dword [eax]
jmp 0x408fba
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x408fba
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x10]
or ecx, 1
push ecx
push 0x602
push 0x4225bf
push 0x42
push edx
call fcn.004062d0
add esp, 0x14
mov eax, 0x603
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411e16
add esp, 0x118
ret
Function at 0x40a530
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x1a0
mov eax, dword [0x42610c]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebx
mov eax, dword [esp + 0x1ac]
push ebp
mov ebp, dword [esp + 0x1ac]
mov ebx, dword [esp + 0x1bc]
push esi
push edi
mov edi, dword [esp + 0x1c0]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push 0x80000001
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
je 0x40a5d1
mov eax, dword [esp + 0x1cc]
push eax
push esi
lea ecx, [esp + 0x24]
push str._ld__d
push ecx
call fcn.0041246c
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0xb
push 0x1cf
lea edx, [esp + 0x24]
push edx
push 0x10
push ebp
call fcn.004062d0
add esp, 0x14
xor eax, eax
jmp 0x40a6cf
mov ebp, dword [esp + 0x1bc]
test ebp, ebp
je 0x40a65b
cmp ebp, 2
je 0x40a65b
cmp ebp, 1
jne 0x40a64c
mov eax, dword [esp + 0x1c8]
mov ecx, dword [esp + 0x10]
push eax
push ebx
push ebp
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x40a6bf
mov edx, dword [esp + 0x1cc]
push edx
push esi
lea eax, [esp + 0x24]
push str._ld__d
push eax
call fcn.0041246c
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x14]
push 0xb
push 0x1d1
lea ecx, [esp + 0x24]
push ecx
push 0x35
push edx
call fcn.004062d0
add esp, 0x14
xor eax, eax
jmp 0x40a6cf
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40a6cf
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c8]
push ecx
push ebx
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x40a6bf
test ebp, ebp
jne 0x40a6bf
mov eax, dword [esp + 0x1cc]
push eax
push esi
lea ecx, [esp + 0x24]
push str._ld__d
push ecx
call fcn.0041246c
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x14]
push 0xb
push 0x1d0
lea edx, [esp + 0x24]
push edx
push 0x11
push eax
call fcn.004062d0
add esp, 0x14
xor eax, eax
jmp 0x40a6cf
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411e16
add esp, 0x1a0
ret
Function at 0x40b2b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
call fcn.00406550
add esp, 8
test eax, eax
jne 0x40b3c7
push esi
push edi
mov edi, dword [esp + 0x18]
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b32b
mov edx, dword [0x42918c]
push 0xb
push 0x5c5
push edi
push 0xf1
push edx
call fcn.004062d0
add esp, 0x14
pop edi
or eax, esi
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b39f
cmp dword [esp + 0x14], ebx
jne 0x40b39f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0
push 0
push edi
call fcn.00401060
add esp, 0x18
test eax, eax
jne 0x40b396
mov edx, dword [0x42918c]
push 0xa
push 0x5c7
push 0x4225bf
push 0xf3
push edx
call fcn.004062d0
add esp, 0x14
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x42918c]
push 0xb
push 0x5c6
push edi
push 0xf1
push eax
call fcn.004062d0
add esp, 0x14
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
Function at 0x40b3d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
xor eax, eax
push ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
push esi
mov eax, ebx
push edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b3f0
mov edi, dword [esp + 0x24]
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b404
sub eax, esi
lea eax, [eax + edx + 1]
push eax
call fcn.00411e74
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40b448
mov ecx, dword [0x42918c]
push 0xa
push 0x5c3
push 0x4225bf
push 0x12
push ecx
call fcn.004062d0
add esp, 0x14
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b450
sub eax, edx
inc eax
push eax
push ebx
push ebp
call fcn.00411f40
mov eax, edi
add esp, 0xc
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b470
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40b480
mov edx, dword [esp + 0x28]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push edx
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00406570
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40b4c6
push ebp
call fcn.0041232a
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
mov esi, eax
call fcn.0041232a
cmp esi, 0xffffffff
jne 0x40b512
mov edx, dword [0x42918c]
push 0xb
push 0x5c8
push ebp
push 0xf1
push edx
call fcn.004062d0
add esp, 0x18
pop edi
or eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esp, 4
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b548
cmp dword [esp + 0x18], edi
jne 0x40b548
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x42918c]
push 0xb
push 0x5c9
push ebp
push 0xf1
push edx
call fcn.004062d0
add esp, 0x14
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret