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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45c716
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403b94
mov eax, dword [ebp - 0x10]
call fcn.0045c23c
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x45c5ff
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00403fbc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0045cce8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45c6d4
xor eax, eax
push ebp
push 0x45c6cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0045c368
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0045c748
test al, al
je 0x45c6ab
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00403be0
mov ebx, dword [ebp - 0x38]
dec ebx
test ebx, ebx
jl 0x45c6ab
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403f3c
push eax
push esi
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x45c6a7
mov eax, dword [ebp - 0x14]
call fcn.00403f3c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00403cb0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0045c5ac
inc esi
dec ebx
jne 0x45c660
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c6d4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0045c368
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00403f3c
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0045c354
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c71d
lea eax, [ebp - 0x3c]
call fcn.00403afc
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403b20
ret

Function at 0x45c748
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402c14
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x486710]
cmp byte [edx + 8], 0
je 0x45c7ac
mov edx, dword [0x486704]
cmp dword [edx], 2
jne 0x45c7ac
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x45c7b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45c868
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0045c748
test al, al
je 0x45c84a
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403be0
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x45c84a
inc ebx

Function at 0x45c878
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45c930
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0045c748
test al, al
je 0x45c912
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403be0
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x45c912
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403f3c
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.ADVAPI32.DLL_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00403f3c
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00403cb0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x45c8cb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c937
lea eax, [ebp - 0x2c]
call fcn.00403afc
lea eax, [ebp - 0xc]
call fcn.00403afc
ret

Function at 0x45cc60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00403f3c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA_1
test eax, eax
je 0x45cc9c
push ebp
call fcn.0045cbf0
pop ecx
mov eax, dword [ebp - 8]
call fcn.0045c250
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x461c20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x461c8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x487a44]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x461c78
mov eax, dword [0x487a44]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x461c78
lea ecx, [ebp - 4]
mov edx, ebx
mov eax, dword [0x487a44]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
call fcn.00403f3c
push eax
call sub.KERNEL32.DLL_DeleteFileA
dec ebx
cmp ebx, 0xffffffff
jne 0x461c55
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461c95
lea eax, [ebp - 4]
call fcn.00403afc
ret
Function at 0x461f40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f2c
xor eax, eax
push ebp
push 0x462035
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4866e8]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0042fdb0
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004632f0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov dl, 1
call fcn.00463d74
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 8]
call fcn.00461c9c
cmp dword [ebp - 8], 0
je 0x46200c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00407ad8
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00407aa4
mov eax, dword [ebp - 0x10]
call fcn.00403d78
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax - 1], 0x5c
jne 0x461fe1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403d78
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00403f7c
push 1
mov eax, dword [ebp - 0x10]
call fcn.00403f3c
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403f3c
push eax
push 0x462040
mov eax, dword [0x4865b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.SHELL32.DLL_ShellExecuteA
mov eax, dword [0x4866e8]
mov eax, dword [eax]
xor edx, edx
call fcn.0042fdb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46203c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00403b20
ret
Function at 0x462658
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f2c
xor eax, eax
push ebp
push 0x46278f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor edi, edi
lea eax, [ebp - 0x10]
mov edx, 0x4627a8
call fcn.00403b94
lea eax, [ebp - 0xc]
call fcn.00403afc
mov eax, dword [ebp - 4]
call fcn.00403d78
mov esi, eax
test esi, esi
jle 0x4626d8
mov ebx, 1
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
add al, 0xd0
sub al, 0xa
jae 0x4626d4
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
call fcn.00403ca0
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.00403d80
inc ebx
dec esi
jne 0x4626ad
mov eax, dword [ebp - 0xc]
call fcn.00403d78
cmp eax, 0xd
jl 0x46276c
jmp 0x4626fb
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4627c4
call fcn.00403dc4
mov eax, dword [ebp - 0xc]
call fcn.00403d78
cmp eax, 0x10
jl 0x4626eb
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004074d0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00407368
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.00403b94
mov ebx, 1
mov eax, dword [ebp - 0xc]
mov al, byte [eax + ebx - 1]
and eax, 0xff
sub eax, 0x30
mov edx, dword [ebp - 0x10]
movzx edx, byte [edx + ebx - 1]
sub edx, 0x30
imul edx
cmp eax, 9
jle 0x462752
sub eax, 9
add edi, eax
inc ebx
cmp ebx, 0x11
jne 0x46272e
mov eax, edi
mov ecx, 0xa
cdq
idiv ecx
test edx, edx
jne 0x46276c
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462796
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00403b20
lea eax, [ebp - 4]
call fcn.00403afc
ret

Function at 0x4627f0
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffff4
push 0
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x46281c
call sub.KERNEL32.DLL_GetVolumeInformationA
mov eax, dword [esp]
add esp, 0xc
ret

Function at 0x462808
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffff4
push 0
push 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x46281c
call sub.KERNEL32.DLL_GetVolumeInformationA
mov eax, dword [esp]
add esp, 0xc
ret
Function at 0x462e9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x108], edx
mov esi, eax
xor eax, eax
push ebp
push 0x462f59
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100]
push eax
push 0x100
call sub.KERNEL32.DLL_GetTempPathA
call fcn.004029fc
mov eax, 0x7fffffff
call fcn.00402c34
mov ebx, eax
lea eax, [ebp - 0x104]
push eax
lea edx, [ebp - 0x108]
mov eax, ebx
call fcn.00407650
mov eax, dword [ebp - 0x108]
mov ecx, 8
mov edx, 1
call fcn.00403f7c
mov eax, dword [ebp - 0x104]
push eax
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x100]
mov ecx, 0x100
call fcn.00403d28
mov edx, dword [ebp - 0x108]
mov eax, esi
pop ecx
call fcn.00403dc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462f60
lea eax, [ebp - 0x108]
mov edx, 2
call fcn.00403b20
ret
Function at 0x465dc4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x465ee3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
mov edx, dword [0x4850bc]
call fcn.00407ed8
call sub.KERNEL32.DLL_GetCurrentProcessId
lea edx, [ebp - 0x10c]
call fcn.00407650
mov eax, dword [ebp - 0x10c]
call fcn.00403f3c
mov edx, eax
lea eax, [ebp - 0x105]
call fcn.00407fa0
lea eax, [ebp - 0x105]
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
mov dword [ebx + 0x22c], eax
cmp dword [ebx + 0x22c], 0
je 0x465eb1
call sub.KERNEL32.DLL_GetLastError_1
cmp eax, 0xb7
je 0x465eb1
push 0
push 0
push 0
push 2
mov eax, dword [ebx + 0x22c]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov esi, eax
lea eax, [ebx + 0x228]
mov edx, ebx
add edx, 0x214
mov ecx, 0x465ef0
call fcn.00404ee0
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x228]
call fcn.00407650
mov edx, esi
lea eax, [ebx + 0x228]
mov ecx, 4
call fcn.004028b8
push esi
call sub.KERNEL32.DLL_UnmapViewOfFile
mov byte [ebx + 0x224], 1
jmp 0x465ec2
mov ecx, 0x465f08
mov dl, 1
mov eax, dword [0x4067b0]
call fcn.0040a7e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465eea
lea eax, [ebp - 0x10c]
call fcn.00403afc
lea eax, [ebp - 4]
call fcn.00403afc
ret
Function at 0x466c38
Capabilities:
Copy file
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x466e23
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
push ebp
push 0x466de9
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebx + 0x31], 0
je 0x466d9d
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x218]
mov eax, dword [ebx + 0x2c]
call fcn.00407b10
mov eax, dword [ebp - 0x218]
mov ecx, 0xff
mov edx, 2
call fcn.00403f7c
push 0
lea eax, [ebp - 0x211]
push eax
mov eax, dword [ebp - 8]
call fcn.00403f3c
push eax
push 0
lea edx, [ebp - 0x218]
mov eax, dword [ebx + 0x2c]
call fcn.00407ad8
mov eax, dword [ebp - 0x218]
call fcn.00403f3c
push eax
call sub.WININET.DLL_CreateUrlCacheEntryA
lea eax, [ebp - 4]
lea edx, [ebp - 0x211]
mov ecx, 0x201
call fcn.00403d28
lea edx, [ebp - 0x218]
mov eax, dword [ebx + 0x2c]
call fcn.00407ad8
mov eax, dword [ebp - 0x218]
push eax
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00407aa4
mov edx, dword [ebp - 0x21c]
lea eax, [ebp - 4]
pop ecx
call fcn.00403dc4
push 0
mov eax, dword [ebp - 4]
call fcn.00403f3c
mov edi, eax
push edi
mov eax, dword [ebx + 0x2c]
call fcn.00403f3c
push eax
call sub.KERNEL32.DLL_CopyFileA
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 8
call fcn.00402c14
push 0
mov eax, dword [ebp - 8]
call fcn.00403f3c
push eax
push 0
push 0
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push edi
lea edx, [ebp - 0x218]
mov eax, dword [ebx + 0x2c]
call fcn.00407ad8
mov eax, dword [ebp - 0x218]
call fcn.00403f3c
push eax
call sub.WININET.DLL_CommitUrlCacheEntryA
mov eax, dword [ebp - 4]
call fcn.00404570
push eax
push 0xe
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
mov dl, 1
mov eax, dword [0x40db58]
call fcn.00402f3c
mov edi, eax
mov dword [ebx + 0x38], edi
mov edx, dword [ebx + 0x2c]
mov eax, edi
call fcn.00411370
mov eax, dword [ebx + 0x38]
xor edx, edx
call fcn.00410e04
mov edx, dword [ebx + 0x38]
mov eax, ebx
call fcn.00466af4
mov byte [ebx + 0x30], 0
push 0x64
push 0x64
push 4
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x466df8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466e2a
lea eax, [ebp - 0x21c]
mov edx, 2
call fcn.00403b20
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b20
ret
Function at 0x467264
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x46737f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dl, 1
mov eax, dword [0x45c114]
call fcn.0045c270
mov esi, eax
mov edx, 0x80000002
mov eax, esi
call fcn.0045c304
mov edx, dword [0x4850f0]
mov eax, esi
call fcn.0045cda8
test al, al
je 0x4672fb
xor ecx, ecx
mov edx, dword [0x4850f0]
mov eax, esi
call fcn.0045c460
lea ecx, [ebp - 4]
mov edx, 0x467398
mov eax, esi
call fcn.0045c9e4
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x4673a8
call fcn.00404004
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00403f7c
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00407734
cmp eax, 3
jle 0x4672fb
mov bl, 1
mov eax, esi
call fcn.00402f64
test bl, bl
jne 0x467364
lea edx, [ebp - 0x14]
mov eax, dword [0x4865b4]
mov eax, dword [eax]
call fcn.004316c4
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00407aa4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov ecx, 0x4673b4
call fcn.00403dc4
mov eax, dword [ebp - 0xc]
call fcn.00407884
test al, al
je 0x46734e
push 1
mov eax, dword [ebp - 0xc]
call fcn.00403f3c
push eax
call sub.KERNEL32.DLL_WinExec
jmp 0x467358
mov eax, 0x4673c8
call fcn.00440e08
mov eax, dword [0x4865b4]
mov eax, dword [eax]
call fcn.00431394
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467386
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403b20
ret

Function at 0x467400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov eax, dword [0x487f7c]
call fcn.00403d78
cmp eax, 3
jne 0x46742d
push 0x487f7c
mov ecx, 2
mov edx, 1
mov eax, dword [0x487f7c]
call fcn.00403f7c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x45d394]
call fcn.00414e48
mov ebx, eax
push 0xffff
mov ecx, dword [0x487f80]
mov dl, 1
mov eax, dword [0x40da98]
call fcn.00411104
mov edi, eax
mov dl, 1
mov eax, dword [0x40db58]
call fcn.00402f3c
mov esi, eax
lea eax, [ebx + 0x24]
mov edx, 0x4674fc
call fcn.00403b50
mov dword [ebx + 0x28], 0x2e32
push 0x46750c
push 0x467510
mov eax, dword [0x48656c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov ebp, eax
push ebp
mov eax, dword [0x48656c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_SizeofResource
mov dword [esp], eax
push ebp
mov eax, dword [0x48656c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_LoadResource
push eax
call sub.KERNEL32.DLL_LockResource
mov edx, eax
mov ecx, dword [esp]
mov eax, esi
mov ebp, dword [eax]
call dword [ebp + 8]
xor ecx, ecx
xor edx, edx
mov eax, esi
mov ebp, dword [eax]
call dword [ebp + 0xc]
mov ecx, esi
mov edx, edi
mov eax, ebx
call fcn.0045de5c
mov eax, esi
call fcn.00402f64
mov eax, edi
call fcn.00402f64
mov eax, ebx
call fcn.00402f64
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4680b4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebx + 4]
call fcn.00403f3c
push eax
push 0x400
lea eax, [ebp - 0x400]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00403f3c
push eax
mov eax, edi
call fcn.00403f3c
push eax
mov eax, esi
call fcn.00403f3c
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x400]
mov eax, dword [ebp + 8]
call fcn.00403be0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46812c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x468227
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x2000
call fcn.00402744
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46820a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040fb00
xor eax, eax
push ebp
push 0x4681ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [ebx + 4]
call fcn.00403f3c
push eax
push 0x2000
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov eax, esi
call fcn.00403f3c
push eax
call sub.KERNEL32.DLL_GetPrivateProfileStringA
test eax, eax
je 0x4681d7
mov ebx, dword [ebp - 8]
jmp 0x4681d2
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00403cb0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, ebx
call fcn.00407e70
inc eax
add ebx, eax
cmp byte [ebx], 0
jne 0x4681b3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4681f4
mov eax, dword [ebp - 4]
call fcn.0040fbbc
ret
Function at 0x46b478
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov esi, eax
cmp byte [0x48511c], 0
jne 0x46b4ce
push 0x487fdc
push 0x101
call sub.WSOCK32.DLL_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x46b4c7
mov dword [esp], esi
mov byte [esp + 4], 6
mov dword [esp + 8], ebx
mov byte [esp + 0xc], 0
push esp
push 1
mov ecx, 0x46b4e0
mov dl, 1
mov eax, dword [0x46aa0c]
call fcn.0040a818
call fcn.00403554
mov byte [0x48511c], 1
mov al, 1
add esp, 0x10
pop esi
pop ebx
ret

Function at 0x46bc68
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, eax
mov bl, 1
jmp 0x46be11
cmp dword [edi + 0x24], 0xffffffff
jne 0x46bca8
mov byte [edi + 0x198], 0
cmp byte [edi + 0x6c], 0
jne 0x46be19
cmp dword [edi + 0x70], 0
je 0x46be19
mov eax, dword [edi + 0x70]
mov edx, dword [eax]
call dword [edx + 0x84]
jmp 0x46be19
mov esi, 0xfffffffe
cmp byte [edi + 0x58], 4
jne 0x46bcfc
lea eax, [esp + 4]
push eax
push 0x4004667f
mov eax, dword [edi + 0x24]
push eax
call sub.WSOCK32.DLL_ioctlsocket
inc eax
jne 0x46bce1
mov byte [edi + 0x198], 0
mov edx, 0x46be28
mov eax, edi
call fcn.0046deec
jmp 0x46be19
cmp dword [esp + 4], 0
jle 0x46bcfc
push 0
push 1
lea eax, [esp + 8]
push eax
mov eax, dword [edi + 0x24]
push eax
call sub.WSOCK32.DLL_recv
mov esi, eax
cmp esi, 1
jne 0x46bd95
inc dword [edi + 0x19c]
cmp byte [esp], 0xa
je 0x46bd39
cmp byte [esp], 0xd
je 0x46bd39
inc dword [edi + 0x194]
mov eax, dword [edi + 0x194]
mov dl, byte [esp]
mov byte [edi + eax + 0x92], dl
mov eax, dword [edi + 0x194]
mov byte [edi + 0x92], al
cmp dword [edi + 0x194], 0xfe
jl 0x46bd61
mov byte [esp], 0xa
cmp word [edi + 0x5e2], 0
je 0x46bd61
mov edx, edi
mov eax, dword [edi + 0x5e4]
call dword [edi + 0x5e0]
cmp byte [esp], 0xa
jne 0x46be11
xor ebx, ebx
mov byte [edi + 0x198], 0
cmp byte [edi + 0x6c], 0
jne 0x46be11
cmp dword [edi + 0x70], 0
je 0x46be11
mov eax, dword [edi + 0x70]
mov edx, dword [eax]
call dword [edx + 0x84]
jmp 0x46be11
test esi, esi
jne 0x46bdc2
xor ebx, ebx
mov byte [edi + 0x198], 0
cmp byte [edi + 0x6c], 0
jne 0x46bdb9
cmp dword [edi + 0x70], 0
je 0x46bdb9
mov eax, dword [edi + 0x70]
mov edx, dword [eax]
call dword [edx + 0x84]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x68]
jmp 0x46be11
inc esi
jne 0x46be0f
call sub.WSOCK32.DLL_WSAGetLastError
cmp eax, 0x2746
jne 0x46bdfa
xor ebx, ebx
mov byte [edi + 0x198], 0
cmp byte [edi + 0x6c], 0
jne 0x46bdf1
cmp dword [edi + 0x70], 0
je 0x46bdf1
mov eax, dword [edi + 0x70]
mov edx, dword [eax]
call dword [edx + 0x84]
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x68]
jmp 0x46be11
cmp eax, 0x2733
je 0x46be11
mov edx, 0x46be3c
mov eax, edi
call fcn.0046deec
jmp 0x46be19
xor ebx, ebx
test bl, bl
jne 0x46bc77
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret