joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x10928f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x10af54c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x10af54c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x10ae378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10928fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x407710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
lea eax, [ebp - 8]
mov byte [ebp - 1], 0
push eax
mov esi, ecx
mov dword [ebp - 8], 0
push 1
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
add dword [esi + 8], eax
mov al, byte [ebp - 1]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
mov esi, ecx
mov dword [ebp - 4], 0
push 2
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov ax, word [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
mov esi, ecx
mov dword [ebp - 4], 0
push 4
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4077d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp - 0xc]
push 8
push eax
xorps xmm0, xmm0
push dword [esi + 4]
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40784a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40784a
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4078a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41abe8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x426008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov byte [ebp - 0xd], 0
call fcn.00406990
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov ebx, eax
call fcn.00409c3a
add esp, 8
cmp ebx, 0xffffffff
jne 0x40798d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jb 0x407904
cmp esi, 3
jbe 0x407979
push 0x98
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x4b
call fcn.00409fe4
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push str.DoesFolderExist_INVALID_FILE_ATTRIBUTES_and_GetLastError_returned__I_for__s
inc ecx
mov dword [ebp - 0x1c], eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040f0b2
mov ecx, dword [ebp - 0x18]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
push edi
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], edx
push eax
push 0x5c
push str.OFileManager::doesFolderExist
push str.d:jenkinsworkspaceclient3.lib.platformlibplatformlib_srcofilemanager.cpp
push edx
call fcn.00408070
mov eax, dword [ebp - 0x1c]
add esp, 0x34
test eax, eax
je 0x407979
push 2
push eax
call fcn.00409c3a
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp - 0xd]
test bl, 0x10
mov ecx, 1
cmovne eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4079b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ac4a
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x426008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1a
mov dword [ebp - 0x21c], 0
mov esi, 0xc
call fcn.00409fe4
add esp, 4
mov dword [ebp - 0x224], eax
push 0xffffffffffffffff
push str.explorer.exe
push 0xd
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040f0b2
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x224]
call fcn.00407c30
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x407a4e
push 2
push eax
call fcn.00409c3a
add esp, 8
lea eax, [ebp - 0x218]
push eax
test esi, esi
je 0x407b09
push 0
push esi
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x407b3f
push 8
call fcn.00409e93
add esp, 4
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.00405a40
mov dword [ebp - 4], 0xffffffff
mov edi, eax
push 0xc
mov dword [ebp - 0x21c], 0
mov esi, 5
call fcn.00409fe4
add esp, 4
mov dword [ebp - 0x224], eax
push 0xffffffffffffffff
push str.Temp
push 6
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040f0b2
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0xa
push eax
mov ecx, edi
call fcn.00406660
lea ecx, [ebp - 0x224]
call fcn.00405b50
mov eax, edi
jmp 0x407b41
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x407b3f
push 8
call fcn.00409e93
add esp, 4
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0xb
push ecx
mov ecx, eax
call fcn.00405a40
jmp 0x407b41
xor eax, eax
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.00409891
mov esp, ebp
pop ebp
ret
Function at 0x407f50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x426008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, 0x80000000
je 0x407fd4
cmp esi, 0x80000005
je 0x407fd4
cmp esi, 0x80000001
je 0x407fdc
cmp esi, 0x80000002
je 0x407fd4
cmp esi, 0x80000004
je 0x407fd4
cmp esi, 0x80000003
je 0x407fd4
test esi, esi
je 0x407fbc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
push edi
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x40805b
mov dword [edi], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409891
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x80000001
jne 0x408059
mov esi, dword [edi + 4]
lea eax, [ebp - 0x104]
push 0x80
push eax
push str.Client_SID
mov dword [ebp - 0x108], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x408040
lea eax, [ebp - 0x108]
or esi, 0x20006
push eax
push esi
push 0
lea eax, [ebp - 0x104]
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x108]
mov dword [edi], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409891
mov esp, ebp
pop ebp
ret 4
mov eax, 0x80000001
mov dword [edi], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409891
mov esp, ebp
pop ebp
ret 4
mov dword [edi], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409891
mov esp, ebp
pop ebp
ret 4
Function at 0x408dd0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41adf0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x426008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x427808]
test esi, esi
je 0x408fa9
cmp dword [esi + 4], 0
mov edx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
je 0x408ea8
cmp byte [esi + 8], 0
jne 0x408e70
mov byte [esi + 8], 1
mov edi, 0x64
xor bl, bl
lea eax, [edi - 1]
mov dword [ebp - 0x14], eax
cmp byte [esi + 9], bl
je 0x408e56
mov eax, dword [esi + 4]
test eax, eax
je 0x408e56
lea ecx, [ebp - 0x10]
push ecx
push eax
call edx
test eax, eax
je 0x408e56
cmp dword [ebp - 0x10], 0x103
mov eax, 1
movzx ebx, bl
cmovne ebx, eax
xor edi, edi
test bl, bl
push 0x64
cmove edi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test edi, edi
jne 0x408e25
cmp byte [esi + 9], 0
je 0x408e91
mov eax, dword [esi + 4]
test eax, eax
je 0x408e91
lea ecx, [ebp - 0x14]
push ecx
push eax
call edx
test eax, eax
je 0x408e91
cmp dword [ebp - 0x14], 0x103
jne 0x408e9c
push 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [0x427808]
test esi, esi
je 0x408f18
mov ecx, dword [esi + 4]
mov dword [esi], vtable.OThread.0
test ecx, ecx
je 0x408ee3
cmp byte [esi + 9], 0
je 0x408ee3
lea eax, [ebp - 0x10]
push eax
push ecx
call edx
test eax, eax
je 0x408ee3
cmp dword [ebp - 0x10], 0x103
je 0x408ee3
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x408efc
push 2
push eax
call fcn.00409c3a
add esp, 8
mov dword [esi + 0x10], 0
push 0x18
push esi
mov dword [esi + 0x14], 0
call fcn.00409c3a
add esp, 8
mov dword [0x427808], 0
mov eax, dword [0x427830]
xor edi, edi
test eax, eax
je 0x408f9f
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [0x42782c]
cmp edi, eax
jae 0x408f9a
test ecx, ecx
je 0x408f9a
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x408f9a
lea eax, [esi + 0xc]
mov dword [ebp - 4], 0
push eax
call ebx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x408f5f
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 8], 0
mov eax, dword [esi]
test eax, eax
je 0x408f76
push 2
push eax
call fcn.00409c3a
add esp, 8
mov dword [esi], 0
push 0x24
push esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00409c3a
mov eax, dword [0x427830]
add esp, 8
mov ecx, dword [0x42782c]
inc edi
cmp edi, eax
jb 0x408f33
mov dword [0x427830], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp + 8]
push 1
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp + 8]
push 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x409670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp + 8]
push 4
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4096a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp + 8]
push 8
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4096d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40e505
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40e514
pop dword [ebp - 0x2c]
mov eax, 0x40e514
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x69e01d08
add dword [ebp - 0x3c], 0xe4722843
mov dword [ebp - 0x38], 0xc9d7ed53
add dword [ebp - 0x38], 0x685b5ef2
mov dword [ebp - 0x34], 0x5228f129
add dword [ebp - 0x34], 0xfa235305
mov dword [ebp - 0x30], 0xb7a2135d
add dword [ebp - 0x30], 0x485deca3
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x8eea55a6
add eax, 0x7157dace
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xfb628901
add dword [ebp - 0x3c], 0x790fe055
mov dword [ebp - 0x38], 0x5214f13b
sub dword [ebp - 0x38], 0x10a88fc6
mov dword [ebp - 0x34], 0x392a4a5f
sub dword [ebp - 0x34], 0xd5baddf3
mov dword [ebp - 0x30], 0xc7144d15
sub dword [ebp - 0x30], 0xc7144d15
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xba0b7a8d
add eax, 0x4636b697
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d438
push 0
call eax
mov ecx, 0x2a3bf0c2
add ecx, 0xd5c45568
mov ebx, eax
mov esi, 0xa0c44cd
add esi, 0xf636ff33
add esi, dword [ebp - 0x2c]
mov edx, 0x2a72ce55
add edx, 0x6f0e6660
mov dword [ebp - 0x18], 0xc61dabd9
mov edi, dword [esi]
mov dword [ebp - 0x20], 0x4deee111
sub edi, edx
xor dword [ebp - 0x28], 0xd36a3723
mov dword [ebx], edi
mov dword [ebp - 0x20], 0xea251236
add ebx, 4
add esi, 0xd589f350
sub esi, 0xd589f34c
loop 0x40e631
add eax, 0x5728959c
sub eax, 0x57278a21
mov ebx, eax
add eax, 0xd991d6fd
add eax, 0x266e2908
mov ecx, 0x2c125784
sub ecx, 0x2bd25784
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x666343d2
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x68cd4838
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4015e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push 0x20
push eax
lea ecx, [esp + 8]
call sub.MFC42.DLL_CFile::CFile_2
lea ecx, [esp]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CFile::GetLength
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jg 0x401623
xor ecx, ecx
push esi
mov esi, dword [esp + 0x28]
lea edx, [esi + ecx]
cmp edx, eax
jle 0x401633
sub eax, ecx
mov esi, eax
push 0
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Seek
mov eax, dword [esp + 0x30]
push esi
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 4]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x14]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x401680
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x406560
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.00405da0
mov esi, dword [esp + 0x44]
lea ecx, [esp + 8]
push esi
mov dword [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 8]
mov byte [esp + 0x3c], 2
mov ecx, dword [eax - 8]
mov al, byte [ecx + eax - 1]
cmp al, 0x5c
je 0x4016fa
push 0x409020
lea ecx, [esp + 0xc]
call fcn.00405ddc
push 0x409020
lea ecx, [esp + 0x10]
call fcn.00405ddc
push 0x409024
lea ecx, [esp + 0xc]
call fcn.00405ddc
mov eax, dword [esp + 8]
push 0
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4017e7
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 4
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x1c]
mov esi, eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFileFind::GetFileName
lea edx, [esp + 0x14]
lea ecx, [esp + 0x4c]
push edx
mov byte [esp + 0x48], 3
call fcn.00405dee
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x4c]
push eax
mov byte [esp + 0x48], bl
call fcn.00405de8
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4017c1
mov edx, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
call dword [edx + 0x40]
test eax, eax
je 0x4017ba
lea eax, [esp + 0x4c]
push 0x409020
lea ecx, [esp + 0x1c]
push eax
push ecx
call sub.MFC42.DLL_operator
mov edx, dword [esp + 0x18]
mov ecx, edi
push edx
mov byte [esp + 0x48], 5
call fcn.00401680
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], bl
call sub.MFC42.DLL_CString::CString
jmp 0x4017c1
mov eax, dword [esp + 0x4c]
push eax
call ebp
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x40172a
pop ebp
pop ebx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::Close
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x34]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x403050
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4069e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebp
mov ebp, ecx
push edi
lea ecx, [esp + 0x14]
call fcn.00405da0
mov edi, dword [esp + 0x40]
lea ecx, [esp + 8]
push edi
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString_1
push 0x409024
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 1
call fcn.00405ddc
mov eax, dword [esp + 8]
push 0
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x403177
push ebx
push esi
mov bl, 3
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x18]
mov esi, eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::GetFileName
push edi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x18]
lea ecx, [esp + 0x48]
push edx
mov byte [esp + 0x44], bl
call fcn.00405de8
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x403151
mov eax, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [eax + 0x40]
test eax, eax
je 0x403146
lea ecx, [esp + 0x48]
push 0x409020
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [esp + 0x14]
mov ecx, ebp
push eax
mov byte [esp + 0x44], 4
call fcn.00403050
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
jmp 0x403151
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x4030ba
pop esi
pop ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::Close
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 8]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x30]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret 4