joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bf34
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40bf98
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004048b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004079d0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf9f
lea eax, [ebp - 0xc]
call fcn.00404644
ret

Function at 0x414d7c
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push 0xff
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetWindowTextA
mov edx, ebx
mov eax, esp
call fcn.00408200
add esp, 0x100
pop ebx
ret

Function at 0x4157b4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00404f20
lea eax, [ebp - 8]
call fcn.00404f20
xor eax, eax
push ebp
push 0x415817
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404dec
push eax
mov eax, dword [ebp - 4]
call fcn.00404dec
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41581e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ca8
ret
Function at 0x403c90
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x403cf1
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x403cd4
cmp edi, 2
jb 0x403cd4
cmp byte [esi], cl
jne 0x403cd4
cmp byte [esi + 1], cl
jne 0x403cd4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x42b5f8]
jmp 0x403ca5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x42b5f8]
test edi, edi
jne 0x403ca5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x403d20
cmp cl, 0x23
jne 0x403d07
cmp byte [esi], cl
jne 0x403d07
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x42b5f8]
test cl, cl
jne 0x403cf8
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x403e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x403e44
mov dword [ebx], 0
mov edx, 0x42b3d8
call fcn.00403d30
mov esi, eax
test esi, esi
je 0x403f32
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x403f28
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x403f28
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x403f28
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x403f28
mov eax, dword [0x432650]
test eax, eax
je 0x403ebc
inc dword [eax + 0x36c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x403f28
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x403f0d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x432650]
add esp, 4
test eax, eax
je 0x403efa
dec dword [eax + 0x36c]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x403f1f
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405430
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc4]
lea edx, [ebp - 8]
push ebx
mov ebx, dword [ecx + 0xcc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
mov dword [ebp - 8], edi
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42b5f8]
sub esi, 1
jne 0x405463
mov eax, dword [0x432650]
not ebx
cmp dword [eax + 0x1be0], ebx
jne 0x405492
mov dword [eax + 0x1be4], ebx
cmp dword [eax + 0x1c1c], ebx
jne 0x4054a1
mov byte [eax + 0x1c20], 1
cmp dword [eax + 0x1bc8], ebx
jne 0x4054ba
push ecx
push edi
mov edx, 4
mov ecx, ebx
call fcn.004142e0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428c21
mov esp, ebp
pop ebp
ret 4
Function at 0x409770
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x4097ad
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x409793
cmp byte [esi], bl
jne 0x409793
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x42b5f8]
test bl, bl
jne 0x409784
pop edi
pop esi
not ecx
pop ebx
jmp fcn.00409710
Function at 0x4133d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2fa8], 0
lea esi, [edi + 0x2fac]
je 0x413452
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41340c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00414f40
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.004040d0
mov edx, dword [esi]
mov ecx, 0x43264c
push dword [edi + 0x2fa8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2fb4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.004040d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cf90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41cfca
mov eax, dword [0x432650]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x41cfbd
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x41cffb
mov eax, dword [0x432650]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x41cfee
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41d02c
mov eax, dword [0x432650]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x41d01f
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x41d079
mov eax, dword [0x432650]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x41d06c
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x41d0aa
mov eax, dword [0x432650]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x41d09d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x41d0db
mov eax, dword [0x432650]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x41d0ce
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0041f840
Function at 0x42987f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4298be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4298be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4298be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4298be
cmp dword [ecx + 0x74], 0xe
jbe 0x4298be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4030d5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x437800
push 0x400
add eax, 0x3e8
push esi
push ebx
mov dword [0x429a6c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.00406172
mov edi, eax
cmp edi, 0xffffffff
mov dword [0x40a018], edi
jne 0x40312f
mov eax, str.Error_launching_installer
jmp 0x40336f
push esi
mov esi, 0x435800
push esi
call fcn.00406682
push esi
call fcn.00405f9d
push eax
push 0x438000
call fcn.00406682
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x420f00], eax
mov esi, eax
jbe 0x403248
mov ebx, 0x418ef0
mov eax, dword [0x429a74]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jb 0x403183
mov edi, eax
push edi
push ebx
call fcn.004035e7
test eax, eax
je 0x4032e3
cmp dword [0x429a74], 0
jne 0x403215
push 0x1c
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.0040612d
mov eax, dword [ebp - 0x24]
test eax, 0xfffffff0
jne 0x403223
cmp dword [ebp - 0x20], 0xdeadbeef
jne 0x403223
cmp dword [ebp - 0x14], 0x74736e49
jne 0x403223
cmp dword [ebp - 0x18], 0x74666f73
jne 0x403223
cmp dword [ebp - 0x1c], 0x6c6c754e
jne 0x403223
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x420ef0]
and eax, 2
or dword [0x429b00], eax
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov dword [0x429a74], ecx
ja 0x403327
test byte [ebp + 8], 8
jne 0x403207
test byte [ebp + 8], 4
jne 0x403246
inc dword [ebp - 8]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x403223
mov edi, esi
jmp 0x403223
test byte [ebp + 8], 2
jne 0x403223
push 0
call fcn.00403033
pop ecx
cmp esi, dword [0x420f00]
jae 0x403238
push edi
push ebx
push dword [ebp - 4]
call fcn.00406b63
mov dword [ebp - 4], eax
add dword [0x420ef0], edi
sub esi, edi
jne 0x403168
invalid
invalid
xor ebx, ebx
push 1
push 1
call fcn.00403033
pop ecx
jmp 0x403327
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x40de38
mov ecx, 0x58286c74
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x4304d8
mov ecx, 0x388c5acd
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401260
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x401301
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, edx
push edi
jle 0x4012af
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x52fe88]
add edx, 1
cmp edx, esi
jl 0x401291
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x4012dc
mov edi, dword [ecx + 8]
lea esp, [esp]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x52fe88]
add edx, 1
cmp edx, esi
jl 0x4012c0
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x411860
Capabilities:
Get file version info

Disassembly:
jmp 0x411f50
sub esp, 0xc
push ebp
push esi
push edi
call fcn.00411ef0
push eax
call fcn.0050b7d6
mov edi, eax
add esp, 4
lea eax, [esp + 0x14]
push eax
push edi
mov ebp, 1
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x411fe7
push ebx
push esi
call fcn.004fe6cf
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x530578
push ebx
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x411fcb
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
xor ebp, ebp
push ebx
call fcn.004fe278
add esp, 4
pop ebx
push edi
call fcn.00508bbb
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.00508bbb
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0xc
ret

Function at 0x4123e0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412447
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x412423
cmp eax, 2
jne 0x412436
mov eax, dword [esp + 0x14]
test esi, esi
je 0x412443
test eax, eax
je 0x412440
cmp byte [eax + esi - 1], 0
je 0x412443
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x412450
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
xor bl, bl
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4124cf
push edi
mov edi, dword [esp + 8]
test esi, esi
jne 0x41249c
push 0x53066c
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x4124bc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push 0x53066c
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4124bc
mov bl, 1
test edi, edi
je 0x4124c7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
add esp, 8
ret
mov al, bl
pop ebx
add esp, 8
ret
Function at 0x412780
Capabilities:
Terminate thread
Write file on windows

Disassembly:
mov eax, dword [0x57d5f8]
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor edi, edi
test eax, eax
je 0x4127ff
push esi
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push edi
push 0x57d4f0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x1f40
mov dword [esp + 0x3c], edi
call fcn.00412ae0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4127ed
push edi
lea ecx, [esp + 0x10]
push ecx
push 0x10
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
mov eax, dword [0x57d5f8]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov ecx, dword [0x57d5f4]
test ecx, ecx
je 0x412822
mov edx, dword [0x57d5f4]
cmp edx, 0xffffffff
je 0x412822
mov eax, dword [0x57d5f4]
push eax
call ebx
mov dword [0x57d5f4], edi
mov ecx, dword [0x57d5f8]
test ecx, ecx
je 0x41284b
mov edx, dword [0x57d5f8]
cmp edx, 0xffffffff
je 0x41284b
mov eax, dword [0x57d5f8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x57d5f8], edi
call fcn.00412750
mov dword [0x57d600], edi
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x412860
Capabilities:
Create pipe
Create thread
Write file on windows
Write pipe

Disassembly:
sub esp, 8
push ebx
xor ebx, ebx
cmp dword [0x574aa4], ebx
jge 0x41289a
mov eax, dword [str.SoftwarePaltiosoftucharge]
push 0x574aa4
push str.RETRY_MAX
push eax
push SysReAllocStringLen
call fcn.00412bb0
add esp, 0x10
cmp eax, 4
je 0x41289a
mov dword [0x574aa4], 0xa
cmp dword [0x574aa8], ebx
jge 0x4128cf
mov ecx, dword [str.SoftwarePaltiosoftucharge]
push 0x574aa8
push str.RETRY_DELAY
push ecx
push SysReAllocStringLen
call fcn.00412bb0
add esp, 0x10
cmp eax, 4
je 0x4128cf
mov dword [0x574aa8], 0xc8
mov edx, dword [0x57d5f4]
test edx, edx
je 0x412903
mov eax, dword [0x57d5f4]
cmp eax, 0xffffffff
je 0x412903
mov ecx, dword [esp + 0x10]
push str._StartMonitor_1_
push 0x1b64
push 1
push ecx
call fcn.00411ae0
add esp, 0x10
mov al, 1
pop ebx
add esp, 8
ret
push esi
push ebx
push 0x57d4f0
call fcn.00412ae0
add esp, 8
push ebx
push 0x1f4
push 0x80
push 0x80
push 0xff
push ebx
mov esi, eax
push 0x40001
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x57d5f4], eax
mov edx, dword [0x57d5f4]
cmp edx, 0xffffffff
jne 0x412973
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x18]
push esi
push str._StartMonitor_2__s__d
push 0x1b64
push ebx
push eax
call fcn.00411ae0
add esp, 0x18
call fcn.00412780
pop esi
xor al, al
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push eax
push esi
push str._StartMonitor_3__s__d
push 0x1b64
push 1
push ecx
call fcn.00411ae0
add esp, 0x18
lea edx, [esp + 0xc]
push edx
push ebx
push ebx
push 0x412660
push ebx
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x57d5f8], eax
mov eax, dword [0x57d5f8]
test eax, eax
je 0x412966
cmp dword [0x574aa4], ebx
push ebp
push edi
jle 0x412a58
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipe_softdenchi_login
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x412a12
mov ecx, dword [0x574aa8]
push ecx
call ebp
inc ebx
cmp ebx, dword [0x574aa4]
jl 0x4129d4
call fcn.00412780
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 8
ret
push 0
lea edx, [esp + 0x14]
push edx
push 0x100
push 0x57d4f0
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412a51
cmp dword [esp + 0x10], 0x100
jne 0x412a51
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00412780
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 8
ret
Function at 0x412b30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412ba1
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x412b96
mov dword [esp], 0
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0xc
ret

Function at 0x412bb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
push ecx
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412c1b
mov ecx, dword [esp + 0x20]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412c10
cmp dword [esp + 0xc], 4
jne 0x412c10
mov esi, dword [esp + 8]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret