joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa79d1c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00a14e80
mov eax, dword [0xaf0064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00a804d2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0xa79d5e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0xa79eba
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00a15540
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0xaf6578]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00a7e049
mov ecx, dword [esi*4 + 0xaf6578]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0xa79eb3
cmp eax, dword [edi + ecx + 0x24]
jne 0xa79eb3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa79eb3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a7e049
add esp, 0x14
test edx, edx
jl 0xa79eb3
jg 0xa79e29
test eax, eax
jb 0xa79eb3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0xa79eb3
jl 0xa79e43
cmp dword [ebp - 0x1008], eax
ja 0xa79eb3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0xa79e61
test ebx, ebx
je 0xa79e9a
cmp ecx, edi
jae 0xa79e9a
mov al, byte [ecx]
cmp al, 0xd
jne 0xa79e7b
lea eax, [edi - 1]
cmp ecx, eax
jae 0xa79e87
cmp byte [ecx + 1], 0xa
jne 0xa79e87
inc ecx
jmp 0xa79e87
movzx eax, al
movsx eax, byte [eax + 0xaf0d88]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0xa79e61
cmp edx, ebx
jne 0xa79e61
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0xa79eb8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00a1468e
leave
ret
Function at 0xa7d59c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xaf0064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0xad8758
push esi
call fcn.00a7a0bd
pop ecx
pop ecx
test eax, eax
jne 0xa7d5ca
xor al, al
jmp 0xa7d647
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00a7d2d3
mov edx, eax
add esp, 0x10
test edx, edx
jne 0xa7d604
push dword [ebp - 0x210]
call fcn.00a6bc97
xor al, al
jmp 0xa7d645
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0xa7d60a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0xa7d62a
push edx
call fcn.00a7d4d2
pop ecx
test al, al
je 0xa7d5f5
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0xa7d638
mov bl, 1
push dword [ebp - 0x210]
call fcn.00a6bc97
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00a1468e
leave
ret

Function at 0xa7ec6d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0xad924c
push str.FlsAlloc
push 0x1e
call fcn.00a7ea9a
mov esi, eax
add esp, 0x10
test esi, esi
je 0xa7eca1
push dword [ebp + 8]
mov ecx, esi
call dword [0xaab4d0]
call esi
jmp 0xa7eca7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0xa7eceb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0xad9270
push str.FlsGetValue
push 0x20
call fcn.00a7ea9a
mov esi, eax
add esp, 0x10
test esi, esi
je 0xa7ed22
push dword [ebp + 8]
mov ecx, esi
call dword [0xaab4d0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0xa8199c
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 0xa81a39
push ebx
push esi
call fcn.00a81965
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.00a818ae
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0xa819e6
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0xa81a38
push edi
push eax
call fcn.00a74017
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0xa81a06
call fcn.00a73fb6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0xa81a37
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00a818ae
add esp, 0x20
test eax, eax
jne 0xa81a25
push edi
call fcn.00a73fb6
jmp 0xa81a2d
push ebx
call fcn.00a73fb6
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 0xa81a3c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0xa81a4d
pop esi
ret
push ebx
push edi
push esi
call fcn.00a81965
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00a74017
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0xa81a75
push ebx
push esi
push edi
call fcn.00a67340
add esp, 0xc
push 0
call fcn.00a73fb6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0xa81e39
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a81a8a
Function at 0xa87a30
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0xaf6578]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0xa87a70
cmp byte [ebx], 0xa
jne 0xa87a70
or byte [eax + edi + 0x28], 4
jmp 0xa87a75
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0xa87b73
mov al, byte [edx]
cmp al, 0x1a
je 0xa87b55
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0xa87aa4
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0xa87ac9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0xa87ad3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0xa87a86
jmp 0xa87b73
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa87b50
cmp dword [ebp - 0xc], 0
je 0xa87b50
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0xaf6578]
test byte [eax + edi + 0x28], 0x48
je 0xa87b2a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0xa87b15
mov byte [esi], dl
jmp 0xa87b26
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xaf6578]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0xa87b73
cmp byte [ebp - 1], 0xa
jne 0xa87b39
cmp esi, ebx
jne 0xa87b39
mov byte [esi], 0xa
jmp 0xa87b72
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00a7e067
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0xa87b73
mov byte [esi], 0xd
jmp 0xa87b72
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0xaf6578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa87b6f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa87b73
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xa87b7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0xaf6578]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0xa87bbf
cmp word [esi], dx
jne 0xa87bbf
or byte [edi + eax + 0x28], 4
jmp 0xa87bc4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0xa87cfd
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0xa87cdd
add eax, 2
cmp cx, word [ebp - 0xc]
je 0xa87c06
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0xa87c3c
cmp eax, edx
jae 0xa87c48
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0xa87bde
jmp 0xa87cfd
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0xa87cd9
cmp dword [ebp - 0x14], 0
je 0xa87cd9
mov eax, dword [ebx*4 + 0xaf6578]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0xa87cb1
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0xa87cf7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0xaf6578]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0xaf6578]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0xaf6578]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0xa87cfa
pop ebx
cmp word [ebp - 4], bx
jne 0xa87cc2
cmp esi, dword [ebp + 0xc]
jne 0xa87cc2
mov word [esi], bx
jmp 0xa87cfa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00a7e067
add esp, 0x10
cmp word [ebp - 4], bx
je 0xa87cfd
push 0xd
jmp 0xa87cf6
mov ecx, dword [ebx*4 + 0xaf6578]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xa87cf4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xa87cfd
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xa8851e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a8838f
Function at 0xa8959a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a89516
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0xa89712
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0xa89712
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0xa896c1
jg 0xa895f3
test eax, eax
je 0xa896b7
push 1
push 0x1000
call fcn.00a7328f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0xa89619
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0xa896ae
push 0x8000
push ebx
call fcn.00a7194e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0xa89645
jg 0xa89640
cmp ecx, 0x1000
jb 0xa89645
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00a88e16
add esp, 0x10
cmp eax, 0xffffffff
je 0xa8968a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0xa89640
jl 0xa89671
test ecx, ecx
jne 0xa89632
push dword [ebp - 0xc]
push ebx
call fcn.00a7194e
push esi
call fcn.00a73fb6
add esp, 0xc
xor edi, edi
jmp 0xa89723
cmp byte [edi + 0x24], 0
je 0xa896a1
cmp dword [edi + 0x20], 5
jne 0xa896a1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0xa896ac
mov edi, dword [edi + 0x18]
jmp 0xa896ae
xor edi, edi
push esi
call fcn.00a73fb6
pop ecx
jmp 0xa89723
test ecx, ecx
jg 0xa89683
jl 0xa896c1
test eax, eax
jae 0xa89683
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00a7e067
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0xa896e4
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa89683
jmp 0xa8971b
push ebx
call fcn.00a828c5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0xa89683
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0xa89723
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0xa89720
mov edi, dword [edi + 0x18]
jmp 0xa89723
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00a7e067
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0xa8f49c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x40bf20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40bf2f
pop dword [ebp - 0x1c]
mov eax, 0x60f68
add eax, 0x3aafc7
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x1637d1d2
sub dword [ebp - 0x2c], 0xc7e58c87
mov dword [ebp - 0x28], 0x7b1dcdd5
add dword [ebp - 0x28], 0xb7157e70
mov dword [ebp - 0x24], 0x7f64a7a6
sub dword [ebp - 0x24], 0x33186378
mov dword [ebp - 0x20], 0xa102ba2f
add dword [ebp - 0x20], 0x5efd45d1
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x21b12893
sub eax, 0x216fe803
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x38a4ceda
sub dword [ebp - 0x2c], 0xc4326584
mov dword [ebp - 0x28], 0x9da7b3b5
sub dword [ebp - 0x28], 0x5c3b5240
mov dword [ebp - 0x24], 0xf577dc82
add dword [ebp - 0x24], 0x6df78fea
mov dword [ebp - 0x20], 0x7c307756
sub dword [ebp - 0x20], 0x7c307756
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x1c04c3f8
sub eax, 0x1bc383bc
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3dba0
push 0
call eax
mov ecx, 0x53b9
xor ebx, ebx
add ebx, eax
mov edx, 0xd29986b4
add edx, 0x2da8394c
add edx, dword [ebp - 0x1c]
mov edi, 0x5300916a
xor dword [ebp - 0x10], 0x810f7051
mov esi, dword [edx]
xor dword [ebp - 0x14], eax
add esi, edi
sub dword [ebp - 0x18], eax
mov dword [ebx], esi
xor dword [ebp - 8], edi
add ebx, 0xe4c6e468
add ebx, 0x1b391b9c
add edx, 4
loop 0x40c047
add eax, 0x574fd813
add eax, 0xa8b169a4
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x329baa86
sub ecx, 0x325baa86
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x410b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x410bac
mov dword [eax], ecx
jmp 0x410bae
mov eax, ecx
push ecx
push ecx
push esi
push 0x410c20
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x411fed
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], esp
push 0
push 0x80
push 3
push 0
push 1
push accept
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x41205b
add eax, 8
push eax
mov eax, 0x31
call fcn.004dc891
cmp dword [ebp - 0x24], esp
je 0x412082
push 0x19
push 0x403269b
push 6
call fcn.004dc88b
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x412099
mov eax, 0
jmp 0x412278
mov dword [ebp - 0x24], esp
push 0
push 0
push 0
push 2
push 0
push dword [ebp - 4]
mov eax, 0x32
call fcn.004dc891
cmp dword [ebp - 0x24], esp
je 0x4120de
push 0xee
push 0x403269b
push 6
call fcn.004dc88b
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x412244
mov dword [ebp - 0x24], esp
push 0
push 0
push 0
push 4
push dword [ebp - 8]
mov eax, 0x33
call fcn.004dc891
cmp dword [ebp - 0x24], esp
je 0x41212b
push 0x188
push 0x403269b
push 6
call fcn.004dc88b
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x412218
push dword [ebp - 0xc]
call fcn.0041227e
mov word [ebp - 0x10], ax
cmp word [ebp - 0x10], 0x5a4d
jne 0x4121ec
push 0x3c
push dword [ebp - 0xc]
call fcn.0041229a
mov dword [ebp - 0x14], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fild dword [ebp - 0x14]
fstp qword [ebp - 0x30]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.0040165c
mov dword [ebp - 0x18], eax
push 0
push dword [ebp - 0x18]
call fcn.0041229a
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4550
jne 0x4121ec
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fadd qword [0x5e9260]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0040165c
push eax
call fcn.0041227e
mov word [ebp - 0x10], ax
cmp word [ebp - 0x10], 0x10b
jne 0x4121d9
mov dword [ebp - 0x20], 0
jmp 0x4121ec
cmp word [ebp - 0x10], 0x20b
jne 0x4121ec
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x24], esp
push dword [ebp - 0xc]
mov eax, 0x34
call fcn.004dc891
cmp dword [ebp - 0x24], esp
je 0x412218
push 0x536
push 0x403269b
push 6
call fcn.004dc88b
add esp, 0xc
mov dword [ebp - 0x24], esp
push dword [ebp - 8]
mov eax, 0x35
call fcn.004dc891
cmp dword [ebp - 0x24], esp
je 0x412244
push 0x552
push 0x403269b
push 6
call fcn.004dc88b
add esp, 0xc
mov dword [ebp - 0x24], esp
push dword [ebp - 4]
mov eax, 0x35
call fcn.004dc891
cmp dword [ebp - 0x24], esp
je 0x412270
push 0x56e
push 0x403269b
push 6
call fcn.004dc88b
add esp, 0xc
mov eax, dword [ebp - 0x20]
jmp 0x412278
mov esp, ebp
pop ebp
ret 4
Function at 0x415799
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x4157e0
cmp ebx, 0x20
je 0x4157e0
cmp ebx, 0xffffffe0
je 0x4157e0
jne 0x4157e9
add eax, 1
cmp esi, eax
je 0x4157f6
jne 0x4157c5
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x4157fa
jne 0x4157c1
pop edx
mov eax, dword [edx + 0x18]
leave
ret

Function at 0x41584a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x415923
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x415923
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x415923
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x4158a9
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x415923
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4158ee
test dl, dl
je 0x4158ea
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4158ee
add ecx, 2
add eax, 2
test dl, dl
jne 0x4158ce
xor eax, eax
jmp 0x4158f3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x415905
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x415910
inc esi
cmp esi, ebp
jae 0x415923
mov edx, dword [esp + 0x10]
jmp 0x4158c4
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
Function at 0x418adb
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov eax, 0x6b
mov word [ebp - 0x24], ax
mov ecx, 0x65
mov word [ebp - 0x22], cx
mov edx, 0x72
mov word [ebp - 0x20], dx
mov eax, 0x6e
mov word [ebp - 0x1e], ax
mov ecx, 0x65
mov word [ebp - 0x1c], cx
mov edx, 0x6c
mov word [ebp - 0x1a], dx
mov eax, 0x33
mov word [ebp - 0x18], ax
mov ecx, 0x32
mov word [ebp - 0x16], cx
mov edx, 0x2e
mov word [ebp - 0x14], dx
mov eax, 0x64
mov word [ebp - 0x12], ax
mov ecx, 0x6c
mov word [ebp - 0x10], cx
mov edx, 0x6c
mov word [ebp - 0xe], dx
xor eax, eax
mov word [ebp - 0xc], ax
mov dword [ebp - 4], 0
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x418b8f
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00418a6b
add esp, 8
cmp eax, 0
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebx]
jne 0x418b68
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418b9b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebp
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
je 0x418bb6
test ebp, ebp
je 0x418bb6
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jne 0x418bbe
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + edi + 0x78]
add eax, edi
push ebx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov ebx, dword [eax + 0x14]
add ecx, edi
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [eax + 0x1c]
mov ecx, ebp
sub ecx, dword [eax + 0x10]
add esi, edi
add edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
cmp ecx, ebx
ja 0x418bfe
mov eax, dword [esi + ecx*4]
pop esi
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
mov eax, dword [eax + 0x18]
xor esi, esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x418c5a
mov ecx, ebx
movzx ebx, word [edx + esi*2]
cmp ebx, ecx
ja 0x418c55
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov eax, dword [eax + esi*4]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x418c40
test dl, dl
je 0x418c3c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x418c40
add ecx, 2
add eax, 2
test dl, dl
jne 0x418c20
xor eax, eax
jmp 0x418c45
sbb eax, eax
or eax, 1
test eax, eax
je 0x418c64
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x418c0d
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, dword [esp + 0x20]
pop esi
mov eax, dword [eax + ebx*4]
pop ebx
add eax, edi
pop edi
pop ebp
add esp, 0x14
ret
Function at 0x418c7b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, edx
mov ebx, ecx
call fcn.00418adb
test eax, eax
jne 0x418c93
pop edi
pop ebx
add esp, 0x10
ret
push esi
lea edx, [esp + 0xc]
mov ecx, eax
mov dword [esp + 0xc], 0x74726956
mov dword [esp + 0x10], 0x416c6175
mov dword [esp + 0x14], 0x636f6c6c
mov byte [esp + 0x18], 0
call fcn.00418b9b
mov esi, eax
test esi, esi
jne 0x418cc9
pop esi
pop edi
pop ebx
add esp, 0x10
ret
push 0x40
push 0x3000
push edi
push ebx
call esi
test eax, eax
jne 0x418ce3
push 0x40
push 0x3000
push edi
push eax
call esi
pop esi
pop edi
pop ebx
add esp, 0x10
ret