joyce8/EMBER2024-capa huggingface dataset:
Function at 0x520ac2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5a3604]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0051457a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0051457a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x520b39
cmp word [ecx], dx
je 0x520b39
mov eax, dword [0x56a3ec]
push edi
dec eax
push eax
push 0x56a2d8
call fcn.00520a61
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x520bac
cmp word [eax], dx
je 0x520bac
mov eax, dword [edi]
test eax, eax
je 0x520b5d
cmp word [eax], dx
je 0x520b5d
lea eax, [ebp - 0x10]
push eax
call fcn.00520444
jmp 0x520b66
lea eax, [ebp - 0x10]
push eax
call fcn.005204df
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x520bd6
mov eax, dword [0x56a2d4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x569fc8
call fcn.00520a61
add esp, 0xc
test al, al
je 0x520bd6
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x520ba1
cmp word [eax], di
je 0x520ba1
lea eax, [ebp - 0x10]
push eax
call fcn.00520444
pop ecx
jmp 0x520bd8
lea eax, [ebp - 0x10]
push eax
call fcn.005204df
jmp 0x520b9e
mov eax, dword [edi]
test eax, eax
je 0x520bc3
cmp word [eax], dx
je 0x520bc3
lea eax, [ebp - 0x10]
push eax
call fcn.005203f9
pop ecx
jmp 0x520bd6
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x520ca1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005208e6
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x520ca1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x520ca1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x520ca1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x520c2e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00514f78
test ebx, ebx
je 0x520c9c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00514f78
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x520ca1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x520ca1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0052492a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x520ca3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e5fe9
leave
ret
Function at 0x52132a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5a3604]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x52136d
call fcn.004ff17c
mov dword [eax], 0xf
call fcn.004ff18f
mov dword [eax], 0xd
call fcn.004ff091
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e5fe9
leave
ret
test eax, eax
jne 0x521374
inc eax
jmp 0x521361
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x52135f
xor eax, eax
cmp ecx, 1
setne al
jmp 0x521361
Function at 0x524cf5
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00524c71
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x524e64
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x524e64
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x524e19
jg 0x524d51
test eax, eax
je 0x524e0f
push 1
push 0x1000
call fcn.00515a76
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x524d74
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x524e06
push 0x8000
push ebx
call fcn.00511601
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x524d9d
jg 0x524d98
cmp ecx, 0x1000
jb 0x524d9d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00517c42
add esp, 0x10
cmp eax, 0xffffffff
je 0x524de2
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 0x524d98
jl 0x524dc9
test ecx, ecx
jne 0x524d8a
push dword [ebp - 0xc]
push ebx
call fcn.00511601
push esi
call fcn.00513e01
add esp, 0xc
xor ebx, ebx
jmp 0x524e72
cmp byte [edi + 0x24], 0
je 0x524df9
cmp dword [edi + 0x20], 5
jne 0x524df9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x524e04
mov ebx, dword [edi + 0x18]
jmp 0x524e06
xor ebx, ebx
push esi
call fcn.00513e01
pop ecx
jmp 0x524e72
test ecx, ecx
jg 0x524ddb
jl 0x524e19
test eax, eax
jae 0x524ddb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00519061
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x524e39
cmp byte [edi + 0x1c], 0
je 0x524ddb
jmp 0x524e6a
push ebx
call fcn.005155c0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x524ddb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x524e72
cmp byte [edi + 0x1c], 0
je 0x524e6f
mov ebx, dword [edi + 0x18]
jmp 0x524e72
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00519061
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x52689d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x5268c0
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x52695d
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.005264a7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5268e3
push ebx
call fcn.00500101
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x526939
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x5a4370]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x52690e
call fcn.00500101
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x526939
push esi
push 1
push eax
call fcn.00500cff
push ebx
mov esi, eax
call fcn.00500101
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x526942
push dword [ebp - 4]
call dword [0x5a4374]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x52695c
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00526848
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x529a29
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.00535585
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x529a56
xor eax, eax
jmp 0x529b52
mov eax, dword [ebp - 4]
mov ecx, closesocket
push 0x40
push 0x4f6bf1
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
call fcn.0052aad0
push esi
push eax
call fcn.004f6c10
add esp, 0x14
test eax, eax
je 0x529a91
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.00535712
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0052aab2
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0052c1c1
add esp, 0x28
test eax, eax
jne 0x529ac8
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
cmp dword [ebp - 8], esi
jne 0x529b09
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.005356e3
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x529b04
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
je 0x529b39
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.00535652
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.0053560c
add esp, 0x14
jmp 0x529a4f
push esi
push esi
push esi
push dword [ebp - 4]
call fcn.005354d4
push dword [ebp - 4]
call fcn.00529bf8
mov eax, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
leave
ret
Function at 0x52bf70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x52bfa6
push edi
mov edi, 0x10c
cmp dword [ebp + 0xc], edi
jae 0x52bf99
push eax
call fcn.005355f8
push 2
call fcn.00535571
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call fcn.004f5300
add esp, 0xc
pop edi
pop esi
pop ebp
ret
Function at 0x52d3e8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.00535585
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x52d415
xor eax, eax
jmp 0x52d5b9
mov eax, dword [ebp - 4]
mov ecx, closesocket
push 0x40
push 0x4f6bf1
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2ac], esi
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2b0], esi
call fcn.0052aad0
push esi
push eax
call fcn.004f6c10
add esp, 0x14
test eax, eax
je 0x52d462
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.00535712
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0052aab2
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0052c1c1
add esp, 0x28
test eax, eax
jne 0x52d499
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
jne 0x52d4d5
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.005356e3
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x52d4d5
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0x52c2b1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x9c], fcn.0052c300
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], ecx
cmp dword [ebp - 8], esi
jne 0x52d555
mov eax, dword [ebp - 4]
push 0x38
add eax, 0x78
push str.1.2.5
push eax
call fcn.0053cc56
add esp, 0xc
cmp eax, 0xfffffffa
je 0x52d53e
cmp eax, 0xfffffffc
je 0x52d537
cmp eax, 0xfffffffe
je 0x52d530
test eax, eax
je 0x52d550
push str.Unknown_zlib_error
jmp 0x52d543
push str.zlib_stream_error
jmp 0x52d543
push str.zlib_memory_error
jmp 0x52d543
push str.zlib_version_error
push dword [ebp - 4]
call fcn.0052aaec
pop ecx
mov dword [ebp - 8], edi
pop ecx
cmp dword [ebp - 8], esi
je 0x52d585
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.00535652
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.0053560c
add esp, 0x14
jmp 0x52d40e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push esi
push esi
mov eax, dword [eax + 0xb0]
mov dword [ecx + 0x84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push dword [ebp - 4]
mov eax, dword [eax + 0xb4]
mov dword [ecx + 0x88], eax
call fcn.00532500
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x53b2bb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x2c]
mov edx, dword [edi + 0x74]
mov dword [ebp - 0xc], ebx
mov eax, dword [edi + 0x2c]
mov esi, dword [edi + 0x3c]
add eax, 0xfffffefa
sub esi, dword [edi + 0x6c]
add eax, ebx
sub esi, edx
mov dword [ebp - 8], esi
cmp dword [edi + 0x6c], eax
jb 0x53b364
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.004f4b10
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
mov esi, ecx
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
movzx ecx, bx
movzx eax, word [edi]
mov edx, eax
mov dword [ebp - 4], ecx
sub eax, ecx
xor ecx, ecx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x53b312
mov edi, dword [ebp + 8]
mov esi, ebx
mov eax, dword [edi + 0x40]
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx eax, word [edi]
mov edx, eax
sub eax, dword [ebp - 4]
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x53b33f
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
add esi, ebx
mov ebx, dword [edi]
mov eax, dword [ebx + 4]
test eax, eax
je 0x53b488
mov edx, dword [edi + 0x6c]
mov ecx, dword [edi + 0x74]
add edx, ecx
add edx, dword [edi + 0x38]
cmp eax, esi
mov dword [ebp - 4], edx
cmovbe esi, eax
test esi, esi
je 0x53b3d2
sub eax, esi
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x53b3a5
push esi
push dword [ebx]
push dword [ebx + 0x30]
call fcn.0053e973
jmp 0x53b3b5
cmp eax, 2
jne 0x53b3be
push esi
push dword [ebx]
push dword [ebx + 0x30]
call fcn.0053ce33
mov edx, dword [ebp - 4]
add esp, 0xc
mov dword [ebx + 0x30], eax
push esi
push dword [ebx]
push edx
call fcn.004f4b10
add dword [ebx], esi
add esp, 0xc
add dword [ebx + 8], esi
mov ecx, dword [edi + 0x74]
lea edx, [ecx + esi]
mov dword [ebp - 8], edx
mov dword [edi + 0x74], edx
cmp edx, 3
jb 0x53b402
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
mov edx, dword [ebp - 8]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp edx, 0x106
jae 0x53b41a
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x53b41a
mov ebx, dword [ebp - 0xc]
jmp 0x53b2d0
mov ecx, dword [edi + 0x16c0]
mov esi, dword [edi + 0x3c]
cmp ecx, esi
jae 0x53b488
mov ebx, dword [edi + 0x6c]
add ebx, edx
cmp ecx, ebx
jae 0x53b458
mov eax, 0x102
sub esi, ebx
cmp esi, eax
cmova esi, eax
mov eax, dword [edi + 0x38]
push esi
add eax, ebx
push 0
push eax
call fcn.004f5300
lea eax, [esi + ebx]
add esp, 0xc
mov dword [edi + 0x16c0], eax
jmp 0x53b488
lea eax, [ebx + 0x102]
cmp ecx, eax
jae 0x53b488
sub ebx, ecx
sub esi, ecx
lea eax, [ebx + 0x102]
cmp eax, esi
cmovbe esi, eax
mov eax, dword [edi + 0x38]
push esi
add eax, ecx
push 0
push eax
call fcn.004f5300
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53ce33
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x53ce40
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0053ce46
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x570463]
shl eax, 2
mov dword [0x570467], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0054b9e4
pop edx
call fcn.0054b948
call fcn.0054ba24
push 0
call fcn.0054cd98
pop ecx
push 0x57040c
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x57046b], eax
push 0
jmp fcn.00555bbc

Function at 0x4017c8
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa6c
push ebx
push esi
mov bx, 2
lea eax, [ebp - 0x594]
push eax
push ebx
call sub.WSOCK32.DLL_WSAStartup
push 0x400
lea edx, [ebp - 0x404]
push edx
call sub.WSOCK32.DLL_gethostname
test eax, eax
jne 0x40184f
lea ecx, [ebp - 0x404]
push ecx
call sub.WSOCK32.DLL_gethostbyname
xor esi, esi
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov dword [ebp - 4], ecx
jmp 0x401839
cmp word [eax + 0xa], 4
jne 0x401834
xor edx, edx
mov ecx, dword [ebp - 4]
jmp 0x40182c
mov ebx, dword [eax + 0xc]
mov ebx, dword [ebx + esi*4]
mov bl, byte [ebx + edx]
inc edx
mov byte [ecx], bl
inc ecx
movsx ebx, word [eax + 0xa]
cmp edx, ebx
jl 0x40181f
inc esi
add dword [ebp - 4], 4
test eax, eax
je 0x401846
mov edx, dword [eax + 0xc]
cmp dword [edx + esi*4], 0
jne 0x401811
call sub.WSOCK32.DLL_WSACleanup
mov eax, esi
jmp 0x401856
call sub.WSOCK32.DLL_WSACleanup
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4087c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ecx, ecx
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, eax
cmp esi, ecx
jle 0x4087e9
lea eax, [ecx + 0x32]
mov edi, 0x65
cdq
idiv edi
mov eax, edx
inc ecx
xor byte [ebx], al
inc ebx
cmp esi, ecx
jg 0x4087d4
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40b354
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ecx, ecx
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ebx, eax
cmp esi, ecx
mov edi, dword [ebp + 0x14]
jle 0x40b37c
mov eax, ecx
inc ecx
cdq
idiv dword [ebp + 0x18]
mov al, byte [edi + edx]
xor byte [ebx], al
inc ebx
cmp esi, ecx
jg 0x40b36b
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40dcd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
mov eax, 0x580fc8
push ebx
push esi
push edi
call fcn.0054c16c
mov edx, dword [0x57cefc]
mov ecx, dword [0x57cf07]
mov dword [ebp - 0x78], edx
mov edx, dword [0x57cf00]
mov dword [ebp - 0x74], edx
lea edi, [ebp - 0xec]
mov dx, word [0x57cf04]
mov esi, 0x57cf0b
mov word [ebp - 0x70], dx
mov dl, byte [0x57cf06]
mov byte [ebp - 0x6e], dl
mov dword [ebp - 0x7c], ecx
mov ecx, 0x1b
lea eax, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push eax
call fcn.0054be6c
pop ecx
mov esi, eax
xor eax, eax
lea edx, [ebp - 0x78]
cmp esi, eax
jle 0x40dd52
mov cl, 0xc8
sub cl, al
inc eax
xor byte [edx], cl
inc edx
cmp esi, eax
jg 0x40dd46
lea eax, [ebp - 0x7c]
push eax
call fcn.0054be6c
pop ecx
mov esi, eax
xor eax, eax
lea edx, [ebp - 0x7c]
cmp esi, eax
jle 0x40dd73
mov cl, 0xc8
sub cl, al
inc eax
xor byte [edx], cl
inc edx
cmp esi, eax
jg 0x40dd67
lea eax, [ebp - 0xec]
push eax
call fcn.0054be6c
pop ecx
mov esi, eax
xor eax, eax
lea edx, [ebp - 0xec]
cmp esi, eax
jle 0x40dd9a
mov cl, 0xc8
sub cl, al
inc eax
xor byte [edx], cl
inc edx
cmp esi, eax
jg 0x40dd8e
xor eax, eax
lea edx, [ebp - 0x78]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 8]
mov word [ebp - 0x5c], 0x14
call fcn.00559dd8
mov edx, eax
inc dword [ebp - 0x50]
lea eax, [ebp - 4]
call fcn.0055af00
inc dword [ebp - 0x50]
dec dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0055a088
mov word [ebp - 0x5c], 8
lea ecx, [ebp - 0xf0]
mov edx, dword [0x57cef8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push edx
mov ecx, dword [edx]
call dword [ecx + 0xc]
test eax, eax
jne 0x40e1d7
xor eax, eax
lea edx, [ebp - 0x7c]
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0x14]
mov word [ebp - 0x5c], 0x2c
call fcn.00559dd8
mov edx, eax
inc dword [ebp - 0x50]
lea eax, [ebp - 0xc]
call fcn.0055af00
inc dword [ebp - 0x50]
dec dword [ebp - 0x50]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0055a088
mov word [ebp - 0x5c], 0x20
mov word [ebp - 0x5c], 0x38
lea edx, [ebp - 0xec]
lea eax, [ebp - 0x18]
call fcn.00559dd8
mov edx, eax
inc dword [ebp - 0x50]
lea eax, [ebp - 0x10]
call fcn.0055af00
inc dword [ebp - 0x50]
dec dword [ebp - 0x50]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0055a088
mov word [ebp - 0x5c], 0x20
invalid

Function at 0x431008
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push 0x74
mov eax, dword [ebp + 8]
add eax, 0x22ac
push eax
lea edx, [ebp - 0x78]
push edx
call fcn.0054bcc8
add esp, 0xc
mov eax, dword [ebp - 0x24]
sub eax, 0x3e8
xor ebx, ebx
add eax, 0x3e8
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, 0x400ffe
mov ecx, dword [edx + 0x22f0]
add ecx, eax
imul eax, ebx, 0x10524
add ecx, eax
mov eax, ecx
xor ecx, ecx
add eax, 2
xor edx, edx
xor ecx, dword [eax]
inc edx
add eax, 4
cmp edx, 0x4149
jl 0x431059
mov edx, dword [ebp - 4]
mov dword [edx], ecx
inc ebx
add dword [ebp - 4], 4
cmp ebx, 0xa
jl 0x431038
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43107c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [ebp + 8]
mov ebx, 0x400ff7
push dword [eax + 0xb0]
pop edx
mov eax, dword [ebp + 0xc]
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 4], edx
mov ecx, 0x12b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100]
cdq
idiv ecx
mov ecx, 0x18ffe
add ebx, edx
add ecx, 2
mov eax, ecx
imul dword [ebp - 4]
add eax, 9
xor edx, edx
add ebx, eax
mov eax, ebx
xor ebx, ebx
shr ecx, 2
cmp ecx, edx
jle 0x4310d7
xor ebx, dword [eax]
inc edx
add eax, 4
cmp ecx, edx
jg 0x4310cd
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x12c]
mov edx, dword [ebp - 4]
mov dword [eax + edx*4], ebx
pop ebx
pop ecx
pop ebp
ret

Function at 0x433a8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp ecx, edx
jle 0x433aa4
xor byte [eax], 0x63
inc edx
inc eax
cmp ecx, edx
jg 0x433a9b
pop ebp
ret

Function at 0x433aa8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp ecx, edx
jle 0x433ac0
xor byte [eax], 0x42
inc edx
inc eax
cmp ecx, edx
jg 0x433ab7
pop ebp
ret

Function at 0x4464fa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
lea ecx, [ebp + 9]
xor dl, byte [ecx]
inc eax
inc ecx
cmp eax, 5
jl 0x446504
xor eax, eax
lea ecx, [ebp + 0xe]
xor dl, byte [ecx]
inc eax
inc ecx
cmp eax, 0x12
jl 0x446512
mov eax, edx
pop ebp
ret

Function at 0x449cfe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
mov byte [edx], 0xcc
mov byte [edx + 1], 0xcc
mov byte [edx + 2], 0xcc
mov byte [edx + 3], 0
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov cl, byte [eax]
xor byte [edx], cl
mov cl, byte [eax + 1]
xor byte [edx + 1], cl
mov cl, byte [eax + 2]
add eax, 4
xor byte [edx + 2], cl
add byte [ebp - 1], 4
cmp byte [ebp - 1], 0x79
jb 0x449d1b
pop ecx
pop ebp
ret

Function at 0x45e4d0
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
je 0x45e4ea
mov eax, dword [ebx + 0x26c]
mov eax, dword [eax + 0x28]
call fcn.00411eab
mov esi, eax
dec esi
cmp esi, 0
jl 0x45e4c7
mov eax, dword [ebx + 0x26c]
mov eax, dword [eax + 0x28]
mov edx, esi
call fcn.00411ebb
mov edi, eax
mov eax, dword [ebx + 0x26c]
mov eax, dword [eax + 0x28]
mov edx, esi
call fcn.004120e7
mov ecx, edi
xor edx, edx
mov eax, dword [ebx + 0x270]
call fcn.00412037
dec esi
cmp esi, 0xffffffff
jne 0x45e490
mov eax, dword [ebx + 0x26c]
call 0x8b9b7562
in al, dx
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jns 0x45e4de
add ebx, 3
sar ebx, 2
mov eax, dword [ebp + 0xc]
xor ecx, ecx
xor edx, edx
cmp ebx, edx
jle 0x45e4f6
xor ecx, dword [eax]
inc edx
add eax, 4
cmp ebx, edx
jg 0x45e4ec
mov eax, ecx
pop ebx
pop ebp
ret