joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4938f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x4c81a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2ec], ebx
push edi
test ebx, ebx
je 0x493af4
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x493af4
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00463960
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2d8]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call esi
test eax, eax
jne 0x493ac9
xor edi, edi
mov dword [ebp - 0x2dc], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x1d0]
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x493ab8
lea eax, [ebp - 0x2e0]
push eax
push 1
push 0
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x2d8]
call esi
test eax, eax
jne 0x493a82
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e8], 1
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2e4], 0x104
push eax
lea eax, [ebp - 0x2e8]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x493a7a
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00463960
push 0x64
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.00493b10
add esp, 0x18
test eax, eax
je 0x493a7a
cmp byte [ebp - 0x68], 0
je 0x493a3c
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x493a7a
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x493a69
mov al, byte [esi + ecx]
test al, al
je 0x493a69
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x493a50
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x2e0]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x104
push eax
lea eax, [ebp - 0x1d0]
inc edi
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x493990
push dword [ebp - 0x2d8]
call ebx
mov ebx, dword [ebp - 0x2ec]
mov edi, dword [ebp + 0xc]
cmp byte [ebp - 0x68], 0
pop esi
je 0x493af4
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
call fcn.00494ae0
xor ecx, ecx
test eax, eax
pop edi
setns cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004221b0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004221b0
mov esp, ebp
pop ebp
ret
Function at 0x493c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x4c81a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x493daf
cmp dword [ebp + 0xc], 0x20
jb 0x493daf
push 0x400
lea eax, [ebp - 0x504]
mov dword [ebp - 0x50c], 1
push 0
push eax
mov dword [ebp - 0x508], 0x400
call fcn.00463960
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0x4b87e4
push str.SoftwareComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x493daf
lea ecx, [ebp - 0x504]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x493cc0
sub ecx, edx
cmp ecx, 0x40
jne 0x493daf
lea edx, [ecx + 0x40]
push esi
lea ecx, [ebp - 0x84]
lea esi, [ebp - 0x504]
mov eax, ecx
sub esi, eax
lea eax, [edx - 0x60]
test eax, eax
je 0x493cfc
mov al, byte [esi + ecx]
test al, al
je 0x493cfc
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x493ce6
test edx, edx
lea eax, [ecx - 1]
lea esi, [ebp - 0x4e4]
mov edx, 0x80
cmovne eax, ecx
lea ecx, [ebp - 0x104]
mov byte [eax], 0
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x493d39
mov al, byte [esi + ecx]
test al, al
je 0x493d39
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x493d20
test edx, edx
lea eax, [ecx - 1]
push 0x400
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x504]
push eax
call fcn.00463960
push 0x400
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00493dc0
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
test eax, eax
jne 0x493daf
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
push edi
call fcn.00494ae0
neg eax
pop edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004221b0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.004221b0
mov esp, ebp
pop ebp
ret
Function at 0x494680
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.00422550
mov eax, dword [0x4c81a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x4947ed
cmp dword [ebp + 0xc], 0
je 0x4947ed
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.00490870
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4947d0
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c0c], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c08], xmm0
push 0
push eax
mov dword [ebp - 0x2c00], 0
mov dword [ebp - 0x2c08], 0
mov dword [ebp - 0x2c04], 0
call fcn.00463960
add esp, 0xc
lea eax, [ebp - 0x2c0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4947c5
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.00463960
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.004957e0
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.00494ae0
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4947da
inc esi
cmp esi, 0x10
jl 0x4946c0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004221b0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004221b0
mov esp, ebp
pop ebp
ret
Function at 0x494800
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4c81a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x4948e8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00463960
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x4948e8
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494857
sub ecx, esi
mov eax, 0x103
sar ecx, 1
sub eax, ecx
cmp edx, eax
jae 0x4948e8
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x494880
mov eax, dword [0x4b82a4]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x494895
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4948b0
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004221b0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004221b0
mov esp, ebp
pop ebp
ret
Function at 0x494900
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x4c81a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.00463960
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00493dc0
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x49496a
mov al, byte [edi + ecx]
test al, al
je 0x49496a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x494951
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x49498b
inc eax
sub ecx, 1
jne 0x494980
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x4949e0
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x4949d5
lea edi, [ebp - 0x84]
mov eax, 0x7fffffff
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x4949d4
mov bl, byte [edi + ecx]
test bl, bl
je 0x4949d4
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x4949c0
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.00463960
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x4b87e4
push str.SoftwareComMaster
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x494a9a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x494a64
test cl, cl
je 0x494a60
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x494a64
add eax, 2
add esi, 2
test cl, cl
jne 0x494a44
xor eax, eax
jmp 0x494a69
sbb eax, eax
or eax, 1
test eax, eax
je 0x494a9a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x494a76
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareComMaster
push 0x80000002
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x494aa3
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x4b87e4
push str.SoftwareComMaster
push 0x80000002
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004221b0
mov esp, ebp
pop ebp
ret
Function at 0x42a890
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e000]
push edi
or ebp, 0xffffffff
jmp 0x42a8b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42a8b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42a8a8
mov eax, 1
add ebx, ebx
jne 0x42a8cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42a8c0
jne 0x42a8dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a8c0
xor ecx, ecx
sub eax, 3
jb 0x42a8f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42a962
mov ebp, eax
add ebx, ebx
jne 0x42a8fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42a908
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42a92c
inc ecx
add ebx, ebx
jne 0x42a918
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42a90d
jne 0x42a929
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a90d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42a94c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42a93d
jmp 0x42a8ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42a94c
add edi, ecx
jmp 0x42a8ae
pop esi
mov edi, esi
mov ecx, 0x901
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42a96a
cmp byte [edi], 5
jne 0x42a96a
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 0x42a96f
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x42a9e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a9f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2aaf0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42a99c
mov ecx, edi
jns 0x42a9cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2aaf8]
or eax, eax
je 0x42a9e1
mov dword [ebx], eax
add ebx, 4
jmp 0x42a9b9
call dword [esi + 0x2aaf4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x42aa18
cmp al, 0xef
ja 0x42aa0b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x42a9ed
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x42a9fa
mov ebp, dword [esi + 0x2aafc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x42aa4c
sub esp, 0xffffff80
jmp 0x40a75c
Function at 0x4027d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x2b0
lea eax, [esp + 0x120]
push esi
push eax
mov esi, ecx
push 0x202
call sub.WSOCK32.dll_WSAStartup
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
test eax, eax
mov dword [esi + 0x288], eax
jge 0x40280a
xor eax, eax
pop esi
add esp, 0x2b0
ret
lea ecx, [esp + 4]
mov dword [esp + 4], 1
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
xor edx, edx
push 0x22b6
mov dword [esp + 0xc], edx
mov word [esp + 0xc], 2
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
call sub.WSOCK32.dll_htons
mov word [esp + 0xa], ax
mov eax, dword [esi + 0x2dc]
push eax
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [esi + 0x288]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call sub.WSOCK32.dll_connect
mov edx, dword [esi + 0x288]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push 0
push ecx
push 0
push 0
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], 1
call sub.WSOCK32.dll_select
test eax, eax
jg 0x4028be
mov edx, dword [esi + 0x288]
push edx
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x2b0
ret
mov ecx, dword [esi + 0x288]
lea eax, [esp + 4]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x10], 0
call sub.WSOCK32.dll_ioctlsocket
mov eax, 1
pop esi
add esp, 0x2b0
ret

Function at 0x402910
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0xc]
push 0
mov edx, dword [edi + 0x288]
push eax
push ecx
push edx
call sub.WSOCK32.dll_recv
mov esi, eax
test esi, esi
jle 0x40295b
cmp esi, 0xffffffff
jne 0x402943
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2746
je 0x40295b
mov eax, dword [edi + 0x288]
push eax
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
mov eax, esi
pop edi
pop esi
ret 8
mov ecx, dword [edi + 0x288]
push ecx
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
pop edi
xor eax, eax
pop esi
ret 8

Function at 0x402980
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4333e8
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
call fcn.004027d0
test eax, eax
jne 0x4029fe
mov eax, dword [0x444930]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x2dc]
lea edx, [esp + 0x18]
push ecx
push str.Failed_to_connect__s
push edx
mov dword [esp + 0x18], 0
call fcn.0042582b
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0
push 0
push eax
call fcn.0042e103
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.004285c0
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x288]
push 0
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret 8
Function at 0x402cf0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x80
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi + 0x294]
lea ecx, [esp + 8]
push eax
push 0x80
push ecx
push str.192.168.2.22
push 0x4433e4
push 0x4433d8
call edi
lea edx, [esp + 8]
lea eax, [esi + 0x2dc]
push edx
push 0x443448
push eax
call fcn.0042582b
mov ecx, dword [esi + 0x294]
add esp, 0xc
lea edx, [esp + 8]
push ecx
push 0x80
push edx
push 0x448b58
push str.MinerType
push 0x4433d8
call edi
lea eax, [esp + 8]
lea ecx, [esi + 0x2d4]
push eax
push 0x443448
push ecx
call fcn.0042582b
mov edx, dword [esi + 0x294]
add esp, 0xc
lea eax, [esp + 8]
push edx
push 0x80
push eax
push 0x448b58
push str.AddData
push 0x4433d8
call edi
lea ecx, [esp + 8]
lea edx, [esi + 0x2e0]
push ecx
push 0x443448
push edx
call fcn.0042582b
mov eax, dword [esi + 0x294]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 0xc
push eax
push 0
push str.AddDataCheck
push 0x4433d8
call edi
mov dword [esi + 0x2e4], eax
mov eax, dword [esi + 0x294]
push eax
push 1
push str.EnableBurnQRCode
push 0x4433d8
call edi
mov dword [esi + 0x3b0], eax
mov eax, dword [esi + 0x294]
push eax
push 1
push str.EnableTestChipID
push 0x4433d8
call edi
mov dword [esi + 0x3ac], eax
mov eax, dword [esi + 0x294]
push eax
push 0
push str.StationId
push 0x4433d8
call edi
mov dword [esi + 0x3b4], eax
mov eax, dword [esi + 0x294]
push eax
push 0
push str.LanguageId
push 0x4433d8
call edi
mov ecx, esi
mov dword [esi + 0x28c], eax
call fcn.004065f0
push 0
mov ecx, esi
call fcn.0042ad55
pop edi
pop esi
add esp, 0x80
ret
Function at 0x402eb0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43346c
push eax
mov eax, 0x1010
mov dword fs:[0], esp
call fcn.00413530
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x294]
push eax
lea eax, [esp + 0x24]
push 0x1000
push eax
push 0x448b58
push str.MinerTypeList
push 0x4433d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x20]
lea esi, [edi + 0x2d8]
push ecx
push 0x443448
push esi
call fcn.0042582b
mov eax, dword [0x444930]
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x1028], 0
mov dword [esp + 0x10], eax
mov bl, 1
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x102c], bl
call fcn.004286f9
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edx - 8]
test eax, eax
je 0x403013
push 0x44345c
lea ecx, [esp + 0x14]
call fcn.004254a5
mov esi, eax
test esi, esi
jl 0x402ffe
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.0042542d
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x102c], 2
call fcn.004286f9
lea ecx, [esp + 0x18]
mov byte [esp + 0x1028], bl
call fcn.004285c0
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x2b4]
push ecx
push 0
push 0x143
push edx
call ebp
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004253b1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x102c], 3
call fcn.004286f9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1028], bl
call fcn.004285c0
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x402f54
jmp 0x403013
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x2b4]
push eax
push 0
push 0x143
push ecx
call ebp
mov eax, dword [edi + 0x2d4]
mov edx, dword [edi + 0x2b4]
push eax
push 0
push 0x14d
push edx
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x1028], 0
call fcn.004285c0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1028], 0xffffffff
call fcn.004285c0
mov ecx, dword [esp + 0x1020]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x101c
ret
Function at 0x4059e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x433a5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x444930]
push esi
mov esi, ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esi + 0x3b4]
lea ecx, [esp + 4]
push eax
push 0x4433d4
push ecx
mov byte [esp + 0x38], 5
call fcn.0042582b
mov edx, dword [esi + 0x1ec]
mov eax, dword [esi + 0x244]
mov ecx, dword [esi + 0x240]
push 0x448b58
push 0x448b58
push 0x448b58
push edx
mov edx, dword [esi + 0x23c]
push eax
mov eax, dword [esi + 0x238]
push ecx
mov ecx, dword [esi + 0x234]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esi + 0x1e0]
push ecx
mov ecx, dword [esi + 0x1c0]
push edx
mov edx, dword [esi + 0x1dc]
push eax
mov eax, dword [esi + 0x1b0]
push ecx
mov ecx, dword [esi + 0x230]
push edx
mov edx, dword [esi + 0x22c]
push eax
mov eax, dword [esi + 0x178]
push ecx
mov ecx, dword [esi + 0x228]
push edx
mov edx, dword [esi + 0x224]
push eax
mov eax, dword [esi + 0x1f0]
push ecx
mov ecx, dword [esi + 0x170]
push edx
mov edx, dword [esi + 0x208]
push eax
push ecx
push edx
lea eax, [esp + 0x70]
push str.insert_into_test_chipid_log_values__NULL__s__s__s__s__s__s__s__s__s__s__s__s__s__s__s__s__s__s__s__s__s__s_
push eax
call fcn.0042582b
mov ecx, dword [esp + 0x70]
mov edx, dword [esi + 0x224]
mov eax, dword [esi + 0x1f0]
add esp, 0x6c
push ecx
mov ecx, dword [esi + 0x170]
push edx
mov edx, dword [esi + 0x208]
push eax
push ecx
push edx
lea eax, [esp + 0x1c]
push str.select_pcbsn_from_test_chipid_log_where_date_s_and_minertype_s_and_pcbsn_s_and_testtype_s_and_station_s
push eax
call fcn.0042582b
add esp, 0x1c
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push 0x443ce4
push ecx
push edx
call fcn.00428855
lea ecx, [esp + 8]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x38], 6
call fcn.004287ef
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 7
call fcn.004286f9
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 6
call fcn.004285c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 5
call fcn.004285c0
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00428335
mov dword [esp + 0x1c], 1
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 4
call fcn.004285c0
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 3
call fcn.004285c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call fcn.004285c0
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 1
call fcn.004285c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.004285c0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4