Function at 0x422e40
Capabilities:
Get hostname
Get session user name
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x475010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0xf0], ebx
push 0x46a1c0
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x104], esi
call fcn.0040b9b0
push str.1.20
push str.es3getpubsign_v_s_compiled_Feb_10_2024_20:19:13_n
call fcn.0040b9b0
push str._c__2021_by_Michael_Fischer__www.emb4fun.de__n
call fcn.0040b9b0
push 0x46a1c0
call fcn.0040b9b0
push 0x180
xorps xmm0, xmm0
mov dword [0x477e48], esi
push esi
push 0x478598
movups xmmword [0x477e38], xmm0
call fcn.00424dd0
mov esi, dword [ebp + 8]
add esp, 0x20
cmp esi, 1
jle 0x423538
mov edi, 1
nop word [eax + eax]
mov edx, dword [ebx + edi*4]
mov ecx, 0x46b0cc
mov eax, edx
nop word [eax + eax]
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x422f20
test bl, bl
je 0x422f1c
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x422f20
add eax, 2
add ecx, 2
test bl, bl
jne 0x422f00
xor eax, eax
jmp 0x422f25
sbb eax, eax
or eax, 1
test eax, eax
jne 0x422fb6
mov ebx, dword [ebp - 0xf0]
lea eax, [edi + 1]
cmp eax, esi
jge 0x422f8a
mov edi, eax
mov dword [ebp - 0x100], 1
push dword [ebx + edi*4]
push 0x469d6c
push 0x13
push 0x477e38
call fcn.00422e00
mov al, byte [0x477e38]
add esp, 0x10
mov esi, 0x477e38
test al, al
je 0x422f87
nop dword [eax + eax]
movsx eax, al
push eax
call fcn.00443679
mov byte [esi], al
lea esi, [esi + 1]
mov al, byte [esi]
add esp, 4
test al, al
jne 0x422f70
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xf8]
inc edi
cmp edi, esi
jl 0x422ef0
cmp ecx, 1
je 0x423538
cmp eax, 1
je 0x423544
jmp 0x4230c4
mov ecx, 0x46b0d0
mov eax, edx
nop dword [eax]
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x422fe0
test bl, bl
je 0x422fdc
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x422fe0
add eax, 2
add ecx, 2
test bl, bl
jne 0x422fc0
xor eax, eax
jmp 0x422fe5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42301e
mov ebx, dword [ebp - 0xf0]
lea eax, [edi + 1]
cmp eax, esi
jge 0x422f8a
mov edi, eax
mov dword [ebp - 0x104], 1
push dword [ebx + edi*4]
push 0x469d6c
push 0xf
push 0x477f54
call fcn.00422e00
add esp, 0x10
jmp 0x422f8a
mov ecx, 0x46b0d4
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x423045
test bl, bl
je 0x423041
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x423045
add eax, 2
add ecx, 2
test bl, bl
jne 0x423025
xor eax, eax
jmp 0x42304a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x423064
mov ebx, dword [ebp - 0xf0]
mov eax, 1
mov dword [ebp - 0xf4], eax
jmp 0x422f90
mov eax, 0x46b0d8
nop dword [eax]
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x423090
test cl, cl
je 0x42308c
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x423090
add edx, 2
add eax, 2
test cl, cl
jne 0x423070
xor eax, eax
jmp 0x423095
sbb eax, eax
or eax, 1
mov ebx, dword [ebp - 0xf0]
test eax, eax
mov eax, dword [ebp - 0xf4]
jne 0x4230b4
mov dword [ebp - 0xfc], 1
jmp 0x422f90
mov ecx, 1
mov dword [ebp - 0xf8], ecx
jmp 0x422f96
call fcn.00422260
mov esi, eax
test esi, esi
jne 0x423520
cmp dword [ebp - 0xfc], 1
jne 0x423208
push str.Searching_Embedded_Secure_Signing_Server..._n_n
call fcn.0040b9b0
add esp, 4
call fcn.00422000
test eax, eax
je 0x423108
push str.No_server_found._n
call fcn.0040b9b0
add esp, 4
jmp 0x423520
call fcn.00421ff0
push str.MAC_Address________IP_Address_______Server___Version__Location_n
mov edi, eax
call fcn.0040b9b0
push 0x46ae58
call fcn.0040b9b0
add esp, 8
xor esi, esi
test edi, edi
jle 0x423201
mov ebx, dword [sym.imp.WS2_32.dll_inet_ntoa]
lea eax, [ebp - 0xb8]
push eax
push esi
call fcn.00421fa0
add esp, 8
test eax, eax
jne 0x4231f8
movzx eax, byte [ebp - 0xb3]
push eax
movzx eax, byte [ebp - 0xb4]
push eax
movzx eax, byte [ebp - 0xb5]
push eax
movzx eax, byte [ebp - 0xb6]
push eax
movzx eax, byte [ebp - 0xb7]
push eax
movzx eax, byte [ebp - 0xb8]
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00422e00
lea eax, [ebp - 0x44]
push eax
push 0x46aec0
call fcn.0040b9b0
add esp, 0x2c
push dword [ebp - 0xb0]
call ebx
push eax
push str.__15s
call fcn.0040b9b0
mov ecx, dword [ebp - 0xac]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
imul eax, edx, 0x64
sub ecx, eax
lea eax, [ebp - 0xa8]
push ecx
push edx
push eax
push str._s___v_d._02d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00422e00
lea eax, [ebp - 0x97]
push eax
lea eax, [ebp - 0x44]
push eax
push str._s____s_r_n
call fcn.0040b9b0
add esp, 0x2c
inc esi
cmp esi, edi
jl 0x423136
xor esi, esi
jmp 0x423520
cmp dword [ebp - 0x100], 0
jne 0x42321e
call fcn.00422db0
or esi, 0xffffffff
jmp 0x423520
push 0x104
push 0
push 0x477f68
call fcn.00424dd0
push 0x104
push 0
push 0x478070
call fcn.00424dd0
push 0x104
push 0
push 0x478178
call fcn.00424dd0
push 0x104
push 0
push 0x478280
call fcn.00424dd0
push 0x104
push 0
push 0x478388
call fcn.00424dd0
push 0x104
push 0
push 0x478490
call fcn.00424dd0
add esp, 0x48
mov dword [ebp - 0xf0], 0x104
lea eax, [ebp - 0xf0]
push eax
push 0x477f68
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x42350e
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xf0], 0x104
push eax
push 0x478070
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
cmp eax, 1
jne 0x42350e
push 0x104
push 0x478178
push str._HOMEPATH_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 0xf0], eax
dec eax
cmp eax, 0x102
ja 0x42350e
push 0x478178
push str.C:_s.es3
push 0x104
push 0x478280
call fcn.00422e00
push 0x478280
push str._sid_es3
push 0x104
push 0x478388
call fcn.00422e00
push 0x478280
push str._sid_es3.pub
push 0x104
push 0x478490
call fcn.00422e00
mov esi, dword [ebp - 0x104]
add esp, 0x30
test esi, esi
jne 0x4233b0
push str.Searching_Embedded_Secure_Signing_Server..._n_n
call fcn.0040b9b0
add esp, 4
call fcn.00422000
test eax, eax
je 0x42337a
push str.No_server_found._n
call fcn.0040b9b0
mov esi, 0xfffffffc
jmp 0x42351d
push str.GetPub_parameters_n
call fcn.0040b9b0
push str._n
call fcn.0040b9b0
add esp, 8
lea eax, [ebp - 0xec]
push eax
push 0
call fcn.00421fa0
add esp, 8
test eax, eax
je 0x423414
mov esi, 0xfffffffa
jmp 0x423520
push 0x477f54
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4233de
push 0x477f54
push str.Error__IP_Address_invalid:__s_n
call fcn.0040b9b0
add esp, 8
mov esi, 0xfffffffb
jmp 0x423520
push str.GetPub_parameters_n
call fcn.0040b9b0
push str._n
call fcn.0040b9b0
add esp, 8
cmp esi, 1
jne 0x423391
push edi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.Server:__s_n
call fcn.0040b9b0
add esp, 8
jmp 0x4234cf
mov edi, dword [ebp - 0xe4]
push edi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push str.Server:__s
call fcn.0040b9b0
movzx eax, byte [ebp - 0xe7]
push eax
movzx eax, byte [ebp - 0xe8]
push eax
movzx eax, byte [ebp - 0xe9]
push eax
movzx eax, byte [ebp - 0xea]
push eax
movzx eax, byte [ebp - 0xeb]
push eax
movzx eax, byte [ebp - 0xec]
push eax
push str._02X:_02X:_02X:_02X:_02X:_02X
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.00422e00
lea eax, [ebp - 0x84]
push eax
push 0x46aec0
call fcn.0040b9b0
mov ecx, dword [ebp - 0xe0]
mov eax, 0x51eb851f
mul ecx
shr edx, 5
imul eax, edx, 0x64
sub ecx, eax
lea eax, [ebp - 0xdc]
push ecx
push edx
push eax
push str._s___v_d._02d
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.00422e00
add esp, 0x4c
lea eax, [ebp - 0xcb]
push eax
lea eax, [ebp - 0x84]
push eax
push str._s___s_r_n
call fcn.0040b9b0
add esp, 0xc
push 0x477e38
push str.Slot__:__s_n
call fcn.0040b9b0
push edi
push 0x477e38
call fcn.004229a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x423520
push pe_nt_image_headers32
push 0x478618
push edi
push 0x477e38
call fcn.004224f0
add esp, 0x10
mov esi, eax
jmp 0x423520
push str.Error__could_not_retrieve_environment_variables._n
call fcn.0040b9b0
mov esi, 0xfffffffd
add esp, 4
call fcn.004224e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423606
mov esp, ebp
pop ebp
ret
call fcn.00422db0
push 0
call fcn.00443166
push 0
call fcn.00443166
int3