joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d6c0
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a73a4
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x3c]
mov dword [esi], 0x4a9ec0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x4b5c4d
mov dword [ebp - 0x814], esi
mov byte [ecx], 0
call fcn.004015b6
lea ecx, [esi + 0x54]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
mov dword [ecx + 0x10], 0
push 0x4b5c4d
mov byte [ecx], 0
call fcn.004015b6
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 6
mov dword [ecx + 0x10], 0
push str.h_lvse
mov byte [ecx], 0
call fcn.004015b6
mov byte [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov byte [esi + 0x98], 0
mov byte [esi + 0x99], 0
mov byte [esi + 0x9a], 0
mov byte [esi + 0x9b], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xc8], 0xf
mov dword [esi + 0xc4], 0
mov byte [esi + 0xb4], 0
mov dword [esi + 0xe0], 0xf
mov dword [esi + 0xdc], 0
mov byte [esi + 0xcc], 0
mov dword [esi + 0xf8], 0xf
mov dword [esi + 0xf4], 0
mov byte [esi + 0xe4], 0
mov dword [esi + 0x110], 0xf
mov dword [esi + 0x10c], 0
mov byte [esi + 0xfc], 0
mov dword [esi + 0x128], 0xf
mov dword [esi + 0x124], 0
mov byte [esi + 0x114], 0
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x12c]
call fcn.0046d420
lea ecx, [esi + 0x228]
mov byte [ebp - 4], 0xb
call fcn.0046d960
lea eax, [esi + 0x324]
mov byte [ebp - 4], 0xc
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x810]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x810], 0
jne 0x46d91d
xor eax, eax
jmp 0x46d92f
lea eax, [ebp - 0x810]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46d926
sub eax, edx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [esi + 0xb4]
call fcn.004015b6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
Function at 0x46e470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push ebx
xor ebx, ebx
push esi
mov dword [eax], ebx
cmp dword [ebp + 0x14], ebx
jne 0x46e482
int3
cmp byte [ebp + 0x10], bl
je 0x46e490
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], ebx
ja 0x46e490
int3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x46e49b
mov eax, dword [eax]
push 0x4b9c70
push eax
call fcn.0047d398
mov esi, eax
add esp, 8
test esi, esi
je 0x46e539
push edi
push 2
push 0
push esi
call fcn.0047e5a9
push esi
call fcn.0047e4ae
push 0
push 0
push esi
mov edi, eax
call fcn.0047e5a9
add esp, 0x1c
test edi, edi
jle 0x46e52f
mov dl, byte [ebp + 0x10]
test dl, dl
je 0x46e4e8
mov ecx, dword [ebp + 0x1c]
lea eax, [edi + 0x18]
mov dword [ecx], eax
jmp 0x46e4ef
mov eax, dword [ebp + 0x1c]
mov ecx, eax
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
cmp eax, dword [ecx]
jb 0x46e52f
test dl, dl
je 0x46e51b
mov ebx, dword [ebp + 0x14]
push 0x18
push ebx
push edi
push dword [ebp + 0xc]
call fcn.0046e540
push esi
push edi
lea eax, [ebx + 0x18]
push 1
push eax
call fcn.0047e04c
add esp, 0x20
jmp 0x46e52a
push esi
push edi
push 1
push dword [ebp + 0x14]
call fcn.0047e04c
add esp, 0x10
mov ebx, 1
push esi
call fcn.0047c8d3
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x46e810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test edi, edi
jne 0x46e822
int3
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
mov edx, esi
mov ecx, dword [eax]
sub edx, ecx
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x46e842
int3
xor ebx, ebx
cmp ecx, esi
je 0x46e852
add ebx, dword [ecx + 0x10]
add ecx, 0x18
cmp ecx, esi
jne 0x46e848
test bl, 7
je 0x46e861
shr ebx, 3
lea ebx, [ebx*8 + 8]
push ebx
call fcn.0047b664
push ebx
mov esi, eax
push 0
push esi
call fcn.00482250
mov ecx, dword [ebp - 4]
add esp, 0x10
push ebx
push esi
push dword [ebp + 8]
call fcn.0046e970
push edi
push ebx
push 1
push esi
call fcn.0047d221
push edi
call fcn.0047fb56
push esi
call fcn.0047b62c
add esp, 0x18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46e8b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a70b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x46e94f
cmp dword [ebx + 0x68], 0x10
lea edi, [ebx + 0x54]
jb 0x46e8f4
mov ecx, dword [edi]
jmp 0x46e8f6
mov ecx, edi
push eax
push dword [ebx + 0x64]
push 1
push ecx
call fcn.0047d221
push dword [ebp - 0x2c]
mov esi, eax
call fcn.0047fb56
add esp, 0x14
cmp esi, 8
je 0x46e94f
push 0x4b5c4d
lea ecx, [ebp - 0x28]
call fcn.004014ed
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push edi
lea eax, [ebx + 0x3c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
push 6
call fcn.00473530
cmp dword [ebp - 0x14], 0x10
jb 0x46e94f
push dword [ebp - 0x28]
call fcn.0047b56e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 4
Function at 0x46f560
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x288
mov dword [ebp - 0x38], eax
call fcn.0047b664
add esp, 4
mov dword [ebp - 0x34], 0x288
mov edi, eax
lea eax, [ebp - 0x34]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x46f5c0
push edi
call fcn.0047b62c
push dword [ebp - 0x34]
call fcn.0047b664
add esp, 8
mov edi, eax
lea eax, [ebp - 0x34]
push eax
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x46f673
push 8
lea eax, [edi + 0x194]
mov ecx, ebx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00470430
mov ebx, eax
cmp esi, ebx
je 0x46f60b
cmp dword [esi + 0x14], 0x10
jb 0x46f5f2
push dword [esi]
call fcn.0047b56e
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push ebx
mov byte [esi], 0
call fcn.0040cb72
cmp dword [ebp - 0x1c], 0x10
jb 0x46f61c
push dword [ebp - 0x30]
call fcn.0047b56e
add esp, 4
push 0xa
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], 0
push eax
lea eax, [edi + 0x1b0]
mov word [ebp - 7], 0
xorps xmm0, xmm0
mov byte [ebp - 5], 0
push eax
movdqu xmmword [ebp - 0x17], xmm0
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call fcn.00482417
mov edx, eax
add esp, 0xc
cmp byte [edx], 0
jne 0x46f659
xor ecx, ecx
jmp 0x46f669
mov ecx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f660
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x38]
push edx
call fcn.004015b6
test edi, edi
je 0x46f680
push edi
call fcn.0047b62c
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 8
Function at 0x46fa10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a76cb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x238], eax
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x46fa59
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [ebp - 0x113]
push 0x103
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00482250
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x114], 0
jne 0x46fa9d
xor al, al
jmp 0x46fc49
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
lea edx, [ecx + 1]
mov byte [ebp - 0x230], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46fac1
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004015b6
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, eax
cmp byte [edx], 0
jne 0x46fafc
xor ecx, ecx
jmp 0x46fb0a
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46fb01
sub ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.004015b6
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x23c], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x46fc2e
push esi
call fcn.0047a2b1
add esp, 4
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
mov ebx, eax
mov dword [ebp - 0x244], ebx
cmovae ecx, dword [ebp - 0x230]
push ebx
push esi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x46fc25
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x234]
push eax
push 0x4bf28c
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x46fc25
mov eax, dword [ebp - 0x234]
push 0x103
push 0
movzx ecx, word [eax + 0xa]
movzx ebx, word [eax + 8]
movzx edi, word [eax + 0xe]
movzx esi, word [eax + 0xc]
lea eax, [ebp - 0x217]
push eax
mov dword [ebp - 0x240], ecx
mov byte [ebp - 0x218], 0
call fcn.00482250
mov eax, dword [ebp - 0x240]
push esi
push edi
push ebx
movzx eax, ax
push eax
push str._d._d._d._d
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00481546
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
add esp, 0x28
push eax
call fcn.00415946
push dword [ebp - 0x244]
call fcn.0047b547
add esp, 4
mov bl, 1
jmp 0x46fc30
push ebx
call fcn.0047b547
add esp, 4
xor bl, bl
cmp dword [ebp - 0x21c], 0x10
jb 0x46fc47
push dword [ebp - 0x230]
call fcn.0047b56e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
Function at 0x471160
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov byte [ebp - 0x805], 0
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x81c], ecx
lea esi, [eax + 0xb4]
mov ecx, dword [ebp + 0x18]
push edi
or edi, 0xffffffff
mov dword [ebp - 0x814], ecx
cmp dword [esi + 0x14], 0x10
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x820], ecx
mov dword [ebp - 0x80c], edi
jb 0x4711c0
mov esi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call ebx
push eax
push esi
push str._s_send__x.gz
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call fcn.00481546
add esp, 0x14
test eax, eax
js 0x4712ca
lea eax, [ebp - 0x804]
push 0x4b86c0
push eax
call fcn.00475099
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4712c4
push dword [ebp + 0x10]
push dword [ebp - 0x81c]
push ebx
call fcn.00474c86
push ebx
mov esi, eax
call fcn.00474f97
add esp, 0x10
test esi, esi
je 0x4712aa
push dword [ebp - 0x814]
mov ebx, dword [ebp - 0x818]
lea eax, [ebp - 0x80c]
push dword [ebp + 0x14]
push eax
push dword [ebp - 0x820]
lea eax, [ebp - 0x804]
push eax
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [ebx], ax
jne 0x47126f
xor ecx, ecx
jmp 0x471283
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471274
sub ecx, esi
sar ecx, 1
push ecx
push ebx
mov ecx, edx
call fcn.00403190
mov eax, dword [ebp - 0x810]
add eax, 0x12c
push eax
call fcn.00473860
mov edi, dword [ebp - 0x80c]
mov byte [ebp - 0x805], 1
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp - 0x805], 0
jne 0x47139c
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, dword [ebp - 0x810]
cmp dword [eax + 0xdc], 0
je 0x47139c
cmp dword [eax + 0xe0], 0x10
lea esi, [eax + 0xcc]
jb 0x4712ee
mov esi, dword [esi]
call ebx
push eax
push esi
push str._s_send__x.gz
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call fcn.00481546
add esp, 0x14
test eax, eax
js 0x47139c
lea eax, [ebp - 0x804]
push 0x4b86c0
push eax
call fcn.00475099
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x47139c
push dword [ebp + 0x10]
push dword [ebp - 0x81c]
push ebx
call fcn.00474c86
push ebx
mov esi, eax
call fcn.00474f97
add esp, 0x10
test esi, esi
je 0x47138f
push dword [ebp - 0x814]
lea eax, [ebp - 0x80c]
push dword [ebp + 0x14]
push eax
push dword [ebp - 0x820]
lea eax, [ebp - 0x804]
push eax
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x818]
call fcn.00403059
mov eax, dword [ebp - 0x810]
add eax, 0x12c
push eax
call fcn.00473860
mov edi, dword [ebp - 0x80c]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4713c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7906
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x850], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x858], eax
mov eax, dword [ebp + 0xc]
push 0x4b9c70
push eax
mov dword [ebp - 0x854], ecx
call fcn.0047d398
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x471620
push 2
push 0
push ebx
call fcn.0047e5a9
push ebx
call fcn.0047e4ae
push 0
push 0
push ebx
mov edi, eax
call fcn.0047e5a9
add esp, 0x1c
lea esi, [ebp - 0x81c]
cmp edi, 0x800
jb 0x47145c
lea eax, [edi + 1]
push eax
call fcn.0047a2b1
add esp, 4
mov esi, eax
push ebx
push edi
push 1
push esi
call fcn.0047e04c
add esp, 0x10
test eax, eax
je 0x4715fd
cmp edi, 8
jle 0x4715fd
push 8
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], 0
xorps xmm0, xmm0
push esi
push eax
movq qword [ebp - 0x1b], xmm0
call fcn.00482480
lea ecx, [ebp - 0x1c]
add esp, 0xc
lea edx, [ecx + 1]
jmp 0x4714a0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4714a0
sub ecx, edx
je 0x4714d4
push dword [ebp - 0x854]
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [edi - 8]
push eax
lea eax, [esi + 8]
push eax
push dword [ebp - 0x858]
call fcn.00471160
mov edi, eax
jmp 0x4714d7
or edi, 0xffffffff
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x1c]
push eax
call fcn.00471c90
test al, al
jne 0x471600
push 0
push 0x4b5c4d
lea ecx, [ebp - 0x834]
mov dword [ebp - 0x820], 0xf
mov dword [ebp - 0x824], 0
mov byte [ebp - 0x834], al
call fcn.004015b6
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x838], 0xf
mov dword [ebp - 0x83c], 0
mov byte [ebp - 0x84c], 0
jne 0x471546
xor ecx, ecx
jmp 0x471559
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x471550
sub ecx, edx
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x84c]
call fcn.004015b6
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x84c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x834]
push eax
push eax
push 5
call fcn.00473530
cmp dword [ebp - 0x838], 0x10
jb 0x4715a7
push dword [ebp - 0x84c]
call fcn.0047b56e
add esp, 4
cmp dword [ebp - 0x820], 0x10
mov dword [ebp - 0x838], 0xf
mov dword [ebp - 0x83c], 0
mov byte [ebp - 0x84c], 0
mov dword [ebp - 4], 0xffffffff
jb 0x4715e0
push dword [ebp - 0x834]
call fcn.0047b56e
add esp, 4
mov dword [ebp - 0x820], 0xf
mov dword [ebp - 0x824], 0
mov byte [ebp - 0x834], 0
jmp 0x471600
or edi, 0xffffffff
push ebx
call fcn.0047c8d3
lea eax, [ebp - 0x81c]
add esp, 4
cmp esi, eax
je 0x47161c
push esi
call fcn.0047b547
add esp, 4
mov eax, edi
jmp 0x471623
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047aabf
mov esp, ebp
pop ebp
ret 0xc
Function at 0x473470
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4734bf
mov edx, dword [ebp + 8]
cmp edx, 1
jne 0x47349c
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [section..data]
call fcn.00471160
pop ebp
ret 0x10
test edx, edx
jne 0x4734b8
push eax
push edx
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [0x4d3004]
call fcn.00471160
pop ebp
ret 0x10
or eax, 0xffffffff
pop ebp
ret 0x10
cmp byte [ecx + 0x9a], 0
je 0x4734d5
mov dword [ebp + 0x14], 0
pop ebp
jmp fcn.00471ff0
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [esi + 0x10]
push eax
call fcn.0047b664
mov ecx, dword [ebp + 8]
mov edi, eax
push esi
push dword [ebp + 0xc]
mov dword [edi], ecx
lea ecx, [edi + 0xc]
push ecx
mov dword [edi + 4], 0
mov dword [edi + 8], esi
call fcn.00481c00
push 0
push 0
push edi
push 0x471fc0
push 0
push 0
call fcn.0047d3f2
add esp, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x474270
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
mov dword [ebp - 8], eax
movzx eax, byte [ebx + str.91__]
mov esi, ebx
dec eax
shr esi, 3
mov edx, eax
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4742af
dec edx
or edx, 0xfffffff8
inc edx
mov dword [ebp - 0x14], edx
mov ecx, 7
sub ecx, edx
mov dl, 1
shl dl, cl
mov cl, 7
sub cl, byte [ebp - 0x14]
mov byte [ebp - 0xd], dl
cdq
and edx, 7
add eax, edx
mov dl, byte [ebp - 0xd]
sar eax, 3
and dl, byte [ebp + eax - 0xc]
mov al, bl
shr dl, cl
and al, 7
mov cl, 7
sub cl, al
mov eax, ebx
and eax, 7
shl dl, cl
mov ecx, 7
inc ebx
sub ecx, eax
mov al, 1
shl al, cl
not al
and al, byte [esi + edi]
or dl, al
mov byte [esi + edi], dl
cmp ebx, 0x38
jb 0x474293
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047aabf
mov esp, ebp
pop ebp
ret

Function at 0x474320
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
movzx eax, byte [ebx + 0x4d3048]
dec eax
mov edx, eax
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x474348
dec edx
or edx, 0xfffffff8
inc edx
mov dword [ebp - 8], edx
mov ecx, 7
sub ecx, edx
mov byte [ebp - 1], 1
mov ch, byte [ebp - 1]
cdq
shl ch, cl
and edx, 7
add eax, edx
mov cl, 7
sub cl, byte [ebp - 8]
mov edx, ebx
sar eax, 3
shr edx, 3
and ch, byte [eax + edi]
mov al, bl
and al, 7
shr ch, cl
mov cl, 7
sub cl, al
mov eax, ebx
shl ch, cl
and eax, 7
mov byte [ebp - 1], ch
inc ebx
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
not al
and al, byte [edx + esi]
or al, byte [ebp - 1]
mov byte [edx + esi], al
cmp ebx, 0x30
jb 0x474331
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x474510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
sub eax, 0
je 0x47452a
dec eax
jne 0x474533
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00474540
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00474610
pop ebp
ret
Function at 0x474610
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x78]
call fcn.00482b90
mov edi, eax
add esp, 0xc
mov esi, edi
test edi, edi
jle 0x4746b3
nop
cmp esi, 8
jge 0x474668
mov eax, 8
sub eax, edi
push eax
lea eax, [ebp - 0xc]
add eax, edi
push eax
push dword [ebx + 0x78]
call fcn.00482b90
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x474668
add esi, edi
jmp 0x474640
test esi, esi
jle 0x4746ab
mov ecx, 8
sub ecx, esi
test ecx, ecx
jle 0x474690
mov eax, 8
sub eax, ecx
mov edi, edi
cmp eax, 8
jae 0x4746c4
mov byte [ebp + eax - 0xc], 0
dec ecx
inc eax
test ecx, ecx
jg 0x474680
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.004746d0
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x7c]
call fcn.0047fc93
add esp, 0x14
test edi, edi
jg 0x474626
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047aabf
mov esp, ebp
pop ebp
ret
call fcn.0047c0a0
int3

Function at 0x474810
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
xor edi, edi
mov dword [ebp - 8], eax
mov ebx, 8
xor edx, edx
mov eax, edi
div ebx
mov dword [ebp - 0xc], edx
lea esi, [eax + ecx]
movzx eax, byte [edi + 0x4d3150]
dec eax
mov ebx, eax
and ebx, reloc.OLEAUT32.dll_VariantInit
jns 0x47484b
dec ebx
or ebx, 0xfffffff8
inc ebx
mov ecx, 7
mov dl, 1
sub ecx, ebx
inc edi
shl dl, cl
mov cl, 7
mov byte [ebp - 1], dl
sub cl, bl
cdq
mov ebx, 8
and edx, 7
add eax, edx
mov dl, byte [ebp - 1]
sar eax, 3
and dl, byte [ebp + eax - 8]
mov eax, dword [ebp - 0xc]
shr dl, cl
mov cl, 7
sub cl, al
shl dl, cl
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
mov ecx, dword [ebp + 8]
not al
and al, byte [esi]
or dl, al
mov byte [esi], dl
cmp edi, 0x30
jl 0x474828
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4748a0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4d3a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
xor edi, edi
mov dword [ebp - 0xc], eax
mov ebx, 8
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], eax
jmp 0x4748d0
xor edx, edx
mov eax, edi
div ebx
mov dword [ebp - 0x14], edx
lea esi, [eax + ecx]
movzx eax, byte [edi + 0x4d30d0]
dec eax
mov ebx, eax
and ebx, reloc.OLEAUT32.dll_VariantInit
jns 0x4748f3
dec ebx
or ebx, 0xfffffff8
inc ebx
mov ecx, 7
mov dl, 1
sub ecx, ebx
inc edi
shl dl, cl
mov cl, 7
mov byte [ebp - 0xd], dl
sub cl, bl
cdq
mov ebx, 8
and edx, 7
add eax, edx
mov dl, byte [ebp - 0xd]
sar eax, 3
and dl, byte [ebp + eax - 0xc]
mov eax, dword [ebp - 0x14]
shr dl, cl
mov cl, 7
sub cl, al
shl dl, cl
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
mov ecx, dword [ebp - 0x18]
not al
and al, byte [esi]
or dl, al
mov byte [esi], dl
cmp edi, 0x40
jl 0x4748d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047aabf
mov esp, ebp
pop ebp
ret