joyce8/EMBER2024-capa huggingface dataset:
Function at 0x650024
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x650217
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0059b400
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.005f35b8
test al, al
jne 0x650091
xor eax, eax
push ebp
push 0x650087
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.005f3aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x650091
push 0
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
mov eax, dword [0x66b544]
call fcn.00408d1c
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x6500c0
mov eax, dword [0x6624b4]
mov eax, dword [eax + 0x1c4]
call fcn.0064f55c
push 0x80
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
call sub.kernel32.dll_SetFileAttributesW
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x665c50]
push eax
push 0
mov ecx, 0x650228
mov edx, 0x65022c
xor eax, eax
call fcn.0041038c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, 0xfffffffc
mov ecx, 0x64f720
push ecx
push edx
push eax
call sub.user32.dll_SetWindowLongW
mov dword [0x66b570], eax
xor eax, eax
push ebp
push 0x6501e0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x6624a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x178]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.0059add0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x650248
call fcn.0042365c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
call fcn.0059acb0
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00408f18
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0064f604
mov dword [ebp - 0xc], eax
call fcn.0064f6e0
test al, al
jne 0x6501c0
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x65019e
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6501e7
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DestroyWindow
ret
Function at 0x6515e8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x65189c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6624a0]
mov eax, dword [eax]
mov edx, 0x6518b8
call fcn.0058eec0
push 5
mov eax, dword [0x6624a0]
mov eax, dword [eax]
mov eax, dword [eax + 0x178]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x651863
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.006484a8
lea eax, [ebp - 0x10]
call fcn.0059b270
mov eax, dword [ebp - 0x10]
call fcn.004230e8
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0059add0
mov edx, dword [ebp - 0x14]
mov eax, 0x66b544
call fcn.00408038
call fcn.0064f8f0
lea ecx, [ebp - 0x18]
mov edx, 0x6518d8
mov eax, dword [0x66b544]
call fcn.00599df0
mov edx, dword [ebp - 0x18]
mov eax, 0x66b548
call fcn.00408038
lea ecx, [ebp - 0x1c]
mov edx, 0x6518f0
mov eax, dword [0x66b544]
call fcn.00599df0
mov edx, dword [ebp - 0x1c]
mov eax, 0x66b54c
call fcn.00408038
push 2
push 0
push 1
mov ecx, dword [0x66b544]
mov dl, 1
mov eax, dword [0x59f510]
call fcn.0059fe84
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x651740
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x24]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.0059fe3c
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.0059fe0c
cmp dword [ebp - 0xc], 0x67734d49
je 0x65171b
mov cl, 1
xor edx, edx
mov eax, dword [0x66b54c]
call fcn.005a1634
jmp 0x65172a
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x66b544]
call fcn.005a1634
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x651747
mov eax, dword [ebp - 4]
call fcn.004060a0
ret
Function at 0x651a34
Capabilities:
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x25c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x651b71
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
mov ecx, 0x651b8c
mov edx, ebx
call fcn.00408f70
mov eax, dword [ebp - 0x25c]
call fcn.00408d1c
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x651b4b
xor eax, eax
push ebp
push 0x651b44
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x651ba8
lea eax, [ebp - 0x22c]
mov ecx, 5
call fcn.004232f8
test eax, eax
jne 0x651b15
test byte [ebp - 0x258], 0x10
jne 0x651b15
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x22c]
mov ecx, 0x104
call fcn.00408dc0
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408f70
mov esi, dword [ebp - 0x258]
test esi, 1
je 0x651b0d
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 4]
call fcn.00408d1c
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 4]
call fcn.00422a6c
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x651aa5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x651b4b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x651b78
lea eax, [ebp - 0x260]
mov edx, 2
call fcn.00407cb8
lea eax, [ebp - 4]
call fcn.00407c58
ret
Function at 0x651bb4
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x651cb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00407c58
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0059a2c4
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x651ccc
call fcn.0042365c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00408f70
mov eax, dword [ebp - 8]
call fcn.00408d1c
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x651c52
test esi, 0x10
jne 0x651c82
test esi, 1
je 0x651c52
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.00408d1c
push eax
call sub.kernel32.dll_SetFileAttributesW
push 1
mov eax, dword [ebp - 8]
call fcn.00408d1c
push eax
mov eax, dword [ebp - 0xc]
call fcn.00408d1c
push eax
call sub.kernel32.dll_MoveFileExW
test eax, eax
je 0x651c7c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00408038
jmp 0x651c8f
inc edi
cmp edi, 0xa
je 0x651c8f
inc ebx
cmp ebx, 0x3e8
jne 0x651bf3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x651cb9
lea eax, [ebp - 0x14]
call fcn.00407c58
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407cb8
ret
Function at 0x43b646
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
or edi, eax
call fcn.0043b676
mov edi, 0xe2e0c871
xor dword [ecx], ebx
add edi, 0xc261406a
inc edi
inc ecx
mov edi, eax
cmp ecx, esi
jne fcn.0043b646
add edi, edi
add eax, eax
push edi
pop eax
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x10008c80
Capabilities:
Allocate or change rwx memory
Create process on windows
Encode data using base64
Encrypt data using speck
Execute anti-debugging instructions
Execute shellcode via indirect call
Hide graphical window
Parse pe header
Resume thread

Disassembly:
jmp 0x1001711e
push ebp
and ecx, 0x6506550e
sal eax, cl
mov ebp, esp
movzx edx, bx
rdtsc
push ebx
movzx ecx, si
bsr ax, cx
push edi
sbb ah, 0x18
not dl
push esi
shld eax, ecx, 0x8b
jmp loc.10074bc6

Function at 0x1001add0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001ae0f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ae0f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ae0f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001ae0f
cmp dword [ecx + 0x74], 0xe
jbe 0x1001ae0f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001dad0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001db6d
push ebx
push esi
call fcn.1001da99
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001da2d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001db1a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001db6c
push edi
push eax
call fcn.1001bb0d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001db3a
call fcn.1001c572
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001db6b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001da2d
add esp, 0x20
test eax, eax
jne 0x1001db59
push edi
call fcn.1001c572
jmp 0x1001db61
push ebx
call fcn.1001c572
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001ddda
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d10
push 0x10025d08
push str.FlsAlloc
push 0x1f
call fcn.1001dcf6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001de0e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
jmp 0x1001de14
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001de58
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d20
push 0x10025d18
push str.FlsGetValue
push 0x21
call fcn.1001dcf6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001de8f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001de97
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025d28
push 0x10025d20
push str.FlsSetValue
push 0x22
call fcn.1001dcf6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001ded1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10023480
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100234ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100234ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430f40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
jmp 0x430f5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x430f61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x430f50
mov eax, 1
add ebx, ebx
jne 0x430f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x430f68
jne 0x430f84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430f68
xor ecx, ecx
sub eax, 3
jb 0x430f98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43100a
mov ebp, eax
add ebx, ebx
jne 0x430fa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x430fb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x430fd4
inc ecx
add ebx, ebx
jne 0x430fc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x430fb5
jne 0x430fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430fb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x430ff4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x430fe5
jmp 0x430f56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x430ff4
add edi, ecx
jmp 0x430f56
pop esi
mov edi, esi
mov ecx, 0x35f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x431012
cmp byte [edi], 6
jne 0x431012
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 0x431017
lea edi, [esi + 0x2e000]
mov eax, dword [edi]
or eax, eax
je 0x43108f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31fcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x32008]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x431044
mov ecx, edi
jns 0x431073
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 + 0x32010]
or eax, eax
je 0x431089
mov dword [ebx], eax
add ebx, 4
jmp 0x431061
call dword [esi + 0x3200c]
mov ebp, dword [esi + 0x32014]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x4310c3
sub esp, 0xffffff80
jmp 0x403670
Function at 0x4030d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aeba8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4dc1bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x1c], 0
je 0x403123
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
jmp 0x40324d
cmp dword [0x4e328c], 0
je 0x40322c
lea ecx, [ebp - 0x28]
call fcn.0040bc40
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040b1d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040b1d0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x4e36b4
call fcn.00403a00
mov ecx, eax
call fcn.00403c70
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b900
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0040b970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0040b970
push 0x4c240e
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040b050
add esp, 8
movzx edx, al
test edx, edx
je 0x4031f1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x30]
mov al, byte [edx]
mov byte [ebp - 0x29], al
add dword [ebp - 0x30], 1
cmp byte [ebp - 0x29], 0
jne 0x4031c0
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00491220
add esp, 0xc
jmp 0x40320f
lea ecx, [ebp - 0x28]
call fcn.0040aee0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040aea0
push eax
mov edx, dword [ebp + 0x14]
push edx
call fcn.00491220
add esp, 0xc
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b970
mov eax, dword [ebp - 0x3c]
jmp 0x40324d
push 0x4e3188
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00478787
mov esp, ebp
pop ebp
ret
Function at 0x403270
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aebe8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4dc1bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x14], 0
je 0x4032b9
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x4033b3
cmp dword [0x4e328c], 0
je 0x40339c
lea ecx, [ebp - 0x28]
call fcn.0040bc40
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040b1d0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x48]
call fcn.0040b1d0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, 0x4e36b4
call fcn.00403a00
mov ecx, eax
call fcn.00403c70
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b900
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.0040b970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.0040b970
push 0x4c240f
lea edx, [ebp - 0x28]
push edx
call fcn.0040b050
add esp, 8
movzx eax, al
test eax, eax
je 0x403363
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b970
mov eax, dword [ebp - 0x2c]
jmp 0x4033b3
lea ecx, [ebp - 0x28]
call fcn.0040aea0
push eax
call fcn.0049701b
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b970
mov eax, dword [ebp - 0x30]
jmp 0x4033b3
push 0x4e3188
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00478787
mov esp, ebp
pop ebp
ret
Function at 0x40e7e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4dc1bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0xffffffff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40e83c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push 8
lea ecx, [ebp - 0xc]
call fcn.00402c30
call fcn.0040e610
push eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040d850
push 0x4c6614
lea ecx, [ebp - 0xc]
push ecx
call fcn.0040e210
add esp, 8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00478787
mov esp, ebp
pop ebp
ret

Function at 0x40e8b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4dc1bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x40e919
lea ecx, [ebp - 0x194]
push ecx
movzx edx, byte [ebp + 0xc]
and edx, 0xff
movzx eax, dl
movzx ecx, byte [ebp + 0x10]
and ecx, 0xff
movzx edx, cl
shl edx, 8
or eax, edx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x198]
push eax
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00478787
mov esp, ebp
pop ebp
ret