joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5031b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esi + 0x24]
push edi
mov eax, dword [esi + 0x64]
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0x6c]
sub edi, eax
sub edi, ecx
jne 0x5031d0
test eax, eax
jne 0x5031dc
test ecx, ecx
jne 0x5031dc
mov edi, ebx
jmp 0x50324c
cmp edi, 0xffffffff
jne 0x5031dc
mov edi, 0xfffffffe
jmp 0x50324c
mov ecx, dword [esi + 0x24]
lea edx, [ebx + ecx - 0x106]
cmp eax, edx
jb 0x50324c
mov eax, dword [esi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0056b730
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], ebx
sub dword [esi + 0x64], ebx
add esp, 0xc
sub dword [esi + 0x54], ebx
lea ecx, [eax + edx*2]
lea ecx, [ecx]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x50321f
sub eax, ebx
jmp 0x503221
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x503210
mov ecx, dword [esi + 0x38]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x503240
sub eax, ebx
jmp 0x503242
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x503231
add edi, ebx
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x5032a9
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x64]
mov ecx, edi
add edx, dword [esi + 0x30]
mov edi, eax
push edx
call fcn.00502f50
add dword [esi + 0x6c], eax
mov edx, dword [esi + 0x6c]
add esp, 4
cmp edx, 3
jb 0x503295
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edi, [eax + ecx]
movzx eax, byte [edi]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edi + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edx, 0x106
jae 0x5032a9
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x5031b5
pop edi
pop ebx
ret

Function at 0x509000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
push edi
mov edi, eax
mov esi, edx
jne 0x50900f
pop edi
xor eax, eax
pop esi
ret
cmp edi, 8
not esi
jb 0x5090f7
mov edx, edi
shr edx, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [ebx*4 + 0x5b35e0]
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x5b35e0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [ebx*4 + 0x5b35e0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
add ecx, 1
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x5b35e0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
add ecx, 1
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x5b35e0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
add ecx, 1
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x5b35e0]
movzx ebx, byte [ecx + 1]
add ecx, 1
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x5b35e0]
movzx ebx, byte [ecx + 1]
add ecx, 1
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x5b35e0]
add ecx, 1
sub edi, 8
sub edx, 1
mov esi, eax
jne 0x509020
pop ebx
test edi, edi
je 0x50911c
jmp 0x509100
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x5b35e0]
add ecx, 1
sub edi, 1
jne 0x509100
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x50cc20
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x50cc3c
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jbe 0x50cd4d
jmp 0x50cc50
cmp ebx, 0x15b0
mov eax, ebx
jb 0x50cc5f
mov eax, 0x15b0
sub ebx, eax
cmp eax, 0x10
mov dword [ebp + 0x10], ebx
jl 0x50cd0e
mov edx, eax
shr edx, 4
mov ebx, edx
neg ebx
shl ebx, 4
add eax, ebx
jmp 0x50cc80
movzx ebx, byte [esi]
add ecx, ebx
movzx ebx, byte [esi + 1]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 2]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 3]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 4]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 5]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 6]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 7]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 8]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 9]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xa]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xb]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xc]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xd]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xe]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xf]
add edi, ecx
add ecx, ebx
add edi, ecx
add esi, 0x10
sub edx, 1
jne 0x50cc80
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x50cd21
movzx edx, byte [esi]
add ecx, edx
add esi, 1
add edi, ecx
sub eax, 1
jne 0x50cd12
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
ja 0x50cc50
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
pop ebp
ret
Function at 0x513970
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [ebp - 0x14], esi
jne 0x513998
mov dword [ebp - 4], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x5139a3
mov dword [ebp - 4], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ebx, ebx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ebx
mov dword [ebp - 8], ebx
jle 0x513a99
lea ecx, [esi + 0x20]
mov dword [ebp - 0xc], ecx
jmp 0x5139e9
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx]
cdq
idiv ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
je 0x513a07
mov eax, dword [esi + 0x18]
add dword [eax + ebx*4], 0xff
lea eax, [eax + ebx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ebx*4]
add ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x18], ecx
call fcn.00513800
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x513a37
mov ecx, dword [ebp - 0x18]
add ebx, 1
mov eax, ebx
call fcn.00513800
mov ecx, eax
cmp esi, ecx
jg 0x513a24
mov al, byte [ebp - 0x10]
imul bl
mov byte [esi + edi], al
add esi, 1
cmp esi, 0xff
jle 0x513a20
cmp dword [ebp - 4], 0
je 0x513a80
mov eax, 1
lea ecx, [edi - 1]
jmp 0x513a60
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
add eax, 1
sub ecx, 1
cmp eax, 0xff
jle 0x513a60
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add dword [ebp - 0xc], 4
add eax, 1
cmp eax, dword [ecx + 0x64]
mov dword [ebp - 8], eax
jl 0x5139e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x525fa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x589300
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x5d5de8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
push 6
xor ebx, ebx
push str.Dialog
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.0043dd50
lea eax, [esp + 0x10]
push eax
mov ecx, 0x5dadb0
mov dword [esp + 0x38], ebx
call fcn.005255d0
mov eax, dword [eax]
push 1
push 1
push 1
push eax
mov ecx, esi
call fcn.00536ac0
cmp dword [esp + 0x28], 0x10
mov byte [esp + 0x34], 2
jb 0x526029
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00569095
add esp, 4
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
lea ecx, [esi + 0x1b0]
mov dword [esi], vtable.DialogMenu.0
mov dword [esi + 0x88], vtable.DialogMenu.2.0
mov dword [esi + fcn.00524a10], vtable.DialogMenu.1.0
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov byte [ecx + 4], bl
call fcn.0043b2f0
fld dword [0x59b7ec]
mov eax, dword [esi + 0x34]
fstp dword [esi + 0x1cc]
fld dword [0x59b7e8]
mov dword [esi + 0x1d4], eax
fstp dword [esi + 0x1d0]
mov dword [esi + 0x34], 0x258
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret 4
Function at 0x53a4a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x58ba2e
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d5de8]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
xor ebx, ebx
push 0x6c
mov dword [esp + 0x9c], ebx
call fcn.0056980a
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x98], 1
je 0x53a509
mov ecx, dword [0x5dace0]
push ecx
mov ecx, eax
call fcn.0042e3c0
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x53a50f
mov dword [esp + 0x14], ebx
mov esi, ebx
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x38]
mov edx, dword [esi]
mov edx, dword [edx + 0x78]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0xa0], 0
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x80]
push 1
push 1
mov ecx, esi
call edx
cmp dword [esp + 0xb0], ebx
je 0x53a649
mov ebp, dword [esp + 0xac]
mov eax, dword [esp + 0xb0]
lea ebx, [eax + ebp]
cmp ebp, ebx
jbe 0x53a55f
call fcn.0056999e
mov esi, ebp
mov edi, ebp
shr esi, 2
and edi, 3
cmp ebp, ebx
jb 0x53a572
call fcn.0056999e
mov ebx, dword [esp + 0xa8]
cmp ebx, esi
ja 0x53a57f
sub esi, ebx
mov ecx, dword [esp + 0xa4]
mov edx, dword [ecx + esi*4]
mov esi, dword [edx + edi*4]
test esi, esi
je 0x53a604
cmp dword [esi + 0x10], 0
je 0x53a604
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28], 0
mov dword [esp + 0x24], 0xc
call fcn.004257c0
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
push ecx
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0xa0], 2
call fcn.00426b20
mov eax, dword [esi]
mov eax, dword [eax + 0x6c]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call eax
cmp byte [esp + 0xb4], 0
je 0x53a5f3
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
push esi
call eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x98], 0
call fcn.00425890
cmp dword [esp + 0xb0], 0
je 0x53a645
add ebp, 1
lea ecx, [ebx*4]
cmp ecx, ebp
mov dword [esp + 0xac], ebp
ja 0x53a62c
xor ebp, ebp
mov dword [esp + 0xac], ebp
sub dword [esp + 0xb0], 1
jne 0x53a54c
mov dword [esp + 0xac], 0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0xa0]
call fcn.0055fce0
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x18
Function at 0x5491e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x58d221
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x5d5de8]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
push esi
mov eax, dword [0x5d5de8]
xor eax, esp
push eax
lea eax, [esp + 0x44c]
mov dword fs:[0], eax
mov eax, dword [0x5d57e8]
mov esi, dword [esp + 0x45c]
xor ebx, ebx
push ebx
push 0x5a5b90
push eax
push ebx
mov ecx, 0x5d57d4
mov dword [esp + 0x1c], ebx
call fcn.0043b500
test eax, eax
jne 0x5493c1
lea ecx, [esp + 0x2c]
push ecx
call fcn.004705d0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x5d57d4
mov dword [esp + 0x460], ebx
call fcn.0043b2f0
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x454], 0xffffffff
jb 0x549286
mov edx, dword [esp + 0x30]
push edx
call fcn.00569095
add esp, 4
mov eax, dword [0x5d57e8]
push ebx
push 0x5a5b90
push eax
push ebx
mov ecx, 0x5d57d4
call fcn.0043b500
test eax, eax
jne 0x5493b4
lea ecx, [esp + 0x48]
push ecx
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [esp + 0x48]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x5492c0
sub eax, edx
push eax
lea edx, [esp + 0x4c]
push edx
mov ecx, 0x5d57d4
call fcn.0043dd50
mov eax, dword [0x5dace0]
add eax, 0x28
push eax
lea ecx, [esp + 0x30]
push 0x5a71bc
push ecx
call fcn.00441b60
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x5d57d4
mov dword [esp + 0x460], 1
call fcn.0043db30
push eax
call fcn.00471db0
add esp, 4
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x454], 0xffffffff
jb 0x549337
mov edx, dword [esp + 0x30]
push edx
call fcn.00569095
add esp, 4
mov eax, dword [0x5dace0]
add eax, 0x44
push eax
lea ecx, [esp + 0x14]
push 0x5a71bc
push ecx
call fcn.00441b60
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x5d57d4
mov dword [esp + 0x460], 2
call fcn.0043db30
push eax
call fcn.00471db0
add esp, 4
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x454], 0xffffffff
jb 0x549393
mov edx, dword [esp + 0x14]
push edx
call fcn.00569095
add esp, 4
push 1
push 0x5a71bc
mov ecx, 0x5d57d4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.0043dc40
push 0x5d57d4
call fcn.00471900
add esp, 4
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x5d57d4
mov ecx, esi
mov byte [esi + 4], bl
call fcn.0043b2f0
mov eax, esi
mov ecx, dword [esp + 0x44c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.005697e2
add esp, 0x44c
ret
Function at 0x549410
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58d271
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5d5de8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
call fcn.005491e0
push str.profiles.xml
push eax
push esi
mov dword [esp + 0x48], 1
call fcn.00441c10
add esp, 0x10
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0xc], 1
mov byte [esp + 0x38], bl
jb 0x549488
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00569095
add esp, 4
push esi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00471900
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x5697e2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5d5de8]
jne 0x5697ec
repz ret
jmp fcn.0057378c
Function at 0x56df1d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x56df5a
cmp dword [ebp + 0x14], edi
je 0x56df5a
cmp ecx, edi
jne 0x56df61
call fcn.0056f181
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0056997a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x56df75
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x56df96
cmp ebx, 0xffffffff
je 0x56df85
push ebx
push edi
push ecx
call fcn.00569a00
add esp, 0xc
cmp esi, edi
je 0x56df42
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x56df42
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x56dfb2
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x56dfb9
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x56e0aa
test word [esi + 0xc], 0x10c
je 0x56e00d
mov eax, dword [esi + 4]
test eax, eax
je 0x56e00d
jl 0x56e10b
cmp ebx, eax
mov edi, ebx
jb 0x56dfde
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x56e0b2
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00569345
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x56e0a2
cmp ebx, dword [ebp - 0xc]
jb 0x56e07a
cmp dword [ebp - 0xc], 0
je 0x56e037
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x56e02c
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x56e033
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x56e042
mov eax, closesocket
cmp ebx, eax
ja 0x56e042
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x56e0de
push eax
push dword [ebp - 8]
push esi
call fcn.00576bdb
pop ecx
push eax
call fcn.0057bfdb
add esp, 0xc
test eax, eax
je 0x56e11d
cmp eax, 0xffffffff
je 0x56e10b
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x56e0a2
push esi
call fcn.0057687b
cmp eax, 0xffffffff
pop ecx
je 0x56e10f
cmp dword [ebp - 4], 0
je 0x56e0de
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x56dfc1
mov eax, dword [ebp + 0x14]
jmp 0x56df5c
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x56e0c9
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00569a00
add esp, 0xc
call fcn.0056f181
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x56df52
cmp dword [ebp + 0xc], 0xffffffff
je 0x56e0f4
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00569a00
add esp, 0xc
call fcn.0056f181
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x56df52
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x56df5c
or dword [esi + 0xc], 0x10
jmp 0x56e10f
Function at 0x573c46
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5d6300]
je 0x573c61
inc edi
cmp edi, 0x17
jb 0x573c52
cmp edi, 0x17
jae 0x573de1
push ebp
push 3
call fcn.005801ec
cmp eax, 1
pop ecx
je 0x573dad
push 3
call fcn.005801ec
test eax, eax
pop ecx
jne 0x573c95
cmp dword [0x5d5e40], 1
je 0x573dad
cmp ebx, 0xfc
je 0x573de0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5db4d8
push ebp
call fcn.00572fec
add esp, 0xc
test eax, eax
je 0x573ccb
push esi
push esi
push esi
push esi
push esi
call fcn.0056987e
add esp, 0x14
push 0x104
mov esi, 0x5db4f1
push esi
push 0
mov byte [0x5db5f5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x573d0f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00572fec
add esp, 0xc
test eax, eax
je 0x573d0f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0056987e
add esp, 0x14
push esi
call fcn.0056f6b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x573d54
push esi
call fcn.0056f6b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5db7ec
push 0x5a27fc
sub ecx, eax
push ecx
push eax
call fcn.0057d929
add esp, 0x14
test eax, eax
je 0x573d54
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0056987e
add esp, 0x14
jmp 0x573d56
xor esi, esi
push 0x5a27f8
push ebx
push ebp
call fcn.0057d8b8
add esp, 0xc
test eax, eax
je 0x573d76
push esi
push esi
push esi
push esi
push esi
call fcn.0056987e
add esp, 0x14
push dword [edi*8 + 0x5d6304]
push ebx
push ebp
call fcn.0057d8b8
add esp, 0xc
test eax, eax
je 0x573d98
push esi
push esi
push esi
push esi
push esi
call fcn.0056987e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0058002f
add esp, 0xc
jmp 0x573de0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x573de0
cmp ebp, 0xffffffff
je 0x573de0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5d6304]
push dword [esi]
call fcn.0056f6b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x58002f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0057312b
xor ebx, ebx
cmp dword [0x5dbbc8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x580105
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5801e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a55a8
push edi
call esi
cmp eax, ebx
je 0x5801e5
push eax
call fcn.005730bd
mov dword [esp], 0x5a5598
push edi
mov dword [0x5dbbc8], eax
call esi
push eax
call fcn.005730bd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5dbbcc], eax
call esi
push eax
call fcn.005730bd
mov dword [0x5dbbd0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0056d687
test eax, eax
pop ecx
pop ecx
je 0x5800d3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0056987e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x580105
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.005730bd
cmp eax, ebx
pop ecx
mov dword [0x5dbbd8], eax
je 0x580105
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005730bd
pop ecx
mov dword [0x5dbbd4], eax
mov eax, dword [0x5dbbd4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x58018a
cmp dword [0x5dbbd8], ecx
je 0x58018a
push eax
call fcn.00573134
push dword [0x5dbbd8]
mov esi, eax
call fcn.00573134
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x58018a
cmp edi, ebx
je 0x58018a
call esi
cmp eax, ebx
je 0x580157
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x580157
test byte [ebp - 0x18], 1
jne 0x58018a
lea eax, [ebp - 0x10]
push eax
call fcn.0056d6be
test eax, eax
pop ecx
je 0x580172
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0056987e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x580181
or dword [ebp + 0x10], 0x200000
jmp 0x5801c5
or dword [ebp + 0x10], 0x40000
jmp 0x5801c5
mov eax, dword [0x5dbbcc]
cmp eax, dword [ebp - 8]
je 0x5801c5
push eax
call fcn.00573134
cmp eax, ebx
pop ecx
je 0x5801c5
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5801c5
mov eax, dword [0x5dbbd0]
cmp eax, dword [ebp - 8]
je 0x5801c5
push eax
call fcn.00573134
cmp eax, ebx
pop ecx
je 0x5801c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5dbbc8]
call fcn.00573134
cmp eax, ebx
pop ecx
je 0x5801e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5801e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10035f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10035f5f
pop dword [ebp - 0x20]
mov eax, 0x10035f5f
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x8968541b
add dword [ebp - 0x30], 0xc4e9f130
mov dword [ebp - 0x2c], 0xb823feff
add dword [ebp - 0x2c], 0x7a0f4d46
mov dword [ebp - 0x28], 0xe6c0291c
sub dword [ebp - 0x28], 0x9a73e4ee
mov dword [ebp - 0x24], 0x2cdfe256
sub dword [ebp - 0x24], 0x2cdfe256
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x9e3e0895
sub dword [ebp - 0x30], 0x29cb9f3f
mov dword [ebp - 0x2c], 0xabf3e63a
sub dword [ebp - 0x2c], 0x6a8784c5
mov dword [ebp - 0x28], 0x9dcbe4d9
add dword [ebp - 0x28], 0xc5a38793
mov dword [ebp - 0x24], 0xc13821da
sub dword [ebp - 0x24], 0xc13821da
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x43883
push 0
call eax
mov ecx, 0x4b40
xor esi, esi
add esi, eax
mov edi, 0xb9c580ee
sub edi, 0xa9bf50ee
add edi, dword [ebp - 0x20]
mov edx, 0xcc50f220
sub edx, 0xc50639c2
xor dword [ebp - 0x14], 0xda2413fa
mov ebx, dword [edi]
sub dword [ebp - 0xc], 0xed79e8f
xor ebx, edx
mov dword [esi], ebx
sub dword [ebp - 0xc], 0x52a8eb93
add esi, 0x7ccc41c1
add esi, 0x8333be43
add edi, 0x681af8bc
sub edi, 0x681af8b8
loop 0x1003606e
add eax, 0xac024013
add eax, 0x53fedfc0
mov ebx, eax
add eax, 0xa68a2a16
add eax, 0x5975d5ef
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret