joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476bb4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e9c14]
cmp byte [eax + 0xc], 0
je 0x476d21
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x476d1a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4eacc0], 0
jne 0x476c08
push 0x476d28
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x476d30
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4eacc0], eax
cmp dword [0x4d611c], 0
jne 0x476d03
push 0x476d40
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4d611c], eax
cmp dword [0x4d611c], 0
je 0x476d03
push 0x476d4c
mov eax, dword [0x4d611c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4eacc4], eax
push 0x476d5c
mov eax, dword [0x4d611c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4eacc8], eax
push 0x476d70
mov eax, dword [0x4d611c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4eaccc], eax
push 0x476d88
mov eax, dword [0x4d611c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4eacd0], eax
push 0x476da0
mov eax, dword [0x4d611c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4eacd4], eax
push 0x476db4
mov eax, dword [0x4d611c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4eacd8], eax
push 0x476dcc
mov eax, dword [0x4d611c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4eacdc], eax
push 0x476de4
mov eax, dword [0x4d611c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4eace0], eax
push 0x476e00
mov eax, dword [0x4d611c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4eace4], eax
push 0x476e0c
mov eax, dword [0x4d611c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4eace8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476d21
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x47af08
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x47af24
call fcn.0047c434
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x47af40
test bl, 1
je 0x47af40
call fcn.00482ee8
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x47b124
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0047bfd0
test byte [ebp + 0xd], 0xc0
jne 0x47b148
mov eax, dword [0x4d858c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x47b155
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x47b182
je 0x47b194
sub ecx, 0x100
je 0x47b1a2
sub ecx, 0x100
je 0x47b1a9
sub ecx, 0x100
je 0x47b19b
jmp 0x47b1b0
sub ecx, 0x600
je 0x47b1a9
sub ecx, 0x100
je 0x47b194
jmp 0x47b1b0
mov edi, 1
jmp 0x47b1b5
mov edi, 2
jmp 0x47b1b5
mov edi, 4
jmp 0x47b1b5
mov edi, 5
jmp 0x47b1b5
mov edi, 3
test byte [ebp + 0xd], 1
je 0x47b1dc
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4d8004]
test al, 0x80
je 0x47b1d5
mov ebx, 0x80
jmp 0x47b1ee
mov ebx, 1
jmp 0x47b1ee
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x47b1ee
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x47b200
je 0x47b209
dec eax
je 0x47b212
jmp 0x47b21b
mov dword [ebp - 4], accept
jmp 0x47b22a
mov dword [ebp - 4], 0x40000000
jmp 0x47b22a
mov dword [ebp - 4], 0xc0000000
jmp 0x47b22a
push 1
call fcn.0047c3c8
pop ecx
mov ebx, eax
jmp 0x47b31a
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x47b246
sub eax, 0x10
je 0x47b24d
sub eax, 0x10
je 0x47b256
sub eax, 0x10
je 0x47b25f
jmp 0x47b25f
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x47b266
mov dword [ebp - 8], 1
jmp 0x47b266
mov dword [ebp - 8], 2
jmp 0x47b266
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x47b2d3
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x47b2c8
test byte [ebp + 0xd], 1
je 0x47b2c3
mov ebx, 0x50
jmp 0x47b2c8
mov ebx, 2
push ebx
call fcn.0047c3c8
pop ecx
mov ebx, eax
jmp 0x47b31a
mov edi, esi
push edi
call fcn.0047b088
pop ecx
test eax, eax
je 0x47b2e7
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x47b2f3
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0047c0f0
add esp, 8
mov ebx, eax
inc eax
jne 0x47b31a
push 4
call fcn.0047c3c8
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0047c004
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f974
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.0047999c
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00479a2c
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.00479a2c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x4d92ad
lea ecx, [ebp - 0x200]
push ecx
call fcn.0047999c
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.00479a2c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00480b88
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x47fa85
push esi
call fcn.00479a2c
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00479a2c
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00478314
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x47fa5c
xor eax, eax
jmp 0x47fb0c
push esi
call fcn.00479a2c
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00479a2c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004798f8
add esp, 0xc
jmp 0x47fac5
mov edi, dword [ebx + 0x24]
push edi
call fcn.00479a2c
pop ecx
push eax
push esi
call fcn.00479a2c
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00479a2c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00478334
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x47fac5
xor eax, eax
jmp 0x47fb0c
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0047999c
add esp, 8
push 0x4d92af
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0047999c
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.0047999c
add esp, 8
push 0x4d92b1
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0047999c
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x482e80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x482ee2
call fcn.00482e30
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00479a2c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00479a2c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x482f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4d98bc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x48303a
cmp dword [0x4d98b8], 0
jne 0x48303a
cmp dword [0x4d9abc], 0
je 0x482ff4
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00482d30
add esp, 8
mov ebx, eax
test eax, eax
jne 0x482fda
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00482d30
add esp, 8
mov ebx, eax
test eax, eax
jne 0x482fda
lea ebx, [ebp - 0x84]
jmp 0x482fdb
inc ebx
call fcn.00482f1c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x483075
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4d98c0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00479a2c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4d98c3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x483075
cmp dword [0x4d98b8], 0
je 0x483054
cmp dword [0x4d98b8], 0xffffffff
je 0x483075
push esi
call dword [0x4d98b8]
pop ecx
mov eax, dword [0x4d98bc]
test eax, eax
je 0x483075
cmp dword [0x4d98bc], 0xffffffff
je 0x483075
cmp byte [eax], 0
je 0x483075
push esi
push eax
call fcn.00482e80
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4844c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x4844e6
test esi, esi
je 0x4844e6
call fcn.00482ee8
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x484558
call fcn.004841d4
mov ebx, eax
test eax, eax
jne 0x484501
call fcn.00482ee8
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x484558
mov edx, dword [ebp + 0x10]
mov dword [ebx + 4], edx
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x54], eax
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push 0x48441c
push esi
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x48454c
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x484545
push 0x59
call fcn.0047c3c8
pop ecx
jmp 0x484558
call fcn.0047c434
jmp 0x484558
mov dword [ebx + 8], eax
test edi, edi
je 0x484558
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x48b7f4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x495188
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, str.test_pack
push esi
call fcn.00479a2c
pop ecx
mov edi, eax
mov dword [ebp - 4], 0x10
push dword [ebp - 4]
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.004798f8
add esp, 0xc
push dword [ebp - 4]
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.004798f8
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.WSOCK32.DLL_getsockname
test eax, eax
je 0x4951f0
call fcn.004ac79c
push eax
push str.TransmitterBind:getsockname_return_Error:_d
call fcn.0047c794
add esp, 8
mov word [ebp - 0x24], 2
push str.0.0.0.0
call fcn.004ac7cc
pop ecx
mov dword [ebp - 0x20], eax
push 0x2328
call fcn.004ac884
pop ecx
mov word [ebp - 0x22], ax
push dword [ebp - 4]
lea edx, [ebp - 0x24]
push edx
push 0
push edi
push esi
push ebx
call fcn.004ac580
add esp, 0x18
mov esi, eax
lea ecx, [ebp - 4]
push ecx
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.WSOCK32.DLL_getsockname
test eax, eax
je 0x495253
push esi
call fcn.004ac79c
push eax
push str.TransmitterBind:getsockname2_return_Error:_d__d
call fcn.0047c794
add esp, 0xc
xor eax, eax
jmp 0x49527d
mov dx, word [ebp - 0x12]
push edx
call fcn.004ac8a4
pop ecx
movzx eax, ax
jmp 0x49527d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49c0c4
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
cmp dword [ebp + 0x10], 0
jne 0x49c0e6
cmp dword [ebp + 8], 1
je 0x49c0f8
push 0x273f
call sub.WSOCK32.DLL_WSASetLastError
or eax, 0xffffffff
jmp 0x49c270
cmp dword [ebp + 0x14], 0
jne 0x49c110
push 0x2726
call sub.WSOCK32.DLL_WSASetLastError
or eax, 0xffffffff
jmp 0x49c270
push 0
mov edx, dword [ebp + 0xc]
push edx
push 2
call sub.WSOCK32.DLL_socket
mov ebx, eax
test ebx, ebx
jge 0x49c130
call sub.KERNEL32.DLL_GetLastError
or eax, 0xffffffff
jmp 0x49c270
push 0x10
push 0
lea edx, [ebp - 0x18]
push edx
call fcn.004798f8
add esp, 0xc
mov word [ebp - 0x18], 2
push 0x7f000001
call sub.WSOCK32.DLL_htonl
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov word [ebp - 0x16], 0
push 0x10
push ecx
push ebx
call sub.WSOCK32.DLL_bind
inc eax
je 0x49c237
push 1
push ebx
call sub.WSOCK32.DLL_listen
inc eax
je 0x49c237
push 0
mov eax, dword [ebp + 0xc]
push eax
push 2
call sub.WSOCK32.DLL_socket
mov esi, eax
test esi, esi
jl 0x49c237
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
lea edx, [ebp - 0x28]
push eax
push edx
push ebx
call sub.WSOCK32.DLL_getsockname
inc eax
je 0x49c237
cmp dword [ebp - 8], 0x10
jne 0x49c232
push 0x10
lea ecx, [ebp - 0x28]
push ecx
push esi
call sub.WSOCK32.DLL_connect
inc eax
je 0x49c237
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
lea edx, [ebp - 0x18]
push eax
push edx
push ebx
call sub.WSOCK32.DLL_accept
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x49c237
cmp dword [ebp - 8], 0x10
jne 0x49c232
push ebx
call sub.WSOCK32.DLL_closesocket
lea ecx, [ebp - 8]
lea eax, [ebp - 0x28]
push ecx
push eax
push esi
call sub.WSOCK32.DLL_getsockname
inc eax
je 0x49c237
cmp dword [ebp - 8], 0x10
jne 0x49c232
mov dx, word [ebp - 0x18]
cmp dx, word [ebp - 0x28]
jne 0x49c232
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x24]
jne 0x49c232
mov ax, word [ebp - 0x16]
cmp ax, word [ebp - 0x26]
jne 0x49c232
mov edx, dword [ebp + 0x14]
mov dword [edx], esi
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [ecx + 4], eax
xor eax, eax
jmp 0x49c270
mov edi, 0x2745
test edi, edi
jge 0x49c242
call sub.WSOCK32.DLL_WSAGetLastError
mov edi, eax
cmp ebx, 0xffffffff
je 0x49c24d
push ebx
call sub.WSOCK32.DLL_closesocket
cmp esi, 0xffffffff
je 0x49c258
push esi
call sub.WSOCK32.DLL_closesocket
cmp dword [ebp - 4], 0xffffffff
je 0x49c267
mov eax, dword [ebp - 4]
push eax
call sub.WSOCK32.DLL_closesocket
push edi
call sub.WSOCK32.DLL_WSASetLastError
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a030c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
mov eax, 0x4e2250
call fcn.00479eb8
mov word [ebp - 0x2c], 8
lea edx, [ebp - 0x18]
push edx
call fcn.004058c0
pop ecx
add dword [ebp - 0x20], 4
mov word [ebp - 0x2c], 0x14
mov esi, 0x4dfde9
lea edi, [ebp - 0x14c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4a038d
push 0x105
lea eax, [ebp - 0x14c]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
lea edx, [ebp - 0x14c]
add edx, eax
mov eax, edx
lea ecx, [ebp - 0x44]
push ecx
push eax
lea eax, [ebp - 0x14c]
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.0040f7c0
add esp, 0x10
jmp 0x4a03b6
call sub.KERNEL32.DLL_GetCommandLineA
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.004a019c
add esp, 8
test ebx, ebx
je 0x4a03b6
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
sete cl
and ecx, 1
test cl, cl
jne 0x4a03b6
dec ebx
jmp 0x4a0392
mov word [ebp - 0x2c], 0x20
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.0040f8ac
add esp, 8
add dword [ebp - 0x20], 4
mov eax, dword [ebp + 8]
mov word [ebp - 0x2c], 0x2c
push eax
dec dword [ebp - 0x20]
dec dword [ebp - 0x20]
mov esi, dword [ebp - 8]
sub esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4a0407
cmp esi, 0x80
jbe 0x4a03fd
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a0407
push esi
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x20]
dec dword [ebp - 0x20]
pop eax
mov word [ebp - 0x2c], 0x20
add dword [ebp - 0x20], 4
mov edx, dword [ebp - 0x3c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a042c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbbc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, 0x4e22e0
call fcn.00479eb8
mov byte [ebp - 0x25], 0
mov word [ebp - 0x14], 8
push 0x400
push 0
lea edx, [ebp - 0x444]
push edx
call fcn.004798f8
add esp, 0xc
mov dword [ebp - 0x2c], 0x3ff
mov word [ebp - 0x14], 8
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], 1
push str.20110517.000
call fcn.00479a2c
pop ecx
add eax, str.20110517.000
lea edx, [ebp - 0x3c]
push edx
push eax
push str.20110517.000
push ebx
call fcn.0040f7c0
add esp, 0x10
lea eax, [ebp - 0x30]
push eax
push 0x4e12e5
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegCreateKeyA
test eax, eax
jne 0x4a0541
mov word [ebp - 0x14], 0x14
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x444]
push eax
lea edx, [ebp - 0x34]
push edx
push 0
push 0x4e12f8
push dword [ebp - 0x30]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov word [ebp - 0x14], 0x14
test eax, eax
jne 0x4a0526
lea ecx, [ebp - 0x444]
push ecx
call fcn.00479a2c
pop ecx
lea edx, [ebp - 0x444]
add eax, edx
lea ecx, [ebp - 0x44]
push ecx
push eax
lea eax, [ebp - 0x444]
push eax
push ebx
call fcn.0040f7c0
add esp, 0x10
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
cmp eax, 0xc
sete dl
and edx, 1
mov byte [ebp - 0x25], dl
mov word [ebp - 0x14], 8
jmp 0x4a0539
push dword [ebp - 0x30]
call sub.ADVAPI32.DLL_RegCloseKey
mov word [ebp - 0x14], 0
jmp 0x4a0554
mov al, byte [ebp - 0x25]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a0568
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, 0x4e2320
call fcn.00479eb8
mov byte [ebp - 0x25], 0
mov esi, dword [ebx + 4]
sub esi, dword [ebx]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov edi, 1
lea eax, [ebp - 0x2c]
push eax
push str.SOFTWARE1314PBVA
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegCreateKeyA
test eax, eax
jne 0x4a05ef
mov word [ebp - 0x14], 8
push esi
push dword [ebx]
push edi
push 0
push 0x4e130f
push dword [ebp - 0x2c]
call sub.ADVAPI32.DLL_RegSetValueExA
mov word [ebp - 0x14], 8
test eax, eax
sete dl
and edx, 1
mov byte [ebp - 0x25], dl
mov word [ebp - 0x14], 0
jmp 0x4a05e5
push dword [ebp - 0x2c]
call sub.ADVAPI32.DLL_RegCloseKey
jmp 0x4a05f3
mov byte [ebp - 0x25], 0
mov al, byte [ebp - 0x25]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a92e8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7d0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, 0x4e4488
call fcn.00479eb8
mov edx, dword [esi]
cmp edx, dword [esi + 4]
sete cl
and ecx, 1
test cl, cl
jne 0x4a933a
mov eax, dword [edi]
cmp eax, dword [edi + 4]
sete dl
and edx, 1
test dl, dl
jne 0x4a933a
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov edx, dword [ebp + 0x10]
cmp eax, dword [edx + 4]
sete cl
and ecx, 1
test cl, cl
je 0x4a9348
mov eax, dword [ebp - 0x24]
mov dword fs:[0], eax
jmp 0x4a93dc
mov edx, dword [ebx]
cmp edx, dword [ebx + 4]
je 0x4a9360
mov al, 0
mov ecx, dword [ebx]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov byte [edx], al
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov word [ebp - 0x14], 8
push 0x800
push 0
lea ecx, [ebp - 0x830]
push ecx
call fcn.004798f8
add esp, 0xc
push dword [esi]
push 0x800
lea eax, [ebp - 0x830]
push eax
mov edx, dword [ebp + 0x14]
push dword [edx]
mov ecx, dword [ebp + 0x10]
push dword [ecx]
push dword [edi]
call sub.KERNEL32.DLL_GetPrivateProfileStringA
mov word [ebp - 0x14], 8
lea edx, [ebp - 0x830]
add edx, eax
mov eax, edx
lea ecx, [ebp - 0x30]
push ecx
push eax
lea eax, [ebp - 0x830]
push eax
push ebx
call fcn.0040f7c0
add esp, 0x10
mov word [ebp - 0x14], 0
jmp 0x4a93d3
mov eax, dword [ebp - 0x24]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a93e4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, 0x4e44e8
call fcn.00479eb8
mov byte [ebp - 0x49], 0
xor edx, edx
mov dword [ebp - 0x50], edx
mov ecx, dword [ebx]
cmp ecx, dword [ebx + 4]
sete al
and eax, 1
test al, al
je 0x4a9427
mov al, byte [ebp - 0x49]
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x4a9593
push ebx
call fcn.004a959c
pop ecx
test al, al
jne 0x4a9444
mov al, byte [ebp - 0x49]
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x4a9593
push 0x4000
call fcn.00478314
pop ecx
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x4a946a
mov al, byte [ebp - 0x49]
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
jmp 0x4a9593
mov word [ebp - 0x38], 8
push 0x4000
push 0
push dword [ebp - 0x50]
call fcn.004798f8
add esp, 0xc
push dword [ebx]
push 0x3ffe
push dword [ebp - 0x50]
push 0
push 0
push 0
call sub.KERNEL32.DLL_GetPrivateProfileStringA
test eax, eax
je 0x4a956a
mov ebx, dword [ebp - 0x50]
jmp 0x4a955d
mov word [ebp - 0x38], 0x14
lea eax, [ebp - 8]
push eax
inc dword [ebp - 0x2c]
push ebx
lea edx, [ebp - 0x20]
push edx
call fcn.0040fe28
add esp, 0xc
add dword [ebp - 0x2c], 4
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0x10]
je 0x4a94f8
mov edi, dword [esi + 4]
mov dword [ebp - 0x24], edi
test edi, edi
je 0x4a94f2
mov word [ebp - 0x38], 0x20
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call fcn.0040f8ac
add esp, 8
mov word [ebp - 0x38], 0x14
add dword [esi + 4], 0x18
jmp 0x4a9510
push 1
push 1
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x20]
push ecx
push dword [esi + 4]
push esi
call fcn.00489990
add esp, 0x18
dec dword [ebp - 0x2c]
mov word [ebp - 0x38], 8
dec dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], eax
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x4a954a
cmp dword [ebp - 0x5c], 0x80
jbe 0x4a953e
push edi
call fcn.00477a54
pop ecx
jmp 0x4a954a
push dword [ebp - 0x5c]
push edi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x2c]
dec dword [ebp - 0x2c]
dec dword [ebp - 0x2c]
push ebx
call fcn.00479a2c
pop ecx
inc eax
add ebx, eax
cmp byte [ebx], 0
jne 0x4a94a7
mov byte [ebp - 0x49], 1
mov word [ebp - 0x38], 0
jmp 0x4a957d
push dword [ebp - 0x50]
call fcn.00478324
pop ecx
mov al, byte [ebp - 0x49]
mov edx, dword [ebp - 0x48]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret