joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003460
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100199e8]
mov dword [ebp - 4], eax
jmp 0x10003479
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100034a0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000349e
call sub.KERNEL32.dll_GetLastError
jmp 0x100034a2
jmp 0x10003470
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10003ad0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100199f8], eax
je 0x10003af4
mov eax, 0x10dd
jmp 0x10003c9c
cmp dword [0x100199fc], 0
je 0x10003b07
mov eax, dword [0x100199fc]
jmp 0x10003c9c
cmp dword [ebp + 0xc], 0
jne 0x10003b17
mov eax, 0x57
jmp 0x10003c9c
cmp dword [ebp + 8], 0
jne 0x10003b27
mov eax, 6
jmp 0x10003c9c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10003b50
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100199fc], ecx
mov edx, dword [ebp + 8]
mov dword [0x10019a00], edx
mov eax, dword [ebp - 8]
jmp 0x10003c9c
push 0x18
call fcn.10005dad
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10003bab
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100199fc], ecx
cmp dword [ebp - 4], 0
je 0x10003b9a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10005de2
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10019a00], ecx
mov eax, dword [ebp - 8]
jmp 0x10003c9c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10003ab0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10003ab0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x10003beb
cmp dword [ebp - 0xc], 0x1e
jbe 0x10003c07
mov dword [ebp - 8], 9
cmp dword [0x100199f0], 0
je 0x10003c02
jmp 0x10003b79
jmp 0x10003b70
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10003c2e
mov dword [ebp - 8], 9
cmp dword [0x100199f0], 0
je 0x10003c29
jmp 0x10003b79
jmp 0x10003b70
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10003c59
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10003b70
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10019a08]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10019a08], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10003cb0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100199f8], eax
je 0x10003ccd
mov eax, 0x10dd
jmp 0x10003db0
mov eax, dword [0x10019a08]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10003d4c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10003d28
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10003d28
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100029c0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10005de2
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10003cd5
mov dword [0x10019a08], 0
call fcn.100032a0
mov ecx, dword [0x10019a04]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10003d9a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10005de2
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10003d64
mov dword [0x10019a04], 0
mov dword [0x100199f8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10004290
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100199fc], 0
je 0x100042a9
mov eax, dword [0x100199fc]
jmp 0x10004348
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x100042ba
xor eax, eax
jmp 0x10004348
push 8
call fcn.10005dad
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10004312
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100042fb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10005de2
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100199fc], eax
mov dword [0x10019a00], 0
mov eax, dword [ebp - 8]
jmp 0x10004348
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000432a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x100042da
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10019a04]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10019a04], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100111b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100111dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100111dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40aa5b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x41a004]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov esi, dword [ebp + 8]
push 0x4074dc
push 0x4074f8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa95
push 0x800
call eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.00409cb0
push esi
lea ecx, [esp + 0x24]
call fcn.0040921b
lea ecx, [esp + 0x20]
call fcn.004095c7
mov esi, eax
test esi, esi
jns 0x40aae9
lea ecx, [esp + 8]
call fcn.0040a9d0
test al, al
je 0x40ab33
cmp esi, 0x80040b00
jne 0x40ab33
lea ecx, [esp + 0x20]
call fcn.00409683
mov esi, eax
test esi, esi
js 0x40ab33
mov esi, 0x80040b02
jmp 0x40ab33
cmp dword [esp + 0x1c], 8
lea esi, [esp + 8]
jb 0x40aaf8
mov esi, dword [esp + 8]
push 0x406f80
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40ab2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40ab24
jle 0x40ab33
movzx esi, si
or esi, 0x80070000
jmp 0x40ab33
mov esi, 0x80004005
jmp 0x40ab33
push dword [ebp + 0x14]
push esi
call eax
mov esi, eax
lea ecx, [esp + 0x20]
call fcn.004092b7
lea ecx, [esp + 8]
call fcn.00409da9
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b187
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4141c7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ecx + 0x458df845]
xchg esp, eax
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
xchg edi, eax
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00413e21
push eax
push esi
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.00413dd6
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00413e21
push eax
push esi
push dword [ebp + 8]
call fcn.00413dd6
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00413e11
pop ebp
test dword [ecx], edx
jg 0x41421c
popfd
jl fcn.00414296
invalid
Function at 0x4141db
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ecx + 0x458df845]
xchg esp, eax
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
xchg edi, eax
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00413e21
push eax
push esi
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.00413dd6
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00413e21
push eax
push esi
push dword [ebp + 8]
call fcn.00413dd6
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00413e11
pop ebp
test dword [ecx], edx
jg 0x41421c
popfd
jl fcn.00414296
invalid
Function at 0x416004
Capabilities:
Resolve function by parsing pe exports

Disassembly:
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x415ffe
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x415ffe
call fcn.00413e11
jp 0x41606d
aam 0x3e
mov ebx, dword [edx + 0x24]
in eax, 0xff
call edi
call fcn.004119f2
pop ecx
jmp 0x416048
Function at 0x401130
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x400
xor ecx, ecx
lea edx, [esp]
push esi
mov eax, ecx
mov esi, 8
test al, 1
je 0x401151
shr eax, 1
xor eax, 0xedb88320
jmp 0x401153
shr eax, 1
dec esi
jne 0x401144
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x100
jl 0x40113d
mov edx, dword [esp + 0x40c]
mov ecx, dword [esp + 0x408]
or eax, 0xffffffff
test edx, edx
jbe 0x401198
push ebx
lea esi, [edx]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [esp + edx*4 + 8]
xor eax, edx
inc ecx
dec esi
jne 0x40117c
pop ebx
not eax
pop esi
add esp, 0x400
ret

Function at 0x401660
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x406760]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push str.Do_nothing
push 0
push 0xc
push 1
push eax
call edi
mov ecx, dword [0x406760]
push 0x406770
push 0
push 0xc
push 0x3e9
push ecx
call edi
call fcn.00401d30
push 0
call fcn.00401d70
mov ebx, dword [esp + 0x18]
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4016e4
mov edx, dword [0x406760]
push pe_nt_image_headers32
push 0
push str.Could_not_open_file
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
call fcn.00401880
add esp, 4
cmp eax, 0xffffffff
jne 0x401720
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x406760]
push pe_nt_image_headers32
push 0
push str.Could_not_find_RAR_signature_nMake_sure_its_a_valid_RAR_archive
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
lea ecx, [eax + 0x14]
cmp ebp, ecx
jae 0x40174b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x406760]
push pe_nt_image_headers32
push 0
push str.Archive_is_too_small_to_be_valid
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push eax
push esi
call fcn.00401950
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x406760]
push ebx
push 0
push 0xc
push 0x3e9
push eax
call edi
push 1
call fcn.00401d70
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401790
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4017d3
mov ecx, dword [0x406760]
push pe_nt_image_headers32
push 0
push str.Could_not_open_file_for_writing
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call fcn.00401880
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
jne 0x401811
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x406760]
push pe_nt_image_headers32
push 0
push str.Could_not_find_RAR_signature_nMake_sure_its_a_valid_RAR_archive
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [edi + 0x14]
cmp ebx, eax
jae 0x40183b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x406760]
push pe_nt_image_headers32
push 0
push str.Archive_is_too_small_to_be_valid
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebx
push edi
push esi
call fcn.00401a40
add esp, 0xc
test eax, eax
jne 0x401857
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
call fcn.00401d30
push edi
push esi
call fcn.00401950
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x401880
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.00401e30
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x201c]
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x1e]
push 0x2000
push ecx
push edi
call ebx
mov edx, dword [esp + 0xc]
push 7
push str.Hey_
lea eax, [esp + 0x1e]
push edx
push eax
call fcn.00401cd0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x401932
cmp dword [esp + 0xc], 0x2000
jne 0x40193c
mov ecx, dword [esp + 0x2010]
mov dx, word [esp + 0x2014]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ecx
push 0
push eax
lea ecx, [esp + 0x1e]
push 0x2000
push ecx
push edi
mov word [esp + 0x28], dx
add esi, 0x2000
call ebx
mov edx, dword [esp + 0xc]
push 7
add edx, 6
push str.Hey_
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00401cd0
add esp, 0x10
cmp eax, 0xffffffff
je 0x4018cd
test esi, esi
je 0x401932
lea eax, [eax + esi - 6]
pop edi
pop esi
pop ebx
add esp, 0x200c
ret
cmp eax, 0xffffffff
jne 0x40192a
pop edi
pop esi
or eax, eax
pop ebx
add esp, 0x200c
ret
Function at 0x401950
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 0xa]
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x24]
push 2
push edx
push esi
call ebx
push 0
lea eax, [ebp + 0x10]
push 0
push eax
push esi
call edi
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push esi
call ebx
mov ebx, dword [sym.imp.USER32.dll_CheckDlgButton]
mov edi, 1
xor esi, esi
mov edx, dword [esp + 0x1c]
mov eax, edi
and eax, edx
test ax, ax
je 0x4019cd
mov edx, dword [0x406760]
lea ecx, [esi + 0x3eb]
push 1
push ecx
push edx
call ebx
add edi, edi
inc esi
cmp esi, 9
jl 0x4019ae
test byte [esp + 0x1c], 4
je 0x4019ef
mov eax, dword [0x406760]
push str.Unlock
push 0
push 0xc
push 1
push eax
jmp 0x401a01
mov ecx, dword [0x406760]
push str.Lock
push 0
push 0xc
push 1
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
test ebp, ebp
je 0x401a1b
mov edx, dword [0x406760]
push 1
push 0x3f6
push edx
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401a32
mov eax, dword [0x406760]
push 1
push 0x3f7
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401a40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ebx, [ebp + 0xa]
push 0
push 0
push ebx
push esi
call edi
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x18]
push 2
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [ebp + 0x10]
push 0
push edx
push esi
call edi
lea eax, [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401ad9
mov edx, dword [0x406760]
push 0x24
push str.Please_confirm
push str.The_authenticity_information_is_going_to_be_removed_nProceed_anyway_
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x401ac5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push ebp
push esi
call fcn.00401bb0
add esp, 0x10
mov edx, dword [esp + 0x10]
push 0
push 0
xor edx, 4
push ebx
push esi
mov dword [esp + 0x20], edx
call edi
lea edx, [esp + 0x24]
push 0
push edx
lea eax, [esp + 0x18]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x28]
push 2
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x20]
add eax, 0xfffe
mov dword [esp + 0x20], eax
and eax, 0xffff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push 0
lea eax, [ebp + 9]
push 0
push eax
push esi
call edi
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push 0
and edx, 0xffff
push ecx
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x20]
and eax, 0xffff
push eax
push ebx
call fcn.00401130
add esp, 8
mov dword [esp + 0x18], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
add ebp, 7
push 0
push ebp
push esi
call edi
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x20]
push 2
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x401bb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push edi
mov edi, dword [esp + 0x10]
cmp eax, 0x14
jb 0x401c9a
mov esi, dword [esp + 0x1c]
lea ecx, [esi - 7]
cmp eax, ecx
ja 0x401c9a
push 0
add eax, 5
push 0
push eax
push edi
call ebp
lea edx, [esp + 0x1c]
push 0
push edx
lea eax, [esp + 0x18]
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
and eax, 0xffff
lea edx, [eax + ecx]
cmp esi, edx
jbe 0x401c9a
mov edx, esi
push ebx
sub edx, eax
sub edx, ecx
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x14]
push 0
and eax, 0xffff
push 0
add eax, ecx
push eax
push edi
call ebp
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 0
and edx, 0xffff
mov eax, esi
push ecx
mov ecx, dword [esp + 0x24]
sub eax, edx
sub eax, ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push ecx
push edi
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
and eax, 0xffff
lea edx, [esp + 0x20]
sub esi, eax
push 0
sub esi, ecx
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
mov ecx, dword [esp + 0x14]
push 0
add ecx, 0x10
push 0
push ecx
push edi
mov dword [esp + 0x28], 0
call ebp
lea edx, [esp + 0x1c]
push 0
push edx
lea eax, [esp + 0x20]
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
ret
Function at 0x402aa5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406360
cmp edx, dword [eax]
je 0x402ac7
add eax, 8
inc ecx
cmp eax, 0x4063f0
jl 0x402ab8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406360]
jne 0x402bf5
mov eax, dword [0x40677c]
cmp eax, 1
je 0x402bcf
test eax, eax
jne 0x402af8
cmp dword [0x4062b4], 1
je 0x402bcf
cmp edx, 0xfc
je 0x402bf5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402b2f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403050
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004031c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402b72
lea eax, [ebp - 0x1a4]
push eax
call fcn.004031c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053f0
push edi
call fcn.00403e50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403050
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403060
lea eax, [ebp - 0xa0]
push 0x4053d0
push eax
call fcn.00403060
push dword [esi + 0x406364]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403060
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403dbe
add esp, 0x2c
pop edi
jmp 0x402bf5
lea eax, [ebp + 8]
lea esi, [esi + 0x406364]
push 0
push eax
push dword [esi]
call fcn.004031c0
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 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