joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408370
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 8], ebx
mov esi, 0x458028
mov dword [0x4580f0], ecx
mov dword [0x4580d8], 0
mov dword [0x4580e0], 0
mov dword [0x4580c4], 0
push 0x100
call fcn.00429ee5
mov dword [esi], eax
add esp, 4
add esi, 4
mov byte [eax], 0
cmp esi, 0x458068
jl 0x4083b6
push ecx
call fcn.00401310
add esp, 4
test eax, eax
jne 0x4083ed
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
mov edi, dword [ebp + 0x10]
push str.forcetrial
push edi
call fcn.00427e70
add esp, 8
test eax, eax
je 0x408450
push str.forcequit
push edi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40841e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408423
sub ecx, edx
je 0x408461
mov esi, dword [0x458028]
push 0x100
push edi
push esi
call fcn.0042f102
add esp, 0xc
mov byte [esi + 0xff], 0
inc dword [0x4580d4]
mov dword [ebp - 4], 1
mov dword [0x4580d8], 1
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [ebp + 0xc], 0
jne 0x4084d5
mov eax, dword [0x4580f0]
push str.APP_ICON
push eax
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0x4082e0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 5
mov dword [ebp - 0x34], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x2c], 0x448a80
mov dword [ebp - 0x28], 0x448a80
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push dword [0x4580f0]
push 0
push 0
push 0
push 0
push 0
push 0
push closesocket
push 0x448a80
push 0x448a80
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push 0
push 0
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x24]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x408564
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x24]
push eax
call edi
lea eax, [ebp - 0x24]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x408545
mov ebx, dword [ebp - 8]
mov eax, dword [0x4580bc]
cmp eax, 0x20
jbe 0x408575
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 4], 0
je 0x408588
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x4580f4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408e10
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push 2
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
ret

Function at 0x409860
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
lea eax, [esp + 0x18]
mov dword [0x458194], 0
push eax
push 0
movzx eax, dl
mov esi, ecx
push eax
push esi
push 0
push 0
mov dword [0x458100], 0
call fcn.0042a04c
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4098c3
push 0x10
push str.ERROR:
push str.Activation_can_not_be_started__please_use_manual_activation.
push dword [0x4580e8]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x1c]
call fcn.004017b0
mov ebx, dword [esp + 0x1c]
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, str.Waiting_for_server_response__phase_1_..._please_wait.
mov byte [0x458024], 1
cmp esi, 0x409340
mov eax, str.Waiting_for_server_response__phase_2_..._please_wait.
cmove eax, ecx
lea ecx, [esp + 0x1c]
push eax
call fcn.00401900
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
xor eax, eax
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
xor ecx, ecx
mov dword [esp + 0xc], eax
xor bl, bl
mov eax, dword [0x458100]
mov dword [esp + 0x10], ecx
nop dword [eax]
cmp dword [0x4580f4], 0
jne 0x4099ea
cmp ecx, eax
je 0x409954
push eax
lea ecx, [esp + 0x20]
call fcn.00401970
mov eax, dword [0x458100]
mov dword [esp + 0x10], eax
push 1
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
je 0x40998c
lea eax, [esp + 0x24]
push eax
call edi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
jne 0x409967
cmp dword [0x4580f4], 0
je 0x40999c
mov byte [0x458c05], 1
push 0xa
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
cmp eax, 0x102
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, 0x3c
jne 0x4099d9
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [0x458100]
inc eax
mov dword [0x458100], eax
jmp 0x4099de
mov eax, dword [0x458100]
mov ecx, dword [esp + 0x10]
test bl, bl
je 0x409930
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
mov byte [0x458024], 0
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00440990
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1008]
push eax
push ecx
push closesocket
mov esi, edx
mov dword [ebp - 0x1010], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x409f23
test esi, esi
je 0x409f0e
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0x1000
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x1010]
push eax
push 0
push esi
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x1008]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x409f23
test edi, edi
je 0x409f0e
lea eax, [ebp - 0x1004]
mov ecx, eax
sub edi, ecx
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edi + eax - 1], cl
test cl, cl
jne 0x409f01
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041f127
mov esp, ebp
pop ebp
ret

Function at 0x40a0b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [0x4572cc]
push esi
push edi
mov edi, 0x449828
xor esi, esi
sub ebx, edi
mov ecx, dword [ebx + edi]
mov edx, 0x20
and ecx, dword [edi]
nop dword [eax]
mov eax, ecx
shr ecx, 1
and eax, 1
xor esi, eax
sub edx, 1
jne 0x40a0d0
add edi, 4
cmp edi, 0x449838
jl 0x40a0c2
cmp esi, 1
je 0x40a123
nop
lea edi, [edx*4]
mov eax, 1
mov esi, dword [edi + 0x449828]
xor ecx, ecx
test eax, esi
jne 0x40a11a
inc ecx
add eax, eax
cmp ecx, 0x20
jl 0x40a104
inc edx
cmp edx, 4
jl 0x40a0f0
pop edi
pop esi
pop ebx
ret
mov ecx, dword [0x4572cc]
xor dword [edi + ecx], eax
pop edi
pop esi
pop ebx
ret
Function at 0x40a130
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2894
call fcn.00440990
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2894]
mov byte [0x459cf0], 0
push eax
lea eax, [ebp - 0x288c]
mov dword [ebp - 0x2894], 0x2880
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40a2ae
push ebx
push esi
lea ebx, [ebp - 0x288c]
push edi
nop dword [eax]
lea eax, [ebx + 0x1d8]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a190
sub eax, edx
jne 0x40a22a
mov eax, ebx
mov ebx, dword [ebx]
mov dword [ebp - 0x2890], eax
test ebx, ebx
jne 0x40a180
cmp dword [eax + 0x190], ebx
jbe 0x40a2ab
nop dword [eax]
movzx ecx, byte [eax + ebx + 0x194]
lea eax, [ebx + 1]
movzx eax, al
imul eax, eax, 0x2a
movzx eax, al
xor ecx, eax
lea eax, [ebp - 0xc]
push ecx
push str._02x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [ebp - 0xc]
add esp, 0xc
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x40a1f0
mov edi, 0x459cf0
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a200
mov eax, dword [ebp - 0x2890]
mov ecx, edx
shr ecx, 2
inc ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebx, dword [eax + 0x190]
jb 0x40a1c0
jmp 0x40a2ab
xor eax, eax
mov dword [ebp - 0x2890], eax
cmp dword [ebx + 0x190], eax
jbe 0x40a2ab
nop word [eax + eax]
movzx ecx, byte [ebx + eax + 0x194]
inc al
movzx eax, al
imul eax, eax, 0x2a
movzx eax, al
xor ecx, eax
lea eax, [ebp - 0xc]
push ecx
push str._02x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [ebp - 0xc]
add esp, 0xc
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40a270
mov edi, 0x459cf0
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a280
mov eax, dword [ebp - 0x2890]
mov ecx, edx
shr ecx, 2
inc eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebp - 0x2890], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp eax, dword [ebx + 0x190]
jb 0x40a240
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, 0x459cf0
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40a2d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x452040]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x14], ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [0x4572cc]
mov edx, 1
mov eax, dword [esp + 0x18]
mov dword [esi], eax
nop dword [eax]
mov ecx, dword [esi + edx*4 - 4]
shr ecx, 0x1e
xor ecx, dword [esi + edx*4 - 4]
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [esi + edx*4], eax
inc edx
cmp edx, 0x270
jl 0x40a310
call fcn.0040a0b0
mov edi, 0x270
mov byte [esp + 0x20], 0x3b
mov eax, edi
mov dword [esp + 0x10], 1
mov edx, eax
mov ebx, 0x47
nop
cmp edi, 0x270
jl 0x40a361
call fcn.0040a040
xor eax, eax
xor edx, edx
mov ecx, dword [esi + eax*4]
lea edi, [edx + 1]
mov eax, 0x4ec4ec4f
mov dword [0x45910c], edi
mul ecx
shr edx, 4
imul eax, edx, 0x34
mov edx, edi
sub ecx, eax
mov eax, 0x41
cmp ecx, 0x1a
cmovge eax, ebx
add al, cl
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x20], al
inc ecx
mov dword [esp + 0x10], ecx
mov eax, edi
cmp ecx, 9
jl 0x40a350
mov ebx, dword [esp + 0x14]
cmp ecx, 0x100
jae 0x40a46d
lea edx, [esp + 0x20]
mov byte [esp + ecx + 0x20], 0
mov esi, edx
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40a3c0
sub edx, esi
lea edi, [ebx - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a3d0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x3f
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.00420790
mov edx, eax
add esp, 8
test edx, edx
jne 0x40a3fb
mov edx, ebx
jmp 0x40a3fc
inc edx
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a401
sub ecx, esi
push ecx
or ecx, 0xffffffff
call fcn.00401070
add esp, 4
xor eax, 0xaa55a5a5
push eax
lea eax, [esp + 0x24]
push str._08x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x2c]
add esp, 0xc
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40a435
sub edx, esi
dec ebx
nop
mov al, byte [ebx + 1]
inc ebx
test al, al
jne 0x40a440
mov ecx, edx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
call fcn.0041f257
int3
Function at 0x40a860
Capabilities:
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
push esi
push edi
push 0x2c
mov cl, byte [eax]
inc eax
push eax
mov byte [ebp - 0x105], cl
mov dword [ebp - 0x110], eax
call fcn.00420790
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40aa04
mov byte [ebx], 0
inc ebx
push 0x2c
push ebx
call fcn.00420790
mov esi, eax
add esp, 8
test esi, esi
je 0x40aa10
mov byte [esi], 0
inc esi
push 0x2c
push esi
call fcn.00420790
mov edi, eax
add esp, 8
test edi, edi
je 0x40a8ce
mov byte [edi], 0
inc edi
movsx ecx, byte [ebp - 0x105]
add ecx, 0xffffffcf
cmp ecx, 3
ja case.default.0x40a8dd
jmp dword [ecx*4 + 0x40aa38]
mov eax, closesocket
jmp 0x40a902
mov eax, closesocket
jmp 0x40a902
mov eax, closesocket
jmp 0x40a902
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40a902
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aa10
push str.dwordhex
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40a959
lea eax, [ebp - 0x114]
push eax
push 0x44de18
push edi
call fcn.0040a6e0
add esp, 0xc
lea eax, [ebp - 0x114]
push 4
push eax
push 4
jmp 0x40a9cb
push str.string
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40a97f
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a970
sub ecx, edx
push ecx
push edi
push 1
jmp 0x40a9cb
push str.binary
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40aa04
push 0x448bc8
push str.r32infi.bin
call fcn.00422887
mov edi, eax
lea eax, [ebp - 0x104]
push edi
push 0x100
push 1
push eax
call fcn.0042963d
push edi
mov esi, eax
call fcn.00422ada
add esp, 0x1c
lea eax, [ebp - 0x104]
push esi
push eax
push 3
push 0
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40aa04
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40aa04
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x110]
push str.Unable_to_set_key_value___s_
call fcn.0040a700
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40a8e4
Capabilities:
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
push esi
push edi
push 0x2c
mov cl, byte [eax]
inc eax
push eax
mov byte [ebp - 0x105], cl
mov dword [ebp - 0x110], eax
call fcn.00420790
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40aa04
mov byte [ebx], 0
inc ebx
push 0x2c
push ebx
call fcn.00420790
mov esi, eax
add esp, 8
test esi, esi
je 0x40aa10
mov byte [esi], 0
inc esi
push 0x2c
push esi
call fcn.00420790
mov edi, eax
add esp, 8
test edi, edi
je 0x40a8ce
mov byte [edi], 0
inc edi
movsx ecx, byte [ebp - 0x105]
add ecx, 0xffffffcf
cmp ecx, 3
ja case.default.0x40a8dd
jmp dword [ecx*4 + 0x40aa38]
mov eax, closesocket
jmp 0x40a902
mov eax, closesocket
jmp 0x40a902
mov eax, closesocket
jmp 0x40a902
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40a902
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aa10
push str.dwordhex
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40a959
lea eax, [ebp - 0x114]
push eax
push 0x44de18
push edi
call fcn.0040a6e0
add esp, 0xc
lea eax, [ebp - 0x114]
push 4
push eax
push 4
jmp 0x40a9cb
push str.string
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40a97f
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a970
sub ecx, edx
push ecx
push edi
push 1
jmp 0x40a9cb
push str.binary
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40aa04
push 0x448bc8
push str.r32infi.bin
call fcn.00422887
mov edi, eax
lea eax, [ebp - 0x104]
push edi
push 0x100
push 1
push eax
call fcn.0042963d
push edi
mov esi, eax
call fcn.00422ada
add esp, 0x1c
lea eax, [ebp - 0x104]
push esi
push eax
push 3
push 0
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40aa04
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40aa04
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x110]
push str.Unable_to_set_key_value___s_
call fcn.0040a700
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40a8eb
Capabilities:
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
push esi
push edi
push 0x2c
mov cl, byte [eax]
inc eax
push eax
mov byte [ebp - 0x105], cl
mov dword [ebp - 0x110], eax
call fcn.00420790
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40aa04
mov byte [ebx], 0
inc ebx
push 0x2c
push ebx
call fcn.00420790
mov esi, eax
add esp, 8
test esi, esi
je 0x40aa10
mov byte [esi], 0
inc esi
push 0x2c
push esi
call fcn.00420790
mov edi, eax
add esp, 8
test edi, edi
je 0x40a8ce
mov byte [edi], 0
inc edi
movsx ecx, byte [ebp - 0x105]
add ecx, 0xffffffcf
cmp ecx, 3
ja case.default.0x40a8dd
jmp dword [ecx*4 + 0x40aa38]
mov eax, closesocket
jmp 0x40a902
mov eax, closesocket
jmp 0x40a902
mov eax, closesocket
jmp 0x40a902
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40a902
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aa10
push str.dwordhex
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40a959
lea eax, [ebp - 0x114]
push eax
push 0x44de18
push edi
call fcn.0040a6e0
add esp, 0xc
lea eax, [ebp - 0x114]
push 4
push eax
push 4
jmp 0x40a9cb
push str.string
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40a97f
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a970
sub ecx, edx
push ecx
push edi
push 1
jmp 0x40a9cb
push str.binary
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40aa04
push 0x448bc8
push str.r32infi.bin
call fcn.00422887
mov edi, eax
lea eax, [ebp - 0x104]
push edi
push 0x100
push 1
push eax
call fcn.0042963d
push edi
mov esi, eax
call fcn.00422ada
add esp, 0x1c
lea eax, [ebp - 0x104]
push esi
push eax
push 3
push 0
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40aa04
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40aa04
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x110]
push str.Unable_to_set_key_value___s_
call fcn.0040a700
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret
Function at 0x40a8f2
Capabilities:
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x452040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
push esi
push edi
push 0x2c
mov cl, byte [eax]
inc eax
push eax
mov byte [ebp - 0x105], cl
mov dword [ebp - 0x110], eax
call fcn.00420790
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40aa04
mov byte [ebx], 0
inc ebx
push 0x2c
push ebx
call fcn.00420790
mov esi, eax
add esp, 8
test esi, esi
je 0x40aa10
mov byte [esi], 0
inc esi
push 0x2c
push esi
call fcn.00420790
mov edi, eax
add esp, 8
test edi, edi
je 0x40a8ce
mov byte [edi], 0
inc edi
movsx ecx, byte [ebp - 0x105]
add ecx, 0xffffffcf
cmp ecx, 3
ja case.default.0x40a8dd
jmp dword [ecx*4 + 0x40aa38]
mov eax, closesocket
jmp 0x40a902
mov eax, closesocket
jmp 0x40a902
mov eax, closesocket
jmp 0x40a902
mov eax, reloc.WSOCK32.dll_closesocket
jmp 0x40a902
xor eax, eax
lea ecx, [ebp - 0x10c]
push ecx
push 0xf003f
push 0
push dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aa10
push str.dwordhex
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40a959
lea eax, [ebp - 0x114]
push eax
push 0x44de18
push edi
call fcn.0040a6e0
add esp, 0xc
lea eax, [ebp - 0x114]
push 4
push eax
push 4
jmp 0x40a9cb
push str.string
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40a97f
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a970
sub ecx, edx
push ecx
push edi
push 1
jmp 0x40a9cb
push str.binary
push esi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40aa04
push 0x448bc8
push str.r32infi.bin
call fcn.00422887
mov edi, eax
lea eax, [ebp - 0x104]
push edi
push 0x100
push 1
push eax
call fcn.0042963d
push edi
mov esi, eax
call fcn.00422ada
add esp, 0x1c
lea eax, [ebp - 0x104]
push esi
push eax
push 3
push 0
push ebx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40aa04
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40aa04
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f127
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x110]
push str.Unable_to_set_key_value___s_
call fcn.0040a700
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041f127
mov esp, ebp
pop ebp
ret