joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44be40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x44df18]
cmp byte [eax + 0xc], 0
je 0x44bfad
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44bfa6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x44ebe4], 0
jne 0x44be94
push 0x44bfb4
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x44bfbc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebe4], eax
cmp dword [0x44db48], 0
jne 0x44bf8f
push 0x44bfcc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44db48], eax
cmp dword [0x44db48], 0
je 0x44bf8f
push 0x44bfd8
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebe8], eax
push 0x44bfe8
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebec], eax
push 0x44bffc
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebf0], eax
push 0x44c014
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebf4], eax
push 0x44c02c
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebf8], eax
push 0x44c040
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ebfc], eax
push 0x44c058
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ec00], eax
push 0x44c070
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ec04], eax
push 0x44c08c
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ec08], eax
push 0x44c098
mov eax, dword [0x44db48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44ec0c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bfad
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401b4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x401b5a
pop dword [ebp - 8]
mov eax, 0xff7154d7
add eax, 0xcec683
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xae8ecdf1
add dword [ebp - 0x18], 0x9fc3775a
mov dword [ebp - 0x14], 0x5c1050d
add dword [ebp - 0x14], 0x2c724738
mov dword [ebp - 0x10], 0x7c747ef8
add dword [ebp - 0x10], 0xcfd7c536
mov dword [ebp - 0xc], 0x4339d08e
sub dword [ebp - 0xc], 0x4339d08e
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xbe78ae95
add dword [ebp - 0x18], 0xb5f9bac1
mov dword [ebp - 0x14], 0x29e01efb
add dword [ebp - 0x14], 0x178c427a
mov dword [ebp - 0x10], 0x6a38b181
add dword [ebp - 0x10], 0xf936baeb
mov dword [ebp - 0xc], 0xd20128cf
sub dword [ebp - 0xc], 0xd20128cf
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xce3c3873
add eax, 0x320497d9
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x393dd
push 0
call eax
mov ecx, 0x4629
mov esi, eax
mov edi, 0xa06ebc4e
sub edi, 0xa02d0c4e
add edi, dword [ebp - 8]
mov edx, 0x468a63ed
sub edx, 0xf9e34e84
mov ebx, dword [edi]
xor dword [ebp - 4], ecx
xor ebx, edx
mov dword [ebp - 4], 0x26659f7a
mov dword [esi], ebx
add dword [ebp - 4], 0x6356bce4
add esi, 0x966edc49
add esi, 0x699123bb
add edi, 0x26347bb2
sub edi, 0x26347bae
loop 0x401c71
add eax, 0x14fa7447
sub eax, 0x14f968d0
xor ebx, ebx
add ebx, eax
add eax, 0x2585a3b3
add eax, 0xda7a5c52
mov ecx, 0xba8a093e
add ecx, 0x45b5f6c2
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x401f64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0xa
push eax
push dword [0x40c080]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401f9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push dword [0x40c080]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
ja 0x401fa6
xor eax, eax
jmp 0x402096
push edi
push dword [0x40c080]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x40
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 8], edi
call fcn.00402940
sub esi, 0x20
push 0x20
mov dword [ebp - 0xc], esi
lea eax, [edi + esi]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402940
add esp, 0x18
xor eax, eax
xor ebx, ebx
movzx ecx, byte [ebp + eax - 0x2c]
add ebx, ecx
inc eax
cmp eax, 0x20
jb 0x401fee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, eax
jne 0x402032
test ebx, ebx
je 0x402053
xor edx, edx
xor ecx, ecx
test esi, esi
jbe 0x402053
mov al, dl
and al, 0x23
xor al, byte [edx + edi]
or al, byte [ebp + ecx - 0x2c]
inc ecx
cmp ecx, 0x10
mov byte [edx + edi], al
jne 0x402027
xor ecx, ecx
inc edx
cmp edx, esi
jb 0x402011
test ecx, ecx
jne 0x402009
jmp 0x402053
xor edx, edx
xor ecx, ecx
test esi, esi
jbe 0x402053
mov al, byte [ebp + ecx - 0x2c]
xor al, byte [edx + edi]
xor al, dl
inc ecx
cmp ecx, 0x10
mov byte [edx + edi], al
jne 0x40204e
xor ecx, ecx
inc edx
cmp edx, esi
jb 0x40203a
mov edi, dword [edi]
mov dword [ebp + 8], edi
add edi, 0x100
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
sub eax, 4
push eax
mov eax, dword [ebp - 8]
add eax, 4
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00401c26
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4024d3
Capabilities:
Copy file
Create directory
Create service
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x40911c
jmp loc.0040d314

Function at 0x402626
Capabilities:
Accept command line arguments
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
push 0x409190
jmp loc.0040d95e
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x79c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0079c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x79c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x79c06a
add dl, dl
jne 0x79c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x79c0dc
xor eax, eax
add dl, dl
jne 0x79c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x79c17d
add dl, dl
jne 0x79c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x79c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x79c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x79c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x79c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x79c075
mov eax, 1
add dl, dl
jne 0x79c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x79c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x79c0e1
sub eax, ebx
mov ebx, 1
jne 0x79c128
mov ecx, 1
add dl, dl
jne 0x79c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x79c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x79c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x79c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x79c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x79c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x79c136
cmp eax, 0x7d00
jae 0x79c16d
cmp eax, 0x500
jb 0x79c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x79c075
cmp eax, 0x7f
ja 0x79c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x79c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x79c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x79c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402980
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0040de80
mov esi, eax
add esp, 4
test esi, esi
je 0x40299c
cmp byte [esi], 0
jne 0x4029bc
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040de80
mov esi, eax
add esp, 4
test esi, esi
je 0x402af0
cmp byte [esi], 0
je 0x402af0
mov eax, esi
xor ebp, ebp
mov cl, byte [eax]
inc ebp
test cl, cl
mov dword [esp + 0x1c], ebp
je 0x4029d8
cmp cl, 0x20
je 0x4029d8
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4029cb
mov cl, byte [eax]
test cl, cl
je 0x4029f1
cmp cl, 0x20
jne 0x4029ed
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x4029f1
jmp 0x4029de
test cl, cl
jne 0x4029c0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0040db30
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x402a1f
push str.envargs:__cant_get_memory_for_arguments
call fcn.0040e16c
add esp, 4
push 2
call fcn.0040e097
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, ebp
lea ecx, [eax*4 + 4]
push ecx
call fcn.0040db30
add esp, 4
test eax, eax
jne 0x402a6e
push str.envargs:__cant_get_memory_for_arguments
call fcn.0040e16c
add esp, 4
push 2
call fcn.0040e097
mov esi, dword [esp + 0x18]
mov ebp, eax
add eax, 4
mov edx, dword [esi]
mov ecx, dword [edx]
mov dword [eax - 4], ecx
mov ecx, dword [esi]
add ecx, 4
mov dword [esi], ecx
mov dword [eax], ebx
mov cl, byte [ebx]
add eax, 4
test cl, cl
je 0x402a9d
cmp cl, 0x20
je 0x402aa2
mov cl, byte [ebx + 1]
inc ebx
test cl, cl
jne 0x402a90
cmp cl, 0x20
jne 0x402aa6
mov byte [ebx], 0
inc ebx
mov cl, byte [ebx]
test cl, cl
je 0x402abf
cmp cl, 0x20
jne 0x402abb
mov cl, byte [ebx + 1]
inc ebx
test cl, cl
je 0x402abf
jmp 0x402aac
test cl, cl
jne 0x402a85
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
add edx, ecx
dec ecx
test ecx, ecx
mov dword [edi], ecx
je 0x402ae6
mov ecx, dword [esi]
add eax, 4
mov ecx, dword [ecx]
mov dword [eax - 4], ecx
mov ebx, dword [esi]
add ebx, 4
mov dword [esi], ebx
mov ecx, dword [edi]
dec ecx
mov dword [edi], ecx
jne 0x402ace
mov dword [eax], 0
mov dword [esi], ebp
mov dword [edi], edx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406520
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
mov dword [esp + 0x18], ebx
je 0x4065c8
mov ebp, dword [esp + 0x14]
mov eax, dword [0x41cd24]
test eax, eax
jne 0x406584
mov eax, dword [0x41cd20]
mov ecx, dword [0x41cdd8]
push 0x2000
push eax
push ecx
call fcn.0041227f
add esp, 0xc
mov dword [0x41cd24], eax
test eax, eax
je 0x4065d1
jl 0x4065dc
mov ecx, dword [0x424f78]
mov edx, dword [0x41cd20]
add ecx, 0x2000
mov dword [0x41cdc4], edx
mov dword [0x424f78], ecx
cmp ebx, eax
mov edx, ebx
jb 0x40658c
mov edx, eax
mov esi, dword [0x41cdc4]
mov ecx, edx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add ebp, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x41cdc4]
mov eax, dword [0x41cd24]
add edi, edx
sub eax, edx
sub ebx, edx
mov dword [0x41cdc4], edi
mov dword [0x41cd24], eax
jne 0x40653d
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
sub eax, ebx
pop ebp
pop ebx
ret
push str.error:__zipfile_read_error_n
push 0x419ea0
call fcn.0040dba4
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406600
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x41a8fc]
test eax, eax
jne 0x40665c
mov eax, dword [0x41cd20]
mov ecx, dword [0x41cdd8]
push 0x2000
push eax
push ecx
call fcn.0041227f
add esp, 0xc
mov dword [0x41cd24], eax
test eax, eax
jle 0x40665c
mov ecx, dword [0x424f78]
add ecx, 0x2000
dec eax
mov dword [0x424f78], ecx
mov ecx, dword [0x41cd20]
mov dword [0x41cd24], eax
xor eax, eax
mov dword [0x41cdc4], ecx
mov al, byte [ecx]
inc ecx
mov dword [0x41cdc4], ecx
ret
or eax, 0xffffffff
ret
Function at 0x406660
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x41c70c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov ecx, ebp
je 0x40669b
mov edi, dword [0x41c700]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edi + edx*4]
xor eax, edx
inc ecx
dec esi
jne 0x40667d
mov esi, dword [esp + 0x18]
mov dword [0x41c70c], eax
mov eax, dword [0x41a8d8]
xor ebx, ebx
cmp eax, ebx
jne 0x406864
cmp esi, ebx
je 0x406864
cmp dword [0x424f74], ebx
je 0x4066c9
pop edi
pop esi
pop ebp
mov eax, 0x32
pop ebx
ret
mov eax, dword [str._bum]
test byte [eax + 0x14], 8
jne 0x406753
mov ecx, dword [0x41cd30]
push esi
push ebp
push ecx
call fcn.004134b1
add esp, 4
push eax
call fcn.00410070
add esp, 0xc
cmp eax, esi
je 0x406864
cmp dword [0x41a8a4], ebx
jne 0x406864
push 0x41cde0
push str._n_s:__write_error__disk_full__.__Continue___y_n_C_
push 0x419ea0
call fcn.0040dba4
push 0x419ea0
call fcn.0040df5d
push 0x419e60
push 9
push 0x424f30
call fcn.0040e1d8
mov cl, byte [0x424f30]
add esp, 0x1c
xor edx, edx
cmp cl, 0x79
setne dl
pop edi
inc edx
pop esi
pop ebp
mov dword [0x424f74], edx
mov eax, 0x32
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov edi, dword [0x41a900]
cmp eax, ebx
jne 0x406767
mov edi, dword [0x41cdd4]
cmp dword [0x41c704], ebx
je 0x40677b
mov dword [0x41b37c], ebx
mov dword [0x41c704], ebx
mov al, byte [ebp]
mov bl, 0xa
cmp al, bl
mov ecx, ebp
jne 0x406792
mov eax, dword [0x41b37c]
test eax, eax
je 0x406792
lea ecx, [ebp + 1]
add esi, ebp
mov dword [0x41b37c], 0
cmp ecx, esi
mov eax, edi
jae 0x406864
mov ebp, 1
mov dl, byte [ecx]
cmp dl, 0xd
jne 0x4067d1
mov byte [eax], dl
inc eax
lea edx, [esi - 1]
mov byte [eax], bl
inc eax
cmp ecx, edx
jne 0x4067c9
mov dword [0x41b37c], ebp
jmp 0x4067e0
cmp byte [ecx + 1], bl
jne 0x4067e0
inc ecx
jmp 0x4067e0
cmp dl, bl
jne 0x4067dd
mov byte [eax], 0xd
inc eax
mov byte [eax], bl
jmp 0x4067df
mov byte [eax], dl
inc eax
inc ecx
cmp ecx, esi
jb 0x4067ad
cmp eax, edi
jbe 0x406864
mov esi, eax
mov eax, dword [0x41cd30]
sub esi, edi
push esi
push edi
push eax
call fcn.004134b1
add esp, 4
push eax
call fcn.00410070
add esp, 0xc
cmp eax, esi
je 0x406864
mov eax, dword [0x41a8a4]
test eax, eax
jne 0x406864
push 0x41cde0
push str._n_s:__write_error__disk_full__.__Continue___y_n_C_
push 0x419ea0
call fcn.0040dba4
push 0x419ea0
call fcn.0040df5d
push 0x419e60
push 9
push 0x424f30
call fcn.0040e1d8
mov dl, byte [0x424f30]
add esp, 0x1c
xor ecx, ecx
cmp dl, 0x79
setne cl
pop edi
inc ecx
pop esi
pop ebp
mov dword [0x424f74], ecx
mov eax, 0x32
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40c560
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [0x41a8a4]
sub esp, 0x10
test eax, eax
push ebx
je 0x40c580
mov eax, dword [0x41cd30]
push eax
call fcn.0040e500
add esp, 4
pop ebx
add esp, 0x10
ret
mov cx, word [0x41cd66]
mov eax, dword [0x41cd68]
push esi
mov word [esp + 8], cx
mov ecx, dword [esp + 8]
lea edx, [esp + 8]
push edi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
jne 0x40c5c2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push eax
push str.DosDateTime_failed:__d_n
call fcn.0040defd
add esp, 8
xor edi, edi
jmp 0x40c601
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40c5fc
call ebx
push eax
push str.LocalFileTime_failed:__d_n
call fcn.0040defd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edi, 1
mov eax, dword [0x41cd30]
push eax
call fcn.0040e500
add esp, 4
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push 0x41cde0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c64a
call ebx
push eax
push str._nCreateFile_error__d_when_trying_set_file_time_n
push 0x419ea0
call fcn.0040dba4
add esp, 0xc
jmp 0x40c679
test edi, edi
je 0x40c672
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x40c672
call ebx
push eax
push str._nSetFileTime_failed:__d_n
call fcn.0040defd
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [str._bum]
mov eax, dword [edx + 0x10]
and eax, 0x7f
push eax
push 0x41cde0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
test eax, eax
jne 0x40c6ac
call ebx
push eax
push str._nwarning___d_:_could_not_set_file_attributes_n
push 0x419ea0
call fcn.0040dba4
add esp, 0xc
pop ebx
add esp, 0x10
ret
Function at 0x4110ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41a468
cmp edx, dword [eax]
je 0x4110cf
add eax, 8
inc ecx
cmp eax, 0x41a4f8
jl 0x4110c0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41a468]
jne 0x4111fd
mov eax, dword [0x41c3a8]
cmp eax, 1
je 0x4111d7
test eax, eax
jne 0x411100
cmp dword [0x41a2fc], 1
je 0x4111d7
cmp edx, 0xfc
je 0x4111fd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411137
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004127c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040ff30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41117a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040ff30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4157d0
push edi
call fcn.0040e270
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004127c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004127d0
lea eax, [ebp - 0xa0]
push 0x4157b0
push eax
call fcn.004127d0
push dword [esi + 0x41a46c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004127d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00412be5
add esp, 0x2c
pop edi
jmp 0x4111fd
lea eax, [ebp + 8]
lea esi, [esi + 0x41a46c]
push 0
push eax
push dword [esi]
call fcn.0040ff30
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 0x4134b9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4134e4
test byte [esp + 8], 0x80
je 0x4134d3
and al, 0xfe
jmp 0x4134d5
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4134f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041217e
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4049cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x467400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebp + 0xc], esi
jbe 0x404a4b
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
push str.Open_Cards
push 0x469120
mov byte [edi + esi], al
call fcn.0040146b
push eax
call fcn.00401e8b
mov al, byte [edi + esi]
lea ecx, [ebp - 0x1c]
xor al, 0x74
add esp, 0xc
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
push 0x4275b8
mov byte [edi + esi], al
call fcn.00402241
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.0040f0ee
xor byte [edi + esi], al
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00404623
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x4049e7
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409ffe
leave
ret 8

Function at 0x4080c5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4080e6
jl 0x4080dd
test edi, edi
jne 0x4080e6
xor eax, eax
xor edx, edx
jmp 0x4081a7
cmp dword [ebx + 0x38], 0
je 0x4080fb
push eax
push edi
push dword [ebp + 8]
call fcn.004081ad
jmp 0x4081a7
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408142
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408142
cmp eax, edi
jb 0x40811c
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040aa10
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408148
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40819c
mov ecx, ebx
call fcn.00407918
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408187
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004122e3
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40819c
jmp 0x40815a
test edx, edx
je 0x40819c
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004122e3
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40a644
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a683
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a683
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a683
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a683
cmp dword [ecx + 0x74], 0xe
jbe 0x40a683
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret