joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bcf40
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
push 0x74
push 1
call fcn.004be890
add esp, 8
mov esi, eax
cmp esi, edi
je 0x4bcfa0
push esi
call fcn.004c0da0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esi + 0x48], eax
push edx
mov eax, dword [esp + 0x20]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
mov edx, dword [esp + 0x14]
push esi
mov dword [esi + 4], 0xffffffff
push 0x4bcfc0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4bcfb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.004be0e0
add esp, 4
test edi, edi
je 0x4bcfb6
push edi
call fcn.004c1080
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x4bed20
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.004bede0
cmp dword [0x4e9100], 1
mov esi, dword [esp + 0x10]
jne 0x4bed43
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4e90fc], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4e90f8], bl
jne 0x4bed9d
cmp dword [0x5248a4], 0
je 0x4bed8b
mov edi, dword [0x5248a0]
sub edi, 4
cmp edi, dword [0x5248a4]
jb 0x4bed8b
mov eax, dword [edi]
test eax, eax
je 0x4bed80
call eax
sub edi, 4
cmp edi, dword [0x5248a4]
jae 0x4bed78
push 0x4df318
push 0x4df30c
call fcn.004bee00
add esp, 8
push 0x4df320
push 0x4df31c
call fcn.004bee00
add esp, 8
test ebx, ebx
je 0x4bedbc
call fcn.004bedf0
pop edi
pop esi
pop ebx
ret
mov dword [0x4e9100], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4bf9c0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x4bf9df
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4bf9f2
push eax
call fcn.004c1080
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4bfa00
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x4bfa1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4bfa2d
push eax
call fcn.004c1080
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4c0dc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x4e9310]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4c0e23
push 0x74
push 1
call fcn.004be890
add esp, 8
mov edi, eax
test edi, edi
je 0x4c0e19
push edi
mov eax, dword [0x4e9310]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4c0e19
push edi
call fcn.004c0da0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x4c0e23
push 0x10
call fcn.004c0250
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4c0e30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4e9310], 0xffffffff
push esi
je 0x4c0ecf
mov esi, dword [esp + 8]
test esi, esi
jne 0x4c0e58
mov eax, dword [0x4e9310]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4c0ec1
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4c0e68
push eax
call fcn.004be0e0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4c0e78
push eax
call fcn.004be0e0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4c0e88
push eax
call fcn.004be0e0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4c0e98
push eax
call fcn.004be0e0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4c0ea8
push eax
call fcn.004be0e0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4c0eb8
push eax
call fcn.004be0e0
add esp, 4
push esi
call fcn.004be0e0
add esp, 4
push 0
mov eax, dword [0x4e9310]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x4c2fc0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x4c2fe8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x524790
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x4c3029
push 2
push 0
push edx
call fcn.004c11a0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x4c30c5
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4c30fe
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4c308c
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x4c307a
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x4c3061
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c30f4
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x4c304c
jmp 0x4c30fe
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c30f4
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x4c30fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x4c31aa
cmp dword [esp + 0x10], 0
je 0x4c315a
cmp dword [esp + 0x10], 5
jne 0x4c313d
call fcn.004c1100
mov dword [eax], 9
call fcn.004c1110
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004c1080
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x4c3184
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x4c3184
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.004c1100
mov dword [eax], 0x1c
call fcn.004c1110
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x4ccfa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ccfc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c1080
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x4ccfec
test byte [esp + 8], 2
je 0x4ccfec
call fcn.004c1100
mov dword [eax], 0xd
call fcn.004c1110
mov dword [eax], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4cf590
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x4eb204], ebx
jne 0x4cf5df
call esi
cmp eax, ebx
mov edi, eax
je 0x4cf5bd
mov dword [0x4eb204], 1
jmp 0x4cf5df
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4cf5d5
mov dword [0x4eb204], 2
jmp 0x4cf5df
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4eb204], 1
jne 0x4cf68e
test edi, edi
jne 0x4cf602
call esi
mov edi, eax
test edi, edi
jne 0x4cf602
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4cf61c
add esi, 2
cmp word [esi], 0
jne 0x4cf60a
add esi, 2
cmp word [esi], 0
jne 0x4cf60a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4cf67d
push ebp
call fcn.004be150
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4cf67d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4cf66c
push ebx
call fcn.004be0e0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4eb204], 2
jne 0x4cf712
test ebx, ebx
jne 0x4cf6b1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x4cf6b1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x4cf6c6
inc ebp
cmp byte [ebp], 0
jne 0x4cf6b8
inc ebp
cmp byte [ebp], 0
jne 0x4cf6b8
sub ebp, ebx
inc ebp
push ebp
call fcn.004be150
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4cf6eb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4cf760
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x4eb208
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x4cf787
add eax, 8
inc ecx
cmp eax, 0x4eb298
jb 0x4cf778
cmp dword [ecx*8 + 0x4eb208], edx
lea ebx, [ecx*8]
jne 0x4cf94b
cmp dword [0x4e92fc], 1
je 0x4cf907
cmp dword [0x4e92fc], 0
jne 0x4cf7be
cmp dword [0x4e9300], 1
je 0x4cf907
cmp edx, 0xfc
je 0x4cf94b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4cf7fb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4cf83f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4d8474
push ebp
call fcn.004bd6d0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4d8f64
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x4eb20c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.004d23d0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x524790], 0
je 0x4cf91d
mov eax, dword [0x524790]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x4cf927
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x4eb20c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x4d1840
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x4eb3cc]
push esi
test eax, eax
push edi
push ebp
jne 0x4d1888
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 1
push 0
call esi
test eax, eax
je 0x4d1868
mov eax, 1
jmp 0x4d188e
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4d1881
mov eax, 2
jmp 0x4d188e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [0x4eb3cc], eax
cmp eax, 1
jne 0x4d18b3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x4eb3cc], eax
cmp eax, 2
jne 0x4d1941
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x4d18cf
mov edi, dword [0x4e9850]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebp, eax
test ebp, ebp
jne 0x4d18f0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push ebp
call fcn.004be150
add esp, 4
mov esi, eax
test esi, esi
jne 0x4d1906
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4d1936
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4d1946
push 0
push 0
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jne 0x4d195e
push esi
call fcn.004be0e0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x4d1936
push esi
call fcn.004be0e0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d1970
Capabilities:
Get geographical location

Disassembly:
push ebx
mov eax, dword [0x4eb3d0]
push esi
test eax, eax
push edi
push ebp
jne 0x4d19b8
push 0
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 1
push 0
call esi
test eax, eax
je 0x4d1998
mov eax, 2
jmp 0x4d19be
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d19b1
mov eax, 1
jmp 0x4d19be
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [0x4eb3d0], eax
cmp eax, 2
jne 0x4d19e3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
call esi
pop ebp
pop edi
pop esi
pop ebx
ret
mov dword [0x4eb3d0], eax
cmp eax, 1
jne 0x4d1a7f
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x4d19ff
mov edi, dword [0x4e9850]
mov eax, dword [esp + 0x18]
push 0
mov ebx, dword [esp + 0x18]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebp, eax
test ebp, ebp
jne 0x4d1a20
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [ebp*2]
push eax
call fcn.004be150
add esp, 4
mov esi, eax
test esi, esi
jne 0x4d1a3d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x18]
push ebp
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d1a74
mov eax, dword [esp + 0x20]
push 0
push 0
test eax, eax
jne 0x4d1a84
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x4d1a9f
push esi
call fcn.004be0e0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
ret
push eax
mov eax, dword [esp + 0x28]
push eax
push 0xffffffffffffffff
push esi
push 0x220
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4d1a74
push esi
call fcn.004be0e0
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d2120
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1008
call fcn.004bde70
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1018]
push ebp
push 1
push ebx
push esi
call fcn.004c11a0
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x4d2242
push 2
push ebx
push esi
call fcn.004c11a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4d2242
mov ecx, dword [esp + 0x1020]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x4d21e3
lea edi, [esp + 0x18]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.004d31a0
mov dword [esp + 0x1c], eax
add esp, 8
mov eax, 0x1000
cmp ebp, eax
jge 0x4d219e
mov eax, ebp
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.004c2fc0
add esp, 0xc
mov edi, eax
cmp edi, 0xffffffff
je 0x4d21bc
sub ebp, edi
test ebp, ebp
jg 0x4d2193
jmp 0x4d21d3
call fcn.004c1110
cmp dword [eax], 5
jne 0x4d21d1
call fcn.004c1100
mov dword [eax], 0xd
mov ebx, edi
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004d31a0
add esp, 8
jmp 0x4d2225
jge 0x4d2225
push 0
push ecx
push esi
call fcn.004c11a0
add esp, 0xc
push esi
call fcn.004cfcf0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x4d2225
call fcn.004c1100
mov dword [eax], 0xd
call fcn.004c1110
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.004c11a0
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1008
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1008
ret
Function at 0x258159cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x258159de
pop dword [ebp - 0x50]
mov eax, 0x258159de
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xab573dd5
add dword [ebp - 0x60], 0xa2fb0776
mov dword [ebp - 0x5c], 0x5ff36eb9
sub dword [ebp - 0x5c], 0x2dc02274
mov dword [ebp - 0x58], 0xb82f4872
add dword [ebp - 0x58], 0x941cfbbc
mov dword [ebp - 0x54], 0xe7cf356f
add dword [ebp - 0x54], 0x1830ca91
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x2851eab1
sub dword [ebp - 0x60], 0xb3df815b
mov dword [ebp - 0x5c], 0x444e67af
add dword [ebp - 0x5c], 0xfd1df9c6
mov dword [ebp - 0x58], 0x9a4c86c1
sub dword [ebp - 0x58], 0x36dd1a55
mov dword [ebp - 0x54], 0xf0bb68cb
sub dword [ebp - 0x54], 0xf0bb68cb
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x35d21d3f
sub eax, 0x10504cbf
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x39016
push 0
call eax
mov ecx, 0x39ad
mov edx, eax
mov ebx, 0x29b343c0
sub ebx, 0x430adc0
add ebx, dword [ebp - 0x50]
mov edi, 0x48af9fb
add edi, 0xebaff884
add dword [ebp - 0x20], ebx
mov esi, dword [ebx]
add dword [ebp - 0x44], 0x67211d33
sub esi, edi
mov dword [ebp - 0x4c], 0x43aaa164
mov dword [edx], esi
xor dword [ebp - 0x1c], 0x76604d7
add edx, 0x6d0f04
add edx, 0xff92f100
add ebx, 4
loop 0x25815af0
add eax, 0xd987
mov ebx, eax
add eax, 0x7868dab3
add eax, 0x87972552
mov ecx, 0x25800000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x11664
Capabilities:
Inspect load icon resource

Disassembly:
cmp byte [0x2b045], 0
je 0x116aa
jmp 0x11698
cmp byte [0x2b5ad], 0
jne 0x11698
push 0
call sub.user32.dll_LoadIconA
mov ecx, 0x2d7a0
mov dl, 1
xor eax, eax
call fcn.00011354
test al, al
je 0x116aa
push 0xa
call sub.user32.dll_LoadIconA
mov ecx, 0x2d7a0
mov dl, 1
xor eax, eax
call fcn.00011354
test al, al
jne 0x1166f
ret

Function at 0x124bc
Capabilities:
Inspect load icon resource

Disassembly:
cmp byte [0x2b045], 0
je 0x12502
jmp 0x124f0
cmp byte [0x2b5ad], 0
jne 0x124f0
push 0
call sub.user32.dll_LoadIconA
mov ecx, 0x2d7b8
mov dl, 1
xor eax, eax
call fcn.00011354
test al, al
je 0x12502
push 0xa
call sub.user32.dll_LoadIconA
mov ecx, 0x2d7b8
mov dl, 1
xor eax, eax
call fcn.00011354
test al, al
jne 0x124c7
cmp dword [0x2d7b4], 0
jne 0x12523
push 4
push 0x1000
push 0x10000
push 0
call sub.user32.dll_KillTimer
mov dword [0x2d7b4], eax
cmp dword [0x2d7b4], 0
setne al
ret

Function at 0x17abc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x17b0e
test eax, edx
je 0x17b11
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x17ad1
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x17af7
add ecx, 4
js 0x17ae7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x17af4
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x17b1d
test edx, edx
jne 0x17ac4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x1ee74
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1ef33
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_ReadFile
xor eax, eax
push ebp
push 0x1ef11
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
push 0
push 0x400
push ebx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x2a670]
mov eax, dword [eax]
call eax
movzx edx, word [ebx]
mov cx, 0x100
call fcn.0001e6c4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00015184
mov eax, dword [ebp - 0x18]
mov ecx, 0x7fffffff
mov edx, 1
call fcn.00015270
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00014bc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1ef18
lea eax, [ebp - 0x10]
call fcn.0001e9d0
ret