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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
push edi
push 8
xor edi, edi
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.0042c138
mov eax, 0xc1c
call fcn.0042c055
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x41efd9
add eax, 0x3fc
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0xb0]
mov eax, 0xce
call fcn.0041755d
lea esi, [ebp - 0x3c]
mov eax, 0xcf
call fcn.0041755d
lea esi, [ebp - 0x48]
mov eax, 0xd0
call fcn.0041755d
lea esi, [ebp - 0x30]
mov eax, 0xd1
call fcn.0041755d
lea esi, [ebp - 0x24]
mov eax, 0xd2
call fcn.0041755d
lea eax, [ebp - 4]
push eax
push 8
push edi
lea eax, [ebp - 0xb0]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41efb0
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2b8]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41efa7
mov ebx, 0xff
mov edi, dword [ebp - 0xc]
inc dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
call fcn.00431931
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x41ef79
test eax, eax
je 0x41ef79
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
add edi, 0x1fe
call fcn.00431931
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x41ef79
test eax, eax
je 0x41ef79
mov edi, dword [ebp - 0x1c]
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
call fcn.00431931
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x41ef79
test eax, eax
je 0x41ef79
mov ecx, edi
call fcn.0042cc28
test eax, eax
jle 0x41ef79
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
call fcn.004319e7
mov edi, eax
cmp edi, 1
jb 0x41ef30
cmp edi, 0xffff
jbe 0x41ef33
push 0x15
pop edi
lea esi, [ebp - 0x70]
mov eax, 0x8c
call fcn.0041755d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
push edi
push eax
push ecx
add eax, 0x1fe
push eax
mov eax, esi
push eax
mov edx, 0x311
lea edi, [ecx + 0x1fe]
call fcn.0042cebe
add esp, 0x14
test eax, eax
jle 0x41ef79
push edi
lea ecx, [ebp - 0x18]
call fcn.0042c479
test al, al
je 0x41ef79
inc dword [ebp - 0x14]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 8], 0x104
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x41ee84
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.0042c085
cmp dword [ebp - 0x14], edi
jbe 0x41efd1
mov edi, dword [ebp - 0x18]
push 0xcb
mov eax, 0xd3
call fcn.0041c3f0
jmp 0x41efd9
push dword [ebp - 0x18]
call fcn.0042c085
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f728
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
push ebx
push esi
push edi
push 8
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.0042c138
lea esi, [ebp - 0x128]
mov eax, 0xda
call fcn.0041755d
lea esi, [ebp - 0xb8]
mov eax, 0xdc
call fcn.0041755d
lea esi, [ebp - 0x54]
mov eax, 0xdb
call fcn.0041755d
lea esi, [ebp - 0x2c]
mov eax, 0xdd
call fcn.0041755d
lea eax, [ebp - 0x128]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov eax, esi
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], 2
mov ebx, 0x104
push ebx
push dword [ebp + esi - 0x14]
lea edi, [ebp - 0x330]
push dword [ebp + esi - 0x1c]
mov eax, reloc.WS2_32.dll_accept
call fcn.00431931
cmp eax, 0xffffffff
je 0x41f7e7
test eax, eax
je 0x41f7e7
push ebx
lea eax, [ebp - 0x538]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x538]
call fcn.0041f48d
add esi, 4
dec dword [ebp - 4]
jne 0x41f7a6
cmp dword [ebp - 8], 0
jbe 0x41f809
mov edi, dword [ebp - 0xc]
push 0xcb
mov eax, 0xde
call fcn.0041c3f0
jmp 0x41f811
push dword [ebp - 0xc]
call fcn.0042c085
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41fa08
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push edi
push 0x40
push 0x1000
push 0x28
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
cmp esi, edi
jne 0x41fa29
xor al, al
jmp 0x41fadd
push 0x28
pop eax
call fcn.0042c055
mov edx, eax
cmp edx, edi
jne 0x41fa46
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41fa22
push 0x28
push edi
push edx
call fcn.0042c138
mov eax, dword [esp + 0x10]
mov dword [edx], eax
mov dword [edx + 4], edi
mov dword [edx + 8], edi
mov dword [edx + 0xc], edi
mov dword [edx + 0x10], edi
mov dword [edx + 0x14], edi
mov byte [esi], 0xb8
mov dword [esi + 1], edx
mov byte [esi + 5], 0xe9
mov eax, 0x420dea
sub eax, esi
sub eax, 0xa
mov dword [esi + 6], eax
mov dword [edx + 0x18], esi
lea eax, [esi + 0xa]
mov byte [eax], 0xb8
mov dword [eax + 1], edx
mov byte [eax + 5], 0xe9
mov ecx, 0x420e06
sub ecx, esi
sub ecx, 0x14
mov dword [eax + 6], ecx
mov dword [edx + 0x1c], eax
lea eax, [esi + 0x14]
mov ecx, 0x420e1c
sub ecx, esi
mov byte [eax], 0xb8
mov dword [eax + 1], edx
mov byte [eax + 5], 0xe9
sub ecx, 0x1e
mov dword [eax + 6], ecx
mov dword [edx + 0x20], eax
lea eax, [esi + 0x1e]
mov ecx, 0x420e40
sub ecx, esi
mov byte [eax], 0xb8
mov dword [eax + 1], edx
mov byte [eax + 5], 0xe9
sub ecx, 0x28
mov dword [eax + 6], ecx
mov dword [edx + 0x24], eax
mov eax, dword [esp + 0xc]
mov dword [eax], edx
mov al, 1
pop edi
pop esi
ret 8
Function at 0x4203c5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
jne 0x4203d9
push 0xfffffffffffffffe
pop eax
jmp 0x4204e9
push edi
push 0x40
push 0x1000
push 0xa
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, ebx
jne 0x4203f8
push 0xfffffffffffffffe
pop eax
jmp 0x4204e8
push esi
push 0x34
pop eax
call fcn.0042c055
mov esi, eax
cmp esi, ebx
jne 0x42040f
push 0x8000
push ebx
jmp 0x42043f
push 0xc
pop eax
call fcn.0042c055
mov ebx, eax
test ebx, ebx
je 0x420432
mov eax, dword [ebp + 0x14]
call fcn.0042c055
mov dword [ebp - 4], eax
test eax, eax
jne 0x42044e
push ebx
call fcn.0042c085
push esi
call fcn.0042c085
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xfffffffffffffffe
pop eax
jmp 0x4204e7
push 0x34
push 0
push esi
call fcn.0042c138
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x2c], eax
mov edx, dword [ecx]
mov dword [ebx], edx
mov ecx, dword [ecx + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ebx + 8], ecx
and dword [esi + 0x1c], 0
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], esi
mov dword [esi], esi
mov ecx, dword [eax + 4]
push eax
push dword [ebp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 4], edi
mov dword [esi + 0x30], ecx
mov edx, 0x420d65
sub edx, edi
push ebx
push dword [ebp + 0xc]
sub edx, 0xa
mov dword [edi + 6], edx
mov edx, dword [ebp + 0x1c]
mov byte [edi], 0xb8
mov dword [edi + 1], esi
mov byte [edi + 5], 0xe9
push dword [ecx + 0x10]
mov dword [edx], esi
call fcn.0041f891
cmp eax, 0xffffffff
je 0x4204e7
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 0x18]
mov dword [edx + 4], ecx
mov dword [esi + 0x1c], eax
pop esi
pop edi
pop ebx
leave
ret 0x18

Function at 0x420e64
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push ecx
xor ebx, ebx
push ebx
push 0x47a
mov edi, edx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x420edb
push dword [esp + 0x10]
push edi
push esi
call fcn.00419250
mov edi, eax
cmp edi, ebx
je 0x420ed4
sub eax, dword [0x436d74]
push ebp
push ebx
push ebx
push ebx
add eax, 0x419c27
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebp, eax
cmp ebp, ebx
je 0x420ec5
push 0x2710
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x420ed3
push 0x8000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x420ee3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
xor edi, edi
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
cmp eax, 0xffffffff
je 0x421031
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x248], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x421017
mov ecx, dword [ebp - 0x240]
cmp ecx, edi
jbe 0x421007
cmp ecx, dword [0x436fd0]
je 0x421007
mov esi, dword [ebp - 8]
xor eax, eax
cmp esi, edi
jbe 0x420f66
mov edx, dword [ebp - 0xc]
cmp dword [edx + eax*4], ecx
je 0x421007
inc eax
cmp eax, esi
jb 0x420f55
push ecx
call fcn.00419175
mov ebx, eax
cmp ebx, edi
je 0x421007
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x240]
call fcn.0042eb05
mov edi, eax
test edi, edi
je 0x420ffe
mov eax, dword [ebp - 0x18]
cmp eax, dword [0x436d70]
jne 0x420ff8
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, dword [0x436d68]
jne 0x420ff8
mov ecx, dword [edi]
push eax
mov eax, dword [0x436d64]
mov eax, dword [eax]
call fcn.0042c0f6
test eax, eax
jne 0x420ff8
lea eax, [esi*4 + 4]
lea esi, [ebp - 0xc]
call fcn.0042c000
test al, al
je 0x420ff8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0xc]
inc dword [ebp - 8]
inc dword [ebp - 0x14]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp - 0x240]
push 0
mov edx, ebx
call fcn.00420e64
test al, al
je 0x420ff8
mov byte [ebp - 1], 1
push edi
call fcn.0042c085
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x420f32
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], edi
jne 0x420efb
push dword [ebp - 0xc]
call fcn.0042c085
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4210fb
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
test esi, esi
je 0x42122c
test edi, edi
je 0x42122c
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x42122c
mov ecx, dword [edi + 0x3c]
cmp ecx, 0x400
jg 0x42122c
add ecx, edi
cmp dword [ecx], 0x4550
jne 0x42122c
movzx eax, word [ecx + 4]
mov edx, 0x14c
cmp ax, dx
jne 0x4211af
add edx, 0xffffffbf
cmp word [ecx + 0x18], dx
jne 0x4211af
or dword [esi + 0x10], 0x10000
and dword [ebp - 4], 0
mov dword [esi + 0xc], edi
mov dword [esi], edi
mov dword [esi + 4], ecx
movzx edx, word [ecx + 0x14]
xor ebx, ebx
xor al, al
lea edx, [edx + ecx + 0x18]
cmp bx, word [ecx + 6]
jae 0x42121b
lea ebx, [edx + 0xc]
test al, al
jne 0x421222
mov eax, dword [ebx]
push dword [ebx - 4]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, dword [esi + 4]
movzx ecx, word [ecx + 6]
dec eax
neg eax
sbb al, al
inc al
inc dword [ebp - 4]
add ebx, 0x28
cmp dword [ebp - 4], ecx
jb 0x42117e
jmp 0x421217
mov edx, 0x8664
cmp ax, dx
jne 0x42122c
mov eax, 0x20b
cmp word [ecx + 0x18], ax
jne 0x42122c
or dword [esi + 0x10], 0x10000
and dword [ebp - 4], 0
mov dword [esi + 0xc], edi
mov dword [esi], edi
mov dword [esi + 8], ecx
movzx edx, word [ecx + 0x14]
xor ebx, ebx
xor al, al
lea edx, [edx + ecx + 0x18]
cmp bx, word [ecx + 6]
jae 0x42121b
lea ebx, [edx + 0xc]
test al, al
jne 0x421222
mov eax, dword [ebx]
push dword [ebx - 4]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, dword [esi + 8]
movzx ecx, word [ecx + 6]
dec eax
neg eax
sbb al, al
inc al
inc dword [ebp - 4]
add ebx, 0x28
cmp dword [ebp - 4], ecx
jb 0x4211ec
test al, al
jne 0x421222
or dword [esi + 0x10], 0x20000
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov al, 1
jmp 0x42122e
xor al, al
pop ebx
leave
ret 4
Function at 0x421233
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ecx, ecx
push esi
push edi
cmp dword [ebp + 8], ecx
je 0x421336
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x421336
cmp dword [ebp + 0x10], ecx
je 0x421336
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x421336
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x421336
movzx eax, word [esi + 4]
mov edx, 0x14c
cmp ax, dx
je 0x421293
mov edx, 0x8664
cmp ax, dx
jne 0x421336
movzx eax, word [esi + 0x14]
lea eax, [eax + esi + 0x18]
mov dword [ebp + 0x10], eax
cmp eax, ecx
je 0x421336
movzx edx, word [esi + 6]
imul edx, edx, 0x28
mov edi, dword [eax + edx - 0x20]
add edi, dword [eax + edx - 0x1c]
mov eax, dword [esi + 0x50]
push 0x40
cmp edi, eax
push 0x1000
cmovb edi, eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x421336
push edi
push ebx
call fcn.0042c126
push dword [esi + 0x54]
push dword [ebp + 0xc]
push ebx
call fcn.0042c0c1
xor eax, eax
xor edx, edx
cmp ax, word [esi + 6]
jae 0x421315
mov eax, dword [ebp + 0x10]
add eax, 0x14
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push dword [eax - 4]
push ecx
mov ecx, dword [eax - 8]
add ecx, ebx
push ecx
call fcn.0042c0c1
movzx ecx, word [esi + 6]
inc edx
add eax, 0x28
cmp edx, ecx
jb 0x4212f5
mov esi, dword [ebp + 8]
push 0x700
mov edi, ebx
call fcn.004210fb
test al, al
jne 0x42133f
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov eax, esi
or dword [eax + 0x10], 0x1000000
mov al, 1
jmp 0x421338

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

Disassembly:
cmp word [0x4371b0], 0
push ebx
push esi
mov ebx, 0x4371b0
mov esi, 0x4373b8
jne 0x42197b
push 3
call fcn.004196cc
mov ecx, ebx
call fcn.0042cc28
add eax, eax
push eax
push ebx
push esi
call fcn.0042c0c1
xor ecx, ecx
push esi
mov word [eax + 0x4373b8], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp byte [esp + 0xc], 0
je 0x4219a9
cmp byte [0x436fcc], 1
jbe 0x4219a9
push esi
call fcn.00433704
push esi
call fcn.00430e13
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4219a9
push ebx
call fcn.00430e13
pop esi
pop ebx
ret 4
Function at 0x422e88
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x42307d
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x42307d
push esi
lea esi, [ebx + 1]
mov eax, esi
mov byte [ebp - 2], 0
call fcn.0042c055
mov edx, eax
mov dword [ebp - 0xc], edx
test edx, edx
je 0x422f5a
push esi
push edx
call fcn.0042c126
xor esi, esi
mov dword [ebp - 8], esi
cmp ebx, esi
jbe 0x422f51
mov bl, byte [esi + edi]
cmp bl, 0x25
jne 0x422f3f
mov al, byte [esi + edi + 1]
or cl, 0xff
or dl, 0xff
cmp al, 0x41
jb 0x422eef
cmp al, 0x46
ja 0x422eef
lea ecx, [eax - 0x37]
cmp al, 0x61
jb 0x422efa
cmp al, 0x66
ja 0x422efa
lea ecx, [eax - 0x57]
cmp al, 0x30
jb 0x422f06
cmp al, 0x39
ja 0x422f06
sub al, 0x30
mov cl, al
mov al, byte [esi + edi + 2]
cmp al, 0x41
jb 0x422f15
cmp al, 0x46
ja 0x422f15
lea edx, [eax - 0x37]
cmp al, 0x61
jb 0x422f20
cmp al, 0x66
ja 0x422f20
lea edx, [eax - 0x57]
cmp al, 0x30
jb 0x422f2b
cmp al, 0x39
ja 0x422f2b
lea edx, [eax - 0x30]
cmp cl, 0xff
je 0x422f3f
cmp dl, 0xff
je 0x422f3f
shl cl, 4
or cl, dl
mov bl, cl
add esi, 2
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov edx, dword [ebp - 0xc]
inc esi
mov byte [edx + eax], bl
cmp esi, dword [ebp + 0xc]
jb 0x422ed2
mov eax, dword [ebp - 8]
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], eax
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 0xc], ebx
jbe 0x423069
mov edi, dword [ebp + 0xc]
sub edi, ebx
cmp edi, 1
jb 0x423069
mov edx, dword [ebp + 8]
lea eax, [ebx + edx]
mov cl, byte [eax]
mov byte [ebp - 1], 0
cmp cl, 0x34
je 0x422f90
cmp cl, 0x35
jne 0x423056
test ebx, ebx
je 0x422fa6
mov cl, byte [ebx + edx - 1]
cmp cl, 0x30
jb 0x422fa6
cmp cl, 0x39
jbe 0x423056
xor esi, esi
cmp byte [ebp - 1], 0x10
jae 0x422fe2
mov cl, byte [eax + esi]
cmp cl, 0x30
jb 0x422fc8
cmp cl, 0x39
ja 0x422fc8
movzx edx, byte [ebp - 1]
inc byte [ebp - 1]
mov byte [ebp + edx - 0x1c], cl
jmp 0x422fd6
cmp cl, 0x2d
je 0x422fd6
cmp cl, 0x20
je 0x422fd6
test cl, cl
jne 0x422fde
inc esi
lea ecx, [edi - 1]
cmp esi, ecx
jbe 0x422fa8
cmp byte [ebp - 1], 0x10
jne 0x423052
mov al, byte [eax + esi]
cmp al, 0x30
jb 0x422fef
cmp al, 0x39
jbe 0x423052
xor dl, dl
xor cl, cl
cmp byte [ebp - 0x1c], 0x30
mov byte [ebp - 1], dl
jb 0x423044
lea eax, [ebp - 0x1c]
cmp byte [eax], 0x39
ja 0x423017
cmp cl, 0x10
jae 0x423017
inc cl
movzx eax, cl
lea eax, [ebp + eax - 0x1c]
cmp byte [eax], 0x30
jae 0x422fff
test cl, cl
je 0x423044
dec cl
movzx eax, cl
mov al, byte [ebp + eax - 0x1c]
and al, 0xf
mov bl, dl
inc dl
and bl, 1
je 0x42303a
add al, al
cmp al, 9
jbe 0x42303a
add al, 0xf6
inc byte [ebp - 1]
add byte [ebp - 1], al
test cl, cl
jne 0x42301b
mov ebx, dword [ebp - 8]
movzx eax, byte [ebp - 1]
push 0xa
cdq
pop ecx
idiv ecx
test edx, edx
je 0x423065
mov byte [ebp - 2], 0
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp + 0xc]
jb 0x422f68
jmp 0x423069
mov byte [ebp - 2], 1
cmp dword [ebp - 0xc], 0
pop esi
je 0x423078
push dword [ebp - 0xc]
call fcn.0042c085
mov al, byte [ebp - 2]
jmp 0x42307f
xor al, al
pop edi
pop ebx
leave
ret 8
Function at 0x4245fd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
push esi
mov dword [edx], ecx
push dword [eax + 8]
xor esi, esi
test byte [eax], 2
je 0x42461d
mov edx, dword [eax + 4]
mov eax, dword [ecx + 8]
call fcn.00422467
jmp 0x424625
push dword [ecx + 8]
call fcn.004330a6
mov dword [4], eax
cmp eax, esi
je 0x424675
call fcn.00419132
mov eax, 0x424090
cmp dword [0x34], esi
jne 0x424645
mov eax, 0x424454
push esi
push esi
push esi
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x42466a
lea eax, [ebp - 4]
push eax
call fcn.00430f59
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [4]
call fcn.0042c085
mov eax, dword [0x1c]
pop esi
leave
ret

Function at 0x42488b
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8ac
push ebx
push esi
push 0x5f
lea esi, [ebp - 0x8c]
pop eax
call fcn.0041755d
lea eax, [ebp - 0x49c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x424a0c
lea eax, [ebp - 0x49c]
push eax
push eax
mov eax, esi
call fcn.00433982
test al, al
je 0x424a0c
push 0x61
lea esi, [ebp - 0x6c]
pop eax
call fcn.0041755d
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x6a4]
push eax
mov eax, esi
call fcn.00433982
test al, al
je 0x424a0c
lea eax, [ebp - 0x6a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x424a0c
push 0x62
lea esi, [ebp - 0x38]
pop eax
call fcn.0041755d
push 0x63
lea esi, [ebp - 0x50]
pop eax
call fcn.0041755d
push 0x64
lea esi, [ebp - 0x10]
pop eax
call fcn.0041755d
mov byte [ebp - 1], bl
push edi
movzx eax, byte [ebp - 1]
push eax
lea eax, [ebp - 0x38]
push eax
push 0xa
pop edx
lea edi, [ebp - 0x24]
call fcn.0042cebe
pop ecx
pop ecx
cmp eax, 1
jl 0x424a0b
lea eax, [ebp - 0x6a4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, 0xffffffff
je 0x424a0b
lea eax, [ebp - 0x6a4]
push eax
push 0x104
lea eax, [ebp - 0x294]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4249fe
lea eax, [ebp - 0x294]
cmp word [ebp - 0x294], bx
je 0x4249c2
cmp word [eax], 0x2f
jne 0x4249ba
push 0x5c
pop ecx
mov word [eax], cx
add eax, 2
cmp word [eax], bx
jne 0x4249ae
cmp esi, 1
jne 0x4249ec
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebp - 0x294]
call fcn.00433982
test al, al
je 0x4249fe
lea ecx, [ebp - 0x8ac]
jmp 0x4249f2
lea ecx, [ebp - 0x294]
mov edx, dword [ebp + 8]
call fcn.00424a12
test al, al
je 0x424a0b
inc byte [ebp - 1]
cmp byte [ebp - 1], 0xfa
jb 0x42493a
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x424a12
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push esi
push edi
push 0x60
lea esi, [ebp - 0x1c]
pop eax
mov dword [ebp - 0xc], edx
mov edi, ecx
call fcn.0041755d
push edi
lea eax, [ebp - 0x36c]
push eax
mov eax, esi
call fcn.00433982
test al, al
je 0x424af3
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x424af3
push ebx
push 0x65
lea edi, [ebp - 0x164]
pop eax
xor bl, bl
call fcn.00417527
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push eax
mov edi, 0x146
push edi
lea eax, [ebp - 0x164]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x424ad0
cmp dword [ebp - 8], edi
jne 0x424ad0
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x424aca
call fcn.0042cc16
push 0
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
push ecx
push dword [ebp - 4]
call esi
test eax, eax
je 0x424ace
cmp dword [ebp - 8], edi
jne 0x424ace
mov bl, 1
jmp 0x424ad0
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
pop ebx
jne 0x424af3
lea eax, [ebp - 0x36c]
push eax
call fcn.00433406
pop edi
mov al, 1
pop esi
leave
ret

Function at 0x425a98
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push esi
mov esi, ecx
push edi
mov edi, eax
test si, si
je 0x425acc
push 2
mov eax, esi
pop edx
call fcn.004259fe
test al, al
je 0x425acc
mov edi, dword [ebp + 8]
push 0x17
mov eax, esi
pop edx
call fcn.004259fe
mov ax, si
jmp 0x425b1a
push 2
xor eax, eax
pop edx
call fcn.004259fe
test al, al
je 0x425b18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [edi]
mov dword [ebp - 8], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x425b08
mov ax, word [ebp - 0x8a]
rol ax, 8
movzx esi, ax
jmp 0x425aba
mov esi, dword [edi]
call fcn.00430ac5
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret 4

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

Disassembly:
cmp word [0x437708], 0
push ebx
push esi
mov ebx, 0x437708
mov esi, 0x437910
jne 0x425de7
push 2
call fcn.004196cc
mov ecx, ebx
call fcn.0042cc28
add eax, eax
push eax
push ebx
push esi
call fcn.0042c0c1
xor ecx, ecx
push esi
mov word [eax + 0x437910], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test edi, edi
je 0x425e03
or eax, 0xffffffff
mov ecx, ebx
mov edx, edi
call fcn.0042c426
push 0x4084c8
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
cmp byte [esp + 0xc], 0
je 0x425e31
cmp byte [0x436fcc], 1
jbe 0x425e31
push esi
call fcn.00433704
push esi
call fcn.00430e13
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425e31
push ebx
call fcn.00430e13
pop esi
pop ebx
ret 4