joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9e20
Capabilities:
Encode data using base64
Terminate process

Disassembly:
sub esp, 0x118
mov ecx, 0x3f
mov eax, 0x80808080
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x41
mov cl, al
sub cl, 0x41
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x5a
jle 0x4a9e42
mov eax, 0x61
mov dl, al
sub dl, 0x47
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0x7a
jle 0x4a9e56
mov eax, 0x30
mov cl, al
add cl, 4
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x39
jle 0x4a9e6a
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x53], 0x3e
mov byte [esp + 0x57], 0x3f
mov byte [esp + 0x65], 0
mov dword [esp + 0x18], ebp
je 0x4a9ffd
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x12c]
xor eax, eax
lea esi, [edx + ecx]
movsx ecx, byte [esi + eax]
mov dl, byte [esp + ecx + 0x28]
test dl, 0x80
jne 0x4a9fce
mov byte [esp + eax + 0x20], cl
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, 4
jl 0x4a9ecc
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x10]
cmp edx, dword [esi]
jle 0x4a9f36
mov eax, dword [esp + 0x14]
push eax
call fcn.004af617
mov ecx, dword [esi]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x2c], eax
rep movsb byte es:[edi], byte [esi]
call fcn.004af52e
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dl, ch
mov al, cl
sar dl, 4
shl al, 2
or dl, al
mov eax, dword [esp + 0x14]
mov byte [ebx + ebp], dl
inc ebp
inc eax
mov cl, ch
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1e]
mov dl, al
inc edi
sar dl, 2
shl cl, 4
or dl, cl
mov ecx, dword [esp + 0x14]
shl al, 6
or al, byte [esp + 0x1f]
mov byte [ebx + ebp], dl
inc ebp
mov edx, edi
inc ecx
inc edx
mov byte [ebx + ebp], al
mov al, byte [esp + 0x22]
inc ebp
inc ecx
inc edx
mov dword [esp + 0x10], edi
cmp al, 0x3d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x4a9fe3
mov cl, byte [esp + 0x23]
xor eax, eax
cmp cl, 0x3d
setne al
add eax, 2
cmp eax, 3
jl 0x4a9fe3
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jae 0x4aa004
jmp 0x4a9ebc
push ecx
push str.Illegal_character__c_in_input._n
call fcn.004b150d
add esp, 8
push 1
call fcn.004b0ca6
mov eax, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [eax], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x4c255e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c2596
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c0615
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c05ed
jmp 0x4c25a2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c3c53
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c3c95
call fcn.004c99b3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c3c95
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c3c8c
xor eax, eax
jmp 0x4c3c9d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c3ca3
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c9ee3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c9f11
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c9f2f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c9e49
jmp 0x4c9f2f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c9f2f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c9e49
test edi, edi
mov eax, edi
jne 0x4c9f19
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4016c5
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x40394f], eax
xor ecx, ecx
mov edx, dword [ecx + section.CODE]
test edx, edx
je 0x4017fa
add eax, edx
mov dword [0x4035e0], eax
call fcn.00401ff7
test eax, eax
je 0x4017fa
push 0x400
push 0
call sub.KERNEL32.dll_GlobalAlloc
test eax, eax
je 0x4017fa
mov dword [0x403967], eax
call fcn.00401e4a
cmp dword [0x4035d8], 3
je 0x4017f5
mov dword [0x4037bb], 0x154
push 0
push 0x4037bb
push 0x154
push 0x29
call sub.USER32.dll_SystemParametersInfoA
push 0x4038d3
call sub.GDI32.dll_CreateFontIndirectA
mov dword [0x403953], eax
call fcn.00401cb5
call fcn.00401682
call fcn.00402bca
call fcn.0040187b
test eax, eax
je 0x4017fa
mov dword [0x403957], eax
push 0
push dword [0x403957]
call sub.USER32.dll_ShowWindow
mov eax, dword [0x4035e4]
test eax, eax
je 0x4017a0
push eax
push 0x401008
push dword [0x403957]
push 2
push dword [0x40394f]
call sub.USER32.dll_DialogBoxParamA
test eax, eax
je 0x4017fa
push dword [0x403957]
call 0x40180c
push 1
push dword [0x403957]
call sub.USER32.dll_ShowWindow
xor eax, eax
push eax
push eax
push eax
push 0x40396b
call sub.USER32.dll_GetMessageA
test eax, eax
je 0x4017fa
push 0x40396b
push dword [0x403957]
call sub.USER32.dll_IsDialogMessageA
test eax, eax
jne 0x4017b8
push 0x40396b
call sub.USER32.dll_TranslateMessage
push 0x40396b
call sub.USER32.dll_DispatchMessageA
jmp 0x4017b8
call fcn.004018cb
push dword [0x403967]
call sub.KERNEL32.dll_GlobalFree
push 0
call sub.KERNEL32.dll_ExitProcess
enter 0, 0
push ebx
push edi
cmp dword [0x403608], 0
je 0x401875
mov edi, dword [0x40360c]
cmp byte [edi], 0
je 0x401875
push edi
call fcn.00402c71
mov ebx, eax
push edi
call sub.KERNEL32.dll_lstrlen
lea edi, [edi + eax + 5]
cmp ebx, dword [edi - 4]
je 0x401821
cmp dword [0x403608], 1
je 0x401856
push 0x4034ae
call fcn.004028e0
pop edi
pop ebx
leave
ret 4
push 0x65
push dword [ebp + 8]
call sub.USER32.dll_GetDlgItem
push 0
push eax
call sub.USER32.dll_EnableWindow
push 0x40346f
push dword [ebp + 8]
call sub.USER32.dll_SetWindowTextA
pop edi
pop ebx
leave
ret 4
Function at 0x4018cb
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Resume thread
Suspend thread
Terminate process

Disassembly:
enter 0x330, 0
mov dword [ebp - 0x330], 0xc
mov dword [ebp - 0x32c], 0
mov dword [ebp - 0x328], 1
lea edi, [ebp - 0x44]
cld
xor eax, eax
mov dword [ebp - 0x324], eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov dword [ebp - 0x44], 0x44
lea edi, [ebp - 0x54]
mov ecx, 4
rep stosd dword es:[edi], eax
push 0xff
push 0x40362c
push dword [0x40394f]
call sub.KERNEL32.dll_GetModuleFileNameA
call sub.KERNEL32.dll_GetCommandLineA
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x54]
lea ebx, [ebp - 0x330]
push edx
push ecx
push 0
push 0
push 4
push 0
push ebx
push ebx
push eax
push dword [0x4035f0]
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
je 0x401a39
push dword [ebp - 0x54]
call fcn.00401c09
test eax, eax
je 0x401a2d
mov dword [0x40361c], eax
mov edi, dword [0x4035dc]
mov eax, dword [edi]
jmp dword [eax*4 + 0x401977]
push 0x403452
call fcn.004028e0
jmp 0x401a73
push 0x40339e
call fcn.004028e0
leave
ret
push 0
push dword [ebp - 0x54]
call sub.KERNEL32.dll_TerminateProcess
leave
ret

Function at 0x401af5
Capabilities:
Resume thread
Suspend thread

Disassembly:
enter 0x144, 0
push edi
mov edi, dword [0x40361c]
mov dword [ebp - 0x144], 1
cmp dword [edi], 0xffffffff
je 0x401bc0
cmp dword [edi + 8], 0
jne 0x401bb5
mov dword [ebp - 0x144], 0
push 0x403624
push 4
push dword [edi]
push dword [edi + 4]
push dword [ebp + 8]
call sub.KERNEL32.dll_VirtualProtectEx
lea edx, [ebp - 0x140]
push 0x403624
push dword [edi]
push edx
push dword [edi + 4]
push dword [ebp + 8]
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x401c02
mov eax, dword [edi]
lea edx, [edi + 0xc]
lea eax, [ebp - 0x140]
push dword [edi]
push edx
push eax
call fcn.004022c1
test eax, eax
je 0x401baf
mov eax, dword [edi]
lea edx, [edi + eax*2 + 0xc]
lea eax, [ebp - 0x140]
push dword [edi]
push edx
push eax
call fcn.0040229a
lea eax, [ebp - 0x140]
push 0x403628
push dword [edi]
push eax
push dword [edi + 4]
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x401c02
mov dword [edi + 8], 1
jmp 0x401bb5
cmp dword [ebp + 0x10], 1
jne 0x401c02
mov eax, dword [edi]
lea edi, [edi + eax*4 + 0xc]
jmp 0x401b0a
cmp dword [ebp + 0x10], 1
jne 0x401bfb
cmp dword [ebp - 0x144], 1
je 0x401bfb
push dword [ebp + 0xc]
call sub.KERNEL32.dll_ResumeThread
push 0xa
call sub.KERNEL32.dll_Sleep
push dword [ebp + 0xc]
call sub.KERNEL32.dll_SuspendThread
mov edi, dword [0x40361c]
mov dword [ebp - 0x144], 1
jmp 0x401b0a
or al, 1
pop edi
leave
ret 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x402158
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
push ebx
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov eax, 0x4c414d45
xor eax, 0x11080400
xor dword [edi + ecx*4], eax
dec ecx
jne 0x402171
pop edi
pop ebx
leave
ret 8
Function at 0x40220a
Capabilities:
Copy file

Disassembly:
enter 0, 0
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.KERNEL32.dll_lstrlen
test eax, eax
je 0x402291
mov ebx, eax
inc eax
push eax
push 0
call sub.KERNEL32.dll_GlobalAlloc
mov edi, eax
push dword [ebp + 8]
push edi
call sub.KERNEL32.dll_lstrcpy
mov esi, edi
mov eax, 0x2e
mov ecx, ebx
std
add edi, ecx
repne scasb al, byte es:[edi]
cld
test ecx, ecx
je 0x40224a
inc edi
mov byte [edi], 0
push 0x40351a
push esi
call sub.KERNEL32.dll_lstrcat
push 0
push esi
push dword [ebp + 8]
call sub.KERNEL32.dll_CopyFileA
mov esi, eax
push esi
call sub.KERNEL32.dll_GlobalFree
test esi, esi
jne 0x402288
push 0x34
push 0x40358b
push 0x403354
push dword [0x403957]
call sub.USER32.dll_MessageBoxA
cmp eax, 6
jne 0x402291
or al, 1
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402361
Capabilities:
Write file on windows

Disassembly:
enter 0, 0
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp eax, 0xfffffffe
je 0x402402
cmp eax, 0xffffffff
je 0x4023ca
cmp eax, dword [ebp + 0xc]
ja 0x402397
add eax, dword [0x403963]
push eax
add edi, 4
push dword [edi]
add edi, 4
push edi
add edi, dword [edi - 4]
call fcn.004021f3
jmp 0x402368
push 0x403217
call fcn.004028e0
call fcn.004021dc
push dword [0x40395b]
call sub.KERNEL32.dll_CloseHandle
push 0x65
push dword [0x403957]
call sub.USER32.dll_GetDlgItem
push 0
push eax
call sub.USER32.dll_EnableWindow
leave
ret 8
call fcn.004021dc
push dword [0x40395b]
call sub.KERNEL32.dll_CloseHandle
call fcn.00402476
push 0x4032c5
call fcn.004028e0
push 0x65
push dword [0x403957]
call sub.USER32.dll_GetDlgItem
push 0
push eax
call sub.USER32.dll_EnableWindow
leave
ret 8
call fcn.004021dc
mov ebx, dword [edi + 4]
add edi, 8
push 2
push 0
push 0
push dword [0x40395b]
call sub.KERNEL32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x40243d
push 0
push 0x403624
push ebx
push edi
push dword [0x40395b]
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x40243d
jmp 0x4023cf
push 0x403279
call fcn.004028fd
push dword [0x40395b]
call sub.KERNEL32.dll_CloseHandle
leave
ret 8
Function at 0x402476
Capabilities:
Create process on windows
Create process suspended
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
enter 0x354, 0
push ebx
push esi
push edi
mov eax, dword [0x403600]
test eax, eax
je 0x4025c9
lea ebx, [ebp - 0x100]
push ebx
push pe_nt_image_headers32
call sub.KERNEL32.dll_GetTempPathA
lea eax, [ebp - 0x300]
push eax
push 0
push 0x403506
push ebx
call sub.KERNEL32.dll_GetTempFileNameA
test eax, eax
je 0x4025e0
lea ebx, [ebp - 0x300]
push ebx
call sub.KERNEL32.dll_DeleteFileA
push 0x403506
push ebx
call fcn.00402456
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x4025e0
mov ebx, eax
push 0
push 0x403628
push dword [0x403600]
push dword [0x403604]
push eax
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x4025ce
lea eax, [ebp - 0x100]
push 0x403579
push eax
call sub.KERNEL32.dll_lstrcpy
lea eax, [ebp - 0x100]
lea edx, [ebp - 0x300]
push edx
push eax
call sub.KERNEL32.dll_lstrcat
lea esi, [ebp - 0x200]
push pe_nt_image_headers32
push esi
call sub.KERNEL32.dll_GetWindowsDirectoryA
push 0x40356b
push esi
call sub.KERNEL32.dll_lstrcat
lea edi, [ebp - 0x344]
cld
xor eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov dword [ebp - 0x344], 0x44
lea edi, [ebp - 0x354]
mov ecx, 4
rep stosd dword es:[edi], eax
push ebx
call sub.KERNEL32.dll_CloseHandle
lea ecx, [ebp - 0x344]
lea edx, [ebp - 0x354]
lea esi, [ebp - 0x200]
lea edi, [ebp - 0x100]
xor eax, eax
push edx
push ecx
push eax
push eax
push 0x20
push eax
push eax
push eax
push edi
push esi
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
je 0x4025ce
push 0x3a98
push dword [ebp - 0x354]
call sub.KERNEL32.dll_WaitForSingleObject
lea ebx, [ebp - 0x300]
push ebx
call sub.KERNEL32.dll_DeleteFileA
pop edi
pop esi
pop ebx
leave
ret
push ebx
call sub.KERNEL32.dll_CloseHandle
lea ebx, [ebp - 0x300]
push ebx
call sub.KERNEL32.dll_DeleteFileA
push 0x40337e
call fcn.004028e0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4025ef
Capabilities:
Check if file exists
Get file size
Set file attributes

Disassembly:
enter 4, 0
call fcn.0040217d
test eax, eax
je 0x4026d4
push 0x80
push dword [0x4035f0]
call sub.KERNEL32.dll_SetFileAttributesA
test eax, eax
je 0x402746
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [0x4035f0]
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x402746
mov dword [0x40395b], eax
push 0
push eax
call sub.KERNEL32.dll_GetFileSize
cmp dword [0x4035d0], 0
je 0x402660
cmp eax, dword [0x4035d0]
jne 0x40273a
mov dword [ebp - 4], eax
call fcn.004021a5
test eax, eax
je 0x402706
cmp dword [0x4035d4], 0
je 0x402693
push dword [ebp - 4]
push dword [0x403963]
call fcn.00402c3d
cmp eax, dword [0x4035d4]
jne 0x402722
xor eax, eax
push eax
push eax
push 0xf0
push 0x69
push dword [0x403957]
call sub.USER32.dll_SendDlgItemMessageA
cmp eax, 1
jne 0x4026bd
push dword [0x4035f0]
call fcn.0040220a
test eax, eax
je 0x402710
cmp dword [0x4035d8], 2
je 0x4026d6
push dword [ebp - 4]
push dword [0x4035dc]
call fcn.00402361
leave
ret
push dword [ebp - 4]
push dword [0x4035dc]
call fcn.004022f4
push dword [0x4035dc]
call fcn.004027d7
call fcn.004021dc
push dword [0x40395b]
call sub.KERNEL32.dll_CloseHandle
call fcn.00402476
leave
ret
push 0x40351e
call fcn.004028fd
call fcn.004021dc
push dword [0x40395b]
call sub.KERNEL32.dll_CloseHandle
leave
ret
push 0x403291
call fcn.004028e0
jmp 0x402710
push 0x403249
call fcn.004028e0
jmp 0x402710
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp eax, 2
je 0x402790
sub esp, 0x12c
mov edi, esp
push 0x4031f2
push edi
call sub.KERNEL32.dll_lstrcpy
push dword [0x4035f0]
push edi
call sub.KERNEL32.dll_lstrcat
push 0x403517
push edi
call sub.KERNEL32.dll_lstrcat
push esi
call sub.KERNEL32.dll_SetLastError
push edi
call fcn.004028fd
add esp, 0x12c
leave
ret
push 0x24
push 0x40358b
push 0x403189
push dword [0x403957]
call sub.USER32.dll_MessageBoxA
cmp eax, 6
jne 0x402752
push 0x1004
push 0x40362c
push 0x40351f
call fcn.0040287a
test eax, eax
je 0x4026d4
mov eax, 0x40362c
mov dword [0x4035f0], eax
jmp 0x402600

Function at 0x402c3d
Capabilities:
Encode data using xor

Disassembly:
enter 0, 0
push ebx
push esi
or eax, 0xffffffff
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x402c6b
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x402c6b
mov esi, dword [0x403967]
movzx edx, byte [ebx]
xor dl, al
shr eax, 8
xor eax, dword [esi + edx*4]
inc ebx
dec ecx
jne 0x402c5a
not eax
pop esi
pop ebx
leave
ret 8
Function at 0x402c71
Capabilities:
Get file size
Read file via mapping

Disassembly:
enter 0xc, 0
push ebx
xor eax, eax
push eax
push eax
push 3
push eax
push 1
push 0x80000000
push dword [ebp + 8]
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x402d01
xor edx, edx
mov dword [ebp - 4], eax
push edx
push edx
push edx
push 2
push edx
push eax
call sub.KERNEL32.dll_CreateFileMappingA
test eax, eax
je 0x402cf9
xor edx, edx
mov dword [ebp - 8], eax
push edx
push edx
push edx
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x402cf1
mov dword [ebp - 0xc], eax
push 0
push dword [ebp - 4]
call sub.KERNEL32.dll_GetFileSize
push eax
push dword [ebp - 0xc]
call fcn.00402c3d
mov ebx, eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [ebp - 8]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop ebx
leave
ret 4
push dword [ebp - 8]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 4]
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
dec eax
pop ebx
leave
ret 4
Function at 0x414de0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..text
lea edi, [esi - 0xe000]
push edi
jmp 0x414dfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414e01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414df0
mov eax, 1
add ebx, ebx
jne 0x414e13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414e24
jne 0x414e43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e43
dec eax
add ebx, ebx
jne 0x414e30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x414e08
add ebx, ebx
jne 0x414e3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x414e95
xor ecx, ecx
sub eax, 3
jb 0x414e5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414eca
sar eax, 1
mov ebp, eax
jmp 0x414e66
add ebx, ebx
jne 0x414e66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e34
inc ecx
add ebx, ebx
jne 0x414e74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e34
add ebx, ebx
jne 0x414e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414e76
jne 0x414e92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414e76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414eb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414ea6
jmp 0x414df6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414eb4
add edi, ecx
jmp 0x414df6
pop esi
mov edi, esi
mov ecx, 0xb800
jmp 0x414f05
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x414ee5
cmp al, 0x8f
ja 0x414ee5
cmp byte [edi - 2], 0xf
je 0x414eeb
sub al, 0xe8
cmp al, 1
ja 0x414f0f
cmp ecx, 4
jb 0x414f14
mov eax, dword [edi]
sub al, 5
jne 0x414f0f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x414f14
mov al, byte [edi]
inc edi
jmp 0x414ee5
sub ecx, 1
jae 0x414ed4
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414f5c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1506c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414f1a
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15074]
or eax, eax
je 0x414f56
mov dword [ebx], eax
add ebx, 4
jmp 0x414f37
call dword [esi + 0x15070]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x414f8d
cmp al, 0xef
ja 0x414f80
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x414f62
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x414f6f
mov ebp, dword [esi + 0x15078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414fc1
sub esp, 0xffffff80
jmp 0x405dd2
Function at 0x401372
Capabilities:
Delete directory
Get socket status
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
push 0
push 0x13
push 4
push 0x15
push 0
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x4013e2
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x143
jge 0x4013f6
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x4013d9
cmp dword [ebp - 4], 0
jbe 0x40144a
push 0x40
mov eax, 0x1000
push eax
mov ecx, 0x1400
push ecx
push 0
push str.w3hjsfds
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x2c]
push 0
push 0
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
jne 0x401443
call fcn.00401350
mov dword [0x4191e0], eax
mov dword [ebp + 8], 0x27
push 0
push 0
call sub.WinSCard.dll_SCardForgetReaderW
push 0
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
push 0
push 0
call fcn.004019f4
fstp st(0)
add esp, 8
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40405d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x418620
cmp edx, dword [eax]
je 0x40407f
add eax, 8
inc ecx
cmp eax, 0x4186b0
jl 0x404070
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x418620]
jne 0x4041ad
mov eax, dword [0x4191fc]
cmp eax, 1
je 0x404187
test eax, eax
jne 0x4040b0
cmp dword [0x418518], 1
je 0x404187
cmp edx, 0xfc
je 0x4041ad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4040e7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404c20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004051f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40412a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004051f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40955c
push edi
call fcn.00406a20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404c20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404c30
lea eax, [ebp - 0xa0]
push 0x40953c
push eax
call fcn.00404c30
push dword [esi + 0x418624]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404c30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406990
add esp, 0x2c
pop edi
jmp 0x4041ad
lea eax, [ebp + 8]
lea esi, [esi + 0x418624]
push 0
push eax
push dword [esi]
call fcn.004051f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret