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

Disassembly:
sub esp, 0x230
mov eax, dword [0x4f2b64]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x4fb034], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x48a6a0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x48a990
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0048a650
je 0x48acc2
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x4f4454]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004562c9
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x48adbf
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00461f10
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.0046b927
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x48ad3d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x48ad84
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.00461f10
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.0046b927
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x48adbb
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x48adef
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x48adef
add edi, 1
cmp edi, 3
jl 0x48ad86
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x4f4454], edx
mov dword [0x4f445c], eax
mov dword [fcn.0048a650], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x4f4454]
xor ecx, esp
mov dword [0x4fb034], 1
call fcn.004562c9
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x48adbb

Function at 0x48b350
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0045f4cf
add esp, 0x18
test eax, eax
je 0x48b373
cmp eax, 0xffffffff
jne 0x48b375
xor eax, eax
ret
Function at 0x493910
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x4d852c
push ecx
call fcn.00487890
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00492ab0
test eax, eax
jne 0x493940
mov eax, esi
jmp fcn.00492f40
ret
Function at 0x493d50
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x4f2b64]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
mov ebx, dword [ebp]
push esi
mov esi, dword [ebp + 0x3d0]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
lea edi, [esi + 0x15c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x493ddf
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.00459d60
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x493e1a
push str.Received_too_short_packet
push ebx
call fcn.00487920
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004562c9
add esp, 0x88
ret
mov eax, edi
call fcn.00492c30
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x493e33
jmp dword [eax*4 + 0x493f20]
cmp edx, 4
jle case.0x493e33.4
mov eax, edi
call fcn.00492c40
movzx ecx, word [esi + 0x40]
add ecx, 1
cmp cx, ax
jne case.0x493e33.4
add edx, 0xfffffffc
push edx
mov edx, dword [edi]
add edx, 4
push edx
push 1
push ebp
call fcn.00487c00
mov edi, eax
add esp, 0x10
test edi, edi
je 0x493e88
mov ecx, 5
mov eax, esi
call fcn.00493cd0
mov eax, edi
jmp 0x493e01
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x38], eax
mov ecx, dword [ebx + 0x38]
adc dword [ebx + 0x3c], edx
mov eax, dword [ebx + 0x3c]
push eax
push ecx
push ebx
call fcn.004a0930
jmp 0x493ef4
mov eax, edi
call fcn.00492c40
movzx edx, ax
mov eax, dword [edi]
add eax, 4
push eax
push 0x4d852c
push ebx
mov dword [esi + 8], edx
call fcn.00487890
jmp 0x493ef4
mov ecx, dword [edi]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.00492ce0
add esp, 0xc
test eax, eax
je case.0x493e33.4
jmp 0x493e01
push str.Internal_error:_Unexpected_packet
push 0x4c4a2c
push ebx
call fcn.00487920
add esp, 0xc
push ebp
call fcn.004a09f0
add esp, 4
test eax, eax
je 0x493dff
mov ecx, 5
mov eax, esi
call fcn.00493cd0
mov eax, 0x2a
jmp 0x493e01

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

Disassembly:
push ecx
mov edx, dword [edi + 0x130]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x495cc4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00487920
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.00495b70
add esp, 4
pop esi
pop ecx
ret
Function at 0x4972e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x4f2b64]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x134]
push ebp
push edi
mov edi, dword [esi]
push 1
push 0
push edi
or ebp, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.00487d60
add esp, 0xc
test eax, eax
jl 0x497349
mov ecx, 0x3e8
cmp eax, ecx
jge 0x497320
mov ecx, eax
push ecx
push 0xffffffffffffffff
push ebx
call fcn.0049f3b0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4973e4
test eax, eax
jne 0x49736e
push 1
push eax
push edi
call fcn.00487d60
add esp, 0xc
test eax, eax
jge 0x497315
push str.Timeout_while_waiting_for_server_connect
push edi
call fcn.00487920
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004562c9
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x49739e
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebp, eax
push ebx
push esi
call fcn.00488570
add esp, 8
cmp ebp, 0xffffffff
jne 0x4973b4
push str.Error_accept__ing_server_connect
jmp 0x4973e9
push str.Connection_accepted_from_server_n
push edi
call fcn.00487890
push 1
push ebp
mov dword [esi + 0x134], ebp
call fcn.004a3120
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004562c9
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push edi
call fcn.00487920
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.004562c9
add esp, 0x18
ret
Function at 0x49f3b0
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x49f3f4
cmp ebp, ebx
jne 0x49f3f4
mov eax, dword [esp + 0x334]
push eax
call fcn.0049f380
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x49f40f
mov esi, edi
call fcn.0048e5b0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x49f443
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x49f48a
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x49f472
cmp dword [esp + eax*4 + 0x24], ebp
je 0x49f472
add eax, 1
cmp eax, ecx
jb 0x49f465
cmp eax, ecx
jne 0x49f484
cmp ecx, 0x40
jae 0x49f484
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x49f48a
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea ecx, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, ecx
lea ecx, [ecx]
xor eax, eax
cmp edi, eax
jle 0x49f4d1
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x1c], edx
jmp 0x49f4db
jne 0x49f4db
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x130]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x49f545
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x49f50e
cmp eax, 0x2714
jne 0x49f549
test edi, edi
jle 0x49f4a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0048e5b0
push edx
push eax
call fcn.0048e5e0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x49f4a0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x49f557
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x49f566
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x49f59d
lea edx, [esp + 0x124]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x49f58b
mov esi, 1
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x49f59d
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x49f5d0
lea ecx, [esp + 0x228]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x49f5be
or esi, 2
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x49f5d0
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x4a1120
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4a112f
jmp dword [ecx*4 + 0x4a1184]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x4a1310
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4f2b64]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004756f9
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x4a1375
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x4a1375
lea edx, [esp]
push edx
call dword [0x4f4448]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004562c9
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004562c9
add esp, 0x108
ret
jmp 0x4a1310

Function at 0x4a1390
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x4f2b64]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004756f9
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x4a1375
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x4a1375
lea edx, [esp]
push edx
call dword [0x4f4448]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004562c9
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004562c9
add esp, 0x108
ret
jmp 0x4a1310

Function at 0x4a40b0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4a9540
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
xor esi, esi
mov edx, 0x4fc240
mov eax, esi
mov ecx, 8
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec ecx
jne 0x4a9550
mov dword [edx], eax
add edx, 4
inc esi
cmp edx, 0x4fc640
jl 0x4a9549
cmp esi, 0x800
jae 0x4a95aa
lea ecx, [esi*4 + 0x4fc240]
mov eax, dword [ecx - 0x400]
add ecx, 4
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x4fc240]
xor edx, eax
cmp ecx, 0x4fe240
mov dword [ecx - 4], edx
jl 0x4a9582
mov dword [0x4fb048], fcn.004aa050
call fcn.004aa230
pop edi
pop esi
test eax, eax
jne 0x4a95c9
mov dword [0x4fb048], 0x4aa100
ret
Function at 0x4aca80
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4f2b64]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004aca15
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00456900
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4acacf
cmp dword [ebp - 0x1c], 5
jb 0x4acae7
jmp 0x4acae3
cmp dword [ebp - 0x10], 1
jne 0x4acae7
cmp dword [ebp - 0x1c], 4
ja 0x4acae3
jne 0x4acae7
cmp dword [ebp - 0x18], 0
jbe 0x4acae7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4ddcec
call fcn.004ac8e9
test eax, eax
jge 0x4acb08
mov byte [0x4fb0c5], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004562c9
add ebp, 0x78
leave
ret
Function at 0x40467d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432670]
jne 0x404687
repz ret
jmp fcn.0040918e

Function at 0x40c154
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.00402fd2
and dword [ebp - 4], 0
cmp dword [0x437c14], 0
mov ebx, eax
jne 0x40c205
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c2b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c2b6
push eax
call fcn.00402f60
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x437c14], eax
call esi
push eax
call fcn.00402f60
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x437c18], eax
call esi
push eax
call fcn.00402f60
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x437c1c], eax
call esi
push eax
call fcn.00402f60
pop ecx
mov dword [0x437c24], eax
test eax, eax
je 0x40c205
push 0x42f858
push edi
call esi
push eax
call fcn.00402f60
pop ecx
mov dword [0x437c20], eax
mov eax, dword [0x437c20]
cmp eax, ebx
je 0x40c25d
cmp dword [0x437c24], ebx
je 0x40c25d
push eax
call fcn.00402fdb
push dword [0x437c24]
mov esi, eax
call fcn.00402fdb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c25d
test edi, edi
je 0x40c25d
call esi
test eax, eax
je 0x40c254
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c254
test byte [ebp - 0xc], 1
jne 0x40c25d
or dword [ebp + 0x10], 0x200000
jmp 0x40c296
mov eax, dword [0x437c18]
cmp eax, ebx
je 0x40c296
push eax
call fcn.00402fdb
pop ecx
test eax, eax
je 0x40c296
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c296
mov eax, dword [0x437c1c]
cmp eax, ebx
je 0x40c296
push eax
call fcn.00402fdb
pop ecx
test eax, eax
je 0x40c296
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437c14]
call fcn.00402fdb
pop ecx
test eax, eax
je 0x40c2b6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c2b8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x44710d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x44711c
pop dword [ebp - 0x48]
mov eax, 0x44711c
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x4dfc2
push 0
mov eax, 0xe3ea60e0
sub eax, 0xe3a5ae24
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x3ff0
mov edx, eax
mov edi, 0xc9c92ef0
add edi, 0x367f4f10
add edi, dword [ebp - 0x48]
mov esi, 0x9adba00c
xor dword [ebp - 0x40], eax
mov ebx, dword [edi]
xor dword [ebp - 0x3c], 0x47e21257
add ebx, esi
mov dword [edx], ebx
xor dword [ebp - 0x28], edi
add edx, 0x2a68771d
add edx, 0xd59788e7
add edi, 4
loop 0x44716a
add eax, 0x2936f9c0
sub eax, 0x2936072d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4010ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x81a004]
jne 0x4010f4
repz ret
jmp fcn.004014d9

Function at 0x408e5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x81a004]
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.004039df
and dword [ebp - 0x14], 0
cmp dword [0x81cd7c], 0
mov dword [ebp - 0x18], eax
jne 0x408f0f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408fb7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408fb7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x81cd7c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x81cd80], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x81cd84], eax
call edi
push eax
call esi
mov dword [0x81cd8c], eax
test eax, eax
je 0x408f0f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x81cd88], eax
mov eax, dword [0x81cd88]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408f68
cmp dword [0x81cd8c], ecx
je 0x408f68
push eax
call esi
push dword [0x81cd8c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408f68
test ebx, ebx
je 0x408f68
call edi
test eax, eax
je 0x408f5f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408f5f
test byte [ebp - 8], 1
jne 0x408f68
or dword [ebp + 0x10], 0x200000
jmp 0x408f9b
mov eax, dword [0x81cd80]
cmp eax, dword [ebp - 0x18]
je 0x408f9b
push eax
call esi
test eax, eax
je 0x408f9b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408f9b
mov eax, dword [0x81cd84]
cmp eax, dword [ebp - 0x18]
je 0x408f9b
push eax
call esi
test eax, eax
je 0x408f9b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81cd7c]
call esi
test eax, eax
je 0x408fb7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408fb9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010ea
leave
ret
Function at 0x80eaa0
Capabilities:
Get disk information
Get system information on windows
Write file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x81a004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x81fffc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push edi
mov ebx, 0x1519a5
mov edi, 0x8e46a7b8
lea esp, [esp]
mov dword [0x81fc64], edi
cmp eax, 0x3dc
jne 0x80eae6
push 0
call esi
mov eax, dword [0x81fffc]
dec ebx
jne 0x80ead0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor esi, esi
cmp eax, 0x933
jne 0x80eb3e
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x81fffc]
cmp esi, 0x845fef
jne 0x80eb55
mov eax, dword [0x81bbd0]
add eax, 0xa231
mov dword [0x81fffc], eax
cmp eax, 0x141
jne 0x80eb70
mov dword [0x81d2a8], 0xec58acac
mov dword [0x81d2ac], 0xffffffff
inc esi
cmp esi, 0x12d1832
jl 0x80eaf7
call fcn.0080e6d0
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004010ea
add esp, 0x41c
ret 0x10
Function at 0x401ce5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401d24
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401d24
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401d24
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401d24
cmp dword [ecx + 0x74], 0xe
jbe 0x401d24
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402433
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402472
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402472
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402472
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402472
cmp dword [ecx + 0x74], 0xe
jbe 0x402472
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret