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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x417058], ebx
je 0x401fe6
mov eax, 0x417058
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x401fe6
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x417058]
cmp dword [eax], ebx
jne 0x401fcf
shl esi, 4
cmp dword [esi + 0x417058], ebx
jne 0x401ffb
mov eax, 0x41335c
jmp 0x402113
push edi
mov edi, dword [sym.imp.7_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x68]
push str.7zSfxString_d
push eax
call dword [0x413258]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.7_GetEnvironmentVariableW]
lea eax, [ebp - 0x68]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x4020ab
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041214e
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x68]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x4020a2
call edi
test eax, eax
jne 0x4020a2
mov eax, dword [esi + 0x417064]
test eax, eax
je 0x402097
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.7_lstrcmpiW]
test eax, eax
je 0x402094
push dword [esi + 0x417064]
call fcn.00412148
mov dword [esi + 0x417064], edi
jmp 0x4020aa
push edi
jmp 0x4020a5
mov eax, dword [ebp - 8]
mov dword [esi + 0x417064], eax
jmp 0x4020ab
push dword [ebp - 8]
call fcn.00412148
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.7_SetLastError]
mov eax, dword [esi + 0x417064]
test eax, eax
jne 0x402112
mov ebx, dword [esi + 0x41705c]
lea edi, [esi + 0x417060]
cmp dword [edi], eax
je 0x4020dd
call fcn.00401f60
cmp eax, dword [0x414488]
jne 0x4020dd
mov ebx, dword [edi]
push ebx
call dword [sym.imp.7_lstrlenW]
xor ecx, ecx
push 2
add eax, 3
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041214e
push ebx
push eax
mov dword [esi + 0x417064], eax
call dword [0x4131dc]
mov eax, dword [esi + 0x417064]
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402418
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x402428
xor eax, eax
leave
ret
test byte [0x41778c], 2
mov dword [ebp - 0x40], 0x40
jne 0x40247d
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.7_GlobalMemoryStatusEx]
test eax, eax
je 0x40247d
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x40247d
jb 0x402459
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x40247d
push 0x2b
call fcn.00401fb6
push eax
call fcn.004076ff
cmp eax, 1
pop ecx
pop ecx
je 0x402476
or dword [0x41778c], 0xffffffff
jmp 0x402424
or dword [0x41778c], 2
xor eax, eax
inc eax
leave
ret
Function at 0x40276d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.004013f8
cmp dword [ebp - 4], 1
jg 0x40278b
push 1
lea ecx, [ebp - 0xc]
call fcn.00401112
push esi
mov esi, dword [sym.imp.7_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x4027af
push dword [ebp - 0xc]
call fcn.00412148
pop ecx
jmp 0x4027e6
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.0040220b
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.004010fe
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.00401349
push esi
call fcn.00412148
pop ecx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x402b1f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004024ba
push 0x413454
lea ecx, [ebp - 0xc]
call fcn.004024f3
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.7_FindFirstFileW]
mov esi, dword [sym.imp.7_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402bfb
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401310
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401410
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.004024f3
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x402bca
push 0x413450
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.7_lstrcmpW]
test eax, eax
je 0x402bde
push 0x413448
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.7_lstrcmpW]
test eax, eax
je 0x402bde
push edi
call fcn.00402b1f
pop ecx
jmp 0x402bda
push 0
push edi
call esi
test eax, eax
je 0x402c1e
push edi
call dword [sym.imp.7_DeleteFileW]
test eax, eax
je 0x402c1e
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.7_FindNextFileW]
test eax, eax
jne 0x402b65
push ebx
call dword [sym.imp.7_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402c1e
push dword [ebp + 8]
call dword [sym.imp.7_RemoveDirectoryW]
test eax, eax
je 0x402c1e
push edi
call fcn.00412148
xor eax, eax
inc eax
jmp 0x402c26
push edi
call fcn.00412148
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402c2c
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x417810], 0
je 0x402c39
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.7_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402c4f
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x402c6d
push 0
push esi
call dword [sym.imp.7_SetFileAttributesW]
test eax, eax
je 0x402c69
push esi
call dword [sym.imp.7_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402b1f
pop ecx
pop esi
ret
Function at 0x402d23
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.004013f8
push dword [esp + 0x10]
call dword [0x4132d8]
mov esi, eax
test esi, esi
jle 0x402d61
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.0040220b
push eax
push dword [esp + 0x18]
call dword [0x4132dc]
mov eax, dword [edi]
and word [eax + esi*2], 0
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret

Function at 0x402eb9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.7_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.004013f8
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.0040220b
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0040220b
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x402fc3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.7_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402fe0
xor eax, eax
jmp 0x403039
test al, 0x10
je 0x402ff1
push 0x10
call dword [sym.imp.7_SetLastError]
or eax, 0xffffffff
jmp 0x403039
mov eax, dword [0x417790]
test eax, eax
jne 0x403003
push esi
call fcn.00402f96
pop ecx
jmp 0x403039
cmp eax, 2
jne 0x403036
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.7_FindFirstFileW]
cmp eax, 0xffffffff
je 0x402ffa
push eax
call dword [sym.imp.7_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.7_CompareFileTime]
test eax, eax
jl 0x402ffa
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x4032fd
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.7_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.004024ba
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x40332e
push esi
lea ecx, [ebp - 0x18]
call fcn.00401112
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403342
cmp ax, 0x2f
jne 0x40334b
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403371
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403364
cmp ax, 0x5c
je 0x403364
dec esi
test esi, esi
jg 0x40334f
test esi, esi
je 0x403420
and word [edi + esi*2], 0
push edi
call fcn.0040197a
test eax, eax
pop ecx
je 0x403360
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.7_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.7_GetFileAttributesW]
test al, 0x10
jne 0x4033a8
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00402fc3
test eax, eax
pop ecx
pop ecx
je 0x4033a8
xor esi, esi
jmp 0x403445
push edi
call fcn.0040197a
test eax, eax
pop ecx
jne 0x4033c2
push edi
push 0xc
push 1
call fcn.0040775e
add esp, 0xc
jmp 0x4033a1
cmp esi, ebx
jge 0x403414
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call fcn.00412160
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4033fa
jmp 0x4033f9
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x403400
cmp ax, 0x2f
je 0x403400
inc esi
cmp word [edi + esi*2], cx
jne 0x4033e9
push edi
mov word [edi + esi*2], cx
call fcn.0040197a
test eax, eax
pop ecx
je 0x4033b3
cmp esi, dword [ebp - 4]
jl 0x4033c6
push edi
call fcn.00412148
xor eax, eax
pop ecx
inc eax
jmp 0x403465
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403450
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403450
cmp ax, 0x7a
ja 0x403450
cmp word [ecx + 2], 0x3a
jne 0x403450
xor esi, esi
inc esi
push edi
call fcn.00412148
pop ecx
mov eax, esi
jmp 0x403465
push ecx
push 0xc
push 1
call fcn.0040775e
push edi
call fcn.00412148
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f5d
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.004013f8
push 2
mov ecx, esi
call fcn.0040220b
mov edi, dword [sym.imp.7_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
and word [ecx], 0
and dword [esi + 4], 0
test eax, eax
jbe 0x403fb0
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.0040220b
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.0040220b
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [0x413258]
mov edi, dword [esi]
push edi
call fcn.004010fe
and word [edi + eax*2], 0
add esp, 0x10
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.7_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404005
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x403fc0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40400c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41738c], esi
jle 0x404060
mov eax, dword [0x417390]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.004012de
lea eax, [ebp - 0xc]
push eax
call fcn.00403b30
mov eax, dword [0x417390]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.7_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call fcn.00412148
inc esi
cmp esi, dword [0x41738c]
pop ecx
jl 0x40401d
pop esi
leave
ret
Function at 0x4047c0
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x404972
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x4047ea
cmp ax, 0x2f
jne 0x404972
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.7_GetDriveTypeW]
cmp eax, 3
jne 0x404972
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403f5d
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.7_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40493c
push edi
lea ecx, [ebp - 0x1c]
call fcn.004013f8
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401310
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.004024f3
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
mov esi, 0x4148c8
push esi
lea ecx, [ebp - 0x1c]
call fcn.004024f3
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.004024f3
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004024f3
push edi
lea ecx, [ebp - 0x1c]
call fcn.004024f3
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013c9
push esi
lea ecx, [ebp - 0x1c]
call fcn.004024f3
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040271c
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.7_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call fcn.00412148
pop ecx
push dword [ebp - 4]
call dword [sym.imp.7_CloseHandle]
cmp esi, ebx
pop edi
je 0x40494d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x40494d
push ebx
push dword [ebp + 8]
call dword [sym.imp.7_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push 0x414884
push ebx
call dword [0x413224]
push dword [ebp - 0x1c]
call fcn.00412148
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call fcn.00412148
push esi
call fcn.00412148
pop ecx
jmp 0x404978
push dword [ebp - 0x28]
call fcn.00402c2c
push dword [ebp - 0x1c]
call fcn.00412148
push dword [ebp - 0x28]
call fcn.00412148
push dword [ebp + 8]
call fcn.00412148
add esp, 0x10
jmp 0x404979
push esi
call fcn.00412148
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x404a78
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call fcn.00401f60
push 3
call fcn.00401fb6
push 0x28
mov dword [0x417784], eax
call fcn.00401fb6
push 2
mov dword [0x417780], eax
call fcn.00401fb6
push 5
mov dword [0x41777c], eax
call fcn.00401fb6
push 0x15
mov dword [0x417778], eax
call fcn.00401fb6
push 0x16
mov dword [0x417774], eax
call fcn.00401fb6
push 0x17
mov dword [0x417770], eax
call fcn.00401fb6
add esp, 0x1c
xor ebx, ebx
mov dword [0x41776c], eax
mov dword [0x417764], ebx
mov dword [0x417768], ebx
mov edi, 0x417384
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [0x413228]
test eax, eax
je 0x404b9c
push ebx
lea eax, [ebp - 0x98]
push str.7zSfxFolder_02d
push eax
call dword [0x413258]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004013f8
lea ecx, [ebp - 0xc]
call fcn.004013f8
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401310
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401310
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402f15
cmp dword [esi + 0x41735c], ebx
jne 0x404b8c
push dword [esi + 0x417360]
lea ecx, [ebp - 0x18]
call fcn.00401310
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401310
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402f15
add esi, 8
cmp esi, 0x28
jb 0x404b5c
lea ecx, [ebp - 0x18]
call fcn.00401a79
inc ebx
cmp ebx, 0x40
jl 0x404af3
call dword [section..rdata]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4064fe
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [0x4131bc]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.004064c0
add esp, 0x1c
leave
ret
Function at 0x407cee
Capabilities:
Inspect load icon resource

Disassembly:
push ecx
push ecx
test word [0x41734c], 0x200
push ebx
mov ebx, dword [sym.imp.7_GetModuleHandleW]
push ebp
push esi
push edi
mov edi, dword [0x413278]
mov esi, ecx
mov byte [0x417798], 0
jne 0x407d77
push 0x65
push 0
call ebx
push eax
call edi
mov ebp, dword [0x4132b8]
push 0
push 0x32
mov dword [esp + 0x18], eax
call ebp
push eax
push 0x31
call ebp
push eax
push 1
push 0x65
push 0
call ebx
push eax
call dword [0x41327c]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x407d52
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
push dword [esp + 0x10]
mov ebp, 0x80
push 1
push ebp
push dword [esi + 4]
call dword [0x413234]
push dword [esp + 0x14]
push 0
push ebp
push dword [esi + 4]
call dword [0x413234]
push dword [esi + 0x10]
mov ecx, esi
push 0x4b2
call fcn.004070f3
push dword [esi + 0xc]
mov ecx, esi
call fcn.004078d1
mov eax, dword [esi + 8]
and eax, 3
xor ebp, ebp
sub eax, ebp
je 0x407e16
dec eax
je 0x407df2
dec eax
je 0x407dc2
dec eax
jne 0x407e40
push 0x19
call fcn.00401fb6
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00407235
push 0x1a
jmp 0x407e2d
push 0x1a
call fcn.00401fb6
pop ecx
push eax
mov ebp, 0x4b4
push ebp
mov ecx, esi
call fcn.00407235
push 0
push 0x4b3
mov ecx, esi
call fcn.004068eb
push ebp
mov ecx, esi
call fcn.00406739
xor ebp, ebp
jmp 0x407e40
push 0x19
call fcn.00401fb6
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00407235
push ebp
push 0x4b4
mov ecx, esi
call fcn.004068eb
jmp 0x407e40
push 0x1b
call fcn.00401fb6
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00407235
push 0x1c
call fcn.00401fb6
pop ecx
push eax
push 0x4b4
mov ecx, esi
call fcn.00407235
cmp dword [esi + 0x38], ebp
je 0x407eb3
mov edi, dword [0x413298]
push 5
pop ebx
push ebx
push dword [esi + 4]
jmp 0x407e5e
push ebp
call fcn.00403a5a
pop ecx
push 2
push ebp
call edi
mov ebp, eax
test ebp, ebp
jne 0x407e54
push ebx
push dword [esi + 4]
jmp 0x407e7a
push ebp
call fcn.00402d66
test eax, eax
pop ecx
jne 0x407e66
push 2
push ebp
call edi
mov ebp, eax
test ebp, ebp
jne 0x407e6c
push ebx
push dword [esi + 4]
jmp 0x407e92
push ebx
call fcn.00401e0c
pop ecx
push 2
push ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x407e88
test byte [0x41734c], 8
jne 0x407f4d
mov ecx, esi
call fcn.00406d1c
jmp 0x407f4d
mov eax, dword [esi + 8]
and eax, 0x1c
cmp eax, 4
je 0x407eef
cmp eax, 8
je 0x407ee8
cmp eax, 0xc
je 0x407ee1
cmp eax, 0x10
je 0x407eda
cmp eax, 0x14
jne 0x407f1f
push 0x7f03
push ebp
jmp 0x407ef5
push 0x7f04
jmp 0x407ed7
push 0x7f01
jmp 0x407ed7
push 0x7f02
jmp 0x407ed7
push 0x65
push ebp
call ebx
push eax
call edi
cmp eax, ebp
je 0x407f1f
push eax
xor ecx, ecx
inc ecx
push ecx
push 0x172
push 0x4b1
push dword [esi + 4]
mov dword [esi + 0x30], ecx
call dword [0x4132c0]
push eax
call dword [0x413234]
jmp 0x407f2f
push ebp
push 0x4b1
mov ecx, esi
mov dword [esi + 0x30], ebp
call fcn.004068eb
test byte [0x41734c], 8
jne 0x407f3f
mov ecx, esi
call fcn.00406d1c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov ecx, esi
call fcn.00406855
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
pop ecx
ret
Function at 0x40d9d4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.7_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d9fa
call dword [sym.imp.7_GetLastError]
test eax, eax
je 0x40d9fa
xor al, al
jmp 0x40da1a
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004122c0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x41196e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x411987
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x4119aa
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4119af
inc esi
cmp esi, dword [ebp - 4]
jb 0x4119a1
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x411aa4
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x411a03
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x4119da
cmp cl, 0xff
jne 0x411a2e
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x411a3c
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x411a43
dec ecx
shl edx, cl
and edx, 7
je 0x4119cb
movzx ecx, byte [edx + 0x414fe0]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x414fd8], 0
mov cl, byte [ebx + 4]
je 0x411a2b
test cl, cl
je 0x411a2b
cmp cl, 0xff
jne 0x4119cb
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x41199c
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x411a77
movzx edi, byte [edx + 0x414fe0]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x411a62
cmp al, 0xff
jne 0x411a74
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x4119f5
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x41199c
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret