joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4de67f
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x52976f
call fcn.00505ea9
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.004e4126
push 0x15c
call fcn.004073f1
pop ecx
mov ecx, eax
mov dword [ebp - 0x228], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4de6c3
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004e5a59
jmp 0x4de6c5
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004e40f8
call fcn.0041a247
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x218], ax
inc esi
xor eax, eax
mov dword [ebp - 0x228], esi
mov word [ebp + esi*2 - 0x218], ax
mov dword [ebp - 0x224], ebx
cmp edi, ebx
je 0x4de865
cmp dword [edi + 4], ebx
jle 0x4de865
lea ecx, [ebp - 0x21c]
call fcn.00401140
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4de849
lea ecx, [ebp - 0x220]
call fcn.00401140
mov eax, dword [ebp - 0x224]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4de79a
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__s
push eax
call fcn.004013f0
add esp, 0xc
jmp 0x4de7cc
jge 0x4de7ba
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__s
push eax
call fcn.004013f0
add esp, 0x10
jmp 0x4de7cc
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00406cf0
push 0x15c
call fcn.004073f1
pop ecx
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4de7f0
mov ecx, eax
call fcn.004b75b6
mov esi, eax
jmp 0x4de7f2
xor esi, esi
push dword [ebp - 0x220]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.00419741
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x22c]
push esi
call fcn.004e40f8
mov ecx, dword [ebp - 0x220]
inc dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004011b0
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004011b0
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4de733
call fcn.00505f2c
ret
Function at 0x4e3289
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e32a1
mov edi, dword [esi + 0xc]
jmp 0x4e32e1
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4e32ba
call fcn.0040febd
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e32cf
call fcn.0040febd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e32e1
call fcn.0040febd
call fcn.0041a247
cmp dword [eax + 0x3c], 0
je 0x4e32f6
push edi
mov ecx, ebx
call fcn.004e2164
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e31af
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4e3314
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e3320
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4ea8c1
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4ea90b
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ea90b
call fcn.004ea14d
test eax, eax
je 0x4ea90b
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.00406ac0
xor eax, eax
inc eax
jmp 0x4eab23
cmp dword [ebx + 4], 0x100
push edi
jne 0x4eab1a
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4eaa08
push 0x11
call edi
test ax, ax
jl 0x4eaa08
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4eaa08
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4ea97b
cmp eax, 0x20
jbe 0x4eaa08
cmp eax, 0x24
jbe 0x4ea96e
cmp eax, 0x26
je 0x4ea96e
cmp eax, 0x28
jne 0x4eaa08
call fcn.004ea14d
test eax, eax
je 0x4eaa08
mov ecx, esi
call fcn.004081f7
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004ea14d
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4ea9b0
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00406ac0
jmp 0x4eab15
call fcn.0040d0c5
test eax, eax
je 0x4eab15
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0040d151
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4ea9de
xor edi, edi
jmp 0x4ea9e1
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0040d0c5
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4eab15
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4eaae4
sub eax, 0x12
je 0x4eaabc
sub eax, 0xb
je 0x4eaa2a
dec eax
dec eax
jne 0x4eab1a
push 0x12
call edi
test ax, ax
jl 0x4eab1a
push 0x11
call edi
test ax, ax
jl 0x4eab1a
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4eab1a
call fcn.004ea14d
test eax, eax
jne 0x4eab15
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004ea0c7
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0040ba51
test eax, eax
je 0x4eab15
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0040ba51
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4eab15
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4eaad0
push 0
call fcn.004ea0c7
mov ecx, esi
call fcn.0040cb91
test eax, eax
je 0x4eab1a
mov ecx, esi
call fcn.0040cb91
jmp 0x4eab0e
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0040ba51
test eax, eax
je 0x4eab1a
push dword [esi + 0x20]
call edi
push eax
call fcn.0040ba51
push 0
push esi
mov ecx, eax
call fcn.004075e6
mov ecx, eax
call fcn.004081f7
xor eax, eax
inc eax
jmp 0x4eab22
push ebx
mov ecx, esi
call fcn.0040979d
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4ffe06
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp byte [ebp + 0xc], 0
movzx eax, ax
jne 0x4ffe4b
test edi, edi
jl 0x4ffe4b
cmp ax, 0x20
je 0x4ffe40
cmp word [ebp + 8], 0x71
jne 0x4ffe4b
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x505162
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x578700]
jne 0x50516c
repz ret
jmp fcn.0050c1f7

Function at 0x518738
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0050bb5a
and dword [ebp - 4], 0
cmp dword [0x57fd14], 0
mov ebx, eax
jne 0x5187e9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51889a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x51889a
push eax
call fcn.0050bae8
mov dword [esp], 0x555df0
push edi
mov dword [0x57fd14], eax
call esi
push eax
call fcn.0050bae8
mov dword [esp], 0x555ddc
push edi
mov dword [0x57fd18], eax
call esi
push eax
call fcn.0050bae8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x57fd1c], eax
call esi
push eax
call fcn.0050bae8
pop ecx
mov dword [0x57fd24], eax
test eax, eax
je 0x5187e9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0050bae8
pop ecx
mov dword [0x57fd20], eax
mov eax, dword [0x57fd20]
cmp eax, ebx
je 0x518841
cmp dword [0x57fd24], ebx
je 0x518841
push eax
call fcn.0050bb63
push dword [0x57fd24]
mov esi, eax
call fcn.0050bb63
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x518841
test edi, edi
je 0x518841
call esi
test eax, eax
je 0x518838
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x518838
test byte [ebp - 0xc], 1
jne 0x518841
or dword [ebp + 0x10], 0x200000
jmp 0x51887a
mov eax, dword [0x57fd18]
cmp eax, ebx
je 0x51887a
push eax
call fcn.0050bb63
pop ecx
test eax, eax
je 0x51887a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51887a
mov eax, dword [0x57fd1c]
cmp eax, ebx
je 0x51887a
push eax
call fcn.0050bb63
pop ecx
test eax, eax
je 0x51887a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x57fd14]
call fcn.0050bb63
pop ecx
test eax, eax
je 0x51889a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51889c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d2d00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xcd000]
push edi
jmp 0x4d2d1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d2d21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d2d10
mov eax, 1
add ebx, ebx
jne 0x4d2d33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d2d28
jne 0x4d2d44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d2d28
xor ecx, ecx
sub eax, 3
jb 0x4d2d58
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d2dca
mov ebp, eax
add ebx, ebx
jne 0x4d2d63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4d2d70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4d2d94
inc ecx
add ebx, ebx
jne 0x4d2d80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d2d75
jne 0x4d2d91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d2d75
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d2db4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d2da5
jmp 0x4d2d16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d2db4
add edi, ecx
jmp 0x4d2d16
pop esi
mov edi, esi
mov ecx, 0x6600
jmp 0x4d2e05
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x4d2de5
cmp al, 0x8f
ja 0x4d2de5
cmp byte [edi - 2], 0xf
je 0x4d2deb
sub al, 0xe8
cmp al, 1
ja 0x4d2e0f
cmp ecx, 4
jb 0x4d2e14
mov eax, dword [edi]
sub al, 1
jne 0x4d2e0f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x4d2e14
mov al, byte [edi]
inc edi
jmp 0x4d2de5
sub ecx, 1
jae 0x4d2dd4
lea edi, [esi + 0xd0000]
mov eax, dword [edi]
or eax, eax
je 0x4d2e65
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x157df0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x157ea8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d2e1a
mov ecx, edi
jns 0x4d2e49
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 + 0x157eb0]
or eax, eax
je 0x4d2e5f
mov dword [ebx], eax
add ebx, 4
jmp 0x4d2e37
call dword [esi + 0x157eac]
mov ebp, dword [esi + 0x157eb4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x4d2e99
sub esp, 0xffffff80
jmp 0x4034a5
Function at 0x627ed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x167000]
push edi
jmp 0x627eea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x627ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x627ee0
mov eax, 1
add ebx, ebx
jne 0x627f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x627f14
jne 0x627f33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x627f33
dec eax
add ebx, ebx
jne 0x627f20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x627ef8
add ebx, ebx
jne 0x627f2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x627f85
xor ecx, ecx
sub eax, 3
jb 0x627f4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x627fba
sar eax, 1
mov ebp, eax
jmp 0x627f56
add ebx, ebx
jne 0x627f56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x627f24
inc ecx
add ebx, ebx
jne 0x627f64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x627f24
add ebx, ebx
jne 0x627f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x627f66
jne 0x627f82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x627f66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x627fa4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x627f96
jmp 0x627ee6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x627fa4
add edi, ecx
jmp 0x627ee6
pop esi
mov edi, esi
mov ecx, 0x9a23
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x627fc2
cmp byte [edi], 0x19
jne 0x627fc2
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 0x627fc7
lea edi, [esi + 0x223000]
mov eax, dword [edi]
or eax, eax
je 0x62803f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22dc80]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22dde8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x627ff4
mov ecx, edi
jns 0x628023
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 + 0x22ddec]
or eax, eax
je 0x628039
mov dword [ebx], eax
add ebx, 4
jmp 0x628011
call dword [esi + 0x22ddfc]
mov ebp, dword [esi + 0x22ddf0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x628073
sub esp, 0xffffff80
jmp 0x51c09b
Function at 0x10002690
Capabilities:
Allocate thread local storage

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1000a03c], 0
call esi
mov dword [0x1000a040], eax
call esi
mov esi, dword [esp + 8]
mov dword [0x1000a044], eax
push esi
call fcn.10002620
add esp, 4
mov dword [0x1000cf58], esi
call fcn.10002240
mov dword [0x1000a03c], 1
call fcn.100028c0
mov eax, 1
pop esi
ret

Function at 0x100028c0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1000cc20
call esi
push 0x1000cf28
call esi
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
push 0
push ecx
push 0x100027e0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
add esp, 8
ret

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

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test eax, eax
lea eax, [esp]
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0xc], 0x10
push edx
je 0x10002a74
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x10002a85
xor eax, eax
pop esi
add esp, 0x14
ret
call dword [sym.imp.WSOCK32.dll_getpeername]
test eax, eax
je 0x10002a85
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
mov esi, eax
test esi, esi
jne 0x10002a9b
pop esi
add esp, 0x14
ret
mov ecx, dword [esp + 0xa]
push ecx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov edx, dword [esp + 0x28]
test ax, ax
mov word [edx], ax
jne 0x10002ab9
xor eax, eax
pop esi
add esp, 0x14
ret
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x28]
not ecx
dec ecx
push ecx
push esi
push eax
call fcn.10003e50
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x14
ret

Function at 0x10002c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10002cc1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10002cc1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x10002caa
jmp 0x10002cc1
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x100031b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1000cfc8], 0
je 0x100031c9
mov eax, dword [0x1000cfc8]
jmp 0x1000336b
mov dword [0x1000cfc8], 0x1000cfa0
push 0x28
push 0
push 0x1000cfa0
call fcn.10004110
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1000cfa0], eax
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1000cfa4], eax
cmp dword [0x1000cfa4], 0
jne 0x1000320f
xor eax, eax
jmp 0x1000336b
push str.ImagehlpApiVersionEx
mov eax, dword [0x1000cfa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000cfa8], eax
push str.SymInitialize
mov ecx, dword [0x1000cfa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000cfac], eax
push str.SymSetOptions
mov edx, dword [0x1000cfa4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000cfb0], eax
push str.SymGetOptions
mov eax, dword [0x1000cfa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000cfb4], eax
push str.SymLoadModule
mov ecx, dword [0x1000cfa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000cfb8], eax
push str.SymGetModuleInfo
mov edx, dword [0x1000cfa4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000cfbc], eax
push str.SymGetSymFromName
mov eax, dword [0x1000cfa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000cfc0], eax
push str.BindImage
mov ecx, dword [0x1000cfa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000cfc4], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.10004110
add esp, 0xc
mov word [ebp - 8], 7
cmp dword [0x1000cfa8], 0
je 0x100032ed
lea eax, [ebp - 8]
push eax
call dword [0x1000cfa8]
cmp dword [0x1000cfa8], 0
je 0x10003304
mov ecx, dword [ebp - 8]
and ecx, 0xffff
cmp ecx, 7
jge 0x1000331f
mov edx, dword [0x1000cfa4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1000cfa4], 0
xor eax, eax
jmp 0x1000336b
cmp dword [0x1000cfac], 0
je 0x10003338
push 0
push 0
mov eax, dword [0x1000cfa0]
push eax
call dword [0x1000cfac]
cmp dword [0x1000cfb4], 0
je 0x10003366
cmp dword [0x1000cfb0], 0
je 0x10003366
call dword [0x1000cfb4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 7
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x1000cfb0]
mov eax, dword [0x1000cfc8]
mov esp, ebp
pop ebp
ret
Function at 0x1000549d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000a210
cmp edx, dword [eax]
je 0x100054bf
add eax, 8
inc ecx
cmp eax, 0x1000a2a0
jl 0x100054b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000a210]
jne 0x100055ed
mov eax, dword [0x1000cfd8]
cmp eax, 1
je 0x100055c7
test eax, eax
jne 0x100054f0
cmp dword [0x1000cfdc], 1
je 0x100055c7
cmp edx, 0xfc
je 0x100055ed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10005527
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10004170
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100066d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1000556a
lea eax, [ebp - 0x1a4]
push eax
call fcn.100066d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10009644
push edi
call fcn.10003e50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10004170
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10004180
lea eax, [ebp - 0xa0]
push 0x10009624
push eax
call fcn.10004180
push dword [esi + 0x1000a214]
lea eax, [ebp - 0xa0]
push eax
call fcn.10004180
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10006f1f
add esp, 0x2c
pop edi
jmp 0x100055ed
lea eax, [ebp + 8]
lea esi, [esi + 0x1000a214]
push 0
push eax
push dword [esi]
call fcn.100066d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1000199d
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.10001bb2
mov ebx, dword [ebp + 8]
pop ecx
mov dword [ebp - 8], eax
test ebx, ebx
je 0x10001ad5
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10001ad5
cmp eax, dword [ebp + 0x14]
ja 0x10001ad5
push esi
xor esi, esi
mov edx, esi
test edi, edi
je 0x10001a77
mov dword [ebp + 8], ecx
cmp edx, edi
jae 0x100019eb
movzx ecx, byte [edx + ebx]
inc edx
jmp 0x100019ed
mov ecx, esi
cmp edx, edi
jae 0x100019fb
movzx eax, byte [edx + ebx]
mov dword [ebp - 4], eax
inc edx
jmp 0x100019fe
mov dword [ebp - 4], esi
cmp edx, edi
jae 0x10001a09
movzx eax, byte [edx + ebx]
inc edx
jmp 0x10001a0b
mov eax, esi
mov edi, dword [ebp + 8]
shl ecx, 8
add ecx, dword [ebp - 4]
shl ecx, 8
add ecx, eax
mov eax, ecx
shr eax, 0x12
and eax, 0x3f
inc dword [ebp + 8]
mov al, byte [eax + 0x100bf0b8]
mov byte [edi], al
mov edi, dword [ebp + 8]
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
inc dword [ebp + 8]
mov al, byte [eax + 0x100bf0b8]
mov byte [edi], al
mov edi, dword [ebp + 8]
mov eax, ecx
shr eax, 6
and eax, 0x3f
and ecx, 0x3f
mov al, byte [eax + 0x100bf0b8]
mov byte [edi], al
mov cl, byte [ecx + 0x100bf0b8]
mov eax, edi
mov edi, dword [ebp + 0xc]
mov byte [eax + 1], cl
add eax, 2
mov dword [ebp + 8], eax
cmp edx, edi
jb 0x100019e4
mov ecx, dword [ebp + 0x10]
mov eax, edi
xor edx, edx
push 3
pop edi
div edi
lea edi, [edx*4 + 0x1008bd0c]
mov edx, dword [ebp - 8]
cmp dword [edi], esi
jle 0x10001a9c
lea eax, [edx - 1]
add eax, ecx
mov byte [eax], 0x3d
inc esi
dec eax
cmp esi, dword [edi]
jl 0x10001a93
mov eax, dword [ebp + 0x18]
push 0x12
mov dword [eax], edx
mov ecx, dword [0x100c57c0]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
pop ecx
idiv ecx
pop esi
cmp edx, 0xc
jne 0x10001ad1
call fcn.1006e318
mov ecx, dword [0x100c57c0]
cmp ecx, eax
jne 0x10001ad1
dec ecx
mov dword [0x100c57c0], ecx
mov al, 1
jmp 0x10001ad7
xor al, al
pop edi
pop ebx
leave
ret