joyce8/EMBER2024-capa huggingface dataset:
Function at 0x105ef83
Capabilities:
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov eax, ecx
mov dword [ebp - 8], 0xc00000e5
call fcn.0105ef01
xor edi, edi
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x105efbf
mov esi, 0xc0000002
push esi
push 1
push edi
push edi
call fcn.0103d1ca
mov eax, esi
jmp 0x105f063
cmp eax, 0x800c
mov dword [esi + 0x10], ecx
je 0x105efdc
cmp eax, 0x800d
je 0x105efdc
cmp eax, 0x800e
je 0x105efdc
xor ecx, ecx
inc ecx
jmp 0x105efdf
push 0x18
pop ecx
push ebx
push 0xf0000000
push ecx
push edi
lea eax, [esi + 4]
push edi
push eax
call sub.ADVAPI32.dll_CryptAcquireContextA
test eax, eax
je 0x105f025
lea ebx, [esi + 8]
push ebx
push edi
push edi
push dword [ebp + 8]
push dword [esi + 4]
call sub.ADVAPI32.dll_CryptCreateHash
test eax, eax
je 0x105f025
push 4
pop eax
push edi
lea ecx, [ebp - 4]
push ecx
add esi, 0xc
push esi
push eax
push dword [ebx]
mov dword [ebp - 4], eax
call sub.ADVAPI32.dll_CryptGetHashParam
test eax, eax
jne 0x105f060
call fcn.0104b97d
mov esi, eax
cmp esi, edi
jl 0x105f052
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], 0x100ab38
call fcn.0101d708
mov eax, dword [ebp - 8]
jmp 0x105f062
push esi
push 1
push edi
push edi
call fcn.0103d1ca
mov eax, esi
jmp 0x105f062
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x105f716
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
movzx ecx, word [ecx + 6]
push esi
xor esi, esi
test ecx, ecx
push edi
jbe 0x105f74c
mov edx, dword [eax + 0xc]
cmp dword [ebp + 0x10], edx
jb 0x105f744
mov edi, dword [eax + 0x10]
add edi, edx
cmp dword [ebp + 0x10], edi
jb 0x105f74e
add eax, 0x28
inc esi
cmp esi, ecx
jb 0x105f732
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1074e6e
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xc]
xor ebx, ebx
cmp esi, ebx
je 0x1074eee
mov eax, dword [esi]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1074ea0
mov ecx, dword [eax]
push eax
mov dword [esi + 0xc], ecx
call fcn.01074da5
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x1074e8e
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1074eb9
mov ecx, dword [eax]
push eax
mov dword [esi + 0x10], ecx
call fcn.01074da5
mov eax, dword [esi + 0x10]
cmp eax, ebx
jne 0x1074ea7
mov eax, dword [esi + 4]
cmp dword [eax], 2
jne 0x1074ed4
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call fcn.010483fb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call fcn.010483fb
mov esi, dword [edi + 0xc]
cmp esi, ebx
jne 0x1074e82
mov esi, dword [edi + 0x10]
cmp esi, ebx
je 0x1074f46
mov eax, dword [esi]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1074f13
mov ecx, dword [eax]
push eax
mov dword [esi + 0xc], ecx
call fcn.01074da5
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x1074f01
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1074f2c
mov ecx, dword [eax]
push eax
mov dword [esi + 0x10], ecx
call fcn.01074da5
mov eax, dword [esi + 0x10]
cmp eax, ebx
jne 0x1074f1a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call fcn.010483fb
mov esi, dword [edi + 0x10]
cmp esi, ebx
jne 0x1074ef5
push edi
call fcn.01074e1a
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x107855c
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10a49bc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], ebx
call sub.KERNEL32.dll_SetLastError
push esi
call sub.KERNEL32.dll_GlobalLock
cmp dword [ebp + 0xc], ebx
mov edi, eax
mov dword [ebp - 0x21c], edi
je 0x10785a3
xor esi, esi
jmp 0x10786e2
cmp edi, ebx
jne 0x10785ae
xor eax, eax
jmp 0x1078714
push dword [edi + 0x18]
call sub.KERNEL32.dll_GlobalLock
cmp eax, ebx
mov dword [ebp - 0x218], eax
je 0x10786d4
push ebx
push ebx
lea ecx, [ebp - 0x220]
push ecx
push eax
push 0x208
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01074bc3
cmp eax, ebx
jge 0x10785fb
and eax, 0xffff
mov esi, eax
mov dword [ebp - 0x210], esi
jmp 0x10786be
mov eax, dword [ebp - 0x220]
dec eax
dec eax
cmp word [eax], 0x5c
je 0x1078613
lea ecx, [ebp - 0x20c]
cmp eax, ecx
jae 0x1078601
mov word [eax + 2], bx
lea eax, [ebp - 0x20c]
push eax
push ebx
mov esi, 0x1014dac
push esi
push eax
call sub.KERNEL32.dll_GetTempFileNameW
test eax, eax
lea eax, [ebp - 0x20c]
push eax
jne 0x107867c
push edi
call sub.KERNEL32.dll_GetTempPathW
test eax, eax
jne 0x1078659
mov word [ebp - 0x20c], 0x2e
mov word [ebp - 0x20a], 0x5c
mov word [ebp - 0x208], bx
lea eax, [ebp - 0x20c]
push eax
push ebx
push esi
push eax
call sub.KERNEL32.dll_GetTempFileNameW
test eax, eax
jne 0x1078675
call sub.KERNEL32.dll_GetLastError
mov esi, eax
jmp 0x10786be
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call fcn.01078302
mov esi, eax
cmp esi, ebx
jne 0x10786ac
push dword [ebp - 0x218]
call sub.KERNEL32.dll_DeleteFileW
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
call sub.KERNEL32.dll_MoveFileW
jmp 0x10786be
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], esi
call sub.KERNEL32.dll_DeleteFileW
mov eax, dword [ebp - 0x21c]
push dword [eax + 0x18]
call sub.KERNEL32.dll_GlobalUnlock
mov edi, dword [ebp - 0x21c]
jmp 0x10786da
mov esi, dword [ebp - 0x220]
push dword [edi + 0x18]
call sub.KERNEL32.dll_GlobalFree
cmp edi, ebx
je 0x10786f7
push edi
call fcn.01074e6e
push dword [ebp - 0x214]
call sub.KERNEL32.dll_GlobalUnlock
push dword [ebp - 0x214]
call sub.KERNEL32.dll_GlobalFree
push dword [ebp - 0x210]
call sub.KERNEL32.dll_SetLastError
xor eax, eax
cmp esi, ebx
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0103c667
leave
ret 8
Function at 0x1078929
Capabilities:
Check if file exists
Enumerate gui resources
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call sub.KERNEL32.dll_SetLastError
cmp dword [ebp + 8], ebx
jne 0x107894c
push 0x57
call sub.KERNEL32.dll_SetLastError
jmp 0x1078a5d
push 0x1c
push 0x42
call sub.KERNEL32.dll_GlobalAlloc
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1078960
push 8
jmp 0x1078942
push dword [ebp - 4]
call sub.KERNEL32.dll_GlobalLock
mov esi, eax
cmp esi, ebx
jne 0x107897a
push 8
call sub.KERNEL32.dll_SetLastError
jmp 0x1078a55
lea eax, [ebp - 8]
push eax
push SysReAllocString
push dword [ebp + 8]
call fcn.01074d67
cmp eax, ebx
jge 0x107899f
and eax, 0xffff
push eax
call sub.KERNEL32.dll_SetLastError
jmp 0x1078a4d
mov edi, dword [ebp - 8]
lea eax, [edi + edi + 2]
push eax
push 0x42
mov dword [esi + 0x14], ebx
call sub.KERNEL32.dll_GlobalAlloc
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x10789bc
push 8
jmp 0x1078995
push eax
call sub.KERNEL32.dll_GlobalLock
mov ebx, eax
test ebx, ebx
jne 0x10789d1
push 8
call sub.KERNEL32.dll_SetLastError
jmp 0x1078a45
push dword [ebp + 8]
inc edi
push edi
push ebx
call fcn.01077e0e
push dword [esi + 0x18]
mov edi, eax
call sub.KERNEL32.dll_GlobalUnlock
test edi, edi
jge 0x10789f3
and edi, 0xffff
push edi
jmp 0x10789ca
push ebx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1078a45
test al, 0x17
je 0x1078a06
push 0x13
jmp 0x10789ca
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x1078a40
push 3
push ebx
push dword [ebp + 8]
call sub.KERNEL32.dll_LoadLibraryExW
mov edi, eax
cmp edi, ebx
jne 0x1078a2e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1078a45
push 0xc1
jmp 0x10789ca
push esi
push 0x1078905
push edi
call sub.KERNEL32.dll_EnumResourceTypesW
push edi
call sub.KERNEL32.dll_FreeLibrary
cmp dword [esi + 0x14], ebx
je 0x1078a61
push dword [esi + 0x18]
call sub.KERNEL32.dll_GlobalFree
push dword [ebp - 4]
call sub.KERNEL32.dll_GlobalUnlock
push dword [ebp - 4]
call sub.KERNEL32.dll_GlobalFree
xor eax, eax
jmp 0x1078a6c
push dword [ebp - 4]
call sub.KERNEL32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x108df34
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
mov dword [ebp - 0x10], 0xc00000e5
je 0x108df8e
cmp dword [edi], esi
jne 0x108df70
cmp dword [edi + 4], esi
jne 0x108df70
cmp dword [edi + 8], esi
jne 0x108df70
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
push ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
jmp 0x108dfcf
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 0x10197a4
call fcn.0101d751
jmp 0x108e03f
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], esi
call fcn.0101d751
jmp 0x108e03f
xor eax, eax
inc eax
cmp ebx, eax
jb 0x108dff6
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.0103d2fe
cmp eax, esi
jl 0x108dffb
push ebx
push dword [ebp - 4]
call sub.KERNEL32.dll_GetSystemDirectoryA
cmp eax, esi
je 0x108dfdc
dec ebx
cmp eax, ebx
je 0x108e027
push esi
push esi
call sub.KERNEL32.dll_GetSystemDirectoryA
mov ebx, eax
cmp ebx, esi
jne 0x108dfa8
call fcn.0104b97d
mov edi, eax
cmp edi, esi
jge 0x108e000
push edi
push 1
push esi
push esi
call fcn.0103d1ca
mov dword [ebp - 0x10], edi
jmp 0x108e036
mov dword [ebp - 0x18], eax
jmp 0x108e007
mov dword [ebp - 0x10], eax
jmp 0x108e036
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], esi
call fcn.0101cc25
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10197a4
call fcn.0101d708
jmp 0x108e03e
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
call fcn.010292cc
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0xc]
call fcn.0101cc25
pop ebx
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret 4

Function at 0x1090b16
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10a49bc]
push esi
mov esi, dword [ebp + 8]
push 0x40
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableA
cmp eax, 0x40
ja 0x1090b57
and dword [ebp - 0x48], 0
push 0x10
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call sub.msvcrt.dll_strtoul
add esp, 0xc
or dword [esi + 4], eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0103c667
leave
ret 8
Function at 0x1090c67
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x10a86d4], 0
mov eax, dword [0x10a49bc]
mov dword [ebp - 4], eax
jne 0x1090d09
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
push 0x101a1d4
call sub.KERNEL32.dll_GetEnvironmentVariableA
test eax, eax
je 0x1090d08
cmp eax, esi
jae 0x1090d08
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x810
push 0
push dword [eax + 0x18]
call fcn.010483c0
mov esi, eax
test esi, esi
je 0x1090d08
mov ecx, esi
call fcn.01090c45
lea eax, [ebp - 0x108]
push eax
mov ecx, esi
call fcn.01090b69
mov ecx, esi
mov edx, 0x10a86d4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x1090d08
push 0
mov ecx, esi
call fcn.01090c1f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call fcn.010483fb
pop esi
mov ecx, dword [ebp - 4]
call fcn.0103c667
leave
ret
Function at 0x10962be
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor eax, eax
push esi
mov esi, edx
push edi
mov edi, ecx
mov edx, dword [edi + 0x18]
mov ebx, dword [edi + 0x1c]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 0x24]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x18]
cmp dword [edi + 0x1c], eax
mov dword [ebp - 8], edx
jb 0x1096305
mov dword [esi + 4], eax
mov dword [esi], 3
jmp 0x1096364
mov ecx, ebx
jmp 0x1096387
cmp eax, 0x61
jb 0x1096313
cmp eax, 0x7a
jbe 0x109637f
cmp eax, 0x41
jb 0x109631d
cmp eax, 0x5a
jbe 0x109637f
cmp eax, 0x30
jb 0x1096327
cmp eax, 0x39
jbe 0x109637f
cmp eax, 0x3b
ja 0x109636b
cmp eax, 0x3a
jae 0x109637f
cmp eax, 0x21
je 0x109637f
cmp eax, 0x22
jbe 0x109634a
cmp eax, 0x25
jbe 0x109637f
cmp eax, 0x26
jbe 0x109634a
cmp eax, 0x2f
jbe 0x109637f
mov eax, dword [ebp - 4]
mov dword [esi], 0xc
sub ebx, dword [edi + 0x1c]
and dword [esi + 0x14], 0
and dword [esi + 0x18], 0
mov dword [esi + 8], ebx
mov dword [esi + 0x10], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
cmp eax, 0x3d
je 0x109637f
cmp eax, 0x3e
jbe 0x109634a
cmp eax, 0x40
jbe 0x109637f
cmp eax, 0x5f
jne 0x109634a
inc dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ebx, ecx
call dword [edi + 0x20]
cmp eax, 0xffffffff
mov ecx, edx
jne 0x1096309
mov eax, ecx
jmp 0x1096366

Function at 0x109ca94
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10a49bc]
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [eax + 0x5c]
push ebx
xor ebx, ebx
cmp ecx, ebx
push edi
mov dword [ebp - 0x40c], eax
je 0x109cac1
call fcn.01098e49
jmp 0x109cac3
xor eax, eax
push ebx
push 1
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x109cae6
call fcn.01098f4d
jmp 0x109cb7c
push esi
push ebx
push edi
call sub.KERNEL32.dll_GetFileSize
mov esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x408], ebx
call fcn.010996f4
cmp dword [ebp - 0x408], ebx
jne 0x109cb14
mov esi, 0x8007000e
jmp 0x109cb5a
push ebx
lea eax, [ebp - 0x410]
push eax
push esi
push dword [ebp - 0x408]
push edi
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x109cb38
call fcn.01098f4d
mov esi, eax
cmp esi, ebx
jl 0x109cb5a
mov ecx, dword [ebp - 0x410]
mov eax, dword [ebp - 0x408]
mov byte [ecx + eax], bl
push dword [ebp - 0x408]
mov ecx, dword [ebp - 0x40c]
call fcn.0109c8ac
mov esi, eax
push edi
call sub.KERNEL32.dll_CloseHandle
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x109cb79
lea ecx, [ebp - 0x408]
call fcn.0109924a
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0103c667
leave
ret
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40d089
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40d098
pop dword [ebp - 0x48]
mov eax, 0x40d098
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3c333
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x984f0092
sub ecx, 0x984ead13
xor edi, edi
add edi, eax
mov esi, 0xd03ac6f6
add esi, 0x3006b10a
add esi, dword [ebp - 0x48]
mov ebx, 0xc72c663c
add ebx, 0x3f4e3112
xor dword [ebp - 0x24], 0xfa703f0d
mov edx, dword [esi]
xor dword [ebp - 0x28], 0x7b695f6c
add edx, ebx
mov dword [ebp - 4], 0xf2e40cb
mov dword [edi], edx
sub dword [ebp - 0x24], edx
add edi, 0x67553dff
sub edi, 0x67553dfb
add esi, 0x1bd79585
add esi, 0xe4286a7f
loop 0x40d0ef
add eax, 0xa845e4cc
sub eax, 0xa844a3fd
mov ebx, eax
add eax, 5
mov ecx, 0x70d158ef
sub ecx, 0x709158ef
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4059bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40fba0
cmp edx, dword [eax]
je 0x4059df
add eax, 8
inc ecx
cmp eax, 0x40fc30
jl 0x4059d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40fba0]
jne 0x405b0d
mov eax, dword [0x41f1f0]
cmp eax, 1
je 0x405ae7
test eax, eax
jne 0x405a10
cmp dword [0x40faec], 1
je 0x405ae7
cmp edx, 0xfc
je 0x405b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405a47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004067c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40841c
push edi
call fcn.00406940
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004067c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004067d0
lea eax, [ebp - 0xa0]
push 0x4083fc
push eax
call fcn.004067d0
push dword [esi + 0x40fba4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004067d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004068b0
add esp, 0x2c
pop edi
jmp 0x405b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x40fba4]
push 0
push eax
push dword [esi]
call fcn.00405e80
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

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x404a42
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x404a51
pop dword [ebp - 0x34]
mov eax, 0x404a51
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x40158700
sub dword [ebp - 0x44], 0xf1c341b5
mov dword [ebp - 0x40], 0x986ede9e
add dword [ebp - 0x40], 0x99c46da7
mov dword [ebp - 0x3c], 0xf9b43abb
sub dword [ebp - 0x3c], 0xad67f68d
mov dword [ebp - 0x38], 0x58636706
add dword [ebp - 0x38], 0xa79c98fa
lea eax, [ebp - 0x44]
push eax
mov eax, 0x5b0a5d01
add eax, 0xa536734b
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x7aa94919
sub dword [ebp - 0x44], 0x636dfc3
mov dword [ebp - 0x40], 0x7233e435
add dword [ebp - 0x40], 0xcf387d40
mov dword [ebp - 0x3c], 0xf809cb5a
sub dword [ebp - 0x3c], 0x949a5eee
mov dword [ebp - 0x38], 0x56adf82d
sub dword [ebp - 0x38], 0x56adf82d
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3b30e
push 0
call eax
mov ecx, 0x4ee2
mov esi, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x34]
mov edi, 0x517f5764
add edi, 0x29b7b61b
add dword [ebp - 0x28], ecx
mov ebx, dword [edx]
sub dword [ebp - 8], esi
sub ebx, edi
mov dword [esi], ebx
xor dword [ebp - 0x30], edx
add esi, 4
add edx, 0xad136225
add edx, 0x52ec9ddf
loop 0x404b5d
add eax, 0x5bb2dcd5
sub eax, 0x5bb1ae7a
mov ebx, eax
add eax, 0x6afe09a5
sub eax, 0x6afe09a0
mov ecx, 0x515d455
sub ecx, 0x4d5d455
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x508400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x50841a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x508421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x508410
mov eax, 1
add ebx, ebx
jne 0x508433
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x508428
jne 0x508444
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x508428
xor ecx, ecx
sub eax, 3
jb 0x508458
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5084ca
mov ebp, eax
add ebx, ebx
jne 0x508463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x508470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x508494
inc ecx
add ebx, ebx
jne 0x508480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x508475
jne 0x508491
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x508475
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5084b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5084a5
jmp 0x508416
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5084b4
add edi, ecx
jmp 0x508416
pop esi
mov edi, esi
mov ecx, 0x18
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5084d2
cmp byte [edi], 1
jne 0x5084d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5084d7
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x50854f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa678]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa6f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x508504
mov ecx, edi
jns 0x508533
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa6f8]
or eax, eax
je 0x508549
mov dword [ebx], eax
add ebx, 4
jmp 0x508521
call dword [esi + 0xa6f4]
mov ebp, dword [esi + 0xa6fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x508583
sub esp, 0xffffff80
jmp 0x501cf0
Function at 0x407196
Capabilities:
Encode data using xor

Disassembly:
call 0x407089
mov ecx, 0x1c9
call 0x407196
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x407199
ljmp 0xd5b6:0xda8d5821