joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005c871
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005c90e
push ebx
push esi
call fcn.1005c83a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1005b574
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005c8bb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005c90d
push edi
push eax
call fcn.100577e0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005c8db
call fcn.10055ece
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005c90c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1005b574
add esp, 0x20
test eax, eax
jne 0x1005c8fa
push edi
call fcn.10055ece
jmp 0x1005c902
push ebx
call fcn.10055ece
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1005fc07
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10053e97
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005fc76
cmp esi, dword [ebp - 4]
je 0x1005fc71
cmp dword [ebp + 0xc], 0
je 0x1005fc71
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1005fc4e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1005f759
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1005fc78
xor eax, eax
inc eax
jmp 0x1005fc78
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1005fcdd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1020e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10053e97
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10053e97
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1005fd54
cmp word [ecx], dx
je 0x1005fd54
mov eax, dword [0x1006ec1c]
push edi
dec eax
push eax
push 0x1006eb08
call fcn.1005fc7c
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005fdc7
cmp word [eax], dx
je 0x1005fdc7
mov eax, dword [edi]
test eax, eax
je 0x1005fd78
cmp word [eax], dx
je 0x1005fd78
lea eax, [ebp - 0x10]
push eax
call fcn.1005f65f
jmp 0x1005fd81
lea eax, [ebp - 0x10]
push eax
call fcn.1005f6fa
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1005fdf1
mov eax, dword [0x1006eb04]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1006e7f8
call fcn.1005fc7c
add esp, 0xc
test al, al
je 0x1005fdf1
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1005fdbc
cmp word [eax], di
je 0x1005fdbc
lea eax, [ebp - 0x10]
push eax
call fcn.1005f65f
pop ecx
jmp 0x1005fdf3
lea eax, [ebp - 0x10]
push eax
call fcn.1005f6fa
jmp 0x1005fdb9
mov eax, dword [edi]
test eax, eax
je 0x1005fdde
cmp word [eax], dx
je 0x1005fdde
lea eax, [ebp - 0x10]
push eax
call fcn.1005f614
pop ecx
jmp 0x1005fdf1
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1005febc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1005fb01
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1005febc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1005febc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1005febc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005fe49
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10056543
test ebx, ebx
je 0x1005feb7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10056543
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005febc
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005febc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10062dcc
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1005febe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003d35c
leave
ret
Function at 0x10062b01
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10062a7d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10062c70
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10062c70
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10062c25
jg 0x10062b5d
test eax, eax
je 0x10062c1b
push 1
push 0x1000
call fcn.10055a3c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10062b80
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10062c12
push 0x8000
push ebx
call fcn.100629ae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10062ba9
jg 0x10062ba4
cmp ecx, 0x1000
jb 0x10062ba9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100571f9
add esp, 0x10
cmp eax, 0xffffffff
je 0x10062bee
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10062ba4
jl 0x10062bd5
test ecx, ecx
jne 0x10062b96
push dword [ebp - 0xc]
push ebx
call fcn.100629ae
push esi
call fcn.10055ece
add esp, 0xc
xor ebx, ebx
jmp 0x10062c7e
cmp byte [edi + 0x24], 0
je 0x10062c05
cmp dword [edi + 0x20], 5
jne 0x10062c05
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10062c10
mov ebx, dword [edi + 0x18]
jmp 0x10062c12
xor ebx, ebx
push esi
call fcn.10055ece
pop ecx
jmp 0x10062c7e
test ecx, ecx
jg 0x10062be7
jl 0x10062c25
test eax, eax
jae 0x10062be7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1005a53a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10062c45
cmp byte [edi + 0x1c], 0
je 0x10062be7
jmp 0x10062c76
push ebx
call fcn.1005daa6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10062be7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10062c7e
cmp byte [edi + 0x1c], 0
je 0x10062c7b
mov ebx, dword [edi + 0x18]
jmp 0x10062c7e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1005a53a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10064a20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10064a4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10064a4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x5d271ef4
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x54820da9
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10004bc3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002f5b8]
jne 0x10004bcd
repz ret
jmp fcn.10006999

Function at 0x10006c44
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000379b
and dword [ebp - 4], 0
cmp dword [0x1003056c], 0
mov ebx, eax
jne 0x10006cf5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10006da6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10006da6
push eax
call fcn.10003729
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1003056c], eax
call esi
push eax
call fcn.10003729
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10030570], eax
call esi
push eax
call fcn.10003729
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10030574], eax
call esi
push eax
call fcn.10003729
pop ecx
mov dword [0x1003057c], eax
test eax, eax
je 0x10006cf5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10003729
pop ecx
mov dword [0x10030578], eax
mov eax, dword [0x10030578]
cmp eax, ebx
je 0x10006d4d
cmp dword [0x1003057c], ebx
je 0x10006d4d
push eax
call fcn.100037a4
push dword [0x1003057c]
mov esi, eax
call fcn.100037a4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10006d4d
test edi, edi
je 0x10006d4d
call esi
test eax, eax
je 0x10006d44
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10006d44
test byte [ebp - 0xc], 1
jne 0x10006d4d
or dword [ebp + 0x10], 0x200000
jmp 0x10006d86
mov eax, dword [0x10030570]
cmp eax, ebx
je 0x10006d86
push eax
call fcn.100037a4
pop ecx
test eax, eax
je 0x10006d86
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10006d86
mov eax, dword [0x10030574]
cmp eax, ebx
je 0x10006d86
push eax
call fcn.100037a4
pop ecx
test eax, eax
je 0x10006d86
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003056c]
call fcn.100037a4
pop ecx
test eax, eax
je 0x10006da6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10006da8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100088c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [fcn.100088c0]
mov dword [ebp - 8], eax
jmp 0x100088ed
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x10008926
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax], 0x4550
je 0x100088d1
jmp 0x10008903
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x100088d9
jmp 0x10008905
jmp 0x10008905
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov al, 1
test al, 1
jne 0x100088ed
jmp 0x1000891d
mov dword [ebp - 4], 0
jmp 0x10008926
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop ebp
ret
Function at 0x100091e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x1002ecd0]
add eax, 0x1fe4
mov dword [0x1002eccc], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1002eccc]
sub eax, 0x1d4
mov dword [0x1002eccc], eax
mov dword [ebp - 0x10], 0
jmp 0x10009295
jmp 0x10009293
mov dword [0x1002eccc], 0x224c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
je 0x100092d2
jmp 0x10009293
mov eax, dword [0x1002eccc]
add eax, 0x117
mov dword [0x1002eccc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
je 0x1000930f
jmp 0x10009373
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x10009295
mov dword [ebp - 4], 0
jmp 0x1000937a
jmp 0x10009287
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x104
jge 0x100092ba
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x100092b8
jmp 0x100092ba
jmp 0x1000927a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x1000922e
jmp 0x10009287
mov eax, dword [0x1002ecd0]
sub eax, 0x56f
mov dword [0x1002eccc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x1000922c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2 - 0x14]
cmp eax, 0x64
je 0x10009250
jmp 0x10009375
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shl ecx, 1
add eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax - 0x10]
cmp ecx, 0x6c
jne 0x10009371
mov dword [0x1002eccc], 0x23e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
shl ecx, 1
add eax, ecx
add eax, 0xfffffff2
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax]
cmp ecx, 0x6c
jne 0x1000936f
mov eax, dword [0x1002ecd0]
sub eax, 0x21bc
mov dword [0x1002eccc], eax
mov dword [ebp - 4], 1
jmp 0x1000937a
jmp 0x10009371
jmp 0x10009373
jmp 0x10009375
jmp 0x1000922c
mov eax, dword [ebp - 4]
add esp, 0x1c
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 0x408948
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
inc ecx
call fcn.00408967
xor dword [ebx], eax
mov ecx, ecx
inc ebx
mov ecx, ecx
add edi, 0x680e1561
cmp ebx, edx
jne fcn.00408948
ret
Function at 0x402d00
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x434516
call fcn.0041d834
mov ebx, dword [ebp + 8]
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402d20
xor eax, eax
call fcn.0041d8b7
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x402d48
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x402d48
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x402d18
cmp dword [esi + 0x54], edi
jne 0x402d52
or eax, 0xffffffff
jmp 0x402d18
mov eax, esi
call fcn.00403b7c
cmp dword [esi + 0x44], edi
jne 0x402d74
push dword [esi + 0x54]
movsx eax, bl
push eax
call dword [sym.imp.MSVCR100.dll_fputc]
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x402d4d
jmp 0x402d44
push edi
push 8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.004022ef
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402e31
lea eax, [ebp - 0x2c]
mov ecx, eax
add eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x34]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x44]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2d]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::out_int___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x402e59
cmp eax, 1
jg 0x402e39
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402de0
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x402e07
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402df3
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x402e59
lea eax, [ebp - 0x2d]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x38], eax
jne 0x402e55
test edi, edi
jne 0x402d93
cmp dword [ebp - 0x1c], 0x20
jae 0x402e59
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004022ef
jmp 0x402d93
mov ecx, dword [ebp - 0x2c]
jmp 0x402da5
cmp eax, 3
jne 0x402e59
movsx eax, byte [ebp - 0x2d]
push dword [esi + 0x54]
push eax
call dword [sym.imp.MSVCR100.dll_fputc]
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x402e5c
mov esi, ebx
jmp 0x402e5c
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004022ef
mov eax, esi
jmp 0x402d18
Function at 0x403a82
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x434700
call fcn.0041d834
xor edi, edi
cmp dword [esi + 0x44], edi
je 0x403b74
cmp byte [esi + 0x49], 0
je 0x403b74
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x403ab8
xor al, al
jmp 0x403b76
push edi
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.004022ef
mov dword [ebp - 4], edi
lea ebx, [esi + 0x4c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x403b16
lea eax, [ebp - 0x2c]
mov ecx, eax
add eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x44]
push ebx
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x403b1b
dec eax
je 0x403b1f
dec eax
dec eax
je 0x403b70
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004022ef
mov al, bl
jmp 0x403b76
mov ecx, dword [ebp - 0x2c]
jmp 0x403ae5
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x403b2b
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x403b52
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x403b3e
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x403b04
cmp byte [esi + 0x49], 0
je 0x403b70
test edi, edi
jne 0x403ad7
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004022ef
jmp 0x403ad7
mov bl, 1
jmp 0x403b06
mov al, 1
call fcn.0041d8b7
ret
Function at 0x408295
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x434516
call fcn.0041d834
mov ebx, 0xffff
mov esi, ecx
cmp bx, word [ebp + 8]
jne 0x4082b5
xor eax, eax
jmp 0x408439
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x4082e6
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x4082e6
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov word [eax], cx
mov ax, cx
jmp 0x408439
cmp dword [esi + 0x54], edi
je 0x408437
mov eax, esi
call fcn.00408f51
cmp dword [esi + 0x44], edi
jne 0x40831b
push dword [esi + 0x54]
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_fputwc]
pop ecx
cmp ax, bx
movzx eax, word [ebp + 8]
pop ecx
jne 0x408439
jmp 0x408437
movzx eax, word [ebp + 8]
push edi
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.004022ef
mov dword [ebp - 4], edi
jmp 0x408342
xor edi, edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4083e0
lea eax, [ebp - 0x2c]
mov ecx, eax
add eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x34]
push edx
push eax
push ecx
mov ecx, dword [esi + 0x44]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_wchar_t__char__int_::out_int___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
cmp eax, edi
jl 0x40842c
cmp eax, 1
jg 0x4083e8
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40838f
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x4083b6
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4083a2
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x408416
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], 1
cmp dword [ebp - 0x38], eax
jne 0x40841a
test edi, edi
jne 0x408340
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x408430
push 8
call fcn.004022ef
jmp 0x408340
mov ecx, dword [ebp - 0x2c]
jmp 0x408354
cmp eax, 3
jne 0x40842c
push dword [esi + 0x54]
push dword [ebp - 0x30]
call dword [sym.imp.MSVCR100.dll_fputwc]
movzx esi, word [ebp + 8]
pop ecx
pop ecx
cmp ax, bx
jne 0x408406
mov esi, ebx
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004022ef
mov ax, si
jmp 0x408439
push 0
jmp 0x40842d
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004022ef
mov ax, word [ebp + 8]
jmp 0x408439
push edi
lea ecx, [ebp - 0x2c]
push 1
call fcn.004022ef
mov eax, ebx
call fcn.0041d8b7
ret 4