joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488090
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b8c4
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4c1600]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x104], ecx
mov dword [0x4c58c8], 0x7e6
mov byte [0x4c58b4], 0xc8
mov dword [ebp - 0x88], 3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x4af998
lea ecx, [ebp - 0xa8]
call fcn.004028f0
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10c]
push edx
push 0x4af99c
lea ecx, [ebp - 0xc4]
call fcn.004028f0
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x114], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x114]
push ecx
push 0x4af9a0
lea ecx, [ebp - 0xe0]
call fcn.004028f0
mov dword [ebp - 0x118], eax
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x11c]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xe4], esp
mov edx, dword [ebp - 0x10]
push edx
call fcn.004028f0
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x84]
call fcn.00499a90
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe0]
call fcn.00402970
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xc4]
call fcn.00402970
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa8]
call fcn.00402970
push 0x4af9a8
lea ecx, [ebp - 0x100]
call fcn.004028f0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x100]
push edx
lea ecx, [ebp - 0x84]
call fcn.0041f740
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x100]
call fcn.00402970
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x89], 0
cmp dword [ebp - 0x88], 1
jne 0x488245
push 0
call fcn.0041c7e0
add esp, 4
push 0
mov ecx, dword [ebp - 0x104]
call fcn.00486ee0
mov byte [ebp - 0x11], 1
jmp 0x488260
push 1
call fcn.0041c7e0
add esp, 4
push 1
mov ecx, dword [ebp - 0x104]
call fcn.00486ee0
mov byte [ebp - 0x11], 1
push str.071132e14ea664c6eaedb1417e589b86
call fcn.00487950
add esp, 4
cmp eax, 1
sete al
push eax
call fcn.0041c810
add esp, 4
push 0
push 0
push 0xd60
mov ecx, dword [ebp - 0x104]
add ecx, 4
call fcn.0041c2f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00499b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00451d4e
mov esp, ebp
pop ebp
ret
Function at 0x488c70
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bc26
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x4c1600]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.004871f0
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], 0
push 0x4afdd4
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.004022e0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0040a1f0
lea ecx, [ebp - 0x10]
call fcn.0041b0d0
push eax
push 0x69
push 0
call fcn.00486970
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x488d26
lea ecx, [ebp - 0x10]
call fcn.0041b0d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x488d26
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040a1f0
mov eax, dword [ebp - 0x1c]
jmp 0x488dd9
lea ecx, [ebp - 0x10]
call fcn.0041b0d0
push eax
lea ecx, [ebp - 0x38]
call fcn.004028f0
mov byte [ebp - 4], 3
push 1
call fcn.00473880
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.00473a80
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.00402970
call fcn.0041c800
movzx ecx, al
neg ecx
sbb ecx, ecx
neg ecx
mov byte [0x4c58d2], cl
mov edx, dword [0x4c58c0]
push edx
push 0
push 0x7e6
call fcn.00473880
mov ecx, eax
call fcn.0041d600
push 0x1464
push 0x4c58b4
call fcn.00473880
mov ecx, eax
call fcn.0041f940
cmp dword [ebp - 0x14], 0
je 0x488db1
call fcn.00473880
mov edi, eax
call fcn.00473a20
lea ecx, [ebp - 0x10]
call fcn.0041b0d0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040a1f0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48e340
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4c1600]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.00452150
add esp, 0xc
push 0x11c
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.00452150
add esp, 0xc
mov dword [ebp - 0x228], 0x11c
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x48e3c5
mov dword [ebp - 0x228], 0x114
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x48e3c5
xor eax, eax
jmp 0x48e3e2
cmp dword [ebp - 0x224], 6
jne 0x48e3e0
cmp dword [ebp - 0x220], 1
jb 0x48e3e0
mov eax, 1
jmp 0x48e3e2
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00451d4e
mov esp, ebp
pop ebp
ret

Function at 0x48e3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4c1600]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x48e410
xor eax, eax
jmp 0x48e4da
mov dword [ebp - 8], 0
call fcn.0048e330
neg eax
sbb eax, eax
and eax, 0x200
add eax, 0x20019
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48e4d8
cmp dword [ebp - 8], 0
je 0x48e4d8
mov word [ebp - 0x220], 0
push 0x20a
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.00452150
add esp, 0xc
mov dword [ebp - 0xc], 0x20b
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48e4ca
push 0x103
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00455b28
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x48e4da
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x48e4da
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00451d4e
mov esp, ebp
pop ebp
ret
Function at 0x48e530
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4c1600]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], 0
mov eax, dword [0x4c5c88]
and eax, 1
jne 0x48e57d
mov ecx, dword [0x4c5c88]
or ecx, 1
mov dword [0x4c5c88], ecx
mov ecx, 0x4c5c84
call fcn.00401080
push 0x49e220
call fcn.00451f71
add esp, 4
mov ecx, 0x4c5c84
call fcn.00401060
movzx edx, al
test edx, edx
je 0x48e62b
mov word [ebp - 0x218], 0
push 0x20a
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.00452150
add esp, 0xc
push 1
push 0x1a
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x218]
push edx
mov ecx, 0x4c5c84
call fcn.00401160
mov ecx, 0x4c5c84
call fcn.00401040
test eax, eax
jle 0x48e62b
push 0x4c5c84
call fcn.0048e4f0
add esp, 4
push 0x4b0740
mov ecx, 0x4c5c84
call fcn.00402130
mov ecx, 0x4c5c84
call fcn.0041b0d0
push eax
call fcn.00409f40
add esp, 4
test eax, eax
jne 0x48e62b
push 0
mov ecx, 0x4c5c84
call fcn.0041b0d0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x4c5c84
mov ecx, dword [ebp + 8]
call fcn.004010a0
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451d4e
mov esp, ebp
pop ebp
ret
Function at 0x48e790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4c1600]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 3
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x4b0a48
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x48e7f6
jmp 0x48e95c
mov ecx, dword [ebp + 8]
push ecx
push 0x4b0a98
push 0x103
lea edx, [ebp - 0x128]
push edx
call fcn.00406c30
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x128]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x48e83d
jmp 0x48e952
mov dword [ebp - 0x18], 4
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
push 0x4b0aa8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48e876
jmp 0x48e948
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 0x103
push 0x104
push 0
lea ecx, [ebp - 0x128]
push ecx
call fcn.00452150
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x4b0ab8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48e8c8
jmp 0x48e948
cmp dword [ebp - 0x10], 1
jne 0x48e8fd
push 0x4b0a44
call fcn.004520c0
add esp, 4
push eax
push 0x4b0ac8
lea eax, [ebp - 0x128]
push eax
call fcn.00453545
add esp, 0xc
test eax, eax
jne 0x48e8fd
mov dword [ebp - 8], 0
jmp 0x48e948
cmp dword [ebp - 0x10], 1
jne 0x48e932
push 0x4b0acc
call fcn.004520c0
add esp, 4
push eax
push 0x4b0ad0
lea ecx, [ebp - 0x128]
push ecx
call fcn.00453545
add esp, 0xc
test eax, eax
je 0x48e932
mov dword [ebp - 8], 2
jmp 0x48e948
cmp dword [ebp - 0x10], 2
jne 0x48e941
mov dword [ebp - 8], 1
jmp 0x48e948
mov dword [ebp - 8], 3
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00451d4e
mov esp, ebp
pop ebp
ret
Function at 0x48eda0
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x48edd7
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 4
jge 0x48edf6
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [ebp - 8]
mov dword [ebp + edx*4 - 0x18], eax
jmp 0x48edce
mov dword [ebp - 0x1c], 0xe3779b90
mov dword [ebp - 8], 0
jmp 0x48ee0f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x48ee6b
mov ecx, dword [ebp - 4]
shl ecx, 4
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x1c]
xor ecx, edx
mov eax, dword [ebp - 4]
shr eax, 5
add eax, dword [ebp - 0xc]
xor ecx, eax
mov edx, dword [ebp - 0x20]
sub edx, ecx
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
shl eax, 4
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
xor eax, ecx
mov edx, dword [ebp - 0x20]
shr edx, 5
add edx, dword [ebp - 0x14]
xor eax, edx
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x61c88647
mov dword [ebp - 0x1c], edx
jmp 0x48ee06
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov esp, ebp
pop ebp
ret
Function at 0x48ee90
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x48eec7
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 4
jge 0x48eee6
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [ebp - 8]
mov dword [ebp + edx*4 - 0x18], eax
jmp 0x48eebe
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
jmp 0x48eeff
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jge 0x48ef57
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x61c88647
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x20]
shl edx, 4
add edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
xor edx, eax
mov ecx, dword [ebp - 0x20]
shr ecx, 5
add ecx, dword [ebp - 0x14]
xor edx, ecx
add edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
shl edx, 4
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
xor edx, eax
mov ecx, dword [ebp - 4]
shr ecx, 5
add ecx, dword [ebp - 0xc]
xor edx, ecx
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], edx
jmp 0x48eef6
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov esp, ebp
pop ebp
ret

Function at 0x48fe20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0x5c
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00452150
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x58], 0
pop ebp
ret
Function at 0x492860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b194
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4c1600]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], 0
lea ecx, [ebp - 0x2c]
call fcn.004028c0
mov dword [ebp - 4], 1
mov byte [ebp - 0x2d], 0
push 0x208
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00452150
add esp, 0xc
push 1
movzx ecx, byte [ebp + 0xc]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffff7
add ecx, 0x23
push ecx
lea edx, [ebp - 0x23c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x492985
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x258]
call fcn.004028f0
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x264], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x264]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
call fcn.00402970
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x492943
push 0x4b0aec
lea ecx, [ebp - 0x2c]
call fcn.004029b0
jmp 0x492950
push 0x4b0b14
lea ecx, [ebp - 0x2c]
call fcn.004029b0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00491710
add esp, 4
movzx edx, al
test edx, edx
jne 0x492974
lea eax, [ebp - 0x2c]
push eax
call fcn.004923f0
add esp, 4
mov byte [ebp - 0x2d], al
jmp 0x492978
mov byte [ebp - 0x2d], 1
push 0x4b0b38
lea ecx, [ebp - 0x2c]
call fcn.004029b0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402930
mov edx, dword [ebp - 0x25c]
or edx, 1
mov dword [ebp - 0x25c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00402970
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00451d4e
mov esp, ebp
pop ebp
ret
Function at 0x4929d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b1c4
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4c1600]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 0x31], 0
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.00492860
add esp, 8
mov dword [ebp - 4], 0
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x30]
call fcn.00402b50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x492a72
push 1
lea ecx, [ebp - 0x50]
push ecx
call fcn.00492860
add esp, 8
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x50]
call fcn.00402b50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x50]
call fcn.00402970
cmp dword [ebp - 0x10], 0xffffffff
je 0x492aa6
push 0
lea edx, [ebp - 0x54]
push edx
push 0x10
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x492a9c
cmp dword [ebp - 0x54], 0x10
jne 0x492a9c
mov byte [ebp - 0x31], 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x31]
mov byte [ebp - 0x55], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402970
mov al, byte [ebp - 0x55]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00451d4e
mov esp, ebp
pop ebp
ret 4
Function at 0x492ae0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b1f1
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4c1600]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov byte [ebp - 0x31], 0
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.00492860
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xffffffff
push 0
push 0
push 3
push 0
push 1
push closesocket
lea ecx, [ebp - 0x30]
call fcn.00402b50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x492be0
push 1
lea ecx, [ebp - 0x50]
push ecx
call fcn.00492860
add esp, 8
lea edx, [ebp - 0x30]
push edx
call fcn.0048e660
add esp, 4
movzx eax, al
test eax, eax
jne 0x492bb7
lea ecx, [ebp - 0x50]
push ecx
call fcn.0048e660
add esp, 4
movzx edx, al
test edx, edx
je 0x492bb7
push 0
lea ecx, [ebp - 0x30]
call fcn.00402b50
push eax
lea ecx, [ebp - 0x50]
call fcn.00402b50
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x492bb7
lea ecx, [ebp - 0x50]
call fcn.00402b50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 3
push 0
push 1
push closesocket
lea ecx, [ebp - 0x50]
call fcn.00402b50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x50]
call fcn.00402970
cmp dword [ebp - 0x10], 0xffffffff
je 0x492c2d
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x10
jb 0x492c23
push 0
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492c23
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x54]
jne 0x492c23
mov byte [ebp - 0x31], 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [ebp - 0x31]
mov byte [ebp - 0x59], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402970
mov al, byte [ebp - 0x59]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00451d4e
mov esp, ebp
pop ebp
ret 4
Function at 0x493420
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x4c1600]
xor eax, ebp
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x108]
push ecx
push 0x40
lea edx, [ebp - 0x150]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0x18]
cmp dword [ebp - 0x108], 0x40
jne 0x493479
movzx edx, word [ebp - 0x150]
cmp edx, 0x5a4d
je 0x493480
xor eax, eax
jmp 0x4935ab
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x114]
mov dword [ebp - 4], eax
mov dword [ebp - 0x108], 0
lea ecx, [ebp - 0x108]
push ecx
push 0xf8
lea edx, [ebp - 0x100]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0x18]
cmp dword [ebp - 0x108], 0xf8
jne 0x4934e9
cmp dword [ebp - 0x100], 0x4550
jne 0x4934e9
movzx edx, word [ebp - 0xfc]
cmp edx, 0x14c
jne 0x4934e9
movzx eax, word [ebp - 0xe8]
cmp eax, 0x10b
je 0x4934f0
xor eax, eax
jmp 0x4935ab
mov ecx, dword [ebp - 4]
add ecx, 0xf8
mov dword [ebp - 4], ecx
mov dword [ebp - 0x104], 0x20000020
mov dword [ebp - 0x154], 0
jmp 0x493521
mov edx, dword [ebp - 0x154]
add edx, 1
mov dword [ebp - 0x154], edx
movzx eax, word [ebp - 0xfa]
cmp dword [ebp - 0x154], eax
jae 0x4935a9
mov dword [ebp - 0x108], 0
lea ecx, [ebp - 0x108]
push ecx
push 0x28
lea edx, [ebp - 0x17c]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0x18]
cmp dword [ebp - 0x108], 0x28
jne 0x493567
cmp dword [ebp - 0x170], 0
jne 0x49356b
xor eax, eax
jmp 0x4935ab
mov edx, dword [ebp - 0x158]
and edx, 0x20000020
cmp edx, 0x20000020
jne 0x4935a4
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x170]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
add eax, dword [ebp - 0x16c]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
jmp 0x4935ab
jmp 0x493512
xor eax, eax
mov ecx, dword [ebp - 0x10c]
xor ecx, ebp
call fcn.00451d4e
mov esp, ebp
pop ebp
ret