joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441b00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x441b2c
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + edi + 0xa]
push eax
call fcn.00463d76
add esp, 4
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [esi + edi*2 - 2], 0x5c
lea eax, [esi + edi*2]
jne 0x441b60
push 0x498240
jmp 0x441b65
push 0x499538
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x254]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push esi
mov edi, eax
call fcn.0046247d
add esp, 4
cmp edi, 0xffffffff
jne 0x441bad
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x441b9a
cmp eax, 1
jne 0x441bb4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004615db
mov esp, ebp
pop ebp
ret

Function at 0x441bd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 4
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x620], 0
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x624], 0
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor ecx, ecx
cmp word [ebp - 0x20a], 0x3a
mov word [ebp - 0x206], cx
je 0x441c69
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
lea edx, [ebp - 0x20c]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi - 1]
pop edi
test eax, eax
js 0x441c69
mov ecx, 0x5c
lea ecx, [ecx]
cmp word [ebp + eax*2 - 0x20c], cx
je 0x441c5f
dec eax
jns 0x441c50
jmp 0x441c69
xor ecx, ecx
mov word [ebp + eax*2 - 0x20a], cx
push 0x104
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0x628]
push ecx
lea edx, [ebp - 0x624]
push edx
push 0x104
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
pop esi
test eax, eax
jne 0x441cb6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp - 0x620]
mov ecx, dword [ebp - 4]
shr eax, 6
xor ecx, ebp
and eax, 1
call fcn.004615db
mov esp, ebp
pop ebp
ret
Function at 0x4432c0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 2
push 0
push 0x3f
push 1
mov edi, ecx
push 0
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], 0x10
call fcn.0044fb00
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x54]
push ecx
mov ecx, edi
call fcn.0044cd90
cmp dword [ebp - 0x50], 0
jne 0x44334f
push 0x3f
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x44332a
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x443316
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00461930
add esp, 0xc
mov edx, dword [ebp - 0x52]
push ebx
mov ebx, dword [ebp - 0x50]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
push ebx
movzx edi, ax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, esi
sub edx, eax
pop ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x443370
push 0x2e
push esi
call fcn.004620a0
add esp, 8
test eax, eax
je 0x4433a2
lea esp, [esp]
push 0x2e
push esi
mov byte [eax], 0x2c
call fcn.004620a0
add esp, 8
test eax, eax
jne 0x443390
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4433a7
mov ecx, edi
and ecx, 0xff
push ecx
sar edi, 8
sub eax, edx
push edi
add eax, esi
push str.__d__d
push eax
call fcn.00464907
mov ecx, dword [ebp - 0x58]
add esp, 0x10
push 5
call fcn.0044d5c0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004615db
mov esp, ebp
pop ebp
ret 4
Function at 0x44b150
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x48], 0
je 0x44b16b
push 0x2733
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop ebp
ret 0xc
pop ebp
jmp fcn.0044ff80

Function at 0x44b180
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x48], 0
je 0x44b19b
push 0x2733
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop ebp
ret 0xc
pop ebp
jmp fcn.00450010
Function at 0x44d4b0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x38]
push edx
test ecx, ecx
je 0x44d4d9
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push edx
call eax
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
jmp 0x44d4f1
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x44d502
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x44d509
mov dword [edi + 0x34], 2
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x44ff80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x44ff98
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop ebp
ret 0xc
mov eax, dword [ecx + 8]
test eax, eax
jne 0x44ffb1
push 0x2736
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop ebp
ret 0xc
cmp eax, 1
je 0x44fff0
cmp eax, 2
je 0x44fff0
cmp eax, 3
je 0x44fff0
cmp dword [ecx + 0x2c], 0
jne 0x44ffe5
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.0044ce20
push eax
call dword [sym.imp.WS2_32.dll_send]
pop ebp
ret 0xc
mov ecx, dword [ecx + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
pop ebp
jmp edx
push 0x2749
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop ebp
ret 0xc

Function at 0x450010
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x450028
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop ebp
ret 0xc
mov eax, dword [ecx + 8]
test eax, eax
jne 0x450041
push 0x2736
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop ebp
ret 0xc
cmp eax, 1
je 0x450080
cmp eax, 2
je 0x450080
cmp eax, 3
je 0x450080
cmp dword [ecx + 0x2c], 0
jne 0x450075
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.0044ce20
push eax
call dword [sym.imp.WS2_32.dll_recv]
pop ebp
ret 0xc
mov ecx, dword [ecx + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
pop ebp
jmp edx
push 0x2749
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop ebp
ret 0xc
Function at 0x450660
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00450010

Function at 0x450670
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044ff80
Function at 0x451010
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004507e0

Function at 0x451020
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00450ba0
Function at 0x455bf0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov ecx, 0x10
mov esi, 0x49b300
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor ecx, ecx
xor esi, esi
cmp dword [ebp + 0xc], ecx
jle 0x455cc7
mov edi, dword [ebp + 8]
mov al, byte [esi + edi]
mov byte [ebp - 0x49], al
movzx eax, al
mov edx, eax
shr edx, 2
mov dl, byte [ebp + edx - 0x48]
inc esi
mov byte [ebx + ecx], dl
cmp esi, dword [ebp + 0xc]
jge 0x455ce5
mov dl, byte [esi + edi]
movzx edi, dl
mov byte [ebp - 0x49], dl
and eax, 3
mov edx, edi
shl eax, 4
shr edx, 4
or edx, eax
mov al, byte [ebp + edx - 0x48]
inc esi
mov byte [ebx + ecx + 1], al
cmp esi, dword [ebp + 0xc]
jge 0x455d04
mov edx, dword [ebp + 8]
mov al, byte [esi + edx]
movzx eax, al
mov edx, eax
shr edx, 6
and edi, 0xf
add edi, edi
and eax, 0x3f
movzx eax, byte [ebp + eax - 0x48]
add edi, edi
or edx, edi
mov dl, byte [ebp + edx - 0x48]
mov byte [ebx + ecx + 2], dl
mov byte [ebx + ecx + 3], al
add ecx, 4
mov eax, 0x38e38e39
mul ecx
shr edx, 4
lea edx, [edx + edx*8]
add edx, edx
add edx, edx
add edx, edx
mov eax, ecx
inc esi
sub eax, edx
jne 0x455cbe
mov word [ebx + ecx], 0xa0d
add ecx, 2
cmp esi, dword [ebp + 0xc]
jl 0x455c23
mov word [ebx + ecx], 0x3d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004615db
mov esp, ebp
pop ebp
ret 0xc
movzx edx, byte [ebp - 0x49]
and edx, 3
add edx, edx
mov al, byte [ebp + edx*8 - 0x48]
mov byte [ebx + ecx + 1], al
mov word [ebx + ecx + 2], 0x3d3d
mov byte [ebx + ecx + 4], 0
jmp 0x455ccd
movzx edx, byte [ebp - 0x49]
and edx, 0xf
mov al, byte [ebp + edx*4 - 0x48]
mov byte [ebx + ecx + 2], al
mov word [ebx + ecx + 3], 0x3d
jmp 0x455ccd

Function at 0x45f265
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4b0400], 0
push esi
push edi
jne 0x45f1d6
call fcn.0045f130
test eax, eax
je 0x45f21b
mov eax, dword [0x4b0400]
cmp eax, 1
jne 0x45f1f7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x45f21b
jmp 0x45f25d
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x45f25d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x45f21f
xor eax, eax
jmp 0x45f25d
mov eax, dword [esi]
push dword [0x4b0400]
call edi
mov edi, eax
test edi, edi
je 0x45f241
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x45f25d
lea edi, [esi + 0xff0]
push esi
push dword [0x4b0400]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x45f247
mov eax, esi
pop edi
pop esi
ret
jmp 0x45f1c2

Function at 0x4615db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ae23c]
jne 0x4615e5
repz ret
jmp fcn.0046b50c
Function at 0x488ead
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0046aef9
and dword [ebp - 0x14], 0
cmp dword [0x4b14ec], 0
mov dword [ebp - 0x18], eax
jne 0x488f60
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x489008
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a2068
push ebx
call edi
test eax, eax
je 0x489008
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4b14ec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4b14f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4b14f4], eax
call edi
push eax
call esi
mov dword [0x4b14fc], eax
test eax, eax
je 0x488f60
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4b14f8], eax
mov eax, dword [0x4b14f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x488fb9
cmp dword [0x4b14fc], ecx
je 0x488fb9
push eax
call esi
push dword [0x4b14fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x488fb9
test ebx, ebx
je 0x488fb9
call edi
test eax, eax
je 0x488fb0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x488fb0
test byte [ebp - 8], 1
jne 0x488fb9
or dword [ebp + 0x10], 0x200000
jmp 0x488fec
mov eax, dword [0x4b14f0]
cmp eax, dword [ebp - 0x18]
je 0x488fec
push eax
call esi
test eax, eax
je 0x488fec
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x488fec
mov eax, dword [0x4b14f4]
cmp eax, dword [ebp - 0x18]
je 0x488fec
push eax
call esi
test eax, eax
je 0x488fec
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4b14ec]
call esi
test eax, eax
je 0x489008
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48900a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004615db
leave
ret
Function at 0x4727e0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004723c7

Function at 0x4727eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00472556

Function at 0x472d0e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042f620
mov eax, dword [0x49f100]
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.004701bf
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x472d50
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x472eac
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00485160
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 + 0x4ef8f0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004742a1
mov ecx, dword [esi*4 + 0x4ef8f0]
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 0x472ea5
cmp eax, dword [edi + ecx + 0x24]
jne 0x472ea5
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 0x472ea5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004742a1
add esp, 0x14
test edx, edx
jl 0x472ea5
jg 0x472e1b
test eax, eax
jb 0x472ea5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x472ea5
jl 0x472e35
cmp dword [ebp - 0x1008], eax
ja 0x472ea5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x472e53
test ebx, ebx
je 0x472e8c
cmp ecx, edi
jae 0x472e8c
mov al, byte [ecx]
cmp al, 0xd
jne 0x472e6d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x472e79
cmp byte [ecx + 1], 0xa
jne 0x472e79
inc ecx
jmp 0x472e79
movzx eax, al
movsx eax, byte [eax + 0x49f3f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x472e53
cmp edx, ebx
jne 0x472e53
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x472eaa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042e0ad
leave
ret
Function at 0x47342a
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 + 0x4ef8f0]
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 0x47346a
cmp byte [ebx], 0xa
jne 0x47346a
or byte [eax + edi + 0x28], 4
jmp 0x47346f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x47356d
mov al, byte [edx]
cmp al, 0x1a
je 0x47354f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x47349e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4734c3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4734cd
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 0x473480
jmp 0x47356d
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 0x47354a
cmp dword [ebp - 0xc], 0
je 0x47354a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ef8f0]
test byte [eax + edi + 0x28], 0x48
je 0x473524
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x47350f
mov byte [esi], dl
jmp 0x473520
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ef8f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x47356d
cmp byte [ebp - 1], 0xa
jne 0x473533
cmp esi, ebx
jne 0x473533
mov byte [esi], 0xa
jmp 0x47356c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004742bf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x47356d
mov byte [esi], 0xd
jmp 0x47356c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ef8f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x473569
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x47356d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x473576
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 + 0x4ef8f0]
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 0x4735b9
cmp word [esi], dx
jne 0x4735b9
or byte [edi + eax + 0x28], 4
jmp 0x4735be
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 0x473711
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 0x4736f1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x473600
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x473636
cmp eax, edx
jae 0x473642
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 0x4735d8
jmp 0x473711
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 0x4736ed
cmp dword [ebp - 0x14], 0
je 0x4736ed
mov eax, dword [ebx*4 + 0x4ef8f0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4736c5
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x47368e
mov word [esi], cx
jmp 0x4736c1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ef8f0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ef8f0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ef8f0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x473711
pop ebx
cmp word [ebp - 4], bx
jne 0x4736d6
cmp esi, dword [ebp + 0xc]
jne 0x4736d6
mov word [esi], bx
jmp 0x47370e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004742bf
add esp, 0x10
cmp word [ebp - 4], bx
je 0x473711
push 0xd
jmp 0x47370a
mov ecx, dword [ebx*4 + 0x4ef8f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x473708
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x473711
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 0x47804c
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 0x4780e9
push ebx
push esi
call fcn.00478008
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.0047543d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x478096
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4780e8
push edi
push eax
call fcn.0046f0e8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4780b6
call fcn.0046cf72
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4780e7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0047543d
add esp, 0x20
test eax, eax
jne 0x4780d5
push edi
call fcn.0046cf72
jmp 0x4780dd
push ebx
call fcn.0046cf72
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 0x4780ec
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4780fd
pop esi
ret
push ebx
push edi
push esi
call fcn.00478008
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046f0e8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x478125
push ebx
push esi
push edi
call fcn.0042fe60
add esp, 0xc
push 0
call fcn.0046cf72
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x478a06
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00478398

Function at 0x478e8d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00478d61

Function at 0x484f20
Capabilities:
Parse pe header

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

Function at 0x48a134
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 8]
sar eax, 2
push esi
test eax, eax
je 0x48a1ba
xor esi, esi
mov al, byte [esi + 0x4ec3e0]
mov edx, str.Own_head
xor al, 0x73
sub al, 0x6c
xor al, 0x74
mov byte [esi + 0x4ec3e0], al
call fcn.0040618b
push eax
call fcn.00406159
mov al, byte [esi + 0x4ec3e0]
mov edx, str.Earth
add al, 0x4e
xor al, 0xdc
pop ecx
mov byte [esi + 0x4ec3e0], al
call fcn.0040618b
push eax
call fcn.00406159
mov al, byte [esi + 0x4ec3e0]
xor al, 0xac
mov dword [esp], 0x49582c
sub al, 0x65
xor al, 0x22
sub al, 0x73
mov byte [esi + 0x4ec3e0], al
call fcn.00458d4b
xor byte [esi + 0x4ec3e0], al
inc esi
pop ecx
cmp esi, 0x4ac
jb 0x48a147
lea ecx, [esp + 0xc]
call fcn.00404eb8
pop esi
pop ecx
ret 0x14