joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10083cf0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10083e82
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10083e6c
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x10083d3f
lea ebp, [eax + 0xe]
jmp 0x10083d4b
cmp eax, 0x17
jne 0x10083df9
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x10083df9
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10083df9
cmp eax, ebp
jb 0x10083df9
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x10083e61
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x10083e50
push ebp
push dword [edi + 0x18]
push eax
call fcn.100a9b10
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x10083de5
push eax
call dword [0x1013800c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x10083e36
mov eax, dword [esp + 0x10]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x10083df5
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10083d32
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x10083e18
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x10083e68
push ebx
call fcn.10083cb0
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x10138004]
push esi
call dword [0x10138004]
add esp, 8
jmp 0x10083e08
push esi
mov ebp, 8
call dword [0x10138004]
add esp, 4
jmp 0x10083e08
mov ebp, 8
jmp 0x10083e08
test ebx, ebx
jne 0x10083e78
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10087b70
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x1013807c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.100b8cd3
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x10087bd5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x10087bd5
lea eax, [esp]
push eax
call dword [0x1013800c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100a7615
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.100a7615
add esp, 0x108
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x1b8]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1008a4bc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.10073650
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.1008a070
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x1008a5f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebp
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebp, dword [eax + 0x15c]
jne 0x1008a740
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x1008a62b
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
jmp 0x1008a62d
mov eax, ebx
cmp eax, edi
jae 0x1008a641
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1008a641
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x1c]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x1008a6ab
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1008a6ab
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1008a6ab
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1008a6ab
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1008a6ab
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1008a6ab
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x1eb4], eax
sub eax, ebx
sub eax, 2
mov dword [edi], ebx
push eax
lea eax, [ebp + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.1008a180
add esp, 0x10
push 0
push 3
push ebx
mov ebx, dword [esp + 0x24]
push dword [ebx + 0x1b8]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x1008a6ff
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.10073650
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb3]
push eax
push ebx
call fcn.1008a4e0
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push 0
push 2
push eax
push dword [ebx + 0x1b8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1008a73d
call edi
push eax
push str.Sending_data_failed___d_
push esi
call fcn.10073650
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x1008bbd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1013807c]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
lea eax, [esp + 8]
push esi
push edi
push eax
mov edi, dword [ebp + 0x498]
lea eax, [esp + 0x1c]
mov ebx, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [edi + 0x15c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x1008bc56
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.100a9b10
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x148], eax
mov edx, dword [edi + 0x14c]
cmp edx, 4
jge 0x1008bc91
push str.Received_too_short_packet
push ebx
call fcn.10073650
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100a7615
add esp, 0x8c
ret
mov eax, dword [edi + 0x15c]
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x1008bcb2
jmp dword [ecx*4 + 0x1008bdd8]
cmp edx, 4
jle case.0x1008bcb2.4
mov esi, dword [edi + 0x15c]
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1008bcb2.4
lea eax, [edx - 4]
push eax
lea eax, [esi + 4]
push eax
push 1
push ebp
call fcn.10073590
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008bd10
push 5
push edi
call fcn.1008c750
add esp, 8
mov eax, esi
jmp 0x1008bc78
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0xa8], eax
adc dword [ebx + 0xac], edx
push dword [ebx + 0xac]
push dword [ebx + 0xa8]
push ebx
call fcn.10081ee0
jmp 0x1008bdac
mov eax, dword [edi + 0x15c]
lea esi, [edx - 4]
push esi
lea ecx, [eax + 4]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
push dword [esp + 0x18]
shl ecx, 8
or ecx, eax
mov dword [edi + 8], ecx
call fcn.1008b8c0
add esp, 8
cmp eax, esi
jae case.0x1008bcb2.4
push dword [esp + 0x14]
push str.TFTP_error:__s_n
push ebx
call fcn.10073740
jmp 0x1008bdac
lea eax, [edx - 2]
push eax
mov eax, dword [edi + 0x15c]
add eax, 2
push eax
push edi
call fcn.1008b960
add esp, 0xc
test eax, eax
je case.0x1008bcb2.4
jmp 0x1008bc78
push str.Internal_error:_Unexpected_packet
push 0x1012b3f0
push ebx
call fcn.10073650
add esp, 0xc
push ebp
call fcn.10082290
add esp, 4
test eax, eax
je 0x1008bc76
push 5
push edi
call fcn.1008c750
add esp, 8
mov eax, 0x2a
jmp 0x1008bc78
Function at 0x100928d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x1013807c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push eax
mov ebp, dword [edi + 0x1bc]
or esi, 0xffffffff
mov ebx, dword [edi]
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10092932
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push edi
call fcn.10074190
add esp, 8
cmp esi, 0xffffffff
jne 0x10092956
push str.Error_accept__ing_server_connect
push ebx
call fcn.10073650
add esp, 8
mov eax, 0x1e
jmp 0x100929c8
push str.Connection_accepted_from_server_n
push ebx
call fcn.10073740
and dword [edi + 0x294], 0xfffff7ff
push 1
push esi
mov dword [edi + 0x1bc], esi
call fcn.1009b630
add esp, 0x10
mov byte [edi + 0x1c9], 1
cmp dword [ebx + 0x618], 0
je 0x100929c6
push 1
push ebx
call fcn.10065ef0
mov eax, dword [ebx + 0x618]
push 1
push esi
push dword [ebx + 0x61c]
call eax
push 0
push ebx
mov esi, eax
call fcn.10065ef0
add esp, 0x1c
test esi, esi
je 0x100929c6
push edi
call fcn.10092e70
add esp, 4
mov eax, 0x2a
jmp 0x100929c8
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100a7615
add esp, 0x88
ret
Function at 0x100a20d0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x100a20e0
sub esi, ecx
cmp esi, 0x7fffffff
ja 0x100a21ce
test esi, esi
je 0x100a2105
lea eax, [esi + esi]
push eax
call dword [section..data]
jmp 0x100a2110
push 0x1012b600
call dword [0x1013800c]
mov edi, eax
add esp, 4
test edi, edi
je 0x100a21ce
xor ecx, ecx
test esi, esi
je 0x100a2133
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x100a2123
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x100a21b0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x100a21a4
push 0
lea eax, [esi + esi]
mov dword [esp + 0x18], 0x10
push eax
push edi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push 2
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx + 0x14], 0
call dword [0x10138004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xc
ret
pop edi
pop esi
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x100a21e0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x1013807c]
xor eax, esp
mov dword [esp + 0x20], eax
push edi
mov edi, dword [esp + 0x30]
lea eax, [esp + 4]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100a22e0
push esi
mov esi, dword [esp + 0x38]
push 8
mov dword [esp + 0x18], 0x208
mov dword [esp + 0x1c], 0x6601
mov dl, byte [esi + 1]
mov cl, byte [esi]
mov al, dl
shr al, 1
mov byte [esp + 0x24], cl
shl cl, 7
or al, cl
shl dl, 6
mov cl, byte [esi + 2]
mov byte [esp + 0x25], al
mov al, cl
shr al, 2
or al, dl
shl cl, 5
mov dl, byte [esi + 3]
mov byte [esp + 0x26], al
mov al, dl
shr al, 3
or al, cl
shl dl, 4
mov cl, byte [esi + 4]
mov byte [esp + 0x27], al
mov al, cl
shr al, 4
or al, dl
shl cl, 3
mov dl, byte [esi + 5]
mov byte [esp + 0x28], al
mov al, dl
shr al, 5
or al, cl
shl dl, 2
mov cl, byte [esi + 6]
mov byte [esp + 0x29], al
mov al, cl
shr al, 6
add cl, cl
or al, dl
mov dword [esp + 0x20], 8
mov byte [esp + 0x2a], al
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x2f], cl
call fcn.100a5e40
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x100a22f2
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
pop edi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100a7615
add esp, 0x24
ret
mov ecx, dword [esp + 0x2c]
push dword [esp + 8]
mov eax, dword [ecx]
mov dword [edi], eax
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
lea eax, [esp + 0xc]
push eax
push edi
push 0
push 0
push 0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
mov al, 1
pop edi
xor ecx, esp
call fcn.100a7615
add esp, 0x24
ret
Function at 0x100a7500
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100a7527
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x100a7572
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ebx
jmp 0x100a7576
mov ebp, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x100a75d6
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x100a7595
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x100a7607
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push str.64F
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x100db577
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x100a75e0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x100bf684
Capabilities:
Print debug messages

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

Function at 0x100c0784
Capabilities:
Read file on windows

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

Function at 0x100c43fc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100c3f4f
Function at 0x4e002e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call fcn.004e0041

Function at 0x4e00a8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.004e00bb
Function at 0x47e0d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
or ebp, 0xffffffff
jmp 0x47e0f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47e0f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47e0e8
mov eax, 1
add ebx, ebx
jne 0x47e10b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47e100
jne 0x47e11c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47e100
xor ecx, ecx
sub eax, 3
jb 0x47e130
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47e1a2
mov ebp, eax
add ebx, ebx
jne 0x47e13b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x47e148
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x47e16c
inc ecx
add ebx, ebx
jne 0x47e158
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47e14d
jne 0x47e169
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47e14d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47e18c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47e17d
jmp 0x47e0ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47e18c
add edi, ecx
jmp 0x47e0ee
pop esi
lea edi, [esi + 0x7c000]
mov eax, dword [edi]
or eax, eax
je 0x47e1eb
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7e000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7e078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47e1a9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7e080]
or eax, eax
je 0x47e1e5
mov dword [ebx], eax
add ebx, 4
jmp 0x47e1c6
call dword [esi + 0x7e07c]
mov ebp, dword [esi + 0x7e084]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47e21f
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x59174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x5917a6
cmp eax, 0xffffffff
je 0x5917a6
cmp dword [ebp + 8], ebx
je 0x5917a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x59f302
cmp esi, dword [ebp - 4]
jne 0x59f31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0x59179e

Function at 0x59227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x5a621c
call fcn.00591350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0x5ab458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00592097
test eax, eax
jne 0x5923c4
lea eax, [ebp - 0x20]
push eax
push dword [0x5ab45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.005923dc
test eax, eax
jne 0x5923c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.005913e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x5923c4
lea eax, [ebp - 0x20]
push eax
push dword [0x5ab45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.005923dc
test eax, eax
jne 0x5923bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0x5923bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005913e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x5923bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0x5923b2
cmp dword [ebp + 8], ebx
je 0x59ea08
push dword [0x5ab460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005913e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x5923b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.005921cb
push dword [0x5ab460]
push edi
push dword [ebp - 0x18]
call fcn.00592436
push dword [ebp - 0x14]
call fcn.005913c0
pop ecx
push dword [ebp - 0x1c]
call fcn.005913c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00591f10
mov eax, dword [ebp - 0x18]
call fcn.00591390
ret 4
Function at 0x5923dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0x59242c
cmp dword [ebp - 4], 2
ja 0x59e965
mov ecx, dword [edi]
test cl, 1
jne 0x59242c
cmp esi, ebx
je 0x592425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0x59242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0x592425

Function at 0x5924ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x5a6b05
call fcn.00591350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x592519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0x59265b
cmp dword [ebp + 0xc], edi
je 0x59265b
push 1
call fcn.0059227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x59264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005913e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x59259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.005921cb
mov ebx, eax
test ebx, ebx
jl 0x59259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00592436
mov ebx, eax
test ebx, ebx
jl 0x59259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0x592632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005913e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x592654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.005921cb
mov ebx, eax
test ebx, ebx
jl 0x592623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00592436
mov ebx, eax
test ebx, ebx
jl 0x592623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0x592623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x59f3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0x592632
push dword [ebp - 0x14]
call fcn.005913c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0x592641
push dword [ebp - 0x18]
call fcn.005913c0
pop ecx
push dword [ebp - 0x1c]
call fcn.005913c0
pop ecx
mov eax, ebx
call fcn.00591390
ret 8
mov ebx, 0x8007000e
jmp 0x5925fe
mov ebx, 0x80070057
jmp 0x59264a